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

READING INTO ONE VARIABLE

Former Member
0 Likes
362

HI

HOW CAN I READ VALUE INTO ONE VARIABLE.???

ie,

IN RUNTIME IF IM ENTERING VALUE TO VARIABLE 'A' MEANS HW CAN I TAKE THE VALUE TO 'A'.

2 REPLIES 2
Read only

Former Member
0 Likes
337

hi,

automatically the value will be assigned to variable 'A' incase u declared it as a parameter or else u can assign using A = variable.

regards,

Navneeth K.

Read only

Former Member
0 Likes
337

DYFIELDS-FIELDNAME ='<Parameter Name>'.

APPEND DYFIELDS.

DATA DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = SY-CPROG

DYNUMB = SY-DYNNR

TABLES

DYNPFIELDS = DYFIELDS .

READ TABLE DYFIELDS INDEX 1.

This function module will read out the values into Internal table DYNFIELDS.

Use this function module at " On value request for <parameter>.