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

function to copy a parameter

Former Member
0 Likes
896

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
Read only

Former Member
0 Likes
783

Try this way...

at selection-screen on p_file.

p_file2 = p_file.

5 REPLIES 5
Read only

Former Member
0 Likes
784

Try this way...

at selection-screen on p_file.

p_file2 = p_file.

Read only

JozsefSzikszai
Active Contributor
0 Likes
783

hi,

you only need these lines:

PARAMETERS p_file ... USER-COMMAND uc01 .

AT SELECTION-SCREEN OUTPUT.

p_file2 = p_file.

hope this helps

ec

Read only

0 Likes
783

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

Read only

0 Likes
783

than you have to use the CONCATENATE statement...

Read only

0 Likes
783

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