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

Converting a check box into a Radio Button on runtime.

Hi all,

Please, anybody clear my doubt.

Is it possible to convert a checkbox into a Radio Button (or vice versa)

while runtime. If yes, please let me know how can we do it..?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Feb 12, 2007 at 10:11 AM

    Hi,

    I don't it is possible.

    What is your requirement?

    What you can do is , simulate the error messages using your own code.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I think it is not possible, but you can try in different way.

      Display the checkbox, when a particular event occurs, make the check box invisible and make the radio button visible.

      Regards,

      Prasanth

      • reward if helpful

  • author's profile photo Former Member
    Former Member
    Posted on Feb 13, 2007 at 06:34 AM

    yes dear

    thats the way (prasanth saying) you can solve that

    try to undustant wahat i send code otherwise reply again

    SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE text-t00.

    SELECTION-SCREEN BEGIN OF LINE.

    PARAMETERS : pr_mold RADIOBUTTON GROUP r1 DEFAULT 'X' USER-COMMAND check.

    SELECTION-SCREEN COMMENT 6(20) text-101 FOR FIELD pr_mold.

    PARAMETERS : pr_casg RADIOBUTTON GROUP r1.

    SELECTION-SCREEN COMMENT 30(20) text-102 FOR FIELD pr_casg.

    PARAMETERS : pr_oven RADIOBUTTON GROUP r1.

    SELECTION-SCREEN COMMENT 57(20) text-103 FOR FIELD pr_oven.

    SELECTION-SCREEN END OF LINE.

    SELECTION-SCREEN END OF BLOCK B0.

    *

    *.Selection Screen for Mould Details

    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-t01.

    *

    SELECTION-SCREEN COMMENT 65(25) text-113 MODIF ID mld .

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-106 MODIF ID mld .

    PARAMETERS : pr_msze type ZMOULD_MAS-ZMLDSIZE MODIF ID mld .

    SELECTION-SCREEN COMMENT 65(25) text-107 MODIF ID mld .

    PARAMETERS : pr_cas1 type ZCASING_MAS-ZCASCODE MODIF ID mld .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-108 MODIF ID mld .

    PARAMETERS : pr_mmld type ZMOULD_MAS-ZMLDNAME MODIF ID mld .

    SELECTION-SCREEN COMMENT 65(25) text-109 MODIF ID mld .

    PARAMETERS : pr_cas2 type ZCASING_MAS-ZCASCODE MODIF ID mld .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-110 MODIF ID mld .

    PARAMETERS : pr_mpat type ZMOULD_MAS-ZMLDPATN MODIF ID mld .

    SELECTION-SCREEN COMMENT 65(25) text-111 MODIF ID mld .

    PARAMETERS : pr_cas3 type ZCASING_MAS-ZCASCODE MODIF ID mld .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-112 MODIF ID mld .

    PARAMETERS : pr_capa type ZMOULD_MAS-ZMLDCAPA MODIF ID mld .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN END OF BLOCK B1.

    *

    *

    *.Selection Screen for Casing Details

    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE text-t02.

    *

    SELECTION-SCREEN COMMENT 65(25) text-114 MODIF ID cas.

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-115 MODIF ID cas .

    PARAMETERS : pr_cstp type ZCASING_MAS-ZCASTYPE MODIF ID cas .

    SELECTION-SCREEN COMMENT 65(25) text-116 MODIF ID cas .

    PARAMETERS : pr_otp1 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 65(25) text-117 MODIF ID cas .

    PARAMETERS : pr_otp2 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 65(25) text-118 MODIF ID cas .

    PARAMETERS : pr_otp3 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 65(25) text-119 MODIF ID cas .

    PARAMETERS : pr_otp4 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 65(25) text-120 MODIF ID cas .

    PARAMETERS : pr_otp5 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 65(25) text-121 MODIF ID cas .

    PARAMETERS : pr_otp6 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 65(25) text-122 MODIF ID cas .

    PARAMETERS : pr_otp7 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 65(25) text-123 MODIF ID cas .

    PARAMETERS : pr_otp8 type ZOVEN_INV-ZOVNTYPE MODIF ID cas .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN END OF BLOCK B2.

    *

    *

    *.Selection Screen for Oven Details

    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE text-t03.

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-124 MODIF ID ovn .

    PARAMETERS : pr_ovtp type ZOVEN_INV-ZOVNTYPE MODIF ID ovn .

    SELECTION-SCREEN COMMENT 65(25) text-125 MODIF ID ovn .

    PARAMETERS : pr_ovds type ZOVEN_INV-ZOVNDESC MODIF ID ovn .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-126 MODIF ID ovn .

    PARAMETERS : pr_ovpy type ZOVEN_INV-ZOVNPROT MODIF ID ovn .

    SELECTION-SCREEN COMMENT 65(25) text-127 MODIF ID ovn .

    PARAMETERS : pr_ovuf type ZOVEN_INV-ZOVNUSFR MODIF ID ovn .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-128 MODIF ID ovn .

    PARAMETERS : pr_ovct type ZOVEN_INV-ZOVNCATG MODIF ID ovn .

    SELECTION-SCREEN COMMENT 65(25) text-129 MODIF ID ovn .

    PARAMETERS : pr_ovwc type ZOVEN_INV-ZWORKCNT MODIF ID ovn .

    SELECTION-SCREEN END OF LINE.

    *

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 2(25) text-130 MODIF ID ovn .

    PARAMETERS : pr_ovln type ZOVEN_INV-ZOVNLINE MODIF ID ovn .

    SELECTION-SCREEN COMMENT 65(25) text-131 MODIF ID ovn .

    PARAMETERS : pr_ovmd type ZOVEN_INV-ZOVNMDUL MODIF ID ovn .

    SELECTION-SCREEN END OF LINE.

    *

    *

    SELECTION-SCREEN END OF BLOCK B3.

    *

    SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE text-t04.

    PARAMETERS : pr_plant type ZOVEN_INV-ZOVNPLNT. " MODIF ID frm .

    PARAMETERS : pr_objid type ZOVEN_INV-ZOVNID." MODIF ID to .

    SELECTION-SCREEN END OF BLOCK B4.

    *

    *

    *----


    • Parameter Begin with PR_ *

    *----


    *----


    • I N I T I A L I Z A T I O N *

    *----


    *

    INITIALIZATION.

    SSCRFIELDS-FUNCTXT_01 = 'Clear Fields'.

    *

    *----


    • A T S E L E C T I O N S C R E E N *

    *----


    *

    AT SELECTION-SCREEN.

    *

    **&-- Clear all fields

    CASE SSCRFIELDS-UCOMM.

    WHEN 'FC01'.

    PERFORM CLEAR_FIELDS.

    ENDCASE.

    *

    AT SELECTION-SCREEN OUTPUT.

    *

    LOOP AT SCREEN.

    IF pr_mold = 'X'.

    IF SCREEN-GROUP1 = 'CAS' OR SCREEN-GROUP1 = 'OVN'.

    SCREEN-ACTIVE = '0'.

    ENDIF.

    *

    ELSEIF pr_casg = 'X'.

    IF SCREEN-GROUP1 = 'MLD' OR SCREEN-GROUP1 = 'OVN'.

    SCREEN-ACTIVE = '0'.

    ENDIF.

    *

    ELSEIF pr_oven = 'X'.

    IF SCREEN-GROUP1 = 'MLD' OR SCREEN-GROUP1 = 'CAS'.

    SCREEN-ACTIVE = '0'.

    ENDIF.

    *

    ENDIF.

    *

    *

    MODIFY SCREEN.

    ENDLOOP.

    Rewads if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 03:07 PM

    Hi,

    The following demo program shows changes to the selection screen on a click of a pushbutton.

    You will see that the screen has three different select options (WBS element, cost centre and internal order). Only one of these is visible at any time. You change which select-option is visible by clicking on a pushbutton. You should be able to adapt the ideas to suit you purposes.

    By the way, the pushbutton texts are:

    Select by WBS element

    Select by cost centre

    Select by internal order

    REPORT YJNM_DYNAMIC_SELSCR2.

    data:

    posid_active like screen-active,

    kostl_active like screen-active,

    aufnr_active like screen-active,

    ucomm like sscrfields-ucomm,

    selby like sscrfields-ucomm. "last-clicked button

    tables:

    sscrfields,

    prps,

    csks,

    aufk.

    selection-screen begin of line.

    selection-screen pushbutton (24) t_posid user-command POSID.

    select-options: s_posid for prps-posid.

    selection-screen end of line.

    selection-screen skip.

    selection-screen begin of line.

    selection-screen pushbutton (24) t_kostl user-command KOSTL.

    select-options: s_kostl for csks-kostl.

    selection-screen end of line.

    selection-screen skip.

    selection-screen begin of line.

    selection-screen pushbutton (24) t_aufnr user-command AUFNR.

    select-options: s_aufnr for aufk-aufnr.

    selection-screen end of line.

    ----


    at selection-screen.

    • store sscrfields-ucomm value before it evaporates

    ucomm = sscrfields-ucomm.

    ----


    at selection-screen output.

    • determine the "active" values to use

    move '0' to:

    posid_active,

    kostl_active,

    aufnr_active.

    case ucomm.

    when 'POSID'.

    selby = ucomm.

    posid_active = '1'.

    when 'KOSTL'.

    selby = ucomm.

    kostl_active = '1'.

    when 'AUFNR'.

    selby = ucomm.

    aufnr_active = '1'.

    when others.

    endcase.

    • apply the "active" values

    loop at screen.

    if screen-name cp 'S_POSID'.

    screen-active = posid_active.

    modify screen.

    elseif screen-name cp 'S_KOSTL'.

    screen-active = kostl_active.

    modify screen.

    elseif screen-name cp 'S_AUFNR'.

    screen-active = aufnr_active.

    modify screen.

    endif.

    endloop.

    ----


    initialization.

    ucomm = 'POSID'. "set initial select-option

    t_posid = text-001. "pushbutton text

    t_kostl = text-002. "pushbutton text

    t_aufnr = text-003. "pushbutton text

    ----


    start-of-selection.

    write: / 'Last-clicked button identifier:', selby.

    Hope that helps,

    John

    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.