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

SELECTION SCREEN ISSUES!

Former Member
0 Likes
1,084

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!!!

9 REPLIES 9
Read only

former_member195383
Active Contributor
0 Likes
924

chek if in your SELECT-OPTIONS "obligatory" is thr...if so...then remove the same....

Reward points if the above ans is useful...

Read only

Former Member
0 Likes
924

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

Read only

Former Member
0 Likes
924

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.

Read only

Former Member
0 Likes
924

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.

Read only

Former Member
0 Likes
924

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.

Read only

Former Member
0 Likes
924

use

chain

endchain

Read only

Former Member
0 Likes
924

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

Read only

Former Member
0 Likes
923

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.

Read only

Former Member
0 Likes
923

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