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
What are the different types of views and their definition?
To how many tables can an append structure be assigned. : abap data dictionary
What is the use of the statement leave to list-processing?
What is the use of at new statement ?
Why is pretty printer user in abap?
Use SET PF_STATUS which is in the FM reuse_alv_grid_display to set the button
can anybody give me functional specification (or table name & field names) of stock analysis report, work in progress report,generating vendor detailed list
What is the diffreence between bdc_close_group and bdc_close_dataset? : abap bdc
can anyone please tell me, in orient paper mill project which fields exits for creating report.
What are the different types of the sap abap data dictionary objects?
There is a situation where there is a field "MATERIAL DESCRIPTION" in say 20 display only transaction. You want that whenever user opens any of these transaction, this particular field is masked with ****. But table does not holds ****. It holds the actual value. What are different ways of doing it? Which is the best way.
How to call other programs?
Structures can contain data only during the runtime of a program (t/f) : abap data dictionary
i want to add 2 records to a table but the last field in the table is 1000 char long.Is it possible?if yes how?
Can multiple abap systems connect to abap database?