on 12-07-2011 6:18 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.