cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple performs with tables calling same form

ricky_shaw
Contributor
0 Kudos
86

Hi,

I have 3 different internal tables with DIFFERENT structures with respective work areas (wa).
Say :
itab1, wa1
itab2, wa2
itab3, wa3.

These internal tables are appended based on different scenarios.

I want to build a common FORM subroutine to display the result of itabs via different performs  like below

perform assign_invoice tables itab1 using wa1.
perform assign_invoice tables itab2 using wa2.
perform assign_invoice tables itab3 using wa3.

form assign_invoice tables xtab using wa.
data: lv_opbel type opbel.

loop at xtab into wa.
lv_opbel = wa-opbel. -->errors out saying wa has NO structure & hence no OPBEL field.
endloop.

endform.

In debug mode, i can see wa having OPBEL. 

The actual  wa1 has opbel as part of the structure.

Can anyone suggest please.

Accepted Solutions (0)

Answers (0)