‎2006 Aug 29 3:34 PM
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.
‎2006 Aug 29 3:36 PM
you write the code to initialise the particular description field in AT SELECTION SCREEN event.
Regards
Anurag
‎2006 Aug 29 3:40 PM
‎2006 Aug 29 3:46 PM
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.
‎2006 Aug 29 3:46 PM
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