cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Routing in Reciever Determination: Best Practise

Former Member
0 Kudos

Hi ALL

I am doing a File to EDI scenario....

And based on the vendor name in the file... I will be routing the EDI to

various vendor destination hosts.

Here is the Scenario

A file which is coming from a single sender is being routed to

multiple hosts(vendors); I am currently using conditional routing by

specifying the Vendor name as the filter

condition in the Receiver Determination and

routing it to the corresponding vendor party.

single sender FILE (ECC) -> multiple EDI relievers.
Filter Condition for routing to vendor party: 
Vendor name / Vendor Code specified inside the file
 as one of the fields.

However, my vendor list might increase to about 50 ...In this case would

this be the best approach to do the conditional routing ... or can you please

suggest any better method.

Thank you,

Patrick.

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Patrick,

best approach is to find the receivers by a [enhanced receiver determination |https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3343] [original link is broken] [original link is broken] [original link is broken]; using a SAP ECC customizing table by [Value Mapping Replication|http://help.sap.com/saphelp_nw70/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm]

Regards,

Udo

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Are you sending the data to host via HTTP or which adapter u are using?

based on adapter using you can decide how to go?

Rajesh

udo_martens
Active Contributor
0 Kudos

Hi Rajesh

>Are you sending the data to host via HTTP or which adapter u are using?

a File to EDI scenario may be?

Regards,

Udo

Former Member
0 Kudos

Hi! ALL

Thank you for the response....

Most of the receivers are file (FTP) - 90%; some of them are AS2(HTTP protocol) - 10%.

Also, here is an overview of the scenario:

ECC would write IDOC's in batch mode 
in a .xml file (each .xml file would have 
3 or 5 Idoc's for a particular vendor).....So, PI 
file adapter will pick up this .xml file and write
in to an EDI structure; 
the header of the IDOC will have the vendor 
name and all the IDOC's under a particular .xml.
All Idoc's under a file will belong to the same vendor.

Can you please explain to me:

How we could use a value mapping for the above scenario to route the EDI to the

right receiver(vendor party) in my configuration.....As, the vendor name would be in

the header of the IDOC in the .xml file...I might be missing

something here...would like to get an understanding as

how I can link the value mapping to the IDOC of a particular vendor?

Your help is greatly appreciated!!

Regards,

Patrick

udo_martens
Active Contributor
0 Kudos

Hi Patrick,

you need a relation between receiving business system and IDoc field value (vendor). This relation could be stored in Z-table of the ECC system (best maintenance). You bring it to PI mapping runtime via "Value Mapping Replication", the ABAP proxy should be triggerd by any change and will do a full table delete and insert (you have just like 50 entries which do not change often, therefore this is most easy and no performance issue).

This relation can be used in a Message Mapping which creates you receiver dynamicly. You find all required infos in the links above. Sounds complex but can be realized within a few days.

Regards,

Udo

prateek
Active Contributor
0 Kudos

You may use Value Mapping to determine various receiver names

/people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions

Regards,

Prateek