Skip to Content

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

perform statement with tables addition ??

hi all,

can someone help me in understanding perform statements with additions tables.

I know basic perform statement.

like

data : a(5) type c,

b(5) type c,

c(5) type c.

perform add.

write c.

form add.

a = b + c.

endform.

please help mein understanding perform statement with tables, Example would be great.

Thank you.

Madhu.

Tags:
Former Member
Former Member replied

Try the below example program :

PERFORM get_data TABLES table1.

PERFORM get_data TABLES table2.

PERFORM get_data TABLES table3.

FORM get_data TABLES p_tab_data.

FIELD-SYMBOLS: <wa> TYPE ANY.

LOOP AT p_tab_data ASSIGNING <wa>.

ENDLOOP.

endform.

You use tables because reusability .

Thanks

Seshu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question