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
any 1 having notes on SAP-ABAP certification, or even if any 1 could provide the url for getting notes on SAP-ABAP certification, would be appreciated.
What is the difference between commit-work and rollback-work tasks?
Explain what is the difference between primary key and unique key?
what is the exact code that shoud be implimented in sap note
What is a match code? : abap data dictionary
What are the two ways of producing a list within a transaction?
What are the different methods of passing data?
Name the abap/4 modularization techniques? : abap modularization
What are the user interfaces of interactive lists?
How many structures can be created in a Ztable ?
What is the use of 'for all entries'?
What are two methods of modifying sap standard tables?
What are the different types of parameters?
What are the different attributes that can be assigned to a variant?
How to transfer the objects? Have to transferred any objects?