2008 Apr 03 3:23 PM
Hi,
I want to use select statement in one of the methods of badi and use internal tables to hold data. It is not allowing to use internal tables with header. Can any body please give me an example.
Thanks in Advance.
2008 Apr 03 3:32 PM
Is your requirement of having an internal table with header absolutely neccessary? Internal tables can be used in BAdIs without any issues normally.
Hi,
I want to use select statement in one of the methods of badi and use internal tables to hold data. It is not allowing to use internal tables with header. Can any body please give me an example.
Thanks in Advance.
2008 Apr 03 3:32 PM
Is your requirement of having an internal table with header absolutely neccessary? Internal tables can be used in BAdIs without any issues normally.
2008 Apr 03 3:35 PM
DATA itab [TYPE linetype|LIKE lineobj] OCCURS n [WITH HEADER LINE].
This variant is not allowed in an ABAP Objects context. See Declaration with OCCURS not allowed.
You can't use that variant in Abap Objects.
Learn to use them this way.
data: i_ekpo type standard table of ekpo,
wa_ekpo like line of i_ekpo.
select * into wa_ekpo from ekpo.
endselect.
"or
select * into table i_ekpo from ekpo.
Loop at i_ekpo into wa_ekpo.
endloop.
2008 Apr 03 4:03 PM
Hi,
You can use internal tables and work areas instead of internal tables with header line.
example.
DATA : lt_item type table of oij_item.
FIELD-SYMBOLS:<fs_nomit> TYPE oij_item.
Thanks,
Vamshi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |