Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Flat file on app server

Former Member
0 Likes
298

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...

1 REPLY 1
Read only

Former Member
0 Likes
282

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.