How you will catch errors in call transaction?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / p.lokesh
SORRY IT IS NOT WRITE_FORMAT ....
IT IS FORMAT_MESSAGE. I WAS MISTYPED IT PLEASE IGNORE IT.
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / kruthicse
All the errors are entered into an internal table of type
BDCMSGCOLL.Then we can loop over the message table to write
out any messages that were entered into it.
Is This Answer Correct ? | 2 Yes | 2 No |
Difference between the sub-routines and function modules
How many servers present for Database servers,Presentation and Application servers in Landscape? All these servers are present at client side or company side,means where the Database server is Located, where the Application and Presentation servers Located in a Landscape?
what is the IDOC status code?
Does sap handle multiple currencies?
I have 100 records and 75th record contains error,if i use call transaction how many records will update the data base and if i use session method how many will update?
What is the reserve command?
how to convert sapscript to email.....
How to generate and processing the session in the same program?
what is the diffreence between sap memory and abap memory plz give the example
What is the role of ‘refresh’ in internal table?
What are the fields in the memory table ‘screen’?
Can we set page headers to details lists?