Skip to Content
0
Dec 03, 2008 at 02:49 AM

Counter column in the Receiver file

36 Views

Hi All,

My requirement -->

Souce is IDOC and target is a file.

In the Receiver file there is one column counter which will indicate the counter for each line...

So the Receiver file should be like this

FHEAD,0001

THEAD,00002,00001,20081103

TDETL,0003,0001,A,777,23456789

TDETL,0004,0002,M,881,45333333

TTAIL,0005

THEAD,0006,00002,20081103

TDETL,0007,0001,A,777,23456789

TDETL,0008,0002,M,881,45333333

TDETL,0009,0003,M,381,4533677

TTAIL,0010

FTAIL,0011

The problem is when i map with the source and use counter for the second column, i am getting the counters different, this is due to the condition on the node level, because if 10 idocs come the file may need only 5 based on condition. but since source occurence is 10 the counter cannot give correct values in the file as required,

Please suggest the best way to handle this..

Regards,

Sridhar Reddy