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

Assingning all Fields

Former Member
0 Likes
724

Hi people,

I'm using the command bellow to get the value of the field EKPO-ebeln.

v_ebeln = '(SAPMM06E)EKPO-ebeln'.

ASSIGN (v_ebeln) TO <ekpo>.

it_ekpo-ebeln = <ekpo>.

how to use the same command to get the value of all fields from Ekpo ?

tks

Flavio

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
586

Try

FIELD-SYMBOLS <ekpo> TYPE ekpo.
v_ekpo = '(SAPMM06E)EKPO'.
ASSIGN (v_ekpo) TO <ekpo>.
it_ekpo-ebeln = <ekpo>-ebeln.

Regards,

Raymond

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
586

Hi,

Try

field-symbols : <fs> type table, <fs1>.

v_ebeln = '(SAPMM06E)EKPO[].

ASSIGN (v_ebeln) TO <fs>.

loop at <fs> assigning <fs1>.

...

endloop.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
587

Try

FIELD-SYMBOLS <ekpo> TYPE ekpo.
v_ekpo = '(SAPMM06E)EKPO'.
ASSIGN (v_ekpo) TO <ekpo>.
it_ekpo-ebeln = <ekpo>-ebeln.

Regards,

Raymond

Read only

Former Member
0 Likes
586

Hi,

In order tp pass the data from field symbol to workarea . you must have the workarea and field symbol same structure .

Then u can pass all the row data from field symbol to workarea.

Regards,

Phani Sista.