07-26-2010 10:59 AM
Dea All,
i have an issue in which i have to call same program when any of two options are clicked in a radiobutton
but once program navigates to the concerned screen which will be same .
depending upon the radiobutton selected i need to futher navigate to two different transactions depending on radiobutton selected initially.
the radiobuttone selection code is as below
SELECTION-SCREEN : BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
PARAMETERS: p_r3p RADIOBUTTON GROUP r1 MODIF ID r,
p_pte RADIOBUTTON GROUP r1 MODIF ID p,
p_NSK RADIOBUTTON GROUP r1 MODIF ID N.
SELECTION-SCREEN : END OF BLOCK a1.
IF p_r3p = 'X'.
CALL TRANSACTION 'ZMMRT01_R3P'.
ELSEIF p_pte = 'X'.
CALL TRANSACTION 'ZMMRT01_PTE'.
ELSEif p_NSK = 'X'..
CALL TRANSACTION 'ZMMRT01_R3P'.
ENDIF.
but two different programs need to be called inside the respective called prog which can be ( 'ZMMRT01_R3P' or 'ZMMRT01_PTE'. or 'ZMMRT01_R3P' ) even though initialy prog called is same for 1st and 3rd radiobutton.
Plz suggest whether modif id can be used.
Using ABAP memory i believe issue can be sorted but is there any other way using standard system variables
Thanks & regards,
Ronak
07-26-2010 12:00 PM
Other than memory id you can either create a hidden field in the called programs and assign the value to it while calling.