cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting idocs for 30 minutes and concatenating the MATNR field of all

Former Member
0 Kudos

Hi Friends I have a scenario where :The requirement is that we have to collect Idocs for 30 minutes. For all the Idocs collected in this period, should generate a single output file. In the output file, field ProductID will contain concatenation of MATNR field in the idoc.

Suppose 3 idocs are collected in 30 minutes, the target file-productID should have the value - MATNR1MATNR2MATNR3.

I know BPM Collect Pattern should be used , but is there blog or reference that I can use, or anybody can guide me .

Accepted Solutions (0)

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

there is already a good example of the BPM pattern in IR/ESR available to you

SAP Basis SWCV -> namespace -> http://sap.com/xi/XI/System/Patterns

http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm

Former Member
0 Kudos

use collection of IDoc at ECC and schedule to transfer the data to PI every 30 min. At PI you will get alll the idocs in one message payload where you can concatenate all the MATNR.

Search SDN for collection of IDoc

we have three approaches collecting idocs,

1. by using tRFC port

we need create rfc destination(SM59) and port of tRFC(WE21) and ccreate partner profile(WE20), in partner profile we have to specify the packet size.

then coming to PI in ID we need to create sender communication channel for IDOC there we have to provide packet size.

2.by using XMLFILE PORT

Please refer this blog it will help you

3.by using XML HTTP PORT

please go through this blog i hope this will help you

-> IN PI we have message packaging concept.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10b54994-f569-2a10-ad8f-cf5c68a94...

Regards

Raj

Former Member
0 Kudos

Hi Raj

We are having to go for a Idoc to file scenario,all idocs collected in 30 min need to be put in a file and all the MATNR's of those collected idocs will be concatenated to create the value of the field Productid in the target file structure. Any help on this would be helpful