05-28-2008 7:31 AM
Hi Friends,
i have some problem with radio buttons, in the selection screen i need
Gender O Male O Female.
something like above.
How should i do that.
please help me out.
Regards
kumar M
05-28-2008 7:34 AM
Hi,
selection-screen begin of line.
parameter p_r1 radiobutton group gr1.
selection-screen position 50.
parameter p_r2 radiobutton group gr1.
selection-screen end of line.
Regards,
Shiva Kumar
05-28-2008 7:34 AM
Hi,
selection-screen begin of line.
parameter p_r1 radiobutton group gr1.
selection-screen position 50.
parameter p_r2 radiobutton group gr1.
selection-screen end of line.
Regards,
Shiva Kumar
05-28-2008 7:41 AM
my requirement is,,, in selection screen
Is material is tampered 0 yes 0 no.
if the enduser selects yes radio button, then in the script output it should come as
Is material is Tampered YES.
these requirement is after MIGO is done by the storage location people observation sheet after MIGO is done..
i need the text and yes and No radio buttons
how should i do.
regards
kumar.
05-28-2008 7:54 AM
PARAMETERS: yes RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND ABC, "yes,
No RADIOBUTTON GROUP rad1.
AT SELECTION-SCREEN OUTPUT.
CASE 'X'.
WHEN Yes.
Do what operations u want.
WHEN No.
Do what u want.
Reward if helpful.
05-28-2008 8:02 AM
Have you tried to improvise based on Eric's example???
That was an example to understand on how you can approch.
Have made modifications taking Eric's one as base to make it error free.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (8) gen. "'GENDER'.
SELECTION-SCREEN POSITION 10.
PARAMETERS : p_male RADIOBUTTON GROUP 1.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN COMMENT (8) male. "'Male'.
SELECTION-SCREEN POSITION 30.
PARAMETERS : p_female RADIOBUTTON GROUP 1.
SELECTION-SCREEN POSITION 40.
SELECTION-SCREEN COMMENT (8) female. "'Female'.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
MOVE: 'Gender' TO gen,
'Male' TO male,
'Female' TO female.
Kind Regards
Eswar
05-28-2008 7:35 AM
you need to declare ur radio button inbetween
selection-screen begin of line.
you can give the text by selection-screen comment..
parameters: r_m radio-button group g2,
r_f radio-button group g2.
selection-screen end of line.
05-28-2008 7:35 AM
hi Makesh,
you have to code something like this:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 'GENDER'.
SELECTION-SCREEN POSITION 10.
PARAMETERS : p_male RADIBUTTON GROUP 1.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN COMMENT 'Male'.
SELECTION-SCREEN POSITION 30.
PARAMETERS : p_female RADIBUTTON GROUP 1.
SELECTION-SCREEN POSITION 40.
SELECTION-SCREEN COMMENT 'Female'.
SELECTION-SCREEN END OF LINE.
hope this helps
ec
05-28-2008 7:36 AM
Hi Mukesh,
Please check the Demo program code
TABLES sscrfields.
PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio,
rad2 RADIOBUTTON GROUP rad.
AT SELECTION-SCREEN.
MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
START-OF-SELECTION.
WRITE text-002.
Best regards,
raam
05-28-2008 7:41 AM
Hi MAhesh,
try something like this
try this
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS:WIP_ONLY RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN COMMENT 2(15) WIP FOR FIELD WIP_ONLY.
PARAMETERS:HIS_ONLY RADIOBUTTON GROUP RAD1 default 'X'.
SELECTION-SCREEN COMMENT 20(15) HIS FOR FIELD HIS_ONLY.
PARAMETERS:BOTH RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN COMMENT 40(15) WIP_HIS FOR FIELD BOTH.
SELECTION-SCREEN END OF LINE.
at selection-screen output.
WIP = 'Work-in-Process Only'.
HIS = 'History Only'.
WIP_HIS = 'Both WIP & HIS'.