Skip to Content
0
Former Member
Nov 22, 2013 at 04:29 PM

sequential number for records each time the program was run

354 Views

Hi All,

In my report I am displaying two fields ZSEQNO(Sequential number) and BELNR from table ZDOCNUM. I am fetching ZSEQNO and BELNR from table ZDOCNUM. When I execute the report for company code 2500, I am having the below output:

Sequential No. Document No.

00011100001 78454445

00011100002 78454687

When I execute the report for the second time for the same company code my output should be as below:

Sequential No. Document No.

00011100003 78454445

00011100004 78454687

For next run the sequential number should start from 00011100005 and so on. How to achieve this functionality? Please help.

Thanks,

Venkata