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
Can we include customizing include or an append structure with pooled or cluster tables? : abap data dictionary
When value table becomes check table?
what is bapi,badi,bdc,ale idocs?
Explain the advantages of abap query tool?
What are the two ways for restricting the value range for a domain ?
Difference between open sql and native sql? : abap data dictionary
What is view proxy in abap?
What is the differences between structure and table in the data dictionary in abap?
Explain the difference between open_form and close_form?
What is the maximum No. Of structures that can be included in a table or structure. : abap data dictionary
Can we make use of flow logic control key words in abap/4 and vice-versa?
ABAP : Classical reports events name
What are the differences between the table and the structure in the data dictionary in the sap abap?
What are the table controls in bdc ? What is the difference between bdc and lsmw ?what is the difference between bdc and rfc ? : abap bdc
What are the different types of laws. What are they?