Ansicht
Dokumentation

WCF_GENIL_RELATIVE_D - BAdI: Relative Dates Handler

WCF_GENIL_RELATIVE_D - BAdI: Relative Dates Handler

ROGBILLS - Synchronize billing plans   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this BAdI to create a component dependent handler to Define Relative Dates.

The BAdI interface IF_WCF_GENIL_RELATIVE_DATE has the following methods:

  • GET_RELATIVE_DATE_INFO: In the exporting parameter ET_RDT_EX, the handler can provide a list of the available Relative Date IDsand Operators. This information will be displayed in the F4 help of the Relative Date ID field in the Define Relative Dates Customizing.
  • DETERMINE_DATE_VALUES: This method is called when the user executes the search. With the importing parameter IV_RELATIVE_DATE_ID, the handler can calculate the EV_LOW and EV_HIGH exporting values for the Relative Date ID.

The default implementation (Enhancement Implementation: WCF_GENIL_ENH_IMPL, BAdI Implementation: WCF_GENIL_RELATIVE_DATE_DFLT) is delivered for each component that does not have component specific handlers. This calculation is based on the BRFplus framework where you define BRFplus functions used in the calculation process. You set the low and high values for relative dates using the Maintain BFRplus Settings for the Relative Dates Default Handler Customizing activity. Note that this is relevant only for the BRFplus handler.

In some cases the relative dates have low and high values, for example when calculating the next year or last year. For such relative dates, the Operatoris set to BT and low and high values should be provided by the BAdI implementation.

In other cases, for example, calculating yesterday or tomorrow, the Operator is set to EQ and only the low value should be set in the BAdI implementation.






TXBHW - Original Tax Base Amount in Local Currency   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2171 Date: 20240523 Time: 204430     sap01-206 ( 44 ms )