Code: Alles auswählen.
class document_storage definition.
public section.
data: header type bapiache09 read-only,
items type bapiacgl09 read-only.
methods constructor
importing
header type bapiache09.
methods add_gl_account_item
importing
value(item) type bapiacgl09.
private section.
data: counter type posnr_acc.
endclass.
class document_storage implementation.
method constructor.
me->header = header.
endmethod.
method add_gl_account_item.
add 1 to counter.
item-itemno_acc = counter.
insert item into table items.
endmethod.
endclass.