on 03-23-2007 1:59 PM
Hi Friends,
Iam new to SAP XI and have some questions.Answers to this query will be my pleasure.
my scenario:
sender :idoc1 (delivery)
receiver: idoc2 if customer present
else idoc3 to create "customer" and then idoc2 to create "sales order"
Message mappings:
1 for idoc1 to idoc2
1 for idoc1 to idoc3
and 2 interface mappings for the above message mappings.
Please explain me how can i use one mapping if condition is false and then mapping2
and how to use second mapping if condition is true.
Also given below is mapping for a field .Please check and explain:
source field:E1ADRM1-PARTNER_ID
Mapping/Transformation rule:E1ADRM1-PARTNER_Q = 'WE' Select KUNNR from KNB1where ALTKN = E1ADRM1-PARTNER_ID and BUKRS = 'GR11' Value = KNB1-KUNNR and check that KNA1-STCD2 = 999839383 with KNA1-KUNNR=KNB1-KUNNR if no entry found in KNB1customer must be created
Target field: PARTN_NUMB
Please explain.I got an answer previously that i have to use RFC look up, if so please explain where and how to write the RFC look up.
Thanks in advance,
Harish.
Hi Kinthali,
I think I am not getting your question correctly...
You need to map from Idoc1 to idoc2 or if idoc 2 is not the idoc1 to idoc3... right??
<i>>>Please explain me how can i use one mapping if condition is false and then mapping2 and how to use second mapping if condition is true.</i>
Which condition are you talking about here?? Check the condition in the interface determination and then choose the needed interface...
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Using One mapping you can acieve this , say forexample , take the source one Idoc1 message and target 2 msgs , IDoc2, Idoc3.
So while in mapping use RFC lookup and get the value of the customer , if the value exists then Suppress one message which for customer and later create the Idoc . if the customer is not existed the create the customer Idoc a one message and later the second msg.
Ihope it is clear
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Use RFC Lookup , to get the customer info,
See the below links to get an idea about RFC Lookup
RFC mapping lookup - /people/michal.krawczyk2/blog/2005/09/15/xi-rfc-mapping-lookups-from-bc-to-xi
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.