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

selecting a radio button in selection screen should trigger a popup screen

PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio,

since i am using 4.5b version, i am unable to use the user-command in parameters. So please suggest some other option which can fulfile my requirement.

my requirement:

when i click radiobutton, it should display a popup window.

Thanks in advance,

victor

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 10:46 AM

    HI,

    do this way when rad1 = 'x' call FM <b>POP_UP_TO_CONFIRM</b>.<b>SY-UCOMM</b> should work in 4.5 version also

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 10:48 AM

    Hi cyrilvictor,

    1. I think it should work in 4.5 version also.

    2. Just try this simple code.

    3. It will give simple popup message.

    4.

    report abc.

    PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio,

    rad2 radiobutton group rad .

    *----


    at selection-screen.

    if sy-ucomm = 'RADIO'.

    message 'Hi' type 'I'.

    endif.

    regards,

    amit m.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 10:52 AM

    hii

    try this

    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'

    EXPORTING

    ENDPOS_COL = 30

    ENDPOS_ROW = 10

    STARTPOS_COL = 1

    STARTPOS_ROW = 1

    TITLETEXT = text-001

    • IMPORTING

    • CHOISE =

    TABLES

    VALUETAB = itab

    • EXCEPTIONS

    • BREAK_OFF = 1

    n this fm

    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

    EXPORTING

    I_TITLE = 'your message'

    • I_SELECTION = 'X'

    • I_ALLOW_NO_SELECTION =

    • I_ZEBRA = ' '

    • I_SCREEN_START_COLUMN = 0

    • I_SCREEN_START_LINE = 0

    • I_SCREEN_END_COLUMN = 0

    • I_SCREEN_END_LINE = 0

    • I_CHECKBOX_FIELDNAME =

    • I_LINEMARK_FIELDNAME =

    • I_SCROLL_TO_SEL_LINE = 'X'

    I_TABNAME = 'itab'

    • I_STRUCTURE_NAME =

    IT_FIELDCAT = i_field

    • IT_EXCLUDING =

    • I_CALLBACK_PROGRAM =

    • I_CALLBACK_USER_COMMAND =

    • IS_PRIVATE =

    • IMPORTING

    • ES_SELFIELD =

    • E_EXIT =

    TABLES

    T_OUTTAB = itab

    • EXCEPTIONS

    • PROGRAM_ERROR = 1

    • OTHERS = 2

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    POPUP_TO_DISPLAY_TEXT

    POPUP_TO_CONFIRM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 10:52 AM

    hi please follow the code in AT-SELECTION SCREEN OUTPUT THATS WHERE u need to perform pop up screen... u want to pop up a screen then just use the FM by selectin one according to ur requirement from SE 37, search POPUP

    <b>*Selection Screen 1

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

    PARAMETERS : P_FILE(25) TYPE C,

    O_FILE(25) TYPE C.

    SELECTION-SCREEN END OF BLOCK B1.

    *Selection Screen 2

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

    PARAMETERS: CAL_TRA RADIOBUTTON GROUP G1 USER-COMMAND FLAG,

    SESSION RADIOBUTTON GROUP G1 DEFAULT 'X'.

    SELECTION-SCREEN END OF BLOCK B2.

    *Selection Screen 3

    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-003.

    PARAMETERS: MODE DEFAULT 'X' MODIF ID BL1,

    UPDATE DEFAULT 'X' MODIF ID BL1.

    SELECTION-SCREEN END OF BLOCK B3.

    *Selection Screen 4

    SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-003.

    PARAMETERS: SES_NAM TYPE APQI-GROUPID MODIF ID BL2,

    KEP_TRAS TYPE C DEFAULT 'X' MODIF ID BL2,

    LOC_DATE TYPE SY-DATUM MODIF ID BL2,

    USER TYPE SY-UNAME DEFAULT SY-UNAME MODIF ID BL2.

    SELECTION-SCREEN END OF BLOCK B4.

    ************************************************************************

    • At Selection-Screen Output *

    ************************************************************************

    AT SELECTION-SCREEN OUTPUT.

    IF CAL_TRA = 'X'.

    LOOP AT SCREEN.

    IF SCREEN-GROUP1 = 'BL1'.

    SCREEN-ACTIVE = '1'.

    ENDIF.

    IF SCREEN-GROUP1 = 'BL2'.

    SCREEN-ACTIVE = '0'.

    ENDIF.

    MODIFY SCREEN.

    ENDLOOP.

    ENDIF.

    IF SESSION = 'X'.

    LOOP AT SCREEN.

    IF SCREEN-GROUP1 = 'BL1'.

    SCREEN-ACTIVE = '0'.

    ENDIF.

    IF SCREEN-GROUP1 = 'BL2'.

    SCREEN-ACTIVE = '1'.

    ENDIF.

    MODIFY SCREEN.

    ENDLOOP.

    ENDIF.</b>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 10:56 AM

    Hi,

    use below logic

    at selection-screen.

    if rb1 = 'X' .

    use FM

    POPUP_TO_CONFIRM

    endif.

    Regards,

    Amole

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 10:58 AM

    Check this program by executing...

    REPORT zpopup.
    
    PARAMETERS: p_rad1   RADIOBUTTON GROUP rad1 DEFAULT 'X'.
    PARAMETERS: p_rad2   RADIOBUTTON GROUP rad1.
    
    
    * At selection Screen Output Event
    AT SELECTION-SCREEN OUTPUT.
      IF p_rad2 EQ 'X'.
        MESSAGE i001(sd).
    * Use Pop Up FM if needed
      ENDIF.

    Cheers,

    Thomas.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 01:07 PM

    Victor

    As you say the USER-COMMAND option is new in 4.6. Therefore any process is dependant on another function key, (including ENTER) being pressed, for the appropiate Events (AT SELECTION-SCREEN ON rad1, AT SELECTION-SCREEN OUTPUT) to be processed.

    If the number of options in the radio button group is small could you use a FUNCTION KEY instead? you can set the text and icon dynamically. Develop from this:-

    REPORT ZZMATTG6. 
    TYPE-POOLS: ICON. 
    TABLES: SSCRFIELDS. 
    DATA: WA_FNTXT TYPE SMP_DYNTXT. 
    SELECTION-SCREEN FUNCTION KEY 1. 
    
    INITIALIZATION. 
    WA_FNTXT-ICON_ID = ICON_GREEN_LIGHT. 
    WA_FNTXT-ICON_TEXT = 'OK'. 
    WA_FNTXT-QUICKINFO = 'It is OK to press this'. 
    SSCRFIELDS-FUNCTTXT_01 = WA_FNTXT. 
    
    AT SELECTION-SCREEN. 
    CASE SSCRFIELDS-UCOMM. 
    WHEN 'FC01'. 
    ... 
    ENDCASE.

    MattG.

    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.