In this we will be creating RADIO BUTTON IN MODULE POOL . it is simple to use in module pool.
first create a Module pool program and activate all modules. and then create a screen
first create a Module pool program and activate all modules. and then create a screen
now go to layout then click on radio button in side tool bar . and create radio button name them as
head and item (As per my requirement).then go to EDIT-->GROUPING-->RADIOBUTTONGROUP-->DEFINE
NOW YOU CLICK ON ONE OF THE RADIO BUTTON, WRITE FTCCODE AS "RADIO"
IN BOTH , WRITE THE SAME FTCHCODE.
THEN YOU GOT AND ACTIVATE PBO AND PAI MODULES.
GO TO TOP INCLUDE AND DEFINE FOLLOWING:
IN PAI WRITE THE FOLLOWING CODE :THE LOGIC IS SIMPLE IF USER COMMAND IS RADIO AND HEAD ="X", THEN
WRITE LOGIC
ELSEIF USER COMMAND IS RADIO AND ITEM = 'X'.
THEN WRITE LOGIC.
ELSE .
LEAVE TO SCREEN 0.
NOW GO HEAD AND CREATE A TRANSACTION THAT WE CAN EXECUTE OUR MODULE POOL. GO SE 93 OR CREATE A TRANSACTION .
GO AND WRITE THE PROGRAM NAME AND SCREEN NUMBER
NOW EXECUTE THE TRANSACTION , YOU WILL SCREEN LIKE THIS
THEN SELECT ONE ,