06-15-2011 9:50 AM
Hello,
Program Z_ABC having Select Option Field XYZ.
I need to transfer all the values entered on Selection Option Field XYZ to another Program Dialog Z_DIALOG.
06-15-2011 9:58 AM
Hi KeyurP;
1. Create GET/SET parameters ID From SE80->Create->More-> GET/SET parameters ID
2. Write to Source program
SET PARAMETER ID: 'Zobject' FIELD GV_exp.
3. Write to Target program
GET PARAMETER ID : 'Zobject' FIELD GV_imp,
Best Regards.
06-15-2011 11:02 AM
I am using Select Options!! what if entering multiple values???
currently i am able to fetch only single entry!
Edited by: KeyurP on Jun 15, 2011 12:03 PM
06-15-2011 11:08 AM
Select-options are stored as internal table at the backend.
You can easily export/import it. Irrespective of single or multiple value.
EXPORT s_opt TO MEMORY ID 'table'.
Edited by: sap_wiz on Jun 15, 2011 3:38 PM
06-15-2011 10:02 AM
06-15-2011 11:39 AM
The easiest way (based on the little information you provided) would be to include the same XYZ select option in Z_DIALOG as well and pass the values via SUBMIT ... WITH ... IN ...
Thomas
06-15-2011 11:42 AM
I dont think so, SUBMIT statement is useful for DIalog Program!!
Edited by: KeyurP on Jun 15, 2011 12:43 PM
06-15-2011 11:58 AM
Hi KeyurP ;
Please check below link.
Best Regards.
http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm
06-15-2011 12:11 PM
Export and Import the whole internal table (range)
* Caller
EXPORT XYZ[] TO MEMORY ID 'XYZ'.
* PBO of called dialog
IMPORT XYZ[] FROM MEMORY ID 'XYZ'.
Regards,
Raymond
06-15-2011 1:23 PM
Hi
U can pass selection screen values via SUBMIT keyword.
SUBMIT ZPROG2 WITH S_LOW_PROG2 = S_LOW_PR0G1-LOW
WITH S_HIGH_PROG2 = S_HIGH_PROG1-HIGH AND RETRURN.
IN Seconde program u can pass s_low and s_high values .
Thanks & Regards,
MURALIII
06-16-2011 11:22 AM
Hi,
Try to use the function module 'RS_REFRESH_FROM_SELECTOPTIONS'.
For ex:
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-repid
TABLES
selection_table = it_soptions
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc <> 0.
EXIT.
ENDIF.
SUBMIT riaufk20 WITH dy_selm = 'D'
WITH SELECTION-TABLE it_soptions
AND RETURN.
Hope it solves your issue.
Regards,
Chenthamarai.