2007 Sep 05 11:27 AM
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.
2007 Sep 05 11:32 AM
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
2007 Sep 05 11:32 AM
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
2007 Sep 05 11:33 AM
SELECT-OPTIONS PMATNR FOR MARA-MATNR.
SELECT-OPTIONS PSORG FOR MVKE-VKORG NO INTERVALS OBLIGATORY.
PARAMETERS PEXCLU LIKE MARA-MTART DEFAULT VALUE "ZPRT".
2007 Sep 05 11:34 AM
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
2007 Sep 05 11:34 AM
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.
2007 Sep 05 11:40 AM
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.
2007 Sep 05 11:53 AM
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.