‎2008 Jun 19 9:01 AM
Hi experts,
I have this selection screen, and at the top I have two fields (material code and supplier code). I have made this so that when I put material code and press enter I have another field besides it which displays the material description.
The same goes with the supplier code.....
But recently I made in the screen two fields required, thats the problem now cause when I press enter I dont see the description but it "tells" me to complete first the required fields. Of course if I do it then it displays the description!!!
Is there a way to see the descriptions (there is an event behind) and then to continue with the others fields? In spite of the fact that some of them are "required"?
thank you!!!
‎2008 Jun 19 9:04 AM
chek if in your SELECT-OPTIONS "obligatory" is thr...if so...then remove the same....
Reward points if the above ans is useful...
‎2008 Jun 19 9:05 AM
Hi,
If you set the 2 fields as mandatory then you will have to enter them first , as this if the first check performed by the system. It proceeds to the other events after this check is passed.
Regards
Arun
‎2008 Jun 19 9:26 AM
Hi,
If the selection screen fields are given as mandatory, we need to fill them first.
Instead, remove the mandatory conditions on both fields.
If field1 is entered; field2 is blank and ENTER is pressed, display the desctiption1.
If field1 is entered; field2 is entered and ENTER is pressed, display desc1 and desc2.
If field1 is blank; field2 is entered and ENTER is pressed, display desc2.
regards,
teja.
‎2008 Jun 19 9:28 AM
hi,
try this >
remove the OBLGATORY option of screen parameter.
& you can use event AT SELECTION-SCREEN on to check if there is value entered or not.
if no value is entered in mandatory field you can display a error message in same event.
AT SELECTION-SCREEN ON s_field.
IF s_field IS INITIAL
MESSAGE e001.
ENDIF.
‎2008 Jun 19 1:18 PM
Hi,
you can remove the Obligatory statement .
And at selection screen event check the sy-ucomm code of F8.
Then check if the field is empty then throw error message.
for e.g.
Parameter: P1 type c length 8.
AT SELECTION-SCREEN.
if sy-ucomm = 'ONLI'.
if p1 is initial.
message 'message ' type 'E'.
endif.
endif.
I hope this will help you out.
Help children of U.N World Food Program by rewarding points and encourage others to answer your queries.
‎2008 Jun 19 1:57 PM
‎2008 Jun 24 1:43 PM
hi
try this.
remove the obligatory addition if any.
AT SELECTION-SCREEN ON <FIELD1>.
if p_field1 is initial.
message e001(class).
else.
<description code>.
endif.
AT SELECTION-SCREEN ON <FIELD2>.
if p_field2 is initial.
message e001(class).
else.
<description code>.
endif.
This will definetly work.
Reward if useful
Regards
Sumit Agarwal
‎2008 Jun 25 10:27 AM
Hi.
When we have some mandatory fields in a selection screen, first we need to fill all these fields.
then only we can see next options.
if you want to it otherwise i.e. after filling one field you want to see the field beside it.
Remove obligatory option. After this it will work fine.
‎2008 Jun 27 2:24 AM
Hey as you made both fields Mandatory the error message is of type 'E' occurs in the PBO event and the display u want to see happens in the PAI event so u have to see that u can give the code what u want in the PBO event.
Regards
Devanand