on 07-10-2009 6:27 AM
Hi Experts,
I have an issue. Sender is file and receiver is idoc with a header and item level records. Only one header and n number of records can be there.
Now we want to make this way that as soon as the count for item records reaches 999 the second idoc gets triggered.
Hints / Solutions Pls.
Regards,
Arnab .
incorporate mapping logic such that for every 999 item records create new IDoc node
check with this UDF for IDoc node mapping, item records will be input to UDF
int count = a.length;
int k=999;
result.addValue("");
for(int i=0;i<count;i++)
{
if (i>=k){
result.addValue(""); // if records > 999, add IDoc node
k=k+999;
}
}
Do rest of the mapping accordingly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mondal,
You can change the occurrence of an idoc. Then map items to idoc and see the count. When count is equal to 999 then create a new idoc.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
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.