on 07-09-2012 8:11 AM
Hi
I am working on File to Multiple Idocs, and mutiple Idocs based on Company code.
Experiencing a typical situation.
there are 4 segments and for those i have mapped as below along with the IDOC name
Compnaycode --> remove contexts --> sort --> splitbyvalue(value change) --> Account_Document03
Like this below figure mapped to the four segments also. But when i mapped with Header segment like this throughing error...
<SAP:Stack>Error: XML IDoc conversion: No known segments identified</SAP:Stack>
but when i didn't mapped with Header segment, assigned only constant, then channel is success but Idoc is posting with four records with same company code and again posted with the Header segments of three records.
But in MM it is fine.
Please suggest....
Hi,
1. if you have a change have a look at BIT460 course for PI (mappings - message mapping sections)
2. have a look at some blogs on SDN on context mapping to understand
http://scn.sap.com/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
Facing Simple issue.
Working with File to ACC_DOCUMENT03(IDOC)
Idocs needs to post based on Company code in the file, if there are multiple records with Same Company code then we need to post only one IDOC.
It is working fine now. But now the issue is with the ITEM_NUM in the segments.
my mapping looks as follows
Companycode ---> removecontexts--->sort-->splitbyvalue(valuechange) -->ACC_DOCUMENT03
for the segments
Header segment as below
constant ---> E1BPACHE09
Line item segments as below:
Companycode ---> removecontexts--->sort-->splitbyvalue(valuechange) -->E1BPACGL09
Companycode ---> removecontexts--->sort-->splitbyvalue(valuechange) -->E1BPACCR09
In these line item segments there is ITEMNUM and mapped as below
Companycode -->remocontexts--->sort-->index(1,1) -->splitbyvalue(valuechange) -->ITEMNUM(E1BPACGL09)
Companycode -->remocontexts--->sort-->index(1,1)---->splitbyvalue(valuechange) -->ITEMNUM(E1BPACCR09)
There are 6 records in total and 4 records are with same company code and 2 records are same CC
The isues are below:
1. Triggering 4 Idocs with same companycode, in those one IDOC is perfect and remaining three IDOCS are with E1BPACHE09 header segment only.
Similarly triggering 2 Idocs with same company code in those one IDOC is perfect and remaiing one Idocs is with E1BPACHE09 header segment only.
2. Need to get ITEM number starts with 1, 2, 3 ..etc for each new IDOC
But it is happening like 1,2,3,4 after that for the second as 5, 6.
Please help in this...
Have you tried looking into the formatByExample mapping function as per Stefan here?
So basically you would use the ItemNum mapping to include ITEMNUM where he has used PRODUCT and replace his use of the ID segment with COMPANYCODE...
Similarily you would have to map as he has done to control the context occurrences of the segments you need and then the Company Code mapping to occur once for each of the child items.
Hope it helps...
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.