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 |
What is the function of the transport system and workbench organiser?
You are given functional specs for a BDC program and you need to decide whether to write a method call transaction or a session. How u will decide?
what is the difference between user-exit & BADIs?
what is table maintenace generator? How to create it?
What will happen if i dont use initialization and start of selction event in report?
ALV's?
What is a sequence of event-triggered in report?
What is meant by performance analysis? Have done anything to improve the performance?
Can we change the IDoc number ? if yes..How ?
what is troubleshooting and wher u can use this TS?
CAN ANY ONE TELL ME What is the use of fallowing structures 1)BDCDATA 2)BDCMSGCOLL
How do I find the output type of a table or a program?