on 02-15-2016 3:57 AM
Hi All,
We are requesting external pricing for Prospect in C4C Sales Quote. Since Prospect won't replicated to ERP, thus order to achieve this, we added some custom mapping in PI Message Mapping: COD_ERP_ExternalSalesDocumentDataQuerySync_req.
Workaround:
1. Add extension field, say "IsProspcet" into SalesQuote and related service;
2. Add custom mapping for BuyID, BuyParty->RecipientID, Item->ShipToParty->RecipientID; and assign fixed value (real Customer in ERP) into it once flag "IsProspect" equals "true".
However, after applied this in PI, and we found this doesn't work:
Scenario1: for real customer(IsProspect == false)
Result: error:
However, there is no issue before applying the enhancements. And i am confused since that it should go with "Else" as defined in PI MM which is standard mapping, why it raised mapping exception?
Scenario2: for Prospect (IsProspect == true)
Result: No customer master record existes for customer 100001.
However, the customer 100001 exist in ERP and can be requested successfully before applying the custom mapping.
Does anyone knows why and how to solve it?
Thanks & Regards,
Qiang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regarding the first issue: I guess your flag is not always in the payload. Subsequently you'll get an issue with the context handling because your flag determines the context changes. You have to check the queue for this field. If there are some suppress statements, this might be the root cause. You can try with mapWithDefault.
Regards,
Sascha
Update:
it works for Prospect after added leadingzero for dummy customer. here it is 0000100001.
However, for the real customer, it still not work. system mentioned the exception mapping.
but i am confused why it mentioned this as for the real cusotmer, the mapping is going for standard one.
It seems to that the "If-Else" funtion has problem in the PI?
Does anybody knows this why.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.