Fonction SAP BAPI_LIA_CREATE - BAPI for creating Logical Inventory Adjustment (LIA)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOC_DATE BAPI_OIA_LIA_HEADER-DOC_DATE D 8 SY-DATUM X Document date in document
EXG_PTR BAPI_OIA_LIA_HEADER-EXG_PTR C 10 X Exchange Partner
LIA_DOC_TYPE BAPI_OIA_LIA_HEADER-LIA_DOC_TYPE C 2 LIA document type
PSTNG_DATE BAPI_OIA_LIA_HEADER-PSTNG_DATE D 8 SY-DATUM X Posting date in the document

Paramètre Reférence Type Long. Description
LIA_KEY BAPI_OIA_LIA_KEY u 14 LIA header data for BAPI

Paramètre Reférence Long. Facultatif Description
BALADJUSTMENT BAPI_OIA_LIA_BAL_ADJUSTMENT 148 X Balance adjustments for BAPI
EXTENSIONIN BAPIPAREX 990 X Ref. structure for BAPI parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Ref. structure for BAPI parameters EXTENSIONIN/EXTENSIONOUT
NEGPAYMENT BAPI_OIA_LIA_NEG_PAYMENT 133 X Negotiated payments for BAPI
RETURN BAPIRET2 548 X Return parameter

Functionality
Use this method to create logical inventory adjustments (LIAs).
You have to enter at least the exchange partner and the LIA documenttype as input parameters.
Enter the negotiated payments via the NEGPAYMENT table, and the balanceadjustments via the BALADJUSTMENT table.
Once you have created the LIA successfully, you will receive thedocument number (LIA_DOCUMENT field). Any errors that may occur will beannounced via the RETURN parameter.

Notes
The BAPI does not have a database commit. This means that the relevantapplication must leave the commit, in order that can be carried out onon the database. The BAPI BAPI_TRANSACTION_COMMIT is available forthis.

Description
This structure transfers the fields that are filled to the initiatorwhen the logical inventory adjustment was successfully posted.
For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

Description
The system uses this parameter as the document date for the logicalinventory adjustment.
This parameter is optional.

Default
If not specified, the system defaults the system date.

Description
This parameter is for entering the exchange partner for the logicalinventory adjustment.
This parameter is optional.

Default
If not specified, the system defaults the exchange partner from theexchange numbers in the logical inventory adjustment items.

Description
This parameter if ro entering the document type for the logicalinventory adjustment.

Description
The system uses this parameter as the posting date of the accountingdocument for the logical inventory adjustment. This parameter isoptional.

Default
If not specified, the system uses the system date.

Description
This parameter contains the data for the balance adjustment items.

Description
You can use this parameter to transfer user-specific enhancments to aBAPI. The customer has to complete the EXTENSION structure and thesystem automatically continues processing it. If you have not definedany user-specific fields, then you can transfer a blank EXTENSIONINstructure.

Description
This parameter is reserved for customer enhancements to the functionmodule. It is currently not being used.

Description
This parameter contains the data for the negotiated payment items.

Description
Message table
This table contains messages.

Value range
TYPE Message type: S Success, E Error, W Warning, I Information
ID Message ID
NUMBER Message number
MESSAGE Message text
LOG_NO Application log: Log number
LOG_MSG_NO Application log: Sequential number of message
MESSAGE_V1 Message variable
MESSAGE_V2 Message variable
MESSAGE_V3 Message variable
MESSAGE_V4 Message variable
PARAMETER Parameter name
ROW Line in parameter
FIELD Field in parameter
SYSTEM System (logical system) where the message came from