Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Another Input Output Field Value Update Problem

Former Member
0 Likes
562

ı 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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
504

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

5 REPLIES 5
Read only

Former Member
0 Likes
504

hi,

can u explain in detail & provide ur full coding regarding this

Read only

Former Member
0 Likes
504

Check the example given in the documentation of that function module if it can help you

Read only

Former Member
0 Likes
505

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

Read only

0 Likes
504

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.

Read only

Former Member
0 Likes
504

This message was moderated.