on 10-16-2007 2:46 PM
Hi! All
It would very helpful, if you could let me know how to ...
Limit the no.of line items under a PO to 450, the remaining line items should go to the next idoc.
For example, if we have 1000 line items under a PO# 1234, then we would have...
3 Idocs - 1000 line items (450450100)
IDOC1 - PO#1234.........No.of Line Items = 450
IDOC2 - PO#1234.........No.of Line Items = 450
IDOC3 - PO#1234.........No.of Line Items = 100
Your help is greatly appreciated..Thank You!
Regards,
Patrick.
Hi Patric,
You can do this by using Graphical mapping by using chage context and some UDF. We have done this for Accc document where requirement was to generate idoc for every 948 line items.
You can generate "N" number first element i think that is "idoc" base on your count ( in your case it will be 450). For eg. 1 idoc context for every 450 records . Then you can used same concept for generating remianing segments.
Remeber while importing idoc...you need to do change the max occurs ="999999" for element "idoc"..so that you can generate number of idoc in one shot.
Check out this michals blog fir bundling idocs...
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Hope this will help.
Nilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use recordset per message in FCC
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1 to n mapping to split the messages
Open the Messages tab in mapping program and change the occurence of your target message to 0... Unbounded.
Now you use a UDF to split according to number of records.
Eg. context function with parameter 'a':
for (int i=0; i<Math.ceil(a.length/100; i++)
result.addValue(" ");
You would map the records occurence to this function and map this function to the structure below the Message1 structure.
jsut try this......not sure will it work
( this is from the earlier post for similar req )
We use, for example, the RHALEINI program to extract and create the Idocs.
You can limit the "Number of objects per process"
Number of objects (e.g. materials, vendors, customers) assigned to an available process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you sending the data to R3 ? If so try to send the desired data from the Source otself else BPM will help.
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is this at inbound or outbound side?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.