Fonction SAP BAPI_RENTALAGREEM_CALCSALESSET - Calculates Sales-Based Rent

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BUSINESSENTITY BAPI_RENTALAGREEMENT-BUSINESSENTITY C 8 Number of Business Entity
COMPANYCODE BAPI_RENTALAGREEMENT-COMPANYCODE C 4 Company Code
RENTALAGREEMENTNUMBER BAPI_RENTALAGREEMENT-RENTALAGREEMENTNUMBER C 13 Lease-out Number
RENTALUNIT BAPI_RENTALAGREEMENT-RENTALUNIT C 8 Number of Rental Unit
REPORT_FROM BAPI_RESR_SALESREPORT-REPORT_FROM D 8 Reporting Interval Start for Sales-Based Lease-Out
REPORT_TO BAPI_RESR_SALESREPORT-REPORT_TO D 8 End of Reporting Interval for Sales-Based Lease-Out
TAKE_ACCT_OF_OPEN_AP BAPI_RESR_CALC-TAKE_ACCT_OF_OPEN_AP C 1 'X' X Take Account of Unpaid Advance Payments?

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Parameter
SALES BAPI_RESR_SALESREPORT 58 X Sales Reports
SUM_PER_PERIOD BAPI_RESR_PERIODS_MINIMUM 270 Structure For Managing Settlement Periods

Functionality
A rental agreeement based on sales, such is often the case for kiosksand supermarkets, has been concluded.
The tenant has to report his sales at certain intervals (usuallymonthly). These sales figures are used to calculate the rent due andare balanced with the advance payments that have already been made(settlements can be made on a monthly or annual basis).
This BAPI could be used, for example, in the following case:
Tenants can request the rent amount due via the internet. This enablesthe tenants to post the rent due as a commitment to the vendor in theirsystems.

  • Necessary data:

  • Rental agreememt (key fields in the BOR object of the rental agreement)
    Settlement period (from, to )
    • Returns:

    • Table containing the sales-based rent and additional information (taxindicator, total of sales to be taken into account and so on)
      Table of the reported sales in the settlement period

      Description
      Date on which the settlement period begins.

      Description
      Date on which the settlement period ends.

      Description
      Take unpaid advance payments into account too?

      Description
      Table containing return parameters.

      Description
      Table containing reported sales for the settlement period.

      Description
      Table containing sales-based rent and additional information (taxindicator, total of sales to be taken into account and so on)