SAP Program RFVIRE41 - Invoice on Rent on Basis of Cash Flow: Correspondence

Description
This report prints invoices for rent on the basis of thecash flow for therental agreement.
The debit position forthe respective rentalagreements and periods must not have already been carried out. Moreabout this at the end.
Only items that have not already been invoiced are used.
The invoice letters are generated percustomer andrental agreement andrental agreement, with the following additional distinctions:
All items with the same

  • Currency

  • Payment method

  • Due month

  • are grouped together in one letter.

    Precondition
    One-time preparations
    --------------------------------
    INCLUDE RECP_PRECONDITIONS_01 OBJECT DOKU ID TX
    Maintain letters
    ------------------
    Before you initially run the report you need at least on form letterfor rental invoices in the word processing system which you use forcorrespondence.
    These letters are stored in the document group SOST.
    Note: If printing is carried out in the back ground for bulkprocessing, the form letters from the sub-application BTCH are used.The form letter for the invoice for rent based on the cash flow isINV_PP_01.
    Check whether this requirement has been fulfilled.
    IF &DEVICE& = 'SCREEN'
    Customizing letters: Execute function
    ENDIF
    For further information, see the description of the correspondenceinterface.

    Output
    The fields for translating amounts into the secondcurrency that are available in the followingstructures are not filledhere. For example, you can, as before, print the deposit amountRVIMIMV_ZS-BKAUTION but not the amount RVIMIMV_ZS-BKAUTCUK in thesecond currency.
    You can display the following data in the letter:

    • Print date which appears on letter: Field VISCRIPT-DRUCKDTM.

    • You use a field, for example the print date 'VISCRIPT-DRUCKDTM', in aSAPscript letter by enclosing the field name between two '&' in theletter text, for example <(>&VISCRIPT-DRUCKDTM&<)>. Theprint date is printed instead of this symbol. Byalso adding '(CZ)' you can suppress blank spaces (C) and leading zeros(Z) in the display. For example, if the field 'BSID-WMWST' is given fora tax amount, enter <(>&BSID-WMWST(CZ)&<)>. You can use these twoadditional features individually or combine them with other ones inaccordance with the SAPscript description.
      • Rent due month: Field VISCRIPT-ZFBMONAT.

      • Rent due year: Field VISCRIPT-ZFBJAHR.

      • Company address:
        INCLUDE RE_CP_OUTPUT_B1_COMPANY_ADRS OBJECT DOKU ID TX
        Data of letter recipient:
        INCLUDE RE_CP_OUTPUT_B1_RECIP_DATA OBJECT DOKU ID TX
        Tenant data:
        INCLUDE RE_CP_OUTPUT_B1_TENANT_DATA OBJECT DOKU ID TX
        General clerk data:
        INCLUDE RE_CP_OUTPUT_B1_G_CLERK_DATA OBJECT DOKU ID TX
        • Business entity data:
        • fields in structureRVIOB01_ZS, to be filled by a LOOP viainternal tableTAB_RVIOB01_ZS.
          • Property data: fields in
          • structure RVIOB02_ZS, tobe filled by a LOOP viainternal tableTAB_RVIOB02_ZS.
            • Building data: fields in
            • structure RVIOB03_ZS, tobe filled by a LOOP viainternal tableTAB_RVIOB03_ZS.
              • Rental unit data: fields
              • in structure RVIMI01_ZS,to be filled by a LOOP viainternal tableTAB_RVIMI01_ZS.
                • Rental unit addresses:
                • fields in structureVIRUADRS, to be filled by a LOOP viainternal tableTAB_VIRUADRS.
                  Each rental unit inTAB_RVIMI01_ZS has an address in TAB_VIRUADRS in the correspondingtable position. Therefore you should not change the order of the tableentries.
                  • Rental agreement data:
                  • fields in structureRVIMIMV_ZS, to be filled by a LOOP viainternal tableTAB_RVIMIMV_ZS.
                    • Items from the cash flow
                    • with additional fields: fields instructure RVIBEPP_ZS, tobe filled by a LOOP viainternal tableTAB_RVIBEPP_ZS.
                      Partners (including owners) from RC and from related objects:
                      INCLUDE RE_CP_OUTPUT_B1_OBJ_PARTNERS OBJECT DOKU ID TX

                      Further_hints
                      If you have printed a letter based on thecash flow, you should notethe following:

                      • If you want to print the cash
                      • flow items in the invoice again at a later time, this is onlypossible as a repeat print (transaction FOVP).
                        • If you carry out a debit
                        • position, FI documentsare generated for the cashflow items already invoiced.
                          In order to avoid accidentally invoicing these open items from FI,you must communicate to the database that an invoice print has alreadybeen carried out for them. To do so, carry out transactionFOVQ.
                          Once you have carried out this transaction, the open FI items can onlybe invoiced by a repeat print (transaction FOMG).
                          When the debit position iscarried out, certain data related to the invoice print is automaticallytransferred from the cashflow to the FI documents
                          . Looking at it in the other direction, if you have already carriedout the debit position,you are not allowed to carry out this first invoice print for therespective rental agreements
                          and periods. Otherwise data would be written to thecash flow that could nolonger be copied to the FIdocuments because thedebit position has alreadybeen carried out.
                          This means that you have to use the initial invoice print on the basisof the FI documents forthe respective rental
                          agreements and periods.
                          In summary:
                          • Before the debit

                          • position for a rentalagreement and period:
                            Initial invoice print can be carried out on the basis of thecash flow.
                            • After the debit position

                            • for a rental agreementand period:
                              Initial invoice print must not be carried out on the basis ofthe cash flow.
                              Invoice repeat print may by carried out on the basis of thecash flow.
                              Initial invoice print and invoice repeat print may be carried out onthe basis of the FI documents
                              .

                              Further information
                              Documentation of a subsequent program