cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical mapping required

Former Member
0 Kudos

Hi,

We have a scenario where i have a tender type that has to be sent to wpubon idoc based on some conditions.

we need a graphical mapping for that requirement.

Source Field ---TenderType , AccountType, PaymentID

IDoc Segement---E1WPB06

IDoc Field---ZAHLART = X

Condition is

if tender type = Cash then 'X' = PTCS

if tender type = "Credit Card" or "DebitCard" then check with account type if account type is :

Visa then "X" = ZVIS

Master then "X" = ZMST

If tender type is "GiftCertificate" then

"X" = ZGFC

If tender type is "Check" then

"X" = PTCH

If tender type is "TravellersCheck" then

"X" = ZTCH

If tender type is "Voucher" then

"X" = ZGV

If tender type is "Loyality" then

"X" = ZLOY

If tender type is "Custom" then

map it to the payment ID type, if payment ID is "ZTender" then "X" = ZMT

Please suggest some mapping.

Thanks

Laxmi Bhushan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

chk this udf:

input values: a, b, c

Execution type: single value

TenderType -


\

AccountType----UDF--X

PaymentID-------/



if(a.equals("Cash"))
{
return "PTCS";
}

else if (a.equals("Credit Card")|| a.equals("Debit Card"))
{
if(b.equals("Visa"))
{
return "ZVIS";
}
else if(b.equals("Master"))
{
return "ZMST";
}
else
{
return "No combination exist1";
}
}

else if(a.equals("GiftCertificate"))
{
return "ZGFC ";
}

else if(a.equals("GiftCertificate"))
{
return "ZGFC ";
}

else if(a.equals("Check"))
{
return "PTCH ";
}

else if(a.equals("TravellersCheck"))
{
return "ZTCH ";
}

else if(a.equals("Voucher"))
{
return "ZGV ";
}

else if(a.equals("Loyality"))
{
return "ZLOY ";
}

else if(a.equals("Custom"))
{
if(c.equals("ZTender"))
{
return "ZMT ";
}
else
{
return "No combination exist2";
}
}
else
{
return "No combination exist3";
}

Thanks

Amit

Answers (4)

Answers (4)

Former Member
0 Kudos

hi laxmi bhusan,

might be it is helpful for ur scenario:

tender type-> equals ->constant(creadit /debit) -> if -> then -> acctype -> fixvalues-> target-

else -> tender type -> equals-> constant(custom) ->if -> then-> tender type-> fixvalues-> target

thanks ,

PriyankaAnagani
Active Contributor
0 Kudos

Hi,

Define fixed values...and if the tender type is credit card or debit card or custom then pass the same to result queue in fixed values and then check if the result from fixed values is either debit/credit card or custom then check the account type based on that pass the result ...in other cases it will be just the result of fixed values only....

Ex:

Cash ---PTCS

Credit Card--Credit Card

DebitCard--DebitCard

GiftCertificate--ZGFC

like this...

Regards,

Priyanka

Former Member
0 Kudos

Hi,

The option you can try out is as listed below.

TenderType ---> Maintan FixValues ---> IF Condition (Check for only card and custom) 

---> Result

Here in fixvalues you can maintain CreditCard and DebitCard as Card.

I hope you got the logic

regards

Ramesh

Former Member
0 Kudos

Hi,

you can go with value mapping,

refer this blog you an idea,

http://help.sap.com/saphelp_nw73/helpdata/en/48/ce4bd3a0d7154ee10000000a421937/frameset.htm

regards,

ganesh.