cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all the billing documents VA03 from list of contract (VA43)

Former Member
0 Kudos

Hi Experts,

can anyone tell me a bapi or a function module or a table to get all de billing ( TCODE = VA03) from a list of contract (Tcode = VA43) ?

The table VBAK is the good one but I don't know the key which allows to join the table vbak with other table VBAK (alias) though a query (SQVI).

plz help.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

The field in VBAK-TRVOG = '4' means document is Contract document.

Here is the sample code.

data:begin of itab occurs 0,
vbeln like vbak-vbeln,
end of itab.
Select Vbeln from VBAK into table itab where TRVOG = '4'
loop at itab.
write:itab-vbeln.
endloop.

Answers (1)

Answers (1)

claudia_neudeck
Active Contributor
0 Kudos

no action over 2 months