Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

8 REPLIES 8

Sm1tje
Active Contributor
0 Kudos

use the radio button user command.

Former Member
0 Kudos

HI

u can put check SY-UCOMM NE 'ONLI'

0 Kudos

Hi All,

Thanks a lot for your help.

i missed the small logic of checking sy-ucomm.

I did it and its working.

Thanks everyone.

Regards,

Simha

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

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

Former Member
0 Kudos

<removed_by_moderator>

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

Former Member
0 Kudos

<removed_by_moderator>

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