‎2007 Apr 26 10:38 AM
Hi all,
Please help me this as im new to ABAP HR...
the requirement is as...
The program should generate 4 separate files, giving the user the option to select which file they are generating on a selection screen.
The file are to be named defalult as:
COBPART<b>YYYYMMDD</b>.TXT
COBDEPT<b>YYYYMMDD</b>.TXT
COBCOV<b>YYYYMMDD</b>.TXT
COBCON<b>YYYYMMDD</b>.TXT
Can someone help me suggest how to generate this file name dynamically...i.e along with the current date (sy-datum).
I've tried concatenating it and putting into a string variable but the problem is that how do i assign this as default value of the input field.
‎2007 Apr 26 3:14 PM
Hi Rippy,
Follow this sample code. You can generate your text file names differently for different fields.
<b>selection-screen begin of block b.
parameters p_fname type rlgrap-FILENAME default 'test'.
selection-screen end of block b.
initialization.
concatenate 'COBPART' sy-datum '.TXT' into p_fname.</b>
Regards,
Jayaram...
‎2007 Apr 26 3:14 PM
Hi Rippy,
Follow this sample code. You can generate your text file names differently for different fields.
<b>selection-screen begin of block b.
parameters p_fname type rlgrap-FILENAME default 'test'.
selection-screen end of block b.
initialization.
concatenate 'COBPART' sy-datum '.TXT' into p_fname.</b>
Regards,
Jayaram...
‎2007 Apr 27 7:37 AM
thanks Jayarama,
Your answer was exactly what was required .....
thanx a lot..