‎2006 Dec 20 2:51 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 ZWM460-MAKTX 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 20 2:52 PM
‎2006 Dec 20 2:54 PM
In PAI I am calling a subroutine. This code in subroutine...
‎2006 Dec 20 2:56 PM
Try this:
DynpFields-Fieldname = 'ZWM460-MAKTX'.
DynpFields-FieldValue = 'BLABLA'.
DynpFields-stepl = l_stepl.
Append DynpFields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = DynpFields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPROW_NUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8.
‎2006 Dec 20 3:01 PM
‎2006 Dec 20 3:08 PM
When I use ZWM460-MAKTX = 'BLABLA'. it is give me ZWM460-MAKTX is not defined. When debugging mode I can see value of ZWM460-MAKTX but In module code lines cann't use it directly... When I define a variable named ZWM460-MAKTX it doesn't contain screen elemnet name.
If you know how can I set directly input output field in code I will be happy. I was search for updating screen element (input output field) with new value . I give only SET_DYNP_VALUE FM...
‎2006 Dec 20 3:05 PM
Hi,
R u trying to update the screen field for an F4 help.
Cheers,
Madhu
‎2006 Dec 20 3:11 PM
No I am developing an Mobile screen. It is contain (Screen 100) 4 input/output field. One field is Matnr. When user press enter I want set maktx field value from makt-maktx... I have been handling enter key and getting maktx value but I cann't set this value on maktx field (on screen ZWM460-Maktx input output element)
‎2006 Dec 20 3:24 PM
Hi,
Try using this...
Select single MAKTX from makt
into ws_maktx
where matnr = "matnr value in the screen"
ZWM460-Maktx = ws_maktx.
Cheers,
Madhu
‎2006 Dec 20 3:25 PM
‎2006 Dec 20 3:49 PM
Dear Mr. Rich Heilman,
I defined a variable at my top include like this
Data : LTBP-MENGE Type LTBP-MENGE. " Definin screen element on top incl.
And PAI of screen I am setting LTBP-MENGE = 1. for this variable.
But I cann't see it.
Could you write me a simple example. Where I am doing mistake?
Thanks for all persons interest.. I will give my points after question will answer.
‎2006 Dec 21 2:33 PM
Dear Rich
May be you forget my this topic. I need your valuable help.
Thanks
‎2011 Jan 06 2:21 PM