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

Input Output Field Value Update Problem

Former Member
0 Likes
1,707

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

12 REPLIES 12
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,296

Where are you calling this?

Regards,

Rich Heilman

Read only

0 Likes
1,296

In PAI I am calling a subroutine. This code in subroutine...

Read only

LucianoBentiveg
Active Contributor
0 Likes
1,296

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.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,296

I assume after checking ok_code?

Why can't you just fill the field directly?

ZWM460-MAKTX = 'BLABLA'.

Regards,

Rich Heilman

Read only

0 Likes
1,296

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

Read only

Former Member
0 Likes
1,296

Hi,

R u trying to update the screen field for an F4 help.

Cheers,

Madhu

Read only

0 Likes
1,296

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)

Read only

0 Likes
1,296

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

Read only

0 Likes
1,296

Just make sure that the ZWM460-MAKTX field is defined globally in the program and that this is the name of your screen field. Then simply fill it, problem solved.

Regards,

Rich Heilman

Read only

0 Likes
1,296

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.

Read only

0 Likes
1,296

Dear Rich

May be you forget my this topic. I need your valuable help.

Thanks

Read only

Former Member
0 Likes
1,296

This message was moderated.