Application Development 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: 

IDOC Inbound Generation from File

Former Member
0 Kudos

Hi All,

I'm done with all the testing and config of partner profiles and ports.

How do I automate the whole IDOC inbound process?

Thanks.

Kenny

Message was edited by: Kenny Martinez

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi Kenny,

You can use this standard program <b>RSEINB00</b> to read idoc file. To run automatically, you can schedule a job to run the program periodically.

Hope this will help.

Regards,

Ferry Lianto

8 REPLIES 8

Lakshmant1
Active Contributor

naimesh_patel
Active Contributor
0 Kudos

ferry_lianto
Active Contributor
0 Kudos

Hi Kenny,

There are two ways to automate IDoc Inbound processing. It depend on your business requirement. You could process immediately or background.

This process is controlled in your partner profile setup (WE20)-> Inbound parameters -> inbound options -> Processing by Function Module -> Trigger by background program or Trigger immediately.

If you want to trigger by background program, please maintain variant in program<b> RBDAPP01</b> and schedule a job to execute. Please select appropriate values for your variant based on your condition.

If you set trigger immediately, SAP will take care the process. You only need to monitor for any error occured via WE02.

I would recommend to process via background job for large batch of IDocs.

Hope this will help.

Regards,

Ferry Lianto

0 Kudos

Hi,

Thanks for the reply ferry. But how do I automate the file reading for inbound? RBDAPP01 is for processing the idocs with status 64 and 66, how about reading directly from a file for idoc generation of status 64? How do I use this?

Thanks again.

Kenny

ferry_lianto
Active Contributor
0 Kudos

Hi Kenny,

You can use this standard program <b>RSEINB00</b> to read idoc file. To run automatically, you can schedule a job to run the program periodically.

Hope this will help.

Regards,

Ferry Lianto

0 Kudos

Hi Ferry,

I want to generate an inbound IDOC from a text file, how do i go about this? I can't use master_idoc_distribute since its for outbound idocs. What other function module can i use to generate inbound idocs? Please provide codes if you have.

thanks,

kenny

0 Kudos

Hi,

To generate inbound idoc from the file there is no standard automising way . You need to write the Z program to read the file and spilt it and call the FM IDOC_INBOUND_ASYNCHRONOUS. It will create the idocs.and as the configuaration is made it will processed by the RBDAPP01 program and creates the perticular application object.

rajkumar abbu

Former Member
0 Kudos

Hi Kenny

I have also faced a similar issue in the past: To automate the process of file reading and triggering the inbound process whenever partner system (legacy system) copies a text file (containing data to be posted) to the SAP application server.

To automate file reading for inbound process, you have to use SAP events. You can define these events using transaction SM62.

This event will be used to execute the IDOC create program in a job based on this event.

Every time the partner system copies the extract file to the SAP application server, this event will be triggered which then runs the job for processing the data file.

For more information on using SAP events, click the following link and look into topics under heading ‘Using events to trigger job starts’:

http://help.sap.com/saphelp_erp2005/helpdata/en/fa/096e44543b11d1898e0000e8322d00/frameset.htm

the topic, ‘Triggering events from external programs’ is quite interesting.

Cheers

Ashish Jain

ashish.jain@agilesolutions.com