Question:
I have an IDOC file which is generated from the SAP system of our vendor. And they ftp that file to us. The idoc type is ORDERS02.
We were trying to load that file in business connector and process it. How can I get information from that file and make it as an idoc record to do the further process?
I am using SAP BC 4.7. I create a flow map includes the following steps:
1. invoke "getFile" and load the file (an ORDERS02 iDoc file) to byte[].
2. invoke "byteToString" and convert the byte[] to a string.
3. try to decode the String using "decodeString", cause I want a *iDocList from the output. But this failed.
4. Using "iDocToRecord" to transfer *iDocList to boundNode record
5. Map the boundNode record to ORDERS02 record.
6. further processing
How can I fix the issue in step 3? The decodeString need a server to get information. I don't think that is the one I should use. But any other replacement? Is there any other solution?
Many thanks!
Answer:
Use the document to record service to create the IDOC record in the BC.
getfile
documentToRecord
Jon