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

HR Outbound interface

Former Member
0 Likes
342

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
314

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...

2 REPLIES 2
Read only

Former Member
0 Likes
315

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...

Read only

Former Member
0 Likes
314

thanks Jayarama,

Your answer was exactly what was required .....

thanx a lot..