Fonction SAP BAPI_INSTMNTPLN_GETDETAIL - Retrieves Installment Plan Object Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACCUMULATE BAPIINSTPLN-ACCUMULATE C 1 X Accumulated View of Installment Items
DOC_NO BAPIINSTPLN_KEY-DOC_NO C 12 Installment Plan Number

Paramètre Reférence Type Long. Description
INSTPLANATTR BAPIINSTPLATTR u 75 Installment Plan Attributes
RETURN BAPIRETURN u 452 Error Structure

Paramètre Reférence Long. Facultatif Description
INSTALLMENT_FKKOP BAPIFKKOP 647 Table of Installment Plan Items

Functionality
This method provides you with the attributes of an installment plan. InDOC_NO you transfer the document number of the installment plan.The method returns the attributes of the installment plan in structureBAPIINSTPLATTR. In addition, each individual installment planitem is listed in table INSTALLMENT_FKKOP.
There are two alternatives for displaying the installment plan items.You can choose via the parameter ACCUMULATE. This only
applies to the display of items that have been partially cleared.

Description
This structure provides the attributes for an installment plan. Theseinclude the contract account that the installment plan has been postedto, the overall amount of the installment plan, the amount of theinstallment plan still open, the currency, the installment plan statusand the the start and end dates of the installment plan.

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
You use this parameter to choose between the two alternative ways ofdisplaying partially cleared installment plan items.

Value range
If ACCUMULATE is not set (default setting), then the partially cleareditems are returned just as they are stored in the database. Aninstallment then consists of several lines in table INSTALLMENT_FKKOP:one line for the outstanding receivable and one line for each partialclearing.
If ACCUMULATE is set to "X", then partially cleared items are shown insummarized form, that is, an installment corresponds to exactly oneline in the INSTALLMENT_FKKOP table. The BETRO field then contains theamount that has not yet been cleared.
Example

Description
Here you transfer the number for the installment plan for which youwant to determine attributes and installment plan items.

Description
This table gives you all installment plan items in an FKKOP structure.