‎2007 Mar 30 9:18 AM
Hi all,
How can we capture the value of message variable in the background bdc .
I need to capture the value to like what comes after a PO is created in a BDC,e.g. I need the PO number when it is created .It is OK in foreground but in background it is not filling up.The message type is 'S' .
‎2007 Mar 30 9:23 AM
Hi,
You need to get the messages from T100 table, after doing the recording just press the Program, and create a program from the recording there you will find the code to get the messages from the table T100
Regards
Sudheer
‎2007 Mar 30 9:24 AM
Did you use an internal table of the BDCMSGCOLL structure in your call transaction statement?
call transaction <TCODE> using it_bdcdata options from x_ctuparams
messages into it_BDCMSGCOLL.
loop at it_bdcmsgcoll.
call function 'FORMAT_MESSAGE'
.
importing message = lv_message
.
write:/ lv_message.
endloop.
Regards,
Ravi
‎2007 Mar 30 9:34 AM
I have already done that ..but the problem is that type S message which flashes on
the screen after a process is complete is not getting generated when I run the program in background .
In foreground I am doing the same thing as suggested and it is working fine.
but in background the message is not getting generated.