2007 Apr 11 6:05 AM
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT 'GOVOINV200704'
I want change 200704 into the current year&month, how do it?
2007 Apr 11 6:09 AM
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
2007 Apr 11 6:09 AM
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME.
INITIALIZATION.
concatenate 'GOVOINV' sy-datum+0(4) sy-datum+4(2) into P_FILE.
2007 Apr 11 6:09 AM
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
2007 Apr 11 6:09 AM
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
2007 Apr 11 6:11 AM
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
2007 Apr 11 6:13 AM
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