‎2005 May 06 9:39 AM
Hi,
My doubt is
I have 2 inputs matnr and maktx(parameters)
On the Selection Screen when i enter matnr, I shld get the corresponding text(maktx) from makt into the 2nd input field when i press tab. One exception Enter Key shld not be used.
Im using the standard selection screen.Below i have attached my code which is not giving the desired output.
tables: MARA,makt.
Parameters: MATNR like MARA-MATNR ,
maktx like makt-maktx .
at selection-screen output. "on value-request for matnr.
select single maktx into maktx
from makt
where matnr = matnr
and spras = sy-langu.
‎2005 May 06 9:42 AM
Hello ,
Use the FM given below.
DYNP_VALUES_READ Read the values from a dynpro. This function can be used to read the values from a report's selection screen too (Another example).
DYNP_VALUES_UPDATE Similar to DYNP_VALUES_READ, this function will allow the updating of fields on a dynpro. Very useful when you want to change a field based on the value entered for another field.
Let me know if it helps.
Manohar
‎2005 May 06 10:30 AM
Hello,
I am not sure if that is possible. Pressing the TAB key does not send any request to the server i.e. does not start the new dialog step. ENTER key does.
Switch the debugging mode on and see what happens after pressing TAB key or ENTER key.
Regards,
Michal
‎2005 May 06 3:02 PM
Hi Santhosh,
I suppose this is possible only on two cases .
1) By Pressing 'Enter'
2) Using F4 to select values for MATNR.
Regards,
Immanuel.
‎2005 May 09 10:15 AM
Hi,
Yes it is possible in only cases , as mentioned by u.
I want to implement it using the second case. Help frm Manohar was useful, but im finding it difficult.
If u could help me with that.
bye.
‎2005 May 09 10:38 AM
DATA: DYNAME LIKE D020S-PROG,
DYNUMB LIKE D020S-DNUM.
Dyname = sy-repid.
dynumb = sy-DYNNR.
DYNPFIELDS-FIELDNAME = 'MATNR??'.
APPEND DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = DYNAME
DYNUMB = DYNUMB
TABLES
DYNPFIELDS = DYNPFIELDS
Simaly for DYNP_VALUES_UPDATE.
DYNFIELDS will ahve othr field name.
Let me if it helps you.
Rgds,
Manohar
‎2006 May 19 6:03 PM
Hi!
How can a I use DYNP_VALUES_READ to read a value from a tabstrip control, if the tab where the field is located isn't active.
Thanks for your help.
Dairo