Hi experts
I would like to send a sequence number in a file name and use the code below.
DATA: bla, bla, bla
selection-screen begin of block blk1 with frame title text-001.
parameters: P_FILE type string obligatory lower case.
selection-screen end of block blk1.
CALL FUNCTION 'NUMBER_GET_NEXT_SOP'
EXEPTION
nrrangenr = NUMBERRANGENUMBER
object = 'ZHR_SEQNR'
quantity = '1'
mandt = SY-MANDT
IMPORTING
number = ZSEQNR
CONCATENATE '/usr/sap/' zseqnr '_' sy-datum '.txt' into p_file.
select * from ..............
The parameters should look like /usr/sap/0000000001_20100511.txt but it looks like this /usr/sap/_20100511.txt
If i call the function modul above, further down, after i have done all the selections i get the sequence number but then it is to late, the parameter has already been set.
Anyone having any idea // Peter B