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

at selection-screen on radiobutton group is triggering again on execute??

Hi Friends,

I want to show a Information pop up on selection of a radio button for that i have done

AT SELECTION-SCREEN ON RADIOBUTTON GROUP RG.
  IF P_UPL = 'X'.

    CALL FUNCTION 'POPUP_TO_INFORM'
      EXPORTING
        TITEL = TEXT-017
        TXT1  = TEXT-015
        TXT2  = TEXT-016.

  ENDIF.

I have two radio buttons and second radio button is P_UPL. Its working fine.

But same event is getting triggered when execute button is pressed( i mean when report is executed ), which i don't want.

How to restrict.

Any help is greately appreciated.

Thanks,

Simha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 08:44 AM

    Try this,

    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RG.
      MOVE sy-ucomm TO sscrfields-ucomm.
      CHECK sscrfields-ucomm NE 'ONLI'.
    
      IF P_UPL = 'X'.
     
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            TITEL = TEXT-017
            TXT1  = TEXT-015
            TXT2  = TEXT-016.
     
      ENDIF.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2008 at 08:40 AM

    use the radio button user command.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 08:40 AM

    HI

    u can put check SY-UCOMM NE 'ONLI'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 08:43 AM

    when the event is clicked for the first time .

    Initiate the before the popup is called .

    Now when again when you execute and p_upl = 'X'

    check the falg if value then don't call the pop-up .

    and clear the flag at that moment .

    So the Popup fun is ignored when you click execute event .

    SEE THE lines in bold .

    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RG.

    IF P_UPL = 'X'.

    if v_flag is initial.

    v_flag = 'X'.

    CALL FUNCTION 'POPUP_TO_INFORM'

    EXPORTING

    TITEL = TEXT-017

    TXT1 = TEXT-015

    TXT2 = TEXT-016.

    ENDIF.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 08:47 AM

    Hi,

    Instead of using At Selection-Screen use At Selection-Screen ON RADIOBUTTON GROUP G1.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 09:34 AM

    <removed_by_moderator>

    Edited by: Julius Bussche on Aug 14, 2008 11:03 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2008 at 10:13 AM

    <removed_by_moderator>

    Edited by: Julius Bussche on Aug 14, 2008 11:04 AM

    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.