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
i have cleared my technical round and manager round in cts but they told me u will get a call with in couple of days now i dont know about my status
What is abap work bench?
What are logical databases? : abap hr
hi..i hav developed an interactive report in which alv list display in basic list and 1st secondary list in alv grid display.I want to get summation(total) of the columns in the secondary list.I hav used 'do_sum' but i couldnt get.is there any other way to get summation(total) in secondary list which is an alv grid display
SAP query how to use end users?
Explain the disadvantages of different types of bdc's?
What are null values? : abap data dictionary
How to select valid lines for secondary list?
Explain what is the step-by-step process to create a table in data dictionary?
Explain what is step-loop? Explain all the steps?
Explain about sap fico testing and the tools used? : abap bdc
Explain what is the difference between sy-tabix and sy-index? Where it is used?
How to maintain lists?
pls if any one have idea ,reply as soon as possible 1.Allied solution group inc. is a genuine company or not ? 2.what is update module. 3.Transaction: scc3 what it is?
Type casting and error handling