cancel
Showing results for 
Search instead for 
Did you mean: 

Same interface but different files names (BPM multilpe IDOCs to 1 file)

former_member440449
Participant
0 Kudos

Hi Gurus,

I have a multiple IDOCs to one file interface, and for collecting IDOCs I'm using BPM with correlation.

For filename, I need it to be called as "file1.txt" if there is text "1" in an idoc field, or "file2.txt" if there is text "2" in same field.

I created a variable in mapping with condition for filename but it is not working, it is always creating the same filename.

Is there other way to have 2 different filenames with a BPM with correlation in the same interface?

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Use Dynamic configuration to read file name.

We have already seen similar requirement for reading 2 diff file names recently and issue resolved.

Here is the [Link|]

Collecting IDOCs can be done without BPM. Refer Shabarish blog.

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Chapa_akd,

Yes it is possible.

To achive dynamic file name you can use one of the two options

1. Dyanic configuration, need to use UDF in Message Mapping [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm]

2. Variable substitution, if target XML structure has element which can be used to define target file name [Link2|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6a316af5a23672e10000000a114a6b/frameset.htm ]

I am curious to know, why are you using BPM collect pattern to collect IDOC's? Is it possible to use IDoc Packaging [Link3|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17573] [original link is broken] [original link is broken] [original link is broken]; [Link4|http://help.sap.com/saphelp_nwpi711/helpdata/en/ab/bdb13b00ae793be10000000a11402f/frameset.htm]

Regards,

Raghu_Vamsee