Function documentationExtending Payment Item Information

 

To allow users to add additional values to the information for outgoing invoices processed using Electronic Payment Integration for China, you must extend the database table used for item data storage and implement the Extension of Payment Item Information (EPIC_EXTENSIBILITY_CONTROL) Business Add-In (BAdI). This documentation describes the activities you carry out to extend payment item information.

Activities

Enhance Database Table

After automatic payment proposals are run, the Electronic Payment Integration framework copies the data from the Accounting Document Segment (BSEG) database table into the Item Data (FPRL_ITEM) database table. To add your own custom fields to the FPRL_ITEM database table, you can extend the CI_FPRL_ITEM structure. To display the custom fields added to this structure in the ALV list that is displayed on the Process Items tab page on the Electronic Payment Integration (China) screen, you must manually add these fields to the ALV layout using the standard ALV functions.

Provide Default Value After Proposal Run

Implement the Derive_Default_Value method of the EPIC_EXTENSIBILITY_CONTROL BAdI to set default values for your custom fields for all items picked up by the proposal run. For more information, see Customizing for Extension of Payment Item Information and the BAdI documentation in the system.

Allow Editing of Custom Field Values

All values displayed for the custom fields added to the CI_FPRL_ITEM structure can be edited on the Process Items tab page by clicking the Change Items pushbutton and choosing Edit Custom Fields.

If a user selects more than one item for editing the custom fields, and some of the fields have different values, the Electronic Payment Integration framework prompts the user to choose to omit these fields or change these fields together. If the user selects to change all, the system highlights the fields with different values in the Edit Custom Fields dialog box to indicate that these fields will be changed together. The Electronic Payment Framework also automatically includes changes to custom fields in the item log.

You can enhance the editing process to meet your business requirements as follows:

  • Implement the Check_Before_Save method of the EPIC_EXTENSIBILITY_CONTROL BAdI with your own validation logic before values entered for custom fields are saved to the database.

  • Implement the Value_Help method of the EPIC_EXTENSIBILITY_CONTROL BAdI to provide value help as a dropdown list (F4 help) for custom fields.

The F_EPIC_EXT authorization object controls user access to your custom fields. For more information, see Authorization Checks for Electronic Payment Integration.

Copy Values from FPRL_ITEM to Clearing/Payment Documents in Payment Run

You may want to copy the values from the custom fields in FPRL_ITEM to the payment and clearing documents created with the actual payment run. To support this, the Electronic Payment Integration framework can call a corresponding function module when a user clicks the Pay pushbutton on the Process Items tab page and before the clearing/payment document is generated by the payment programs (SAPF110S and SAPF111S). A sample BTE function module, EPIC_EXT_SMPL_PROCESS_00001120 is available for you to copy to your namespace and use as a starting point for implementing this function in your system.

The sample function module includes the following logic:

  1. Determines if this BTE call is triggered by F110 or F111.

  2. Determines which FPRL_ITEM records have to be copied into the clearing document/payment document.

  3. Copies values to the corresponding fields in clearing/payment document.

Note Note

You can only modify the fields in the BSEG_SUBST structure. If you want to modify fields that are not included in the BSEG_SUBST structure, you first need to include them in the BSEG_SUBST structure.

End of the note.