Application Development 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: 

Hello experts help me in using at selection-screen.

Former Member
0 Kudos

i am using like ........

at selection-screen on s_werks.

................

.....

then i am checking for another selection screen field like

if 10 in s_bwart or 20 in s_bwart.

if 99 not in s_bwart and 191 in s_bwart.

s_bwart-low = 99.

append s_bwart.

s_bwart-low = 191.

append s_bwart.

endif.

endif.

Eventhough if i inputed bwart value in the selection screen it is not showing while debugging, and results also not comming ie s_bwart is not populated by the vaules that are entered at the selection screen. If i remove at selection-screen on s_matnr then the s_bwart is having values. so please kindly tell me why it is happening like this . i want to use at selection-screen on field and also like above if 10 in s_bwart ...etc.

So please tell me what to do. Thank you so much.

2 REPLIES 2

Former Member
0 Kudos

Hi

At selection-screen On <field> is used to validate the fields and to give some error messages if the condition is not met

Write the code in the at selection-screen on S_BWART.

event and see

here in this case you are appending the values to s_bwart.

it will come into the field

Regards

Anji

Former Member
0 Kudos

The reason why you are not seeing those values is because the values are still not finalized in an at selection screen event. You have to use DYNP_VALUES_READ to read the values entered in the screen or do it in the start-of-selection as the first thing.