Skip to Content
author's profile photo Former Member
Former Member

mdoifying the input screen

hi,

i have five selectoptions and five radiobuttons.

if i select radiobutton 2,the third selectoption should be deactivated and we select 4th radiobutton the first selectoption should be deactivated.

it is very urgent.

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 05:05 AM

    Hi Surya,

    For this, you should attach the function code with the radiobuttons like follows:

    PARAMETERS : radio1 radiobutton group g1 user-command RADIO1,

    radio2 radiobutton group g1 user-command RADIO2 and so on.

    then in the AT SELECTION-SCREEN OUTPUT.

    You can write the code as follows:

    LOOP AT SCREEN.

    CASE SCREEN-NAME.

    WHEN 'SELECT-OPTION3'.

    if radio1 is not initial.

    screen-active = ' '.

    else.

    screen-active = 'X'.

    endif.

    when 'SELECT-OPTION4'.

    if radio2 is not initial.

    screen-active = ' '.

    else.

    screen-active = 'X'.

    endif.

    modify screen.

    endcase.

    ENDLOOP.

    Hope it helps.

    Regards,

    Himanshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 05:11 AM

    see this codeing.

    REPORT DEMO.

    PARAMETERS: TEST1(10) MODIF ID SC1,

    TEST2(10) MODIF ID SC2,

    TEST3(10) MODIF ID SC1,

    TEST4(10) MODIF ID SC2.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF SCREEN-GROUP1 = 'SC1'.

    SCREEN-INTENSIFIED = '1'.

    MODIFY SCREEN.

    CONTINUE.

    ENDIF.

    IF SCREEN-GROUP1 = 'SC2'.

    SCREEN-INTENSIFIED = '0'.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 05:12 AM

    HI

    see this exqample in this i had 2 radiobuttons and 1 selet-option and one parameter

    if i select one radiobutton corresponding filed will be input and other filed will be in invisible

    &----


    *& Report ZNNR_REPORT

    *&

    &----


    *&

    *&

    &----


    REPORT ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).

    ******DATA DECLARATIONS**********

    DATA : BEGIN OF IT_PLANT OCCURS 0,

    MATNR LIKE MARA-MATNR,

    WERKS LIKE MARC-WERKS,

    PSTAT LIKE MARC-PSTAT,

    EKGRP LIKE MARC-EKGRP,

    END OF IT_PLANT.

    DATA : BEGIN OF IT_PONO OCCURS 0,

    EBELN LIKE EKKO-EBELN,

    EBELP LIKE EKPO-EBELP,

    MATNR LIKE EKPO-MATNR,

    WERKS LIKE EKPO-WERKS,

    LGORT LIKE EKPO-LGORT,

    END OF IT_PONO.

    TABLES EKKO.

    ********END OF DATA DECLARATIONS*********

    ********SELECTION SCREEN DESIGN ***********

    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.

    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.

    SELECTION-SCREEN END OF BLOCK B1.

    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.

    SELECTION-SCREEN BEGIN OF LINE.

    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.

    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.

    SELECTION-SCREEN END OF LINE.

    SELECTION-SCREEN BEGIN OF LINE.

    PARAMETERS : R2 RADIOBUTTON GROUP G1.

    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.

    SELECTION-SCREEN END OF LINE.

    SELECTION-SCREEN END OF BLOCK B2.

    ******END OF SELECTION SCREEN DESIGN****************

    *********INITIALIZATION OF SELECTION SCREEN ELEMENTS.*****

    INITIALIZATION.

    P_WERKS = '1000'.

    S_EBELN-LOW = '4500016926'.

    S_EBELN-OPTION = 'EQ'.

    S_EBELN-SIGN = 'I'.

    APPEND S_EBELN.

    CLEAR S_EBELN.

    ************END OF INITIALIZATION***********************

    <b>***********SCREEN MODIFICATIONS*******************

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF R1 EQ 'X' AND SCREEN-GROUP1 EQ 'S2'.

    SCREEN-INPUT = 0.

    MODIFY SCREEN.

    ENDIF.

    IF R2 EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.

    SCREEN-INPUT = 0.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    ********END OF SCREEN MODIFICATIONS*****************</b>

    ***************SCREEN VALIDATIONS *****************

    at selection-screen.

    SELECT SINGLE *

    FROM EKKO

    INTO EKKO

    WHERE EBELN IN S_EBELN.

    IF SY-SUBRC <> 0.

    SET CURSOR FIELD 'S_EBELN-LOW'.

    MESSAGE E999 WITH TEXT-005.

    ENDIF.

    ********end of screen validation*****************

    START-OF-SELECTION.

    *set pf-status '100'.

    IF R1 EQ 'X'.

    SELECT MATNR

    WERKS

    PSTAT

    EKGRP

    FROM MARC

    INTO TABLE IT_PLANT

    WHERE WERKS = P_WERKS.

    LOOP AT IT_PLANT.

    WRITE : SY-VLINE , 2 IT_PLANT-MATNR COLOR COL_KEY,

    21 SY-VLINE , 22 IT_PLANT-WERKS COLOR COL_KEY,

    27 SY-VLINE ,28 IT_PLANT-PSTAT COLOR COL_NORMAL,

    43 SY-VLINE ,44 IT_PLANT-EKGRP COLOR COL_NORMAL.

    ENDLOOP.

    ENDIF.

    IF R2 EQ 'X'.

    SELECT EBELN EBELP MATNR WERKS LGORT

    FROM EKPO

    INTO TABLE IT_PONO

    WHERE EBELN IN S_EBELN.

    LOOP AT IT_PONO.

    WRITE : SY-VLINE , 2 IT_PONO-EBELN COLOR COL_KEY,

    12 SY-VLINE , 13 IT_PONO-EBELP COLOR COL_KEY,

    18 SY-VLINE , 19 IT_PONO-MATNR COLOR COL_NORMAL,

    37 SY-VLINE , 38 IT_PONO-WERKS COLOR COL_NORMAL,

    44 SY-VLINE , 45 IT_PONO-LGORT COLOR COL_NORMAL, 49 SY-VLINE..

    ENDLOOP.

    ENDIF.

    TOP-OF-PAGE.

    IF R1 EQ 'X'.

    *ULINE AT /1(48).

    WRITE : SY-VLINE ,2 'MATERIAL NUMBER',

    21 SY-VLINE , 22 'PLANT',

    27 SY-VLINE , 28 'STATUS',

    43 SY-VLINE , 44 'GRUP', 48 SY-VLINE.

    ULINE AT /1(48).

    ENDIF.

    IF R2 EQ 'X'.

    WRITE : SY-VLINE , 2 'PO NUMBER',

    12 SY-VLINE, 13 'ITEM',

    18 SY-VLINE,19 'MATERIAL NUMBER',

    37 SY-VLINE, 38 'PLANT',

    44 SY-VLINE, 45 'GRUP',

    49 SY-VLINE.

    ULINE AT /1(50).

    ENDIF.

    END-OF-PAGE.

    ULINE AT /1(50).

    WRITE :/10 'PAGE NUMBER', SY-PAGNO.

    <b>Reward if usefull</b>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.