Ansicht
Dokumentation

POSTING_INTERFACE_DOCUMENT - Post document using the internal posting interface

POSTING_INTERFACE_DOCUMENT - Post document using the internal posting interface

ABAP Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Function module 'POSTING_INTERFACE_DOCUMENT' creates a batch input transaction ( or Call Transaction ... Using ...) for a document to be posted with FB01 or FBB1.

You should transfer all document header and document item data which is needed for this document to table T_FTPOST.

Note the following rules:

  • The data is marked with a record type (header, code = K; item, code = P) and counter.
  • Up to 950 line items can be transferred.
  • The data is transferred with the field name and field value.
  • The data must be transferred in the following sequence:
  • Document header data ( K 1)

  • Document item 1 ( P 1)

  • Document item 2 ( P 2) etc.

  • The field names are the same as those used on the entry screen (e.g. 'BKPF-WAERS', 'BSEG-WRBTR', 'COBL-GSBER'...).
  • The footer data can be transferred using the following fields:
  • Posting key: RF05A-NEWBS or BSEG-BSCHL

  • Account number: RF05A-NEWKO or BSEG-KONTO
    or BSEG-KUNNR (for customer accounts)
    or BSEG-LIFNR (for vendor accounts)
    or BSEG-HKONT (for G/L accounts)

  • Special G/L indicator: RF05A-NEWUM or BSEG-UMSKZ

  • Company code (for intercompany posting):
    RF05A-NEWBK or BSEG-BUKRS.

  • The field names are analyzed by the function module so that the data can be assigned to the right screens. Field names for one-time data or data for an alternative payer must start with 'BSEC-', for example (see screen SAPLFCPD 0100).

Processing with 'Call Transaction ... Using '

If processing takes place with 'Call Transaction .. Using', the initiator can see whether processing was successful by looking at the export parameter'SUBRC'.

SUBRC = 0 means that the document was posted. The document number is stored in table T_BLNTAB. For intercompany documents, several document numbers are stored here.

SUBRC <> 0 means that the document could not be posted. Information concerning the error which has arisen is returned via the message fields MSGID, MSGNO, etc.

Support of transaction 'FBB1'

If you want to access transaction FBB1, you should note the following:

  • Enter the foreign currency key in field BKPF-WAERS.
  • In this transaction you should enter the local currency amount in field BSEG-WRBTR for each document item.




Parameters

E_MSGID
E_MSGNO
E_MSGTY
E_MSGV1
E_MSGV2
E_MSGV3
E_MSGV4
E_SUBRC
I_NO_AUTH
I_SGFUNCT
I_TCODE
I_XSIMU
T_BLNTAB
T_FTPOST
T_FTTAX

Exceptions

ACCOUNT_MISSING
AMOUNT_FORMAT_ERROR
COMPANY_CODE_INVALID
COMPANY_CODE_MISSING
NO_AUTHORIZATION
POSTING_KEY_INVALID
POSTING_KEY_MISSING
RECORD_TYPE_INVALID
SCREEN_NOT_FOUND
TOO_MANY_LINE_ITEMS
TRANSACTION_CODE_INVALID

Function Group

FIPI

TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3777 Date: 20240523 Time: 134039     sap01-206 ( 53 ms )