Application Development and Automation 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: 
Read only

Selection Screen

Former Member
0 Likes
520

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

6 REPLIES 6
Read only

Former Member
0 Likes
503

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

Read only

former_member156446
Active Contributor
0 Likes
503

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.

Read only

Former Member
0 Likes
503

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

Read only

Former Member
0 Likes
503

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

Read only

Former Member
0 Likes
503

To manipulate the selection screen you have to use AT SELECTION SCREEN OUTPUT.

Read only

Former Member
0 Likes
503

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