Application Development 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: 

default

Former Member
0 Kudos

PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT 'GOVOINV200704'

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

Former Member
0 Kudos
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME.

INITIALIZATION.

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member632991
Active Contributor
0 Kudos

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