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

Retrieving values from table control using DYNP_VALUES_READ

Former Member
0 Likes
687

Hi all,

I am trying to retrieve the values from the table control using the FM DYNP_VALUES_READ. I have a situation where user enter values in table control in T.code FB60 in Withholding tab for validation purpose. There i'll have to check based on some entries maintained in SET.

I am unable to get the values when i scroll to the next page in the table control. FM raising an exception invalid_dynprofield.

Expecting reply...

3 REPLIES 3
Read only

Former Member
0 Likes
471

You have to populate the dynpfields internal table before calling the function,

data: repid like sy-repid.

dynpfields-fieldname = 'PNAME'.

append dynpfields.

repid = sy-repid.

call function 'DYNP_VALUES_READ'

exporting

dyname = repid

dynumb = sy-dynnr

tables

dynpfields = dynpfields

exceptions

others.

read table dynpfields index 1.

pname = dynpfields-fieldvalue.

Now you will have the field value in pname

Hope this helps

Vinodh Balakrishnan

Read only

0 Likes
471

Yes Vinodh,

I am able to get the values entered in the first page of the table control, when i try to enter the values in the second page of the table control again STEPL index is set to 1 for the first row. I want to retrieve the value based on the line number or STEPL in DYNPREAD.

Read only

Former Member
0 Likes
471

Hi Ravi Shankar,

I had the same problem, try to use the command GET CURSOR LINE.

Regards.