Tuesday
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.
Request clarification before answering.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.