on 12-10-2013 6:23 AM
Hi ,
I would need to do a scenario where in the IDOC has to be split in mapping at 999 line items.
Suppose if there are 2000 line items then at 999 first split must happen followed by the remaining ones.
I have gone thru the blogs and could see that one way would be to define the recordset to 999 in file adapter
Second would be to do a multi mapping File to IDOC and then IDOC to IDOC.
Can you please suggest me with any other feasible solution. Also I guess we could do a single mapping and limit the same in UDF.
Is there any link to the same.
Please revert with your inputs.
Amit
please refer below link
http://wiki.scn.sap.com/wiki/display/XI/File+to+Multiple+IDOC+Splitting+without+BPM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Make sure you do a multimapping and write a UDF. You can use this code:
int contextCount = 0;
for(int i = 0; i < var1.length; i++){
result.addValue(var1[i]);
contextCount++;
if(contextCount == count && i < var1.length-1){
result.addContextChange();
contextCount = 0;
}
}
Please define count as a parameter, type int
This parameter can be used to specify a value on which a new idoc must be created.
Kind regards,
Dimitri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit
Tell me about your scenario. Is it File to Idoc or Idoc to file or Idoc to Idoc??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
first change the occurance of idoc with the help of following blog:
Then you can go for creation of IDOC's based on udf by Dimitri
and handle the idoc context in mapping
Regards
Gagan
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.