‎2011 Feb 03 4:07 PM
Hi Sir,
Am writing one bdc program that is using oops abap.
In global class 3 method.
One is for recording and updating.
bdc recording process here messages table bdcmsgcol is created as work area it is not allowing to create internal table.
am unablt to capture the message using format message ( it showing error that ubale to create internal table in OO).
what happen to that perticular record either it is successfull or it is error.
how to capture that and how to create table in method.
please sir help me to understand this.
thanks and regards
Zarah
‎2011 Feb 03 4:12 PM
You should be more clear .
Without knowing what you have written, its not possible.
‎2011 Feb 03 4:41 PM
HI,
i once made a class that run a bdc transaction.
I defined an attribute T_MESSAGES type TAB_BDCMSGCOLL and then used the following to run bdc
call transaction i_transaction
using me->t_bdcdata
mode i_mode
update i_update
messages into me->t_messages.
regards
Andrea
‎2011 Feb 04 9:47 AM
Hi,
while doing transaction,
If an error occurs in updation , we declare bdcmsgcoll and store our messages in it, but how to retrieve error messages from it
Using function module 'FORMAT_MESSAGE' you can capture the messages.
Here is a sample of the program code in these link.
http://sap.niraj.tripod.com/id50.html
You would understand easily and explained each step and it will gives a clear picture to you.
Edited by: sekharch on Feb 4, 2011 10:47 AM