cancel
Showing results for 
Search instead for 
Did you mean: 

Count for item records reaches 999 the second idoc gets triggered!

Former Member
0 Kudos

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 .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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