cancel
Showing results for 
Search instead for 
Did you mean: 

ECC to PI: Batch Data

Former Member
0 Kudos

Hi,

Scenario:

End-users do payment processing at different times of the day(IDOCs are created in the background). All these IDOcs have to be collected through out the day. A Batch job in ECC runs at the end of the day (lets say 8.00pm) to trigger these IDOCs. These multiple IDocs have to be merged into a single EDI doucment and sent to the BANK. (Each IDOC becomes a ST segment in EDI document)

Question:

How should ECC send IDOC batchs to PI?

Options:

1) Using TRFC port: A batch job runs in ECC at the end of the day(8.00pm) and sends the documents to PI. Though ECC sends them as a batch, muliple IDOCs are received in PI. (not just one packaged IDOC, but individual IDOCs in sequence). Time based Collect BPM pattern is used to collect them and start processing.

Disadvantages:

- BPM is resource intensive.

- Additional send step to write IDOC-XML for archivig purposes.

2) Using XML port: ECC writes the batch file (appends multiple IDocs into a single/ multiple documents depending on batch limt). PI picks up these files and processes it (without BPM).

Disadvantages:

- Traditional approach

Best option/approach: ??

Can you provide your inputs how how such interface should be designed?

Thanks,

Satyen...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

you can do this without BPM...Check for IDOC packaging...Check tcodes IDXP and IDXPW...also look for event driven message processing..

Regards,

ravi

bhavesh_kantilal
Active Contributor
0 Kudos

Approach 2 is the better option for the simple reason that you are avoiding a BPM with a collect pattern.

Option 2 though requires that the folder in your R3 is mounted to a folder on your XI or a FTP server running on your R3.

Stefan Grube has described this in this blog of his,

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

Regards

Bhavesh

Former Member
0 Kudos

Thanks Bhavesh,

Bhavesh, I have read blog and it is really useful. I have few more quesries regarding 1st approach:-

1. When ECC uses tRFC prot and sends Idoc out on Packets using RSEOUT00 program, Where do collected Idoc go? Do they go and reside as Unix File in Specific Directory from where PI processor picks it? Can that processor be scheduled for specific time rather than picking files moment they are created?

2. if RSEOUT00 is schduled then can we add another Step in same Job ad Run Shel Script which can send alert to PI processor to start picking up files from specific directoy where all Idocs are written?

Could you please asnwer aforementioend queries? Once again, really apperciate your help.

Thanks,

Satyen....

Former Member
0 Kudos

Ameria,

<i>

1. When ECC uses tRFC prot and sends Idoc out on Packets using RSEOUT00 program, Where do collected Idoc go? Do they go and reside as Unix File in Specific Directory from where PI processor picks it? Can that processor be scheduled for specific time rather than picking files moment they are created?</i>

When you create the port it asks the location. So you can pick from this location.

Lets suppose you have schedule your RSEOUT00 program for every 6hours. Then you pick all this with file adapter for every 7hours (1hour you are giving for processing and for any other failures etc). Just configure your communicaiton channel accordingly.

Else one more option is you can configure your communication channel as mentioned in this weblog:

/people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-

Also you dont need to run shell script to trigger the communication channel. If you plan correctly to your needs then it should not be a problem with the standards given by XI.

---Satish

bhavesh_kantilal
Active Contributor
0 Kudos

> Thanks Bhavesh,

>

> Bhavesh, I have read blog and it is really useful. I

> have few more quesries regarding 1st approach:-

>

> 1. When ECC uses tRFC prot and sends Idoc out on

> Packets using RSEOUT00 program, Where do collected

> Idoc go?

You use a XML Port when you are dealing with the RSEOUT00 program and not a TRFC port.

Do they go and reside as Unix File in

> Specific Directory from where PI processor picks it?

Exactly. You would need to mount one directory of PI to the directory of R3.

> Can that processor be scheduled for specific time

> rather than picking files moment they are created?

Yes. If you are Sp 10 or above on PI, you can use Adapter Scheduling.

>

> 2. if RSEOUT00 is schduled then can we add another

> Step in same Job ad Run Shel Script which can send

> alert to PI processor to start picking up files from

> specific directoy where all Idocs are written?

>

Multiple ways to do this, best approach is to use Adapter Scheduling.

Regards

Bhavesh