cancel
Showing results for 
Search instead for 
Did you mean: 

How to collect payload in pass through scenario.

Former Member
0 Kudos

Hi,

I have a pass through scenario where Sending side is IDOC whose payload I as am writing in a XML file using file receiver adapter.

Now I want to collect payload for full day and create one single file for the day.

Is this possible in pass through scenario.

Regards,

Sachi

Accepted Solutions (0)

Answers (2)

Answers (2)

abhay_rajhans2
Contributor
0 Kudos

Hi Sachi,

Please go through below links. It has given multiple options you can check which one is best suitable for you. In second link you can schedule daily job to collect IDoc generated in that particular day. So single message will be shown in PI and can be converted into file.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bd...

Thanks

Abhay

Former Member
0 Kudos

Hi,

Please try write the receiver file in Append mode.

Thanks,

Sudhansu

Former Member
0 Kudos

Thanks Sudhanshu.

But my requirement is to write one file on daily basis for that day.

Append will keep appending in the same file.

SO how do I achieve this, One file for the day?

Regards,

Sachi

former_member191435
Contributor
0 Kudos

Hi,

Use option 2 for the below link

More with the File Adapter - Process Integration - SCN Wiki

As per suggestion, you can do one thing..

1. Collect all the IDOCs in ECC at a time using back ground job and sent to PI.

Option2:

Create a file using the date field of IDOC and work out the mapping to create a message based on Date.. if date is differ then create a new file in the folder. Meanwhile store the files in separate folder with append mode.  again create on more interface i.e. file to file to collect all the files in the temp folder and send in the single file to the target folder....  Here you can maintain ATP as a daily basis for sender communication channel.

Thanks,

Sreenivas

azharshaikh
Active Contributor
0 Kudos

Hi Dubey,

My few cents..

You need to create ESR objects with 1:1 mapping / pass through for (Source to target) and pass the File name dynamically from MM. You can use the Standard Date Functions in Graphical mapping to get date in required format and pass it to Receiver using Dynamic Config (UDF) as shown in following blog:

Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integr...

Use the option: Adapter-Specific Message Attributes and Dynamic Configuration

In the Receiver File CC, check the options for ASMA and file mode = Append.

Regards,

Azhar

Former Member
0 Kudos

One of option could be writing a script at the OS level to move the file to desired directory which gets triggered at specific point of day(in unix scheduling a cron job). But here you won't have control from PI.

Cron - Wikipedia, the free encyclopedia

You could have a look at other options like Availibility Time Planning if you can create a new dummy interface which picks up the file at end of the day and move to a specific folder.

Thanks,

Sudhansu