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 output.

Former Member
0 Kudos
156

Hi frnds,

In the below selection screen.

SELECT-OPTIONS PMATNR FOR MARA-MATNR.

SELECT-OPTIONS PSORG FOR MVKE-VKORG NO INTERVALS.

PARAMETERS PEXCLU LIKE MARA-MTART.

According to my client's requirement , when PEXCLU value is given as ZPRT or ZMAT ,then sales org PSORG must become mandatory.

I promise to reward.

1 ACCEPTED SOLUTION

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Kudos
131

Hi,



AT SELECTION-SCREEN OUTPUT.
IF pexclu = 'ZPRT' or pexclu = 'ZMAT'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'PSORG'.
SCREEN-REQUIRED = 1. " this makes a field mandatory
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

AT SELECTION-SCREEN.

Regards,

Sesh

6 REPLIES 6

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Kudos
132

Hi,



AT SELECTION-SCREEN OUTPUT.
IF pexclu = 'ZPRT' or pexclu = 'ZMAT'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'PSORG'.
SCREEN-REQUIRED = 1. " this makes a field mandatory
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

AT SELECTION-SCREEN.

Regards,

Sesh

Former Member
0 Kudos
131

SELECT-OPTIONS PMATNR FOR MARA-MATNR.

SELECT-OPTIONS PSORG FOR MVKE-VKORG NO INTERVALS OBLIGATORY.

PARAMETERS PEXCLU LIKE MARA-MTART DEFAULT VALUE "ZPRT".

former_member404244
Active Contributor
0 Kudos
131

Hi,

do like this

AT SELECTION-SCREEN OUTPUT.

IF pexclu = 'ZPRT' or pexclu = 'ZMAT'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'PSORG'.

SCREEN-REQUIRED = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Regards,

Nagaraj

Former Member
0 Kudos
131

hi,

try like this,

SELECT-OPTIONS PMATNR FOR MARA-MATNR.

SELECT-OPTIONS PSORG FOR MVKE-VKORG NO INTERVALS.

PARAMETERS PEXCLU LIKE MARA-MTART.

at selection-screen output on PEXCLU.

or

at selection-screen on PEXCLU.

screen-name = 'PSORG'.

MODIFY SCREEN.

if PEXCLU = 'ZPRT' OR PEXCLU = 'ZMAT'.

loop at screen.

SCREEN-REQUIRED = 1.

MODIFY SCREEN.

ENDLOOP.

IF HELPFUL REWARD SOME POINTS.

WITH REGARDS,

Suresh Aluri.

Former Member
0 Kudos
131

Hi,

Try this.

Loop at screen .

check if parameter value is not initial

IF screen-name = 'Selection field'.

screen-required = 1.

MODIFY SCREEN.

endif.

endloop.

Former Member
0 Kudos
131

Hi,

Use this, it works

AT SELECTION-SCREEN OUTPUT.

IF PEXCLU = 'ZPRT' OR PEXCLU = 'ZMAT'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'PSORG-LOW'.

SCREEN-REQUIRED = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.