2008 Mar 09 5:42 AM
hi,
We need to download an internal table to the Presentation Server(local workstation). Whenever we run the program, the same file has to be saved as a separate file in sequential order. Ex: 0001.txt, 0002.txt etc. Where can we store the last file number?
thnks.
hi,
We need to download an internal table to the Presentation Server(local workstation). Whenever we run the program, the same file has to be saved as a separate file in sequential order. Ex: 0001.txt, 0002.txt etc. Where can we store the last file number?
thnks.
2008 Mar 09 5:49 AM
hi,
my suggestion is save the file name with sy-datum and sy-uzeit values. it will solve ur problem.
remember-if any one give correct try habituate giving points.
Edited by: subas Bose on Mar 9, 2008 6:55 AM
2008 Mar 09 8:50 AM
HI,
SAP has a table TVARV for storing the variants.
A record may be created in TVARV for all the programs that require this kind of incremental records.
For Ex: the record could be 100Zmm10001 MM sequence rec where first part consists of client code and the program being run. Client code is required because TVARV does not has a field for client code. The second part is the description indicating the purpose what the record is created. This entire string may be posted in the Name field (char - 30).
The Type field ( char- 1) may be populated with P or S (Parameter or Selection)
Low field (char- 45) may be populated with '0001' when run first time and increment it by one in your program for downloading of the internal table.
Cheers,
Chandra Sekhar.