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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 06, 2015 at 06:51 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.