Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Message variable value capture in background

Former Member
0 Likes
435

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' .

3 REPLIES 3
Read only

Former Member
0 Likes
399

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

Read only

Former Member
0 Likes
399

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

Read only

0 Likes
399

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.