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

about selection screen validation

Former Member
0 Likes
559

Hi all,

I have query regarding a selection screen.

I have one field in a selection screen where i ve put the matnr field as a parameter from MARA table.

My requirement is that when I will select any material by pressing F4 and select the value the corresponding material description will come automatically in another field which I had taken in the Selection screen.I must get it automatically without any push button or execute button.

Now where I have to write the logic of the code and at which event of the report .

Please experts help me.

With regards,

Abir.

4 REPLIES 4
Read only

Former Member
0 Likes
515

you write the code to initialise the particular description field in AT SELECTION SCREEN event.

Regards

Anurag

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
515

If you want this field to be populated when the selection-screen is displayed, you can do it in the INITIALIZATION event or the AT SELECTION-SCREEN OUTPUT event.

parameters: p_val type i.

initilization.

 p_val = 100.

Regards,

Rich Heilman

Read only

former_member195698
Active Contributor
0 Likes
515

If you want the description to be populated in the field without triggering any event. Then instead of standard F4 write ur custom F4 help. And based on the selection update the Desc field using the FM 'DYNP_VALUES_UPDATE'.

But this will not work, if you directly enter a value in the Material field, without pressing F4.

Read only

Former Member
0 Likes
515

REPORT ZSRIM_TEMP10.

tables : mara,makt.

data : v_maktx type makt-maktx.

parameters : p_matnr type mara-matnr,

p_maktx type makt-maktx.

AT SELECTION-SCREEN OUTPUT.

if p_matnr is not initial.

select single maktx from makt into v_maktx

where matnr = p_matnr and spras = sy-langu.

p_maktx = v_maktx.

endif.

I am sorry, this code will works only if you click any enter key etc.. then only Description will appear.

Regards

Srikanth.

Message was edited by: Srikanth Kidambi