Fonction SAP BAPI_PAYMENTREQ_STARTPAYMENT - Start Payment of Payment Request

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
NEXT_DATE BAPI2021_PAY-NEXT_DATE D 8 '99991231' X Date of Next Payment Run
PAYMENT_RUN_LOG BAPI2021_PAY-PAYMENT_RUN_LOG C 1 X Write the Additional Log for the Payment Run?
PSTNG_DATE BAPI2021_PAY-PSTNG_DATE D 8 SY-DATUM X Posting Date in the Document
TESTRUN BAPI2021_HELP-TESTRUN C 1 X Simulate Payment of Payment Requests
USE_PAYMENT_MEDIUM_TOOL BAPI2021_PAY-USE_PAYMENT_MEDIUM_TOOL C 1 X Create Payment Media with the PAYM-Tool?

Paramètre Reférence Type Long. Description
PAYMENT_RUN_DATE BAPI2021_PAY-PAYMENT_RUN_DATE D 8 Payment Run Date
PAYMENT_RUN_ID BAPI2021_PAY-PAYMENT_RUN_ID C 6 Identification of the Payment Run
RETURN BAPIRET2 u 548 Confirmations

Paramètre Reférence Long. Facultatif Description
REPORTS BAPI2021_REPORTS 54 X Transfer Structure of Reports and Variants
REQUESTID BAPI2021_SELREQUESTID 23 Selection of Payment Request Key

Functionality
A payment run (update run) can be started with this method.

Notes
The following authorization objects are checked with activity 02 (enterparameters) and activity 21 (schedule update run):

  • F_REGU_BUK,,Automatic payment: Action
  • authorization for company codes
    • F_REGU_KOA,,Automatic payment: Action
    • authorization for account types
      Transfer
      The payment requests in table Requestid are transferred. Thepayment run date and payment run ID are determined automatically. AllReports that are transferred are scheduled using your variants.
      Creation of payment media and lists is controlled via the Reports
      table and the import parameter UsePaymentMediumTool. You canfind more information on creation of payment media using the paymentmedium tool in the SAP Library.
      Processing steps
      The method carries out the following processing steps:
      • Determination of payment run parameters from payment requests and
      • method parameters
        • Determination of payment run date and ID

        • Authorization check

        • Creation of payment run parameters in the database

        • Scheduling of payment run (immediate start)

        • COMMIT WORK
          This method starts a COMMIT WORK. All pending data for the posting isposted. Carrying out a ROLLBACK WORK from the application would have noeffect.
          Messages
          INCLUDE BAPI_RET

          Further information
          You can find further information in the SAP Library under FinancialAccounting -> Bank Accounting -> Payment Transactions -> AutomaticPayment -> Payment Program for Payment Requests.

          Description
          Date of the payment run that was created and scheduled by methodPaymentRequest.StartPayment. The date given is the system datewhen the method was carried out.

          Description
          Idenfication of the payment run that was created by the methodPaymentRequest.StartPayment. The identification comprises asequential number (per payment run date) and the letter "R" (paymentrequest payment run).

          Description
          INCLUDE BAPI_TABLE

          Value range
          Type,,ID ,,Number,,Text
          E ,,PZ ,,136 ,, Payment request range table contains no data
          E ,,S& ,,026 ,,Value & in SIGN field can only be I, E
          E ,,S& ,,027 ,,Value & in OPTION field is invalid (EQ,NE,GT,GE,LE,LT
          ,BT,NB,CP,NP)
          E ,,PZ ,,845 ,,With ranges, only the sign "I" (inclusive) ispermitted
          E ,,PZ ,,846 ,,With ranges, only single values ("EQ") and intervals("BT") are permitted
          E ,,PZ ,,135 ,,No valid payment requests could be selected
          E ,,PZ ,,826 ,,Payment run parameters could not be createdautomatically (>&1)
          E ,,PZ ,,817 ,,F111 parameter: Payment run identification checkfailed
          E ,,PZ ,,807 ,,F111 parameter: Run ID already exists
          E ,,PZ ,,808 ,,F111 parameter: Company code check failed
          E ,,PZ ,,809 ,,F111 parameter: Posting date check failed
          E ,,PZ ,,810 ,,F111 parameter: Check of next payment date failed
          E ,,PZ ,,811 ,,F111 parameter: Payment method check failed
          E ,,PZ ,,812 ,,F111 parameter: Vendor check failed
          E ,,PZ ,,813 ,,F111 parameter: Customer check failed
          E ,,PZ ,,814 ,,F111 parameter: Bank account check failed
          E ,,PZ ,,815 ,,F111 parameter: Period check failed
          E ,,PZ ,,818 ,,F111 parameter: Selection date check failed
          E ,,PZ ,,819 ,,F111 parameter: Report name check failed
          E ,,PZ ,,820 ,,F111 Parameter: Variant check failed
          E ,,PZ ,,831 ,,F111 Parameter: Origin indicator check failed
          E ,,PZ ,,829 ,,F111 Parameter: Authorization check failed (companycode)
          S ,,PZ ,,828 ,,Parameters successfully checked
          E ,,FZ ,,359 ,,Parameters could not be read
          E ,,PZ ,,823 ,,Jobs could not be initialized with module &
          E ,,PZ ,,824 ,,Jobs could not be started with module &
          S ,,PZ ,,832 ,,Payment run &1 / &2 started

          Description
          You enter the date on which the next payment run is to take place inthis parameter. The payment program uses this date to decide whetherthe payment should be carried out in this payment run.
          Do not enter any date if you would like the payment program to pay allpayment requests.

          Default

          Description
          When you set this indicator, a detailed payment run log is created.This includes messages of the payment run for due date determination,for payment method selection, and for posting.
          You can view the log by selecting the transaction for payment programfor payment request scheduling, and job management.
          Errors that occurred are logged independently of this indicator and arereturned in the return parameter.

          Default

          Description
          In this parameter you enter the posting date with which the paymentdocuments are posted.

          Default
          If you don't enter a posting date, the system date is used.

          Description
          If you set this indicator, only a parameter check occurs. Nopayment run is created or scheduled.

          Description
          If you set this indicator, the payment medium is created using the newpayment medium tool. Payment methods and Customizing have to be set upaccordingly. You can find further information on the payment mediumtool in Customizing under Financial Accounting -> Accounts Payableand Accounts Receivable -> Business Transactions -> Outgoing Payment ->Payment Media -> Generic PaymentMedium Tool.

          Description
          Contained in this table are reports with variants that are to bescheduled additionally for the payment run. You can enter reports herefor creation of payment media and payment lists as well as for customerprograms.

          Description
          This table contains payment requests to be paid in this payment run.Only the options "EQ" individual value and "BT" interval with the sign"I" inclusive can be used.
          No payment is triggered where the table is empty..