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: 

IDoc problem , how to use IDOCS_OUTPUT_TO_FILE

Former Member
0 Kudos

Dear Sirs,

Until now I used a program made by me in C ++ that obtained an Idoc and converted it into XML. This program stopped working and I do not understand why, simply by calling the RFCDispatch function it throws an error and stops working. The program keeps going with the previous version of SAP, but not with the current one.

To replace this program I would like to look for a BAPI or RFC that allows me to download the Idocs. I did not find it. The closest thing is the IDOCS_OUTPUT_TO_FILE function but I can not make it work.

Does anyone have an example of how to make it go? I try putting the idoc number in I_EDIDC (EDI_DOCNUM) and a valid directory of AL11 in PORT_DESCRIPTION (OUTPUTDIR) and a name in PORT_DESCRIPTION (OUTPUTFILE), when executing it does not return any error, but it also does not generate the file.

Thank you an regards

0 REPLIES 0