‎2008 May 10 7:10 AM
Hi Frd
My customer requriment is ,Having two selection screen parameters as plant and company code....If the user enter the plant code and pressing enter ....then the company code selection box should automatically disable....
thanks
By
pari
‎2008 May 10 7:13 AM
Hi,
Follow the steps.
1.Select-options/parameter to take thge input.
2.Use event AT LINE-SELECTION.(validations)
3.If company code is zero.
then input-invisible is 1.(use input validations)
Regards,
Chandu
‎2008 May 10 7:14 AM
check this sample code:
parameters: rb_alv radiobutton group g1 user-command inv default 'X',
rb_file radiobutton group g1,
*file path parameters
p_unix(200) lower case modif id i1 default
'/usr/sap/interfaces/query/',
p_pc type rlgrap-filename modif id i1
parameters: p_name type char15 modif id i3 default 'ALM_TRANST02',
p_ext type char4 modif id i3 default '.txt'.
at selection-screen.
loop at screen.
if p_plant is intial.
if screen-group1 = 'I1' or screen-group1 = 'I3' .
screen-active = 0.
modify screen.
endif.
endif.
endloop.
‎2008 May 10 7:20 AM
Hi Pari,
Use the below code.
parameters a type c MODIF ID ABC.
parameters B type c MODIF ID DEF.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
IF B is NOT INITIAL.
SCREEN-ACTIVE = 0.
ELSE.
SCREEN-ACTIVE = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'DEF'.
IF A is NOT INITIAL.
SCREEN-ACTIVE = 0.
ELSE.
SCREEN-ACTIVE = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Reward if helpful
Manish
‎2008 May 10 10:29 AM
HI CHECK THIS..
REPORT ZVENKATTEST0.
TABLES:BSIS.
SELECT-OPTIONS:S_WERKS FOR BSIS-WERKS MODIF ID M1 ,
S_BUKRS FOR BSIS-BUKRS MODIF ID M2 .
AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN.
IF NOT S_BUKRS IS INITIAL.
IF SCREEN-NAME = 'S_WERKS-LOW' .
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'S_WERKS-HIGH' .
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
IF NOT S_WERKS IS INITIAL.
IF SCREEN-NAME = 'S_BUKRS-LOW' .
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'S_BUKRS-HIGH' .
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
REGARDS,
VENKAT
‎2008 May 10 3:53 PM
To manipulate the selection screen you have to use AT SELECTION SCREEN OUTPUT.
‎2008 May 12 7:10 AM
parameters : p_plant type....,
p_code type....
at selection-screen on p_plant.
if p_plant is not initial.
loop at screen.
if screen-name = 'P_CODE'.
screen-input = '0'.
screen-active = '0'.
modify screen.
else.
screen-input = 1.
screen-active = 1.
modify screen.
endif.
endloop.
also refer to this link :
http://help.sap.com/saphelp_nw04/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm