‎2007 Dec 28 4:54 AM
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...
‎2007 Dec 28 5:11 AM
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
‎2007 Dec 28 5:24 AM
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.
‎2011 Jun 03 4:52 PM
Hi Ravi Shankar,
I had the same problem, try to use the command GET CURSOR LINE.
Regards.