08-26-2009 9:14 PM
Hello,
I searched through the questions and did not find a question comparable to what i am looking for.
I want to have a radio button selection screen. Based on the radio button they choose,
then display further selection criteria for that button( plant, material, etc...). Seems like this event would
occur after initialization and before start-of-selection.
If there are questions just like this, please forward them link to me.
Thanks so much!!!
Steve
08-27-2009 7:04 AM
Hi,
You need to write the code in the at selection screen output event.
You have to use the LOOP at Screen and modify screen for this.
this is just a sample code.
loop at screen.
if screen-name = 'P_LIFNR'
or screen-name = 'P_ALTKN'
screen-input = 1.
or
screen-input = 0.
modify screen.
endif.
endloop.
Regards
Ansari
08-26-2009 10:50 PM
Hello Stephen, I see that you have double-posted by error. You may ask the moderators to remove this duplicate by clicking the abuse button, just explain them, they are nice
Thank you
08-27-2009 12:22 AM
08-27-2009 6:58 AM
Hi,
try this code,
REPORT ZTEST_3RB.
TABLES : KNA1,EKKO,VBRK.
PARAMETERS : SALES RADIOBUTTON GROUP VIJJ USER-COMMAND VJY ,
PUR RADIOBUTTON GROUP VIJJ ,
BILL RADIOBUTTON GROUP VIJJ ,
TOTAL AS CHECKBOX.
SELECT-OPTIONS : S_CUSTNO FOR KNA1-KUNNR MODIF ID AKP DEFAULT 1000 TO 1033,
S_PONO FOR EKKO-EBELN MODIF ID VKP,
S_BNO FOR VBRK-VBELN MODIF ID PKP.
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SALES = 'X'.
IF SCREEN-GROUP1 = 'VKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'PKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ELSEIF PUR = 'X'.
IF SCREEN-GROUP1 = 'PKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'AKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ELSEIF BILL = 'X'.
IF SCREEN-GROUP1 = 'AKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'VKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
i think this will solve your problem,
Regards,
Vijay
08-27-2009 7:04 AM
Hi,
You need to write the code in the at selection screen output event.
You have to use the LOOP at Screen and modify screen for this.
this is just a sample code.
loop at screen.
if screen-name = 'P_LIFNR'
or screen-name = 'P_ALTKN'
screen-input = 1.
or
screen-input = 0.
modify screen.
endif.
endloop.
Regards
Ansari