on ‎2012 Jan 21 4:53 AM
Hi,
Scenario:
Step1 : sender sends a finance doc iin the form of an idoc. This idoc will have multiple line items based on profit center. Do determine the value of receiving comp code(header field) n receiving system(logical sys name) value mapping table has to be used.
Solution so far: I can put an rfc lookup for fetching receiving comp code from mapping table with i/p paraameter as profit center . And split the incoming idoc based on comp code value by using split by value. Now I need your advise 2 take this further.
Issue 1 : say the incoming idoc has 4 line seg wid 4 diff profit center
Profit center. Rec comp code. Recv sys
P1. C1. R1
P2. C2. R1
PS. C2. R1
P3. C3. R2
Nw using this info, I want 3 diff idocs to be created for each unique comp code.
Idoc 1 : for C1 wid one line item + 1 for reconsilation ( to be generated additionally)
Idoc2 : for C2 wid 2 line items + 1 for reconsilation
Idoc 3: for C3 wid 1 line item + 1 for reconsilation
Idoc 1 and idoc 2 shud be sent to R1.
Idoc 3 shud be sent to R2.
Kindly advise on this
Request clarification before answering.
Please advise on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First. I would recommend that you create an extended receiver determination. In the mapping for the ext. rec. det. you will create based on the company code all the receivers needed for your idoc.
Second. In the interface determination the receiver is already known, so what you need to make sure is that the mapping is only selecting the company codes for the receiver already found.
I am not sure if I completely understood what your actual doubt is. I guess the value mapping or RFC lookup thing is already working for you.
You mentioned "Nw using this info, I want 3 diff idocs to be created for each unique comp code." You can achieve this by using split byvalue with Value Change option. Have you already done that?
As per last 2 statements, you have to send Idocs to R1 and R2. As you are retrieving these values in mapping, you have to use enhanced receiver determination. This option uses a mapping to identify the receiver it should use.
Did any of this help? Am I even close to your real doubt?
Regards,
Prateek Raj Srivastava
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.