‎2007 Apr 26 7:08 PM
hi friends,
i have my txt file in my presentation server ,i want to create idoc using this file.
i have used
IDOC_INPUT_ORDERS
but the input values are not related to my file in my presentation server.
also i have used
IDOC_INBOUND_FROM_FILE but its not accepting the file ,results in error.
please help me to solve the issue.
thanks
ganesh
‎2007 Apr 26 7:17 PM
you can use IDOC_DATA-sdata in tables paramters of the IDOC_INPUT_ORDERS.
‎2007 Apr 26 7:23 PM
thanks,
so you mean to say that the value in my internal table(IT_INFO) can be passed directly to IDOC_DATA-SDATA = IT_INFO.
am i right?
‎2007 Apr 26 7:20 PM
Hi,
You need to write a custom program to do the following:
- Read the input file and store in intenal table
- Populate the IDoc Control Record (EDIDC)
- Populate the IDoc Data Record (EDIDD)
- Once both IDoc records populated, then use FM IDOC_INBOUND_WRITE_TO_DB to create an IDoc.
For detail data mapping for IDoc ORDERS, please check this links.
http://www.erpgenie.com/sapgenie/docs/sapedi/ordersin.xls
http://www.erpgenie.com/sapgenie/docs/sapedi/ordedi.xls
Also you need to setup the distribution model (BD64) and partner profile (WE20).
Hope this will help to start with.
Regards,
Ferry Lianto