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

default

Former Member
0 Likes
647

PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT 'GOVOINV200704'

I want change 200704 into the current year&month, how do it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
624

Hi,

In <b>INITIALIZATION</b> event do like this

concatenate 'GOVOIN' sy-datum+0(6) into P_FILE.

You will get current year&month.

Regards,

Balavardhan.K

5 REPLIES 5
Read only

Former Member
0 Likes
624
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME.

INITIALIZATION.

concatenate 'GOVOINV' sy-datum+0(4) sy-datum+4(2) into  P_FILE.
Read only

Former Member
0 Likes
625

Hi,

In <b>INITIALIZATION</b> event do like this

concatenate 'GOVOIN' sy-datum+0(6) into P_FILE.

You will get current year&month.

Regards,

Balavardhan.K

Read only

Former Member
0 Likes
624

u van concatenate the text with the year and month of the date and place it in another variable which u can set as default value

regards

navjot

reward if helpfull

Message was edited by:

navjot sharma

Read only

Former Member
0 Likes
624

Try this ; In the Initialization Event , create a variable and have the value required Concatenated to that variable , then use that variable in that PARAMETER.

Hope this helps,

Senthil N S

Read only

former_member632991
Active Contributor
0 Likes
624

Hi,

instead of hardcoded, take a variable and concatenate the name and current year nad month in that and then give that variable as default.

u can write this code in

At selection-screen on p_file.

concatenate 'GOVOINV' sy-datum(4) sy-datum+2(2) into l_file.

Regards,

Sonika