on 06-18-2009 9:24 AM
I am new to SAP PI and seeking your help in the following scenario
legacy -> SAP PI -> branched to two idocs in ECC
The scenario is that a fixed length flat file coming from Legacy wil contain some line items but each line will be a separate invoice ..the twist . since it is a financial posting each invoice(line) has to be posted twice in the same IDOC but different logics which implies that for each line in the file there will be two IDOCS created in ECC of the same type, where one would be the AR posting and the other would be the AP posting
How can i make this happen without BPM ??
I have referred to a blog 1 : n possible in PI without BPM but here it is a combination of 1:n and also splitting of the line and posting it to two IDOCS simultaneously
since the transformation logics are different will I have to create two mappings but how and where to use them ??
Can I please have someone help me with the steps in ESR ad ID
Kindly help
Thanks
Rohan
Change the Idoc structure and make Idoc node occurrencet 1.. 9999 instead of default 1. Then import this under External Definition and use it in mapping. Map the occurrence of line items to the node Idoc at the target structue and then multiple idocs will be created.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prateek
when you said change the IDOC node occurence i thought you meant after i Import that as my target interface in the mapping I should change it there
but you say to import that as external definition and then include in the mapping
How can I change the structure (occurrence) of the IDOC before including in the mapping
and will this restrict the numer of IDOCS to be 2 for every line item ?
will the mapping also be different for both IDOCS created for two postings ?
Hi Rohan,
How can I change the structure (occurrence) of the IDOC before including in the mapping
Once you import the Idoc from R/3, before using it directly in the message mapping, export the xsd of the Idoc from XI on to your local machine, change the occurrance of Idoc to nbounded and try to import it as an ExternalDefinition(present under the namespace component of your SCV). Then use teh same external definition in your mapping.
and will this restrict the numer of IDOCS to be 2 for every line item ?
will the mapping also be different for both IDOCS created for two postings ?
The number of Idocs are not restricted to 2.the mapping would be same for both the Idocs.
Regards,
Swetha.
Thanks Prateek i have done that but
" Map the occurrence of line items to the node Idoc at the target structue and then multiple idocs will be created "
is what iam unable to do
In the mapping i have to create two idocs per line item and this is creating just one
my source structure is like this
MT_abc 1.1
Invoices 1..unbounded
field 1
field 2 etc
and the target is
ACC_DOCUMENT02 1..1
IDOC 1.unbounded
and i have mapped invoices to IDOC
now for testing in the test tab of mapping
how do i test if i will have two IDOC if i get one line item ??
Edited by: RohanS on Jun 18, 2009 2:06 PM
Edited by: RohanS on Jun 18, 2009 2:08 PM
Hi Swetha
Actually the requirement is to create two postings of the same IDOC , for every line item in the file
i.e one line of the file should create two kinds one for AR and one for AP kind of posting in the same doctype ACC DOCUMENT in ECC
i want to achieve the folowing
for every line that i get in the file I must be able to create two IDOCS, where one will have a different logic in mapping for posting than the other but the IDOC type in the target ( the receiver is the same )
please help
Edited by: RohanS on Jun 18, 2009 2:34 PM
Hi Rohan..
If you want to get two Idocs for every line item with two different maping logic....
then duplicate the target Idoc structure(so that you have two Idoc nodes in target structure) and then map Invoice to each Idoc node implementing the mapping logic you want.This way, for each Invoice you would be getting two same Idocs created at the target side.
Note:(As per my understanding, Eachline of the file(which you were talking abt) is nothing but each Invoice record.Correct me if iam wrong.)
Regards,
Swetha
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.