Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
18 views5 pages

Export - Rotex Invoice

The document outlines the process for generating export invoices, including how to retrieve various fields from multiple tables such as VBRK, VBFA, LIKP, and PRCD_ELEMENTS. It details the calculations for VAT, exchange rates, and invoice totals, specifying different document types for domestic and export billing. Additionally, it includes logic for VAT exemption reasons and currency checks, emphasizing the importance of accurate data retrieval for invoice processing.

Uploaded by

saravanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views5 pages

Export - Rotex Invoice

The document outlines the process for generating export invoices, including how to retrieve various fields from multiple tables such as VBRK, VBFA, LIKP, and PRCD_ELEMENTS. It details the calculations for VAT, exchange rates, and invoice totals, specifying different document types for domestic and export billing. Additionally, it includes logic for VAT exemption reasons and currency checks, emphasizing the importance of accurate data retrieval for invoice processing.

Uploaded by

saravanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Export – Invoice for Rotex.

Date of supply: Get the value from VBRK – VBELN. pass VBFA – VBELN, VBFA – VBTYP_V as “J”, VBTYP_N
as “M” get VBELV & POSNV.

Pass VBELV in LIKP – VBELN get the value of LIKP - WADAT_IST.

exchange rate: Pass TCURR – KURST as (M), FCURR as (SAR), TCURR as (USD) and get the UKURS field
value.

Changes: 16.06.2025

Discount: pass VBRK– VBELN get KNUMV, Pass the VBRK - VBELN to VBRP - VBELN and get the POSNR
and pass the KNUMV and POSNR value in PRCD_ELEMENTS - KNUMV, PRCD_ELEMENTS - KPOSN and
PRCD_ELEMENTS – KSCHL value (ZDIS) get KBETR value.

Changes: 16.06.2025

vat category code: pass the value VBRK – VBELN get KNUMV value and pass the KNUMV value into table
PRCD_ELEMENTS – KNUMV and keep the value as KSCHL – ZVS5 For domestic invoice, ZVS6 for export
invoice take MWSK1 value.

Domestic BILLING document type: ZDOM(VBRK -FKART)

Export BILLING document type: ZEXP (VBRK – FKART)

Changes on 24.06.2024.

VAT :

Document type for Performa invoice: F5,F8,ZF5,ZF8 (VBRK - FKART).

Pass VBELN into table VBRK and get the value of field KNUMV.

Pass the value of field KNUMV into PRCD_ELEMENTS Keep KSCHL – ZVS5 (or) ZVS6 for Performa invoice:
F5,F8,ZF5,ZF8 (VBRK - FKART). into table and get the KBETR value for VAT % field and get the KWERT
value for VAT AMOUNT field.

vat exemption reason: Pass VBRK – VBELN get VBRK - KUNRG and pass this value to KNVI – KUNNR and
TATYP as ZVS5 if not there pass ZVS6 and get the TAXKD value and pass the TAXKD and TATYP value into
TSKD – TAXKD and TATYP get VTEXT. If below condition satisfied.

pass the value VBRK – VBELN get KNUMV value and pass the KNUMV value into table PRCD_ELEMENTS –
KNUMV and keep the value as KSCHL not qual to ZVS5, ZVS6

Other Seller ID:

Other Buyer ID: Pass VBRK – VBELN get VBRK – KUNRG and pass the KUNRG Field into DFKKBPTAXNUM –
PARTNER, TAXTYPE as SA1 get TAXNUM value.
buyer and seller already logic present:

end date of supply: pass the value VBRP – VBELN get AUBEL and pass AUBEL value to VBAK – VBELN get
VDATU.

P.O./S.O. Number: pass the value VBRP – VBELN get AUBEL and pass AUBEL value to VBAK – VBELN get
BSTNK & VBELN.

BP - VAT Number: Pass VBRK – VBELN get VBRK – KUNRG and pass the KUNRG Field into
DFKKBPTAXNUM – PARTNER, TAXTYPE as SA0 get TAXNUM value.

