Skip to Content
0
Former Member
Jun 10, 2006 at 09:19 AM

dynp values update

461 Views

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