Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MOVE-CORRESPONDING

Hi all,

I hve two different dynamic tables with same structure <dyn_table_IN> and <dyn_table_OUT>.

I'm loop in <dyn_table_IN> for calculate the values of some fields of <dyn_table_OUT>.

but i want to move only particuler fields of <dyn_table_IN> into <dyn_table_OUT>. whose i'm not calculated in select(dynamically)

LOOP AT <dyn_table_IN> INTO <WA>.( suppose struct of dyn_table_IN is matnr pstat matnr same as <dyn_table_OUT>. )

data : dy_line1 type ref to data.

create data dy_line1 like line of <dyn_table_OUT>.

assign dy_line1->* to <wa1>.

SELECT (QLIST) FROM (QFROM) (suppose qlist is matnr matnr)

INTO corresponding fields of <WA1>

WHERE (QWHERE1) .

MOVE-CORRESPONDING <WA> TO <WA1>. here i want to transfer the values of only pstat into <wa1>

endloop.

pls help me.

regards

anuj

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question