How you will catch errors in call transaction?
Answer Posted / p.lokesh
We will catch errors in the call transcation explicitly by
using Structure BDCMSGCOLL.
and FUNCITNO MODULE 'WRITE_FORMAT'.
Ex:
Data : bdc_msg type table of bdcmsgcoll with header line,
bdc_tab type table of bdcdata with header line.
CALL TRANSACTION 'MM01' using Bdc_tab mode N
updte S
messages into bdc_msg.
if sy-subrc = 0.
perform Error.
clear bdc_msg.
refresh bdc_msg.
endif.
Read table bdc_msg with key msgtype = 'E'.
if sy-subrc = 0.
call function 'FORMAT_MESSAGE'.
...
..
..
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is roll area?
Explain what are extracts?
Difference between Read and Get cursor?
How do you document abap/4 programs? Do you use program documentation menu option?
when u prefer lsmw?
Difference between domain and data element? What are aggregate object?
What are the different types of internal table?
How to set an Enhancement point for a custom report?
What are the basic object types? : sap abap hr
What is the length of function code at user-command?
What is static attribute
Application Category?
What functions does a data dictionary perform ?
When to use logical database?
Explain what is step-loop? Explain all the steps?