Skip to Content
author's profile photo Former Member
Former Member

How to assign Field dynpros values

Hi Xprts,

I developed an ampliaton to the tcode xk01, i have a dynpro with two lfa1 fields, i need to get the frist field value and call a function to return another value and update the other field, how can i get the values of the these dynpro fields, and how can i update these values too. i already try with field symbols, and assigning the 'program-table-field' to a variable, but no one returns values. pls hlp me.

Tnxs,

Steve.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2007 at 03:58 AM

    Hi Steve,

    You can read the values of the DynPro fields using the variable you assigned for the attribute 'value' while designing your screen.

    To set the values for a particular field, simply set the variable associated with the value attribute of the target inputfield. If that does not work, try the following function module.

    data: lt_dyfields type standard table of dynpread,
          ls_dyfields type dynpread,
    
      ls_dyfields-fieldvalue = value_you_want_to_set.
      ls_dyfields-fieldname = 'FIELD_NAME'.
    
      append ls_dyfields to lt_dyfields.
    
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = sy-cprog
          dynumb     = sy-dynnr
        tables
          dynpfields = lt_dyfields.

    Please post back in case of issues.

    Regards,

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 11:30 PM

    Hi Steve,

    Check if these fields have the parameter ID assigned to them. Then you can use SET PARAMETER ID to pass value, and GET PARAMETER ID to get the value.

    Reward points if useful.

    Regards,

    Atish

    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.