on 02-01-2012 1:41 PM
Dear community,
we should send IDOCs to flat files and read plain files and map them to IDOCs.
Is there any comfortable way to do this without doing a huge content conversion for
IDOCs? Exist a SAP standard for such process?
We receive the IDOC as normal IDOC. Would it be more easy to save the IDOCs
directly as flat file on ERP file system??
System PI 7.11
IDOCS: WHSCON, WHSORD and WMMBXY
Regards
Chris
Edited by: Christian Riekenberg on Feb 1, 2012 2:41 PM
Hi,
there is even a blog from Bill about this:
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13743
+ remember that only from 7.31 you can create multiple IDOCs in one flat file (and the other way round)
till 7.31 you can only work on single IDOC basis
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey folks!
We have a PI 7.31 SPS5 Java-only installation here and are using the module IDOCFlatToXmlConvertor. For single IDocs with one line for the EDC_DC40 header and the others for the IDoc payload the conversion works. But when we want to process multiple IDocs from the same type within one file, we see this error in the log:
Module Exception 'com.sap.aii.af.idoc.exception.IDOCModuleException: No data segments for DOCNUM = ' found, cause: <null>
Are there any requirements how the multiple IDocs have to be structured within the file?
Best regards
Heinrich
Update:
I found out that the module wants each record to contain the corresponding DOCNUM to find the matching records. The non-SAP sender system normally does not set this value. Is there a way to "convince" the module to convert the IDocs nevertheless?
Hi,
If the target format is the flat idoc format then the best scenario is to save the idoc from the ECC system as flat and then transfer the file as a normal file-to-file pattern.
In this case the return flow flat idoc inbound to the ECC would be a bit more complex, but if you don't need any changes in the idoc then you can also do file to file and then use startrfc (if that's still available) [http://www.easymarketplace.de/startrfc.php]
If however the target format is a different file you then need the xml idoc with mapping and file content conversion and vice-versa.
Regards,
Horia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you could try using IDOCFlatToXmlConvertor http://help.sap.com/saphelp_nw73/helpdata/en/b5/bd93642dd3410f90ebea702399fac4/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.