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 processing help

Former Member
0 Likes
668

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.

6 REPLIES 6
Read only

Former Member
0 Likes
629

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

Read only

Former Member
0 Likes
629

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

Read only

Former Member
0 Likes
629

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.

Read only

0 Likes
629

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.

Read only

0 Likes
629

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

Read only

Former Member
0 Likes
629

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