Ansicht
Dokumentation

FI_PAYMEDIUM_SAMPLE_25 - Payment Medium: Interface 25 - File Close/Open

FI_PAYMEDIUM_SAMPLE_25 - Payment Medium: Interface 25 - File Close/Open

Vendor Master (General Section)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module FP_PAYMEDIUM_SAMPLE_25 is a template for an event module of interface 25 for creating payment mediums with the generic payment medium program of the Payment Medium Workbench.

At event 25 it can be controlled whether a new payment medium should be started. With the import structures, the payment data and customizing of the payment just processed by event 30 (I_FPAYH_LAST, I_FPAYHX_LAST) and the next payment (I_FPAYH_NEXT, I_FPAYHX_NEXT) are available. Based on this data, it can be decided whether a new physical payment medium (a new file - E_XNEW_FILE = 'X') or a new logical payment medium (no new file - E_XLOG_FILE = 'X') should be created. For each new payment medium, event 40/ 41 is called and for the start of the new payment medium event 20/ 21 only as a completion of the old payment medium before the next event 30 / 31 is processed. If the subdivision of the payment media, such as into files, should be finer than defined in Customizing (Adjust Payment Medium Formats, Create Payment Medium Formats), the additional sort criteria should be indicated with event 00. Event 25 then controls whether the current payment medium is closed and a new one opened.

In the formats supplied by SAP, a customer function module replaces the SAP function module at event 25.

Example

  1. For one format, the payment media (such as files) are to be output separately by currency (such as DEM and EUR) in addition to the granularity (in Customizing the Payment Medium Format it is established how the output of the payment media in separate payment groups should be handled).
  2. To be able to read the data presorted by currency, the currency field should be added to the sort field.
  3. With event 25, a Close/Open should be triggered when switching to the sort field.

Additional possible sort criteria are the value date and the execution date, for example.

Notes

Further information

The documentation of the IMG step Adjust Payment Medium Formats and Create Payment Medium Formats explain how the event modules can be used.





Parameters

E_XLOG_FILE
E_XNEW_FILE
I_FPAYHX_LAST
I_FPAYHX_NEXT
I_FPAYH_LAST
I_FPAYH_NEXT
T_FILE_OUTPUT

Exceptions

Function Group

FPAYM00

PERFORM Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3322 Date: 20240523 Time: 070654     sap01-206 ( 65 ms )