Issue related to Dialog Programming
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'.
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.
i_updfld-fieldname = 'V_ZZGEART'.
i_updfld-fieldvalue = i_header-zzgeart.
i_updfld-fieldname = 'V_MODCO'.
i_updfld-fieldvalue = i_data-modco.
i_updfld-fieldname = 'V_ZZGMAXW'.
i_updfld-fieldvalue = i_header-zzgmaxw.
i_updfld-fieldname = 'V_ZZCHGAMT'.
i_updfld-fieldvalue = i_header-zzchgamt.
i_updfld-fieldname = 'V_ZZGAUFW'.
i_updfld-fieldvalue = i_header-zzgaufw.
CALL FUNCTION 'DYNP_UPDATE_FIELDS'
dyname = v_subdyname
dynumb = v_subdynumb
dynpfields = i_updfld.
Can anybody give me the solution for the above.
Thanks in advance.
Thanks & Regards,
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.