‎2008 Aug 22 10:06 AM
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.
‎2008 Aug 22 10:13 AM
write this code under :
at selection-screen.
> p_file2 = p_file.
‎2008 Aug 22 10:09 AM
Hi,
use the following syntax.
Move p_file to p_file2.
Hope this will help u.
Regards,
Aleem.
‎2008 Aug 22 10:13 AM
write this code under :
at selection-screen.
> p_file2 = p_file.
‎2008 Aug 22 10:14 AM
Hi,
Use the event at selection-screen output.
at selection-screen output.
parameter2 = parameter1.
Regards,
bert
‎2008 Aug 22 10:25 AM
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.