Application Development 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: 

dynp values update

Former Member
0 Kudos

Hi,

I have created a pov help for a field in the table control.

The value is captured in the fm. Even the table dynpread is having the values.

But it is not entering in the screen.

Iam displaying the code . Pls help em out what i have missed out.

PERFORM f4_code_help USING katalogart.

READ TABLE it_help INDEX 1.

IF sy-subrc EQ 0.

MOVE: it_help-codegruppe TO fcgrp,

it_help-code TO fcode .

fname = 'qpk1cd-codegruppe'.

fname1 = 'qpk1cd-code'.

PERFORM dynp_update USING fname fname1 fcgrp fcode.

FORM dynp_update USING t_fname

t_fname1

t_fcgrp

t_fcode.

DATA : dynpread LIKE dynpread OCCURS 0 WITH HEADER LINE.

data : t_codegroup(20) type c.

dynpread-fieldname = t_fname.

dynpread-fieldvalue = t_fcgrp.

APPEND dynpread.

dynpread-fieldname = t_fname1 .

dynpread-fieldvalue = t_fcode.

APPEND dynpread.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

TABLES

dynpfields = dynpread.

ENDFORM. " dynp_update

Thanks and regards

Priya OJ

2 REPLIES 2

Former Member
0 Kudos

Take the values of sy-repid and sy-dynnr into local variables as shown below:

DATA : l_prog like sy-repid,

l_screen like sy-dynnr.

l_prog = sy-repid.

l_screen = sy-dynnr.

and now call the function module.

It may work 'cause calling the function module directly with system variables may affect the right values.

Warm regards,

Amiya Shrivastava

Manohar2u
Active Contributor
0 Kudos

Refer to this post

Regds

Manohar