Code :
REPORT ZVP_MOD_MACRO.
*------------------------------START OF MACRO DEFINITION--------------------------------------*
DEFINE MAC_NAME.
WRITE: 'YOU HAVE CLICKED WITH MACRO : &1'.
END-OF-DEFINITION.
*------------------------------END OF MACRO DEFINITION--------------------------------------*
PARAMETERS: RB1 RADIOBUTTON GROUP RBG DEFAULT 'X',
RB2 RADIOBUTTON GROUP RBG,
RB3 RADIOBUTTON GROUP RBG.
START-OF-SELECTION.
IF RB1 = 'X'.
MAC_NAME 1.
ELSEIF RB2 = 'X'.
MAC_NAME 2.
ELSEIF RB3 = 'X'.
MAC_NAME 3.
ENDIF.
Output :
YOU HAVE CLICKED WITH MACRO : 1
IDE Used To Test This Code : SAP GUI 750
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.
REPORT ZVP_MOD_MACRO.
*------------------------------START OF MACRO DEFINITION--------------------------------------*
DEFINE MAC_NAME.
WRITE: 'YOU HAVE CLICKED WITH MACRO : &1'.
END-OF-DEFINITION.
*------------------------------END OF MACRO DEFINITION--------------------------------------*
PARAMETERS: RB1 RADIOBUTTON GROUP RBG DEFAULT 'X',
RB2 RADIOBUTTON GROUP RBG,
RB3 RADIOBUTTON GROUP RBG.
START-OF-SELECTION.
IF RB1 = 'X'.
MAC_NAME 1.
ELSEIF RB2 = 'X'.
MAC_NAME 2.
ELSEIF RB3 = 'X'.
MAC_NAME 3.
ENDIF.
Output :
YOU HAVE CLICKED WITH MACRO : 1
IDE Used To Test This Code : SAP GUI 750
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.
Post a Comment