Skip to Content
0
Former Member
Jun 24, 2009 at 04:33 PM

Retrieve data from internal table dynamically

125 Views

Hi every body,

I have an internal table which is generated by a function, this table contains two fields: id_field and value_field.

when the internal table is created, it will be completed as follows:

___________________________________________

id_field

value_field

|________________|__________________________|

| PARTNER | 0020023658 |

TYPE

type 1

BPKIND

val1

BU_GROUP

val2

BPEXT

val3

|________________|__________________________|

I want to retrieve the values of each field in id_field in a structure, like this:

ls_struct-partner = '0020023658'.

ls_struct-type = 'type 1'.

ls_struct-bpkind = 'val1'.

ls_struct-bu_group = 'val2'.

ls_struct-bpext = 'val3'.

and it should dynamically, because I have more than one partner and I have lot of fields.

If you have any idea, help !

Mll Mat