Application Development 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: 

How shall I get the success message when I do BDC for Trans.9KE0?

Former Member
0 Kudos

Hello, everybody!

When I do BDC for Tcode 9KE0, which does PCA documents re-posting, I use statement as below:

CALL TRANSACTION '9KE0' USING bdcdata MODE p_mode

MESSAGES INTO itmsg.

What I want to do is to get all messages in the ITAB "itmsg". But it's strange that I can't get the message to specify the document number when the document has already been successfully created. But I get the success message if I post it 9KE0 in forground instead of BDC.

Is there any bug in my bdc program or in the standard function of 9KE0?

Thanks

regards,

Jialu Shen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Jialu

I faced the same problem.

Please use

CALL TRANSACTION '9KE0' USING BDCDATA

OPTIONS FROM W_OPTIONS

MESSAGES INTO MESSTAB.

W_OPTIONS-RACOMMIT = 'X

Best Regards

Naresh

4 REPLIES 4

Former Member
0 Kudos

Jialu,

Typically with BDC Messages, document numbers are stored in one of the message variables. MSGV1, MSGV2, MSGV3, MSGV4. I know that this is the case with VA01. Check those fields and see if that helps.

Chris Hanshew

Former Member
0 Kudos

MAY BE YOU CAN USE THIS STRUCTURE:

DATA: BEGIN OF it_msgtab OCCURS 0.

INCLUDE STRUCTURE bdcmsgcoll.

DATA: END OF it_msgtab.

and do call transaction using,

CALL TRANSACTION 'Z6BD1' USING IT_BDC MODE 'N' MESSAGES INTO it_msgtab.

Hope it will be helpful to you.

Regards,

Sangeeta.

Plz don't forget to award points.

Former Member
0 Kudos

Hi Jialu

I faced the same problem.

Please use

CALL TRANSACTION '9KE0' USING BDCDATA

OPTIONS FROM W_OPTIONS

MESSAGES INTO MESSTAB.

W_OPTIONS-RACOMMIT = 'X

Best Regards

Naresh

Former Member
0 Kudos

Hello, Chris, Sangeeta and Naresh!

Thank you very much for your reply and advices!

It is my first time to ask for help in SDN and it's really helpful!

Thanks again!

kind regards,

Jialu