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

SET_DYNP_VALUE not working?

Former Member
0 Likes
1,095

Hi gurues, Im having some problems with the function SET_DYNP_VALUE.

I have this code:

DATA: v_field3 LIKE dynpread-fieldname,

v_repid3 LIKE sy-repid,

v_dynnr3 LIKE d020s-dnum,

v_value3 like dynpread-fieldvalue.

v_field3 = 'P2002-ENDDA'.

v_repid3 = 'MP200000'.

v_dynnr3 = '2051'.

v_value3 = '12319999'.

CALL FUNCTION 'SET_DYNP_VALUE'

EXPORTING

i_field = v_field3

i_repid = v_repid3

i_dynnr = v_dynnr3

i_value = v_value3.

I put that code in the field exit ZXPADU02 but nothing happens when the systems goes through the function (the field endda remains just the same as before, it doesnt get the value '12319999').

Any idea with this?

Thanks very much,

Cristian

3 REPLIES 3
Read only

Former Member
0 Likes
679

Hi Christian,

Probably you must use the value '99991231' if you wish to fill the field ENDDA (which is a date field).

Regards,

Rob.

Read only

0 Likes
679

Rob, thank you for answering. I tried what you said but nothing happens.

I have debugged the system and it calls the function, with no vissible effect.

I dont know what to do

Read only

Former Member
0 Likes
679

try this FM <b>DYNP_VALUES_UPDATE</b>

regards

Prabhu