‎2007 Dec 12 10:53 AM
Hi,
I have a select-option s1 and the parameter p1.
if select -option s1 is blank , then the parameter p1 needs to be optional, else if select-option s1 has some values ,then the parameter p1 needs to be obligatory.
how do i specify this conditions?
Any help is rewarded.
Regds
Gautam
‎2007 Dec 12 11:00 AM
hi Gautam,
AT SELECTION-SCREEN.
IF s1 IS NOT INITIAL AND p1 IS INITIAL.
==> issue some message here that p1 has to bi filled.
ENDIF.
hope this helps
ec
‎2007 Dec 12 11:02 AM
I think it should be under AT SELECTION-SCREEN, since you want to check the user input at PAI, not PBO.
Cheers
Thomas
‎2007 Dec 12 11:04 AM
hi,
try this
TABLES : mara.
SELECT-OPTIONS : matnr FOR mara-matnr.
PARAMETERS : mtart LIKE mara-mtart.
DATA : f TYPE i.
AT SELECTION-SCREEN.
IF matnr IS INITIAL.
IF mtart IS INITIAL.
MESSAGE 'Enter in mtart' TYPE 'S'.
f = 1.
ENDIF.
ENDIF.
START-OF-SELECTION.
IF f <> 1.
WRITE:/ matnr.
ENDIF.
‎2007 Dec 12 11:05 AM
Hi,
do like this.
At selection-screen on S1.
If not s1 is initial.
message 'Enter value for p1'.
leave list-processing.
endif.
Regards,
Prashant
‎2007 Dec 12 11:07 AM
give modif id for s1.
at selection-screen output.
loop at screen.
if screen-group1 = 'SLN'.
if s1 is not initial.
p1-required = 1. "True
endif.
modify screen.
endloop.
i m not sure abt this......