Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic select with field symbols

Hi guys,

I have 2 tables.

First table is the popup fields using fm popup_get_values:

tab1-tabname

tab1-fieldname

tab1-value

Second table is the input fields to be displayed in the popup box:

tab2-transactno

tab2-docno

tab2-customer

tab2-postdate

etc... (it has many fields)

Let's say currently i loop at tab2 and assign each value of the individual fields to a variable each:

loop at tab2

v_transactno = tab2-transactno

v_docno = tab2-docno

etc...

endloop.

My question is how do i assign each variable to the popup fields according to the fieldname so that it can get its corresponding value correctly?

How can this be done dynamically?

Can the loop above be done dynamically as well coz it has alot of fields to cater for?

Please help me solve this problem. Futher similar examples would be much appreciated as well.

Thank you very much!

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question