Fonction SAP BAPI_INSTMNTPLN_CREATEFROMDATA - Create Installment Plan for Transferred Criteria

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BUSPARTNER BAPIINSTPLN-BUSPARTNER C 10 Business Partner
CATEGORY BAPIINSTPLN-CATEGORY C 2 X Installment Plan Category
CHARGE_AMNT BAPIINSTPLN-CHARGE_AMNT P 12 X Charge Amount
CH_DOC_TYPE BAPIINSTPLN-CH_DOC_TYPE C 2 X Doc. Type for Charge Document
CONT_ACCT BAPIINSTPLN-CONT_ACCT C 12 Contract Account
CURRENCY BAPIINSTPLN-CURRENCY C 5 Currency of Installment Plan and Items
DISTANCE BAPIINSTPLN-DISTANCE N 2 X Inst. Interval
DOC_DATE BAPIINSTPLN-DOC_DATE D 8 X Installment Plan Document Date
DOC_TYPE BAPIINSTPLN-DOC_TYPE C 2 X Installment Plan Document Type
FIKEY BAPIINSTPLN-FIKEY C 12 X Reconciliation Key for Non-Stat. Charge Document
INST_AMNT BAPIINSTPLN-INST_AMNT P 12 X Installment Amount
INST_CAT BAPIINSTPLN-INST_CAT C 4 X Repayment Plan Category
INST_INTRVAL BAPIINSTPLN-INST_INTRVAL C 1 X Interval Category (Days, Weeks, etc.)
INST_NUMBER BAPIINSTPLN-INST_NUMBER N 3 X Number of Installments
INT_CH_DISTR BAPIINSTPLN-INT_CH_DISTR C 1 X Distribute Interest/Charges to all Installments
INT_DOC_DUE BAPIINSTPLN-INT_DOC_DUE C 1 X Interest Document Due Date
INT_DOC_TYPE BAPIINSTPLN-INT_DOC_TYPE C 2 X Document Type for Interest Document
INT_KEY BAPIINSTPLN-INT_KEY C 2 X Interest Key
INT_ST_DTE BAPIINSTPLN-INT_ST_DTE D 8 X Start Date for Interest
PSTNG_DATE BAPIINSTPLN-PSTNG_DATE D 8 X Installment Plan Posting Date
REMAINAMNT BAPIINSTPLN-REMAINAMNT C 1 X Indicator for Remaining Amount
ROUND_TO BAPIINSTPLN-ROUND_TO P 7 X Round to Amount
SIMULATION BAPIINSTPLN-SIMULATION C 1 X
STARTDATE BAPIINSTPLN-STARTDATE D 8 Start Date of Installment Plan

Paramètre Reférence Type Long. Description
DOC_NO BAPIINSTPLN_KEY-DOC_NO C 12 Installment Plan Document Number
RETURN BAPIRETURN u 452 Error Structure

Paramètre Reférence Long. Facultatif Description
T_BAPIFKKOP_CHARGE BAPIFKKOP 647 X Table of Charge Items
T_BAPIFKKOP_INSTPLAN BAPIFKKOP 647 X Table of Installment Items
T_BAPIFKKOP_INTEREST BAPIFKKOP 647 X Table of Interest Items
T_BAPIFKKOP_KEY BAPIFKKOP_KEY 22 Table of Source Item Keys

Functionality
You can create an installment plan with this method. This method offersthe same options for installment plan creation as the transactionFPR1. The open items to be included in the installment plan mustbe submitted with their key values in the T_BAPIFKKOP_KEY table.
The T_BAPIFKKOP_KEY table and the CURRENCY, BUSPARTNER,CONT_ACCT, STARTDATE, DISTANCE and INST_INTRVAL parametersmust be transferred, In addition, the alternative parameters INST_AMNT(installment amount) or INST_NUMBER and ROUND_TO (number of installmentsand rounding amount to which the individual installments are to berounded) must be transferred.
Alternatively, the installment plan parameters can be determined likethe procedure in the transaction FPR1, by using the INST_CAT
parameter (repayment plan category) from the proposal table.
A charges document can be posted by transferring the CHARGE_AMNTparameter.
Interest can be calculated automatically on the installment plan and aninterest document can be posted by transferring the INT_KEY andINT_ST_DTE parameters.
If the document types for the installment plan, interest and chargesdocument are not transferred, the system attempts to determine thedocument types from the default values in the corresponding postingareas (1100, 1101 and 1105). If no document types are available there,the installment plan cannot be posted.

Description
In this parameter you get the document number for the installment planthat was posted.

