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

What are two methods of modifying sap standard tables?

587


Use SET PF_STATUS which is in the FM reuse_alv_grid_display to set the button

1777


How can we access the correction and transport system?

554


What is the major difference between pool tables and transparent tables?

523


What is bdc programming? : abap bdc

583






Explain how data is stored in cluster table?

677


What is the function module to popup contents in the internal table?

567


Explain the Inportance of pa40? : abap hr

582


Hi, I have a requirement for locking the fax field in user master records. As you know user can edit the details using the System>profile>own data (SU3), it is causing some security threat to our model. What i want is users should not be able to change the fax field under communications when they get into su3.I have heard of user Exist functionality but don't know how to implement it. Can you suggest something, it will be greatly appreciated.

1471


function modules are also external subroutines. State true or false. : abap modularization

609


What are datasets in abap?

690


What are the difference between tables and structures?

626


what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.

2107


How can we set the tablespaces and extent sizes ?

575


A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization

572