Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue related to Dialog Programming

Hi All,

I have a Issue related to Dialog Programming.

I have one screen developed.

in that one in input field.

all other's are display only fields.

When i give some entry in INPUT field.

Based on that data the other display-ble fields should be filled in same screen.

I am not able to the same though all the code i have written.

Can anybody tell me the reason & solution for the same.

I have written follow code when i press ENTER.

It is going inside also fetching data.

I tried to push the data directly into screen fields, as well as using <b>'DYNP_UPDATE_FIELDS'</b>

both are not working though data is coming through.

Can anybody give the solution.

<b> WHEN 'ENTE'.


FROM zexport_header

INTO TABLE i_header

WHERE zzexgen = v_zzexgen.

IF sy-subrc EQ 0.

READ TABLE i_header INDEX 1.

IF sy-subrc EQ 0.

  • 1st Way of pushing data in to screen fields

v_zzexgen = i_header-zzexgen.

v_zzgeart = i_header-zzgeart.

v_modco = i_data-modco.

v_zzgmaxw = i_header-zzgmaxw.

  • v_zzchgamt = i_header-zzchgamt.

v_zzgaufw = i_header-zzgaufw.

  • 2nd Way of pushing data in to screen fields

CLEAR: i_updfld[], i_updfld.

i_updfld-fieldname = 'V_ZZEXGEN'.

i_updfld-fieldvalue = i_header-zzexgen.

APPEND i_updfld.

i_updfld-fieldname = 'V_ZZGEART'.

i_updfld-fieldvalue = i_header-zzgeart.

APPEND i_updfld.

i_updfld-fieldname = 'V_MODCO'.

i_updfld-fieldvalue = i_data-modco.

APPEND i_updfld.

i_updfld-fieldname = 'V_ZZGMAXW'.

i_updfld-fieldvalue = i_header-zzgmaxw.

APPEND i_updfld.

  • i_updfld-fieldname = 'V_ZZCHGAMT'.

  • i_updfld-fieldvalue = i_header-zzchgamt.

  • APPEND i_updfld.

i_updfld-fieldname = 'V_ZZGAUFW'.

i_updfld-fieldvalue = i_header-zzgaufw.

APPEND i_updfld.



dyname = v_subdyname

dynumb = v_subdynumb


dynpfields = i_updfld.



Can anybody give me the solution for the above.

Thanks in advance.

Thanks & Regards,


Former Member
Former Member replied


That is the problem with DYNP_UPDATE_FIELDS.

You will have to move the currency fields to character and then update.


data : lv_curr_char(14).

MOVE lv_curr to lv_curr_char.

Hope it helps.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question