Seller - VAT Number : pass VBRK - VBELN get BUKRS next go to T001 table pass BUKRS get STCEG.

SAR = VAT * Exchange Rate

The above field not required

vat exemption reason: Pass VBRK – VBELN get VBRK - KUNRG and pass this value to KNVI – KUNNR and
TATYP as ZVS5 if not there pass ZVS6 and get the TAXKD value and pass the TAXKD and TATYP value into
TSKD – TAXKD and TATYP get VTEXT. If below condition satisfied.

if tax value there then no need of VAT exemption Reason field.

pass the value VBRK – VBELN get KNUMV value and pass the KNUMV value into table PRCD_ELEMENTS –
KNUMV and keep the value as KSCHL not qual to ZVS5, ZVS6.

Currency need to check : VBRK- WAERK.

Currency should be document currency i.e SAR and if it is USD - logic(exchange rate: Pass TCURR –
KURST as (M), FCURR as (USD), TCURR as (SAR) and get the UKURS field value.)

Mention USD currency in line item level


Invoice Total Amount(Excluding VAT)(USD)  Exchange Rate * Amount (SAR) from line item

Total Taxable Amount(Excluding VAT)(USD)  Exchange Rate * Amount (SAR) from line item

Total VAT(USD)  Exchange Rate * Tax Amount

Total VAT(SAR)  Tax Amount (Tax amount (SAR) from line item)

Invoice Total Amount(Including VAT)(USD)  Item Subtotal Including VAT value * Exchange Rate

Invoice Total Amount(Including VAT)(SAR)  Item Subtotal Including VAT value

Total Amount Due(USD)  no changes.

VAT category code not required.

Export invoice – VAT tax logic:

1. Pass VBELN into table VBRK and get the value of field KNUMV.

Pass the value of field KNUMV into PRCD_ELEMENTS Keep KSCHL – ZVS5 For domestic invoice, ZVS6 for
export invoice into table and get the KBETR value for VAT % field and get the KWERT value for VAT
AMOUNT field.
QTN Logic:

Unit price:

1. Pass VBELN and POSNR into table VBAP and get the value of field KNUMV_ANA.
2. Pass the value of field KNUMV_ANA into KNUMV and POSNR field value from VBAP into KPOSN
and pass KSCHL value as ZPR0 into PRCD_ELEMENTS table and get the KBETR value for Unit
price field and get the KWERT value for AMOUNT field

TAX:

1. Pass VBELN and POSNR into table VBAP and get the value of field KNUMV_ANA.
2. Pass the value of field KNUMV_ANA into KNUMV and POSNR field value from VBAP into KPOSN
and pass KSCHL value as ZVS5 Else ZVS6 into PRCD_ELEMENTS table and get the KBETR value for
VAT % field and get the KWERT value for VAT AMOUNT field.

Export invoice – VAT tax logic:

2. Pass VBELN into table VBRK and get the value of field KNUMV. And

Pass the value of field KNUMV into PRCD_ELEMENTS Keep KSCHL – ZVS5 For domestic invoice, ZVS6 for
export invoice into table and get the KBETR value for VAT % field and get the KWERT value for VAT
AMOUNT field.

Domestic BILLING document type: ZDOM (VBRK -FKART)

Export BILLING document type: ZEXP (VBRK – FKART).

VAT :

Document type for Performa invoice: F5,F8,ZF5,ZF8 (VBRK - FKART).

Pass VBELN into table VBRK and get the value of field KNUMV.

Pass the VBRK - VBELN to VBRP - VBELN and get the POSNR and pass the KNUMV and POSNR value in
PRCD_ELEMENTS - KNUMV, PRCD_ELEMENTS - KPOSN

Pass the value of field KNUMV into PRCD_ELEMENTS Keep KSCHL – ZVS5 (or) ZVS6 for Performa invoice:
F5,F8,ZF5,ZF8 (VBRK - FKART). into table and get the KBETR value for VAT % field and get the KWERT
value for VAT AMOUNT field.

You might also like