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

Incoming IDOCS - Processing program

Former Member
0 Likes
991

We are not using any third party tool like webmethods.

An IDOC text file is created and placed in the directory specified in the file port. Its a standard IDOC of type ORDERS. Now what should I do so that the SAP will pick this file and process it ? Do I need to schedule any program/FM?

Thanks a lot.

8 REPLIES 8
Read only

Former Member
0 Likes
818

What is the format of the file ?

If you are not using middle ware, you need to write a program and read the file and create Orders using Call Transaction to VA01

Read only

0 Likes
818

"For testing you can use transaction WE16.

For productive use you might trigger the processing via external application. You can use FM 'EDI_DATA_INCOMING'.

For details check:

http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b7f8a43d711d1893e0000e8323c4f/frameset.htm

We wrote an ABAP program, which scheduled regularly. It reads the content of the transfer directory vith FM 'EPS_GET_DIRECTORY_LISTING' and process it via FM 'EDI_DATA_INCOMING'."

courtesy : peter

Read only

0 Likes
818

Hi mano I have to do the same now, have the same program. can u send me the program to suresh5684@gmail.com. It will be a great help for me. I have one more question. My idoc file stores in location /comp/core/filename.txt . Now can u tell me the path that i have to give in edi_data_incoming. I tried giving the same path name but getting error " ERROR IN OPENING FILE '/comp/core/filename.txt'.

Read only

Former Member
0 Likes
818

Program RSEINB00 can pull in the IDoc files, provided that they are formatted with the control and data records correctly, and process them into the system.

Best Regards,

John

Read only

0 Likes
818

Thanks everyone. John's solution is what I am looking for.

But, this program RSEINB00 is asking for a specific file name and port. Is there a program that processes all files in the directory ?

Thanks,

Venkat

Read only

0 Likes
818

Hi Venkat;

I do not believe that there is. You probably need to write a small program to get the files from the directory and submit RSEINB00.

Best Regards,

John

Read only

0 Likes
818

Hi John,

Thanks again. I will work on the program as you suggested.

Right now, I am trying to process an incoming IDOC file using 'RSEINB00' but I am getting the error.

First record is not an IDoc control record (please check file).

So obviosuly, there is something wrong with the IDOC file. Can anyone send me some sample INCOMING ORDERS IDOC text files to jerseyblues@gmail.com. The client here is generating their own IDOCS and any sample would help a great deal.

Thanks,

Venkat

Read only

Former Member
0 Likes
818

Mano,

Can you please send me your program ? I will see if I can use it for our purposes. You can email it to jerseyblues@gmail.com. Appreciate your help.

Thanks.