Skip to Content
Former Member
Nov 27, 2017 at 04:40 PM

IDoc problem , how to use IDOCS_OUTPUT_TO_FILE


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