generate sequence no.
Hi Experts ,
I have an multiple idocs to file scenario.( file has header ,detail(s) and trailer )
Suppose 100 idocs of same type but different countries( say 2 ) are sent from r/3 then two file should be created .I am able to create 2 files but I have requirement that each file should have a sequence no. in the header starting from 1 and gets incremented when next file is craeted.
can someone tell me how to capture old file no. which has been generated to generate the new sequence no ( old no + 1 ).