Description
The return code for the method is returned in a structure with 5fields. You can find information about the meaning of individual fieldsin the corresponding data element documentation.
Structure
TYPE,,,,Report category
CODE,,,,Report code
MESSAGE,,,,Report text
LOG_NO,,,,Application log: Log number
LOG_MSG_NO,,Application log: Sequence number for the message

Default

Description
Here you transfer the business partner for which you want to post theinstallment plan.

Description
Category of the installment plan

Value range
Maintain possible values in Customizing.

Description
The amount for the charges document that is to be posted for theinstallment plan. The charges document is included in the installmentplan.

Description
If charges are to be posted, a document type is required. You cantransfer this in this parameter.

Default
Document type from posting area 1101 (installment plan charges)

Description
Here you transfer the contract account for which you want to post theinstallment plan. The transferred contract account must match thetransferred business partner. The transferred contract account mustalso match all contract accounts for the documents that go to theinstallment plan.

Description
Currency for the installment plan and for the items that go to theinstallment plan.
Only items from one currency can go to an installment plan.

Description
Interval between individual installments. The INST_INTERVALparameter controls how the number transferred here is to beinterpreted.

Description
If you do not transfer a document date, the current date isautomatically used as the document date.

Default
Tagesdatum

Description
Document type for the installment plan that is to be posted.

Default
The document type from posting area 1100 is used as standard.

Description
Here you transfer the reconciliation key for possible occurringnon-statistical installment plan charged. If no installment plancharges are posted, or if just statistical installment plan charges areposted, it is not necessary to transfer this parameter.

Description
Amount for the individual installment receivables. The remaining amountis added to the first, last or new installment. If a value istransferred in this parameter, the INST_NUMBER and ROUND_TO
parameters cannot be transferred.

Description
You can transfer the repayment category here, instead of theinstallment plan parameters. The installment plan parameters are thentransferred from the TFK060A proposal table.

Description
Here you transfer the information about how the value from theDISTANCE parameter is to be interpreted.

Description
Number of installments in an installment plan. If you transfer thisparameter, you must also transfer the parameter ROUND_TO. Thesetwo parameters determine the individual installments of the installmentplan. If you transfer this parameter, you may not transfer theparameter INST_AMNT (installment amount). The level of theinstallments of an installment plan are determined either by the numberof installments or by the installment amount.
trados = fica

Description
Defines whether installment interest and charges for the installmentplan are to be distributed across all installments.
The interest and charges are distributed in proportion to the amounts ofthe installments.

Value range
' ' = No distribution
X = Distribution of installment plan interest and charges to allinstallments

Default
Interest and charges are not distributed as standard.
trados = fi

Description
With this parameter you can influence the due date of the interestdocument to be posted.
If the interest amount is not distributed proportionately to allinstallments (parameter INT_CH_DISTR), the interest amount isadded to the relevant installment.

Value range
You can post the interest document with the following due date:
' ' = Today's date
1 = Due date of next installment due
2 = Due date of last installment

Default
As standard the interest document is posted for the current date.

Description
Here you transfer the document type for the interest document that isto be posted for the installment plan. If you do not want to post aninterest document, you do not have to transfer this parameter.

Default
The document type from the posting area 1105 is used as the default.

Description
Here you transfer the interest key of the interest document for theinstallment plan. If you do not want to post interest documents, you donot need to transfer the interest key.

Default
The interest key from posting area 1105 is used as the default.

Description
Here you transfer the start date that is to be used for interestcalculation. If you do not want to post an interest document, it is notnecessary to transfer this parameter.

Description
If you do not transfer a posting date, the current date isautomatically used as the posting date. This posting date is also usedfor any interest or charge documents to be posted.

Default
Current date

Description
In dthis parameter you define which installment any remaining amount isto be posted to. The remaining amount can be posted to the

  • first installment

  • last installment

  • new installment to be inserted
  • Default
    The remaining amount is psoted to the last installment.

    Description
    Here you transfer the amount to which the individual installments areto be rounded.

    Description
    First due date of installment plan. If the factory calendar is used todetermine the due dates for installment plans, the actual start datecan deviate from the start date transferred here. This is the case, forexample, if the transferred start date is a public holiday. The actualstart date is then the first working day that follows the publicholiday.

    Description
    If charges are posted for the installment plan, the charges documentsare available in this table.

    Description
    You get the individual installment plan items back from the BAPI here.

    Description
    If interest is posted for the installment plan, the interest documentsare available in this table.

    Description
    You must transfer this table to BAPI. The table contains the key valuesof the documents that are to be transferred to the installment plan.The documents to be included in the installment plan must all have thesame currency and the same contract account.