Ansicht
Dokumentation

SAMPLE_PROCESS_00105020 - Sample function module for accpt period (PPA)

SAMPLE_PROCESS_00105020 - Sample function module for accpt period (PPA)

BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is an interface description only and does not contain any instructions. It is intended for developers of those additional components that provide their own function module at Event 00105020 (PPA:Acceptance period for purchase order line item).

Function module SAMPLE_PROCESS_00105020 must not be changed.

If you want to create your own function module that is to be accessed at the callup point mentioned above, proceed as follows:

  1. Copy the function module to your own name range.
  2. Do not change any transfer parameters !!
  3. Write your own coding in the copied function module.
  4. Save and activate your function module.
  5. Carry out the necessary settings in Customizing. Business Transaction Events

PROCESS

In the Prompt Payment Act, when you create a vendor invoice using Logistics Invoice Verification, you usually post this invoice with reference to one or more line items of the same purchase order or of different purchase orders. Each of these unique references to purchase order line items may have different acceptance periods.

The acceptance period is the predetermined time (in days) for goods to be accepted automatically following a goods receipt. The acceptance period is always added to the goods received date for the material in the line item under consideration.

The default acceptance period is seven days and this value is set by the function module FM_GET_PO_ACCPT_PERIOD. This function module is called by process '00105020' from function FM_GET_PPA_BASELINE_DATE_MM (include LFMPY_EU17). To implement your own acceptance period logic, you must replace this function module using a Business Transaction Event (BTE).

If you like the SAP-delivered function module but need to enhance it, copy the original FM_GET_PO_ACCPT_PERIOD to your own one starting with 'Z' and modify it. Follow the procedure described below to replace the original source code.

To replace the standard SAP function module FM_GET_PO_ACCPT_PERIOD, you need to execute transaction BF44 (customer function modules per process interface). Create a new entry with the key:

  1. Process PROCS = '00105020'
  2. Application APPLK = 'IS-PS'
  3. Function module FUNCT = your own starting with 'Z'
  4. Product PRDKT = user-defined product with active status. The customer products can be defined using transaction BF24. Do not forget to activate the product you are using.

After the change, verify that your new record exists in table TPS34 with the same key as defined above. Do not modify the standard function module FM_GET_PO_ACCPT_PERIOD or replace it in table TPS31. If you need to enhance this module, copy the original function module to your own function module with a name starting with 'Z'.

INTERFACE

The interface requires that the following parameters be passed:

  • E_ACCPT_PRD, which is the parameter that will return the number of days specified by the acceptance period.
  • T_EKPO of structure type EKPO, which contains the purchase order line item record referenced by the invoice expense line item.

With the purchase order line item, you can program your own logic to derive the acceptance date.





Parameters

E_ACCPT_PRD
I_T_EKPO

Exceptions

Function Group

FMFS_BFFMSMPL_E

RFUMSV00 - Advance Return for Tax on Sales/Purchases   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3728 Date: 20240523 Time: 071944     sap01-206 ( 86 ms )