Fonction SAP BAPI_CTRACDOCUMENT_CHANGE - BAPI: FI-CA Change Document

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOCUMENTHEADER BAPIDFKKKOCH u 51 X BAPI: Change Structure for Document Header
DOCUMENTHEADERX BAPIDFKKKOCHX u 2 X BAPI: Change Structure for Document Header
DOCUMENTNUMBER BAPIDFKKKO-DOC_NO C 12 Document Number

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Confirmations

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Customer Enhancements
PARTNERPOSITIONS BAPIDFKKOPCH 74 X Line items (open items)
PARTNERPOSITIONSX BAPIDFKKOPCHX 14 X Changes to open items
POSITIONLOCKS BAPIDFKKOPLOCK 31 X Locks on open items
REPETITIONPOSITIONS BAPIDFKKOPWCH 26 X Line items (repetition specifications)
REPETITIONPOSITIONSX BAPIDFKKOPWCHX 6 X Changes to repetition specfications

Functionality
YOu can change docuements with this method. Only changes to businesspartner items are permitted. See the interfaces for the changeablefields. You can create or delete locks on the items.

Description
A method return code. The method was successful if the parameters donot contain a message code.

Value range
The most important messages are as follows:
A B1 500,,Error during ISO conversion
E >BAPI 005 006,,Formal error in document data
E >BAPI 009,,Formal error in lock data
E >0 >4,,Incorrect data for document

Description
Document header - modifiable fields

Description
Select the fields changed in the parameter DocumentHeader.

Description
Number of the document that is to be changed.

Description
Parameter for the transfer of customer-defined data. This data isautomatically transferred to the customer-defined enhancements of SAPtables as part of BAPI Table Extensions.

Value range
The following BAPI Table Extensions exist:

  • BAPI_TE_DFKKOPCH for the structure DFKKOP

  • The parameter PARTNERPOSITIONS must contain a line that has thesame LINE_NUMBER and identifies the open item.
    • BAPI_TE_DFKKOPCHX - Checkbox structure for BAPI_TE_DFKKOPCH


    • It must contain the fields with the same name as BAPI_TE_DFKKOPCH
      (Type C(1)). Here, the fields changed in the structure
      BAPI_TE_DFKKOPCH must be selected.
      For more information, see the documentation for structure BAPIPAREX
      .

      Description
      Items of a document - modifiable fields.

      Description
      Mark the fields that were changed in the "PartnerPositions" parameter.The link is realized by the 'LINE_NUMBER' field.

      Description
      Process blocks for contract account items.
      Existing blocks cannot be changed. You can only create new blocks,(PROCESSING_MODE '01') or delete existing ones (PROCESSING_MODE '04').If you delete blocks, all blocks for the selected line items,(REP_ITEM, ITEM, SUB_ITEM) and the process IDs (PROCESS_ID)corresponding to the fields LOCKR (Blockin Reason), FDATE (From Date)and TDATE (To Date) are deleted. If, for example, only the field LOCKRhad an entry, all blocks that have this blocking reason are deleted.

      Description
      Repetition specifications for statistical line items for contractaccounts - changeable fields.

      Description
      Here you must mark all the fields that were changed in parameter'RepetitionsPositios'. The link is realized by the 'LINE_NUMBER' field.