04-14-2006 8:23 AM
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
04-14-2006 1:04 PM
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
04-14-2006 12:40 PM
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
04-14-2006 12:56 PM
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.
04-14-2006 1:04 PM
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
04-18-2006 4:33 AM
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