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

at selection-screen output.

Former Member
0 Likes
932

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
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
907

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

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
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
908

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

Read only

Former Member
0 Likes
907

SELECT-OPTIONS PMATNR FOR MARA-MATNR.

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

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

Read only

former_member404244
Active Contributor
0 Likes
907

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

Read only

Former Member
0 Likes
907

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.

Read only

Former Member
0 Likes
907

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.

Read only

Former Member
0 Likes
907

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.