Skip to Content
0
Former Member
Mar 09, 2009 at 06:58 AM

At selection screen output problem

810 Views

Hi All,

I have one requirement to disable all selection fields in one output block while selecting the first radio buttona and need to enable all fields while selecting the second radio button.

But its not working as per the below code.

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

  • Selection Screen Declaration

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

*********Radiobuttons for projects

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS :p_act RADIOBUTTON GROUP pro DEFAULT 'X',

p_purch RADIOBUTTON GROUP pro .

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

  • Project definition

SELECT-OPTIONS: s_posid FOR prps-posid MATCHCODE OBJECT prsm." OBLIGATORY NO INTERVALS NO-EXTENSION.

  • WBS Element

SELECT-OPTIONS: s_pspnr FOR prps-pspnr MATCHCODE OBJECT prsm.

*Network

SELECT-OPTIONS : s_nplnr FOR ekkn-nplnr.

*Activity

*SELECT-OPTIONS : s_vornr FOR afvc-vornr.

  • Vendor

SELECT-OPTIONS: s_lifnr FOR ekko-lifnr MATCHCODE OBJECT kred.

*Cost centre

SELECT-OPTIONS: s_akstl FOR prps-akstl.

*Document Posting Date

*SELECT-OPTIONS: s_

SELECTION-SCREEN END OF BLOCK b2 .

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.

SELECT-OPTIONS: s_aedat FOR ekkn-aedat MODIF ID mo1,

s_ebeln FOR ekkn-ebeln MODIF ID mo1.

  • Orders category

PARAMETERS: s_all RADIOBUTTON GROUP off DEFAULT 'X' MODIF ID mo1,

s_open RADIOBUTTON GROUP off MODIF ID mo1,

s_closed RADIOBUTTON GROUP off MODIF ID mo1.

SELECTION-SCREEN END OF BLOCK b3.

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.

PARAMETERS: p_fiinvo AS CHECKBOX .

SELECTION-SCREEN END OF BLOCK b4.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_act = 'X' AND

screen-group1 = 'MO1'.

screen-input = '0'.

MODIFY SCREEN.

ELSEIF p_purch = 'X' AND screen-group1 <> 'MO1'.

screen-input = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

I need to press enter to work it out and automatcally not working.

Please suggest a solution.

Thanks in advance.