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


Please Help Members By Posting Answers For Below Questions

How is conversion of data types done between abap/4 & external level?

738


What will happen when we use single buffered selected?

824


what is user specific parameter?

1844


What do you mean by batch data communications programming?

700


What are the names of the function modules that will be generated upon activation of a lock object?

736






What actually happens in real-time recruitment? : sap abap hr

774


Example of table cluster and cluster tables.

831


When, how and how would you control changes to standard SAP objects.

1606


wat is the default file name of BAPI trace?

1990


What are the different types of parameters? : abap modularization

826


Do we create table fields with out data elements and domains?

815


What is difference between dependent and independent data?

762


What is direct input method ?

1659


dynamic programming in sap abap

1180


What are the internal tables and work area?

728