Application Development and Automation 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: 
Read only

idoc ?

Former Member
0 Likes
555

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

3 REPLIES 3
Read only

Former Member
0 Likes
509

you can use IDOC_DATA-sdata in tables paramters of the IDOC_INPUT_ORDERS.

Read only

0 Likes
509

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?

Read only

Former Member
0 Likes
509

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