cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass Environment value to receiver determination

Former Member
0 Kudos

Hi All,

Iam doing Idoc -- File

We have so many plant values upto 200, in Ztable we are storing Plant , Environment values

Plant values are coming in Idoc field,in mapping we are using mapping Lookup and if the plant value is 123 then pass UK, if plant value is 999 then pass US.

Now in Receiver det. we have to send the Idoc based on the condition, like if the plant environment = UK then send to ABC System ELSE if Plant Environment = 999 the send to XYZ system.

To mention like this is not possible, why because we r not getting the Environment value directly from Idoc. we r getting plant value like 123 or 999

In the receiver determination it is difficult to mention all these Plant values, how can we mention the environment value in receiver det.

Regards

Edited by: Vamsi Krishna on Jun 5, 2009 5:32 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vamsi,

This Scenario we have to do two ways one is that

We have to write the condition in Receiver determination level

Here Plants are more but we have to two systems either US or UK.So Based upon the plants only it passed to the particular system.

So here we have to mention of each and every plant in the condition like If Plant = 123 it pass to ABC

If Plant =999 it pass to XYZ.

So we have to maintain all the plant conditions in Receiver determination level.

Or

We have to write the ABAP Class(Abap mapping), we maintain the two codes Either US or UK.

Once data retrieve from the table Check the if code =US then plants values pass to the ABC system system.

and if code = UK then related plant values pass to the XYZ system.

Regard's

Sateesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey

But you know that

123=UK=ABC system

999=US=XYZ system etc etc

so why not use Plant=123 or Plant =999 in your receiver determination.

In receiver determination you can only use the sender side payload,receiver determination is the first step of message processing and happens before message mapping(Look Up) so you wont be able to use values which are returned back as result of Look-up.

Thanks

Aamir

Former Member
0 Kudos

Hi Aamir,

thats what, i have so many Plants like 123 & 999, so i cant include all those in Receiver determination condition

its un necessary work. is there any other work arount this or what i want to know

Regards

Former Member
0 Kudos

I know that is a tedious job but until now i haven't seen any automated way to make entries in Receiver determination.

Even i had this issue some time ago and i had to manually enter all those values:)

Sit down in the morning,have a bigggggggg cup of coffee and you should be done by evening:)

Former Member
0 Kudos

Aamir,

Will do that, thanks have a nice week end

Regards

Former Member
0 Kudos

Hi Vamsi,

Why not go for enhanced receiver determmination. maintaining these values in the mapping are much easier compared to standard one.

regards,

Anurag

Former Member
0 Kudos

Hi Anurag,

Can you please describe how to do that using Enhanced Receiver Det.....

Regards