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

interface

Former Member
0 Likes
542

hi,

how do i put a date stamp for my output file path " /tmp/file_receipts.txt" ex: it should be " /tmp/file_receipts05032007.txt".. thank in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

Hi,

Split the sy-datum field to Date, month and year and

concatenate Date month year to a string

and concatenate the file name and the string(date) and use it.

Reward points if useful

Regards

Anji

4 REPLIES 4
Read only

Former Member
0 Likes
524

Hi,

Split the sy-datum field to Date, month and year and

concatenate Date month year to a string

and concatenate the file name and the string(date) and use it.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
523

Hi,

While populating the name just add sy-datum with the remaining name.

Regards,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

Read only

Former Member
0 Likes
523

Hi,

Use

CONCATENATE gv_date lc_txt INTO gv_filename.

Declare gv_date in your specified format.

Regards

Kannaiah

Read only

Former Member
0 Likes
523

Hi,

See the code below,

data: g_file type RLGRAP-FILENAME value '/tmp/file_receipts',

g_date type sy-datum value sy-datum.

Intialization.

concatenate g_file g_date '.txt' into g_file.

Reward if its helpful

Regards,

Kasi S