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: 

function to copy a parameter

Former Member
0 Kudos

hi everybody

is there any fm to copy a parameter on a selection screen

there are 2 parameters : p_file and p_file2

the user is selecting a directory in p_file and I want this directory to be copied to p_file2 when the user presses Enter on p_file, meaning evrytime the user selects a new directory, p_file2 gets populated with the new directory

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try this way...

at selection-screen on p_file.

p_file2 = p_file.

5 REPLIES 5

Former Member
0 Kudos

Try this way...

at selection-screen on p_file.

p_file2 = p_file.

JozsefSzikszai
Active Contributor
0 Kudos

hi,

you only need these lines:

PARAMETERS p_file ... USER-COMMAND uc01 .

AT SELECTION-SCREEN OUTPUT.

p_file2 = p_file.

hope this helps

ec

0 Kudos

in fact i didnt need the exact copy of p_file into p_file2

p_file should be copied into p_file2 but p_file2 should be added some extension with it

0 Kudos

than you have to use the CONCATENATE statement...

0 Kudos

Just concatenate what u need with p_file1 and assign it to p_file2...