Ansicht
Dokumentation

OHADPSST_WFEFILLEF02 - BAdI: Create Text in Comments Input Field

OHADPSST_WFEFILLEF02 - BAdI: Create Text in Comments Input Field

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

The Business Add-In (BAdI) HRDEPBS_PSST_WFE_FILL_EF02 is used to create a text for employees in science, research, and development in the personnel statistics in the input field Comment. The field must not contain a semicolon.

If you want to create a comment, create a customer-specific implementation. In method FILL_EF02 you can create the text of your choice as the return value EV_BEMERKUNG.

The method for the interface IF_HRDEPBS_PSST_WFE_FILL_EF02 contains the following parameters:

  • IV_PERNR: Personnel Number
  • IV_STICHTAG: Key Date
  • IO_MSG_HANDLER: Instance of the message handler
  • EV_BEMERKUNG: Comment
  • EV_IS_OK: Export Parameter. Indicates whether the method was executed without an error. If this parameter is initial, the system terminates further processing and displays the error messages of the message handler.

Activate the implementation.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

ev_is_ok = abap_true.

ev_bemerkung = 'Fill test EF02;Comment'.

ENDMETHOD.

You want to create the text so that it depends on the personnel number.

To do so, you create a customer-specific implementation in which the method

FILL_EF02 is as follows, for example:

METHOD if_hrdepbs_psst_wfe_fill_ef02~fill_ef02.

  ev_is_ok = abap_true.

  IF iv_pernr = '40122002'.

    ev_bemerkung = 'Test to fill input field Comment'.

  ENDIF.

ENDMETHOD.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3195 Date: 20240523 Time: 190828     sap01-206 ( 99 ms )