cancel
Showing results for 
Search instead for 
Did you mean: 

Single IDOC to multiple files

Former Member
0 Kudos

Hi All,

Im working on a IDOC to multiple files scenario.

There is a single IDOC WP_PLU03 that is triggered as a batch job every night . So there is 1 outbound interface (IDOC)

There are 2 types of stores (Premium stores and Regular). So if the Store number in IDOC (SNDPRN) is 101 or 102 then the Premium Store inbound interface(MI_PREMIUM_IB) should be called and filename should be prem.00611 or premium.00612 . And if any other Store number it should call regular store inbound interface(MI_REGULAR_IB) and file name should be regpluXXXXX.txt where XXXXX is store number . So there are 2 inbound interfaces .

Apart from this i have 2 questions -

1. In extended interface determination, I do not have the condition editor . How do I configure that for SNDPRN = 101 or 102 it should call (MI_PREMIUM_IB) and for others it should call (MI_REGULAR_IB)

2. Will I have 2 receiver communication channels, since I have 2 inbound interfaces?

Jo

Edited by: johannd on May 12, 2010 11:13 AM

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member181962
Active Contributor
0 Kudos

Hi Johann,

There are some questions that you should clarify to us before we can answer.

1) How many store numbers can occur in ONE idoc?

2) Can you tell us if there is a possibility of having multiple output files , simultaneously?

I assume that you will have either a Premium store or a regular store but not both at a time.

In such case, you just need a condition in the condition editor of the receiver determination.

And yes, you need two communication channels, if you are transferring the file to two file systems/ locations.

And to get the file names in the specified format, you should use Variable substitution concept.

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Hi guys,

Thanks for the direction .

I didnt mention in my original message that I have a single receiver (a folder on my receiver system) where the files need to go.

1) How many store numbers can occur in ONE idoc? -


There could be several , between 2 and 35

2) Can you tell us if there is a possibility of having multiple output files , simultaneously? -


Yes, I will need multiple output files, simultaneously.

I assume that you will have either a Premium store or a regular store but not both at a time. -


This is correct .

stefan_grube
Active Contributor
0 Kudos

In this case, go for multimapping. This is the only way to create a dynamic number for target messages.

multimapping does not allow you to use ASMA, so I see not many chances to set flie names dynamically besides adapter modules.

former_member200962
Active Contributor
0 Kudos

IN this case create different mappings and include them separately inInterface Determination......give condition for each entry with corresponding mapping included.

stefan_grube
Active Contributor
0 Kudos

Maybe I have not understood the request fully

former_member200962
Active Contributor
0 Kudos

Not sure about you, but I am 100% confused

May be instead of using modules he can opt for Variable substitution, when multi-mapping is to be used.....having Interface Determination in Standard Mode and then including two different Mapping Programs one for each of the receiver structure can help.....will it work?

Thanks,

Abhishek.

stefan_grube
Active Contributor
0 Kudos

> May be instead of using modules he can opt for Variable substitution, when multi-mapping is to be used.

Yes, when the filename is part of the target structure, then this is the better solution.

> having Interface Determination in Standard Mode and then including two different Mapping Programs one for each of the receiver structure can help.....will it work?

Hm, here he can have one two files as result, but the last answer was:

"Yes, I will need multiple output files, simultaneously."

whatever that means

stefan_grube
Active Contributor
0 Kudos

> 1. In extended interface determination, I do not have the condition editor . How do I configure that for SNDPRN = 101 or 102 it should call (MI_PREMIUM_IB) and for others it should call (MI_REGULAR_IB)

Do not use "extended" in this scenario. Do standard interface determination and add both target interfaces here.

> 2. Will I have 2 receiver communication channels, since I have 2 inbound interfaces?

No, this is not necessary.

former_member185881
Active Participant
0 Kudos

Hi

You can give your condition in Receiver Determination.

Under configured receivers you give both of your receivers and then specify a condition at the left side using XPATH.

You can specify condition on a specific field using XPATH.

yes you should have two receivers communication channels.

Regards

Dheeraj Kumar

former_member200962
Active Contributor
0 Kudos

Create two different receiver services for this....in receiver Determination make use of the condition and then route it to proper receiver and then maintain a different set of Interface Determination, Receiver Agreement and Receiver Channel.

You will require different channels not because the Interfaces are different but your naming convention is different.

Regards,

Abhishek.