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

BDC

Former Member
0 Likes
1,048

Hi,

I am bit curious to know how to record a message information while recording transaction code.

I am recording VA02 tcode. I entered Sales order number then pressed to go into tcode. I got message 'Consider further documents' and pressed enter. But in the recording it was not recorded.

I know why this message has been appearing as it might have futher documents like delivery and invoice.

So when i ran my BDC program, my program stops at that message and needed manual interation to go further. How can we record that message or how to we surpress that message.

Thanks in advance.

Ram

6 REPLIES 6
Read only

Former Member
0 Likes
1,025

Hi ram,

You don't need to worry about that message as it is a warning.

These messages will not pop up when you are in recording mode , thereby in the program.

These messages can be collected in an internal table if you use messages into option

call transaction <tcode> using it_bdcdata messages into it_messages....

it_messages should be of type bdcmsgcoll.

REgards,

Ravi

Read only

0 Likes
1,025

Hi Ravi,

I already kept the 'messages into' option for my CALL TRANSACTION. But the information message window still displayed when ran my program. What might be a problem.

Thanks for your information.

Read only

0 Likes
1,025

Hi ram,

Did you run your program in all screen mode?

Try running in No screen mode and see .

also show your code once.

Regards,

Ravi

Read only

0 Likes
1,025

Hi Ram,

Information Message is not at all a problem.

I think UR running the program in Foreground (all

screen mode). Run the program in no screen mode.

Regards,

GSR.

Read only

Former Member
0 Likes
1,025

Hi,

First capture your messages into

i_message of the type bdcmsgcoll

to format the message use FM : FORMAT_MESSAGE

Regards,

GSR.

Read only

Former Member
0 Likes
1,025

Hi Ram,

Nothing to worry in this case. As this is only information message as warning and you will not encounter this message as you did after recording. Your recording will not popup this message. I thought it wont stop processing.

1) To record that message use an internal table of type BDCMSGCOLL. This will store all success/error messages generated by CALL TRANSACTION. You can even display all these messages using internal table of BDCMSGCOLL.For this your call transaction statement should be like as below.

CALL TRANSACTION tcode USING bdcdata

MODE 'N'

UPDATE 'A'

MESSAGES INTO messtab.

2)To supress certain part not to happen in recording, just comment those lines in recording in the program.

Thanks,

VinaykumarG