‎2007 May 02 12:01 PM
Hi guys,
here iam creating file on application server for month, my requirment is when we cselect perticular month on selection screen path so it dynamically select it how plz send me..
Data : month_name.csv type string value '/dir_temp/...'.
Data : month type c.
If month eq month_name.csv.
month = /Dir_temp/January_file_name
Elseif month eq February_file_name.
month = /Dir_temp/February_file_name ..
elseif month eq March_file_name.
month = /Dir_temp/march_file_name .
open dataset month_namel.csv for output in text mode encoding defult.
Transfer ls_itab to April.csv.
endif.
plz send me the right code...
‎2007 May 02 12:08 PM
Data : month_name.csv type string value '/dir_temp/...'.
Data : month type c.
If month eq month_name.csv.
concatenate '/dir_temp/' 'January_file_name' into month.csv.
Elseif month eq February_file_name.
concatenate '/dir_temp/' 'February_file_name' into month.csv.
elseif month eq March_file_name.
concatenate '/dir_temp/' 'March_file_name' into month.csv.
...........so...on.........
open dataset month.csv for output in text mode encoding defult.
Transfer ls_itab to month.csv.
endif.