Ansicht
Dokumentation

HR_F4_GET_SUBTYPE - BAdI: Set Up Entry Help for Subtypes

HR_F4_GET_SUBTYPE - BAdI: Set Up Entry Help for Subtypes

TXBHW - Original Tax Base Amount in Local Currency   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Business Add-In (BAdI) Entry help for subtypes (HR_F4_GET_SUBTYPE) is used to implement the following functions in new or changed infotypes:

  • Possibility of an entry help for subtypes
  • Determining the name of a subtype

The BAdI has two methods:

  • Determine Tables for Entry Helps (GET_TAB_F4_HELP)
  • Determine Text for Subtype (GET_SUBTYPE_TEXT)

These methods are called in the following subtypes, to either create a list of subtypes of an infotype, or to determine the name of a specified subtype:
Determine Subtypes of Infotype (HR_F4_GET_SUBTYPE)
Define Subtype Tables of Infotype (HR_F4_GET_TABLES)
Determine Subtype Texts of Infotype (HR_GET_SUBTYPE_TEXT).

Infotype (parameter FLT_VAL) is used as a filter value, which is used to differentiate between the various implementations of BADIs. All other import parameters in the GET_SUBTYPE_TEXT method interface (excluding SUBTY) are only optional, and are used to determine or restrict the list of possible subtypes, or to determine the subtype exactly.

You can find examples in the implementations HR_GET_SUBTYPE_T591A and HR_GET_SUBTYPE_T512Z.

If no BAdI implementation is available for an infotype, when one of the three function modules is called (Determining Subtypes of Infotype (HR_F4_GET_SUBTYPE), Define Subtype Tables of Infotype (HR_F4_GET_TABLES) and Determining Subtype Texts of Infotype (HR_GET_SUBTYPE_TEXT)), standard coding is run, as long as it is available for the corresponding subtype table. If it is not available, the infotype is classed as "not supported".

If standard coding and a BAdI implementation exists for one infotype, the standard coding is ignored, and the BAdI is processed.

We recommend that you use naming convention HR_GET_SUBTYPE_ for your BAdI implementations of this type, where stands for the name of the corresponding subtype table (such as HR_GET_SUBTYPE_T591A).

Interface

Method: Determine Tables for Entry Helps

Method: Determine Subtype Texts

You can use the above examples as a basis for your implementations.

For more information on using Business Add-Ins, refer to the SAP Library under Basis Components ->ABAP Workbench (BC-DWB) ->Changing the SAP Standard (BC)->Business Add-Ins.






CL_GUI_FRONTEND_SERVICES - Frontend Services   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3250 Date: 20240523 Time: 203203     sap01-206 ( 52 ms )