Object documentationBilling Document Items

 

Items in the billing document.

Structure

You define the properties of the billing document items using the import table ITEMS. A billing document item (structure BAPI_IST_EXTDOC_I) is created for each entry in this table (structure FKKINVBILL_I); there is one exception, and this is described below.

Source Field in Table ITEMS

Target Field in Billing Document Item

Note

REFDOCNO

Identifies the billing document header

LOG_SYSTEM

Identifies the billing document header

REFITEM

REFITEM

AMOUNT

BILL_AMOUNT

CURRENCY

BILL_CURR

ISO_CODE

BILL_CURR

Only used if CURRENCY is not filled

ITEM_SIMULATED

ITEM_SIMULATED

POSTREL

POSTREL

PRINTREL

PRINTREL

PRINT_SUBSTITUTE

PRINT_SUBSTITUTE

DATE_FROM

DATE_FROM

DATE_TO

DATE_TO

DUEDATE

FAEDN

QUANTITY

QUANTITY

BASE_UOM

QTY_UNIT

ISOCODE_UNIT

QTY_UNIT

Only used if BASE_UOM is not filled

QTY_BW_REL

QTY_BW_REL

QTY_FI_CO_REL

QTY_FI_CO_REL

TAX_DATE

EXT_TAX_DATE

TAX_GROUP

TAX_GROUP

TAX_ID

MWSKZ or STRKZ

Mapping via posting area 2641

TAXJURCODE

TXJCD

CONTRACT

VTREF

PA2640_POS_ID1

For example, HVORG, BUKRS.

Mapping via posting area 2640

PA2640_POS_ID2

For example, HVORG, BUKRS.

Mapping via posting area 2640

PA2640_POS_ID3

For example, HVORG, BUKRS.

Mapping via posting area 2640

PA2640_POS_ID4

For example, HVORG, BUKRS.

Mapping via posting area 2640

PA2640 _POS_ID5

For example, HVORG, BUKRS.

Mapping via posting area 2640

PA2640_POS_ID6

For example, HVORG, BUKRS.

Mapping via posting area 2640

PA2640_POS_ID7

For example, HVORG, BUKRS.

Mapping via posting area 2640

ADD_GROUP

ADD_GROUP

The individual fields and their meaning are explained below. Also see the documentation for the fields of the structures BAPI_IST_EXTDOC_I and FKKINVBILL_I.

The mandatory fields REFDOCNO and LOG_SYSTEM are not transferred to the billing document items. Instead, for each external document item in table ITEMS, you define the external document header to which the item refers in table HEADERS. The individual parts of the billing document are linked by the common document number (field BILLDOCNO in the structures FKKINBILL_H, FKKINBILL_I, FKKINBILL_T and FKKINBILL_A).

The mandatory field REFITEM must contain the external item number. Together with the external document number and the logical system, the external item number uniquely identifies the line item from which the item of the billing document arose. The external item number must be unique within a billing document.

In the billing document, the individual items also receive a sequential number (field BILLDOCITEM in the structure FKKINVBILL_I). This sequential number is assigned in the order of the items in table ITEMS.

In the field AMOUNT, enter the amount of the line item. The field is optional. This means that zero amounts are permitted as well as positive or negative amounts.

With the field CURRENCY you define the currency of the billing document item. If you do not make an entry in the CURRENCY field, you have to enter the ISO code currency key in the ISO_CODE field. Use the same currency as for the billing document header. You do not have to specify a currency if the following conditions are fulfilled:

  • The amount has value zero (AMOUNT field is initial).

  • The item is not relevant for posting (POSTREL field is initial).

  • The item does not belong to a Substitute Group for Invoice Printing (PRINT_SUBSTITUTE field is initial).

The currency of the document item can only be different to the currency of the billing document header if the following conditions are fulfilled:

  • The item is not relevant for posting (POSTREL field is initial).

  • The item does not belong to a Substitute Group for Invoice Printing (PRINT_SUBSTITUTE field is initial).

With the field ITEM_SIMULATED you can select simulated line items. Invoicing treats these items as non-simulated items for invoice display. However, no postings are made. The items are not considered in the final invoice amount.

With the field POSTREL you indicate posting-relevant items. Items that are not relevant for posting can, for example, contain information for invoice printing. However, their amounts and quantities are not posted. There is no account determination or tax calculation.

With the field PRINTREL you indicate the items that are relevant for invoice printing. For billing document items where the PRINTREL field is not selected, invoicing treats them as follows, dependent on the POSTREL field:

  • If the POSTREL field is selected, the item is relevant for posting but not for printing. The amount and quantity are posted (exception: simulation documents). An item is created in the invoicing document and made available for invoice printing. In the application form, using a query for the PRINTREL field, you can prevent the invoicing document item from being printed.

  • If the POSTREL field is not selected, the billing document item is not relevant for posting or for printing. No posting is made. No invoicing document item is created for this billing document item.

The optional PRINT_SUBSTITUTE field enables you to enter a Substitute Group for Invoice Printing. It links billing document items that are only relevant for posting with billing document items that are only relevant for printing. For an application example, see the documentation of the field.

The mandatory fields DATE_FROM and DATE_TO define the start and end of the period to which the billing document item relates. DATE_FROM and DATE_TO can be the same, but the DATE_TO date is not allowed to be before the DATE_FROM date.

You can define the due date of an item in the optional field DUEDATE. For more information, see the field documentation.

In the optional field QUANTITY, you can enter a billing quantity.

In the field BASE_UOM, you enter the unit of measure of the billing quantity. As an alternative, you can enter the relevant ISO code of the unit of measure in the ISOCODE_UNIT field. Specifying a unit of measure is mandatory if the billing quantity (QUANTITY field) does not have the value zero.

If you select the QTY_BW_REL field, the billing quantity (QUANTITY field) is transferred to Business Intelligence (BI). For line items that are not relevant for posting, the quantity is not transferred to BI, irrespective of this indicator. You can also influence the update of the line items in BI at event 2710.

You valuate a quantity with price 1 and price 2. For both line items, you write the value of the quantity to the QUANTITY field. You only select the QTY_BW_REL field for only one billing document item so that the billing quantity is not transferred to BI twice. If you select the QTY_BW_REL field, you have to specify a billing unit of measure (BASE_UOM field or ISOCODE_UNIT field).

If you select the field QTY_FI_CO_REL, the billing quantity (field QUANTITY) is transferred to the General Ledger (FI-GL) and Profitability Analysis (CO). If you select the QTY_FI_CO_REL field, you have to specify a billing unit of measure (BASE_UOM field or ISOCODE_UNIT field).

The field TAX_DATE is used to determine the tax on sales and purchases code. The external tax date must be filled in a billing line item under the following conditions:

  • The billing document item is either relevant for posting or has a Substitute Group for Invoice Printing.

  • In the related billing document header, the type of tax date has the value 04 Tax Calculation for External Tax Date. The type of tax calculation has the value 01 Internal Tax Calculation.

In all other cases, it does not have to be set.

In the field TAX_GROUP, you can specify a tax grouping. In a billing document, this connects items to tax items. You can only use the tax grouping for billing documents with type of tax calculation 02 External Tax Calculation. For external tax calculation, it is mandatory for all items that are relevant for posting or where a Substitute Group for Invoice Printing is specified. In all other cases, specifying a tax grouping is not allowed. You can use the same tax grouping for several billing document items. All billing document items that belong to the same grouping must use the same company code and the same external tax ID (TAX_ID).

The field TAX_ID is used for access to posting area 2641. It should only be filled if:

  • In the document header, the type of tax calculation has the value 01 Internal Tax Calculation or 02 External Tax Calculation.

  • In the line item, the POSTREL or PRINT_SUBSTITUTE field is filled.

For internal tax calculation, the TAX_ID is optional. If there is an entry in the TAX_ID field, the tax on sales and purchases code in the billing document item is filled using posting area 2641 (FKKINVBILL_I-MWSKZ field). For external tax calculation, the TAX_ID is mandatory for all items where POSTREL or PRINT_SUBSTITUTE is filled. For external tax calculation, TAX_ID specifies the tax code (FKKINVBILL_I-STRKZ).

The field TAXJURCODE can be used in certain countries to define the tax jurisdiction. The field can only be used for internal tax calculation.

The optional field CONTRACT can contain a reference number that, for example, identifies a contract item. The value is copied to the VTREF field of the billing document items. This reference is then forwarded to the business partner items and can be used for selection.

The fields PA2640_POS_ID1 to PA2640_POS_ID7 are used, together with the logical system, for access to posting area 2640. The fields are not mandatory and are not subject to any specific check. Some important fields in the billing document are filled with posting area 2640:

  • Division (FKKINVBILL_I-SPART)

  • Company Code (FKKINVBILL_I-BUKRS)

  • Main Transaction (FKKINVBILL_I-HVORG)

  • Subtransaction (FKKINVBILL_I-TVORG)

For billing document items where the fields POSTREL or PRINT_SUBSTITUTE contain entries, the fields for the company code, main transaction, and subtransaction are mandatory; otherwise they are optional. The division is always optional.

The main and subtransactions are used for access to posting area 2610 for posting-relevant items. Posting area 2610 provides the G/L account to which the item is posted. For internal tax calculation, the tax determination code can also be determined using posting area 2610. For more information, see Internal Tax Determination. The texts belonging to the transactions can be used in invoice printing. This property is also useful for items that are not relevant for posting.

You can use the optional field ADD_GROUP to assign a document additional item to the billing document item. If you do not use billing document additional items, the field remains empty.