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 |
Explain different types of attributes of function module?
is it possible to insert records into structure? if yes means how many records can be inserted?
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.
Define the various contents of technical specifications ?
How do you read files from the application server ? : abap bdc
What is the company code? : sap abap hr
What are th control break events in abap?
Which method of BDC’s would u apply ? Session or call transaction ? why ? Which is more good ? Its advantages ?
In Badi wher is the standard prograam name to add the additional progaram
What is abap dictionary or data dictionary? What is the transaction to access abap dictionary? : abap data dictionary
What is the difference between rfc and bapi function modules? : abap bdc
What is the difference between free and refresh?