Skip to Content

dynp_values_read not working when i scroll in table control

Hi,

Please help me on this.

My requirement is , to read first column value in table control and based on that value , F4 help should assign to another column in same table.

I made all these using 'DYNP_VALUES_READ' .

Table control is built without wizard in pop_up screen for a standard screen enhancement. So we appending rows manually in PBO.

When i scroll down and select F4 , it is throwing dump 'INVALID DYNPROFIELD'.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jan 08, 2015 at 07:15 AM

    Hi all,

    Thanks for replies.

    Issue is resolved.

    Just need to pass current line to Stepl(I.e., line number in current visible lines).

      GET CURSOR LINE LIN.

       W_VALUES-FIELDNAME = 'W_WCM-ZE_F_N'.

       W_VALUES-STEPL = LIN.

       APPEND W_VALUES TO T_VALUES.

       CLEAR W_VALUES.

       CLEAR FLI.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 12:02 PM

    Dear,

    On scroll down or page down, table index get changed. You are trying to append in a loop and index for beyond the table lines being shown. Try with page down and use reset your cursor index like 1.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 05, 2015 at 01:17 PM

    Hi Gopi,

    What parameters did you passed in DYNP_VALUES_READ?  If you hard coded any values in below parameters try to use system variables instead of hard coding...

                   dyname    = 'SAPLMEGUI'"'SAPLSZA1'

                   dynumb     = '0014'     "'0301'

    Use system variables like below.

         CALL FUNCTION 'DYNP_VALUES_READ'

              EXPORTING

                   dyname     = sy-cprog

                   dynumb     = sy-dynnr

              TABLES

                   dynpfields = h_dynpfields

              EXCEPTIONS

                   OTHERS     = 1.

    Thanks,

    Ashok.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2015 at 06:51 AM
    Add comment
    10|10000 characters needed characters exceeded