cancel
Showing results for 
Search instead for 
Did you mean: 

need to check the conditions in Mapping

Former Member
0 Kudos

Hi,

I need to map the IDOC field ACTION to another field called MATERIAL.

The conditions like here

If Action code = 1111 then map value u20189999u2019

If Action code = 2222 then map value u20188888u2019

If Action code = 3333 then map value u20187777u2019

Please suggest me here.

Thanks & Regards,

Y.Raj.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If the value set is limited then go for If function...

Also can be done in FixValues function ...provide corresponding source and target values by double clicking to this function

ACTION>FixValues->MATERIAL

Answers (3)

Answers (3)

Former Member
0 Kudos

u can also write an udf with action as input

public String convert(Container container)
{
if(a.equals("1111"))
     return "9999";
elsif(a.equals("2222"))
      return "8888";
elseif(a.equals("3333"))
      return "7777";
else
      return a;
}

action->udf->material

ParvathyS_SAP
Product and Topic Expert
Product and Topic Expert
0 Kudos

http://saptechnical.com/Tutorials/XI/Graphicalmapping/conversions.htm

Go through this link...

Hope this helps

Edited by: parvathy sriraman on Sep 18, 2008 3:31 PM

Former Member
0 Kudos

Hi,

You can use Value Mapping to maintain the values in mapping

Regards

Seshagiri