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

copy value from 1 parameter to another parameter

Former Member
0 Likes
857

i have 2 parameters on a selection screen, p_file and p_file2

im doing a VALUE-REQUEST FOR p_file, now I want p_file2 to get the same value on the slection screen

but this value is not appearing on the selection screen

need help on that

see code below

AT SELECTION-SCREEN on VALUE-REQUEST FOR p_file.

CALL METHOD cl_gui_frontend_services=>file_open_dialog

CHANGING

file_table = lt_filetab

rc = v_rc

EXCEPTIONS

file_open_dialog_failed = 1

cntl_error = 2

error_no_gui = 3

not_supported_by_gui = 4

OTHERS = 5.

READ TABLE lt_filetab INTO ls_filetab INDEX 1.

IF sy-subrc = 0.

p_file = ls_filetab-filename.

p_file2 = p_file.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

write this code under :

at selection-screen.

> p_file2 = p_file.

4 REPLIES 4
Read only

Former Member
0 Likes
691

Hi,

use the following syntax.

Move p_file to p_file2.

Hope this will help u.

Regards,

Aleem.

Read only

Former Member
0 Likes
692

write this code under :

at selection-screen.

> p_file2 = p_file.

Read only

b_deterd2
Active Contributor
0 Likes
691

Hi,

Use the event at selection-screen output.


at selection-screen output.
  parameter2 = parameter1.

Regards,

bert

Read only

Former Member
0 Likes
691

hi,

Either we can copy the value in INITIALIZATION or AT SELECTION_SCREEN OUTPUT.

initialization.
p_file2  = p_file.

at selection-screen output.
  p_file2  = p_file.

hope this helps.

thanx,

dhanashri.