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

Dynp value read in table control

Former Member
0 Likes
794

Hi all,

I need to get the table control data by using the FM DYNP_VALUES_READ.

what should be the input paramets.

I am always getting the last line value from the table control.How to get the whole entries from table control.

Thanks,

Sumithra

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
578

Fill the subfield STEPL in the DYNPFIELDS table parameter.

Regards,

Raymond

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
579

Fill the subfield STEPL in the DYNPFIELDS table parameter.

Regards,

Raymond

Read only

Former Member
0 Likes
578

LOOP AT lt_mig_forms INTO ls_mig_forms.

lv_stepl = sy-tabix.

ls_screen_fld-fieldname = 'LS_MIG_FORMS-REF_FLD_BUNDLE'.

ls_screen_fld-stepl = lv_stepl.

APPEND ls_screen_fld TO lt_screen_flds.

ls_screen_fld-fieldname = 'LS_MIG_FORMS-REF_FLD'.

ls_screen_fld-stepl = lv_stepl.

APPEND ls_screen_fld TO lt_screen_flds.

ls_screen_fld-fieldname = 'LS_MIG_FORMS-FMT_NAME'.

ls_screen_fld-stepl = lv_stepl.

APPEND ls_screen_fld TO lt_screen_flds.

ls_screen_fld-fieldname = 'LS_MIG_FORMS-OLD_FIELD_PATH'.

ls_screen_fld-stepl = lv_stepl.

APPEND ls_screen_fld TO lt_screen_flds.

ENDLOOP.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = gc_program

dynumb = gc_screen-d150

TABLES

dynpfields = lt_screen_flds.

LOOP AT lt_mig_forms INTO ls_mig_forms.

lv_stepl = sy-tabix.

READ TABLE lt_screen_flds INTO ls_screen_fld WITH KEY fieldname = 'LS_MIG_FORMS-OLD_FIELD_PATH'

stepl = lv_stepl.

ls_mig_forms-old_field_path = ls_screen_fld-fieldvalue.

MODIFY lt_mig_forms FROM ls_mig_forms TRANSPORTING old_field_path.

ENDLOOP.

Read only

Former Member
0 Likes
578

Done