Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Billing Amount local currency in BSEG

former_member445510
Active Participant
0 Kudos
2,111

Hello,

did someone have any code to get Amount in local currency in BSEG from VBRK or VBRP?

i know that i have to use BKFP-AWTYP, AWKEY to get data from bseg, but BSEG has items, and i don't know if i have to sum those items or take just one Item record?

Any input please?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
795

Hi Ouail,

In BSEG there will be one entry for each item of the accounting document, with the total debit amount matching the total credit amount.  For a billing document, you can find the amount billed from the line item that posts against the customer account.  Select only the BSEG records for the documents where the account type is Customer by checking BSEG-KOART = 'D'.

Jim

4 REPLIES 4

Former Member
0 Kudos
796

Hi Ouail,

In BSEG there will be one entry for each item of the accounting document, with the total debit amount matching the total credit amount.  For a billing document, you can find the amount billed from the line item that posts against the customer account.  Select only the BSEG records for the documents where the account type is Customer by checking BSEG-KOART = 'D'.

Jim

0 Kudos
795

Forgot to mention: the local currency amount is in the field BSEG-DMBTR.

0 Kudos
795

Thank u very much Jim.

And If i want to get the amount with VAT, i have to extract from BSET? if yes, how to select one record from bset?

Can i get also the local currency value from bkpf-HWAER?

0 Kudos
795

Hi Ouail,

Yes, BSEG-HWAER contains the local currency code.  For the VAT tax question, see this thread: