‎2006 Dec 20 2:27 PM
ı am using 'DYNP_VALUES_UPDATE' FM for setting value for input output field.
I am using below code. But it doesn't update my <b>ZWM460-MAKTX</b> input output field value. When I debugging code it is return sy-subrc = 0 ????? But cann't update.
How can I fix this? Thanks
DynpFields-Fieldname = 'ZWM460-MAKTX'.
DynpFields-FieldValue = 'BLABLA'.
DynpFields-stepl = l_stepl.
Append DynpFields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = 'ZHYT_WM_RPR_460'
DYNUMB = P_0064
TABLES
DYNPFIELDS = DynpFields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2006 Dec 27 12:37 PM
Hi ,
Make sure you have value in <u><i>l_stepl</i></u> and<u><i> P_0064</i></u> containing numeric screen value .
No necessary to specify the structure name in dynfields 'ZWM460-MAKTX'.
Try this.
l_stepl = sy-tabix .
DynpFields-Fieldname = 'MAKTX'.
DynpFields-FieldValue = 'BLABLA'.
DynpFields-stepl = l_stepl.
Append DynpFields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = 'ZHYT_WM_RPR_460'
DYNUMB = P_0064
TABLES
DYNPFIELDS = DynpFields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Regards,
Raghav
‎2006 Dec 27 12:26 PM
hi,
can u explain in detail & provide ur full coding regarding this
‎2006 Dec 27 12:36 PM
Check the example given in the documentation of that function module if it can help you
‎2006 Dec 27 12:37 PM
Hi ,
Make sure you have value in <u><i>l_stepl</i></u> and<u><i> P_0064</i></u> containing numeric screen value .
No necessary to specify the structure name in dynfields 'ZWM460-MAKTX'.
Try this.
l_stepl = sy-tabix .
DynpFields-Fieldname = 'MAKTX'.
DynpFields-FieldValue = 'BLABLA'.
DynpFields-stepl = l_stepl.
Append DynpFields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = 'ZHYT_WM_RPR_460'
DYNUMB = P_0064
TABLES
DYNPFIELDS = DynpFields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Regards,
Raghav
‎2006 Dec 27 1:59 PM
Yes, When I debugging I can see my values. I found my error. I have been solving it.
I am getting elements from directly Table (not gettin program) I was changed this elements via defined in local variables.
But I don't understand. Why we cann't set value when we get them from table...
Thanks all person. I have giving your helpfull answers.
‎2011 Jan 06 2:21 PM