cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic receiver determination

Former Member
0 Kudos

Dear All,

I have a requirement where payload containing customer data is coming from SAP.

One payload may contain more then one customer data.

one customer data contains status flag

<MT_Customer>

        <customer Data>

               <customer name>123<customer name>

                <Flag> CE</Flag>

        <customer Data>

               <customer name>789<customer name>

               <Flag> CE</Flag>

       </customer Data>

       <customer Data>

              <customer name>234<customer name>

               <Flag> CS</Flag>

       </customer Data>

      <customer Data>

               <customer name>345<customer name>

               <Flag> VE</Flag>

       </customer Data>

     <customer Data>

               <customer name>456<customer name>

               <Flag> VS</Flag>

       </customer Data>

</MT_Customer>

my requirement is :

Since here i have 4 status : CE,CS,VE,VS

based on flag value receiver should be assigned to separate business service and 4 file should get generated on FTP

Output file 1:  it should be assigned to BUSSYS1

<MT_Customer>

        <customer Data>

               <customer name>123<customer name>

               <Flag> CE</Flag>

        <customer Data>

               <customer name>789<customer name>

               <Flag> CE</Flag>

       </customer Data>

</MT_Customer>

output file 2: it should be assigned to BUSSYS2

<MT_Customer>

       

       <customer Data>

              <customer name>234<customer name>

               <Flag> CS</Flag>

       </customer Data>

     

</MT_Customer>

output file 3: it should be assigned to BUSSYS3

<MT_Customer>

       

      <customer Data>

               <customer name>345<customer name>

               <Flag> VE</Flag>

       </customer Data>

  </MT_Customer>

output file 4: it should be assigned to BUSSYS3

<MT_Customer>

             <customer Data>

               <customer name>456<customer name>

               <Flag> VS</Flag>

       </customer Data>

</MT_Customer>

Also if more then one line item contains similar flag value those should be clubbed into one file : as see case 1 output file 1. that contains 2 line item with flag value CE

Experts please suggest me : how to go about this requirement???

Sandeep Sharma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Guys

Thanks for the input , let me work on this in my development box then i will revert.

Means while just to update you guys, i think below link is the solution of my problem :

http://wiki.sdn.sap.com/wiki/display/SI/Step+by+Step+guide+to+Explain++Enhanced+Receiver+Determinati...

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sandeep,

I agree with Amit.

Use enhanced receiver determination concept. Add a message mapping in it which will identify the receivers.

Create four interface determinations and create a mapping for each of the receiver.

Below link will help you.

http://saptechnical.com/Tutorials/XI/RecvDetermination/Enhancement.htm

Regards,

Veerendra

Former Member
0 Kudos

Hi,

U have to handle this type of logic at mapping level.

Using extended receiver determination define conditions for identifying BS and then this grouping of common customer data u need to handle at mapping level.So u can have 1 RD, 4 ID, 4 RA

Thanks

Amit Srivastava