Ansicht
Dokumentation

HR_ADDON_FEATURE_T_AE - Infotype Add On Feature UAE

HR_ADDON_FEATURE_T_AE - Infotype Add On Feature UAE

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Object

Feature

Use

This feature does

Use

This feature is used to

Standard payroll features may not contain direct reference to MOLGAs or other customizing entries (employee subgroups, ...) that do not exist in the SAP standard system.
Because of this the most common features were identified and enhanced to allow add-on countries/regions to set default values. Explanation is made on the example:

Feature P0009
,,,,D MOLGA

01,,,, &P0009=01,
08,,,, &P0009=08,

..

99,,,, &P0009=,

**,,,, &P0009(RPCADD00),

If the variable argument is equal to "**" then new program RPCADD00 is called. Add-on countries/regions do not have their entries in P0009 => the processing will be redirected to the RPCADD00.

Program RPCADD00 identifies the country/region of the employee and calls function modules:
HR_ADDON_FEATURE _F_mm - for features with passing type = 1 (field transfer)
HR_ADDON_FEATURE_T_mm - for features with passing type = 2 (table transfer)

Functionality

Example

Function module for MOLGA = 18, passing type 1

FUNCTION hr_addon_feature_f_18.

*"--------------------------------------------------------------------

*"*"Local interface:

*" IMPORTING

*" REFERENCE(FEATNAME) LIKE T549D-NAMEN

*" REFERENCE(STRUC)

*" EXPORTING

*" REFERENCE(RETVAL)

*" CHANGING

*" REFERENCE(STATUS)

*"--------------------------------------------------------------------

*----------------------------------------------------------------------

* STATUS = 0 - value determined

* 3 - value not determined or feature not supported by country/region

* TABLES: pme01, pme04, pme07 declared globally

status = '0'. "success is assumed

CASE featname.

WHEN 'ABKRS'. retval = 'T0'.

WHEN 'CONTR'. retval = '365/010-6/012-3/012-12-12-01'.

WHEN 'DTAKT'. retval = 'KB /CZK'.

WHEN 'P0002'. retval = '18'.

WHEN 'P0006'. retval = '18'.

WHEN 'P0009'. retval = '18'.

WHEN 'P0011'. retval = '18'.

WHEN 'P0016'. retval = '18'.

WHEN 'P0021'. retval = '18'.

WHEN 'P0041'. retval = '18'.

WHEN 'ZLSCH'. retval = ''.

WHEN 'LGMST'.

MOVE-CORRESPONDING struc TO pme07.

CASE pme07-persg.

WHEN '1'.

CASE pme07-persk.

WHEN 'T1'. retval = '20/----1T1-'.

WHEN 'T2'. retval = '20/----1T2-'.

WHEN 'T3'. retval = '20/----1T3-'.

WHEN 'T4'. retval = '20/----1T4-'.

WHEN OTHERS. status = '3'.

ENDCASE.

ENDCASE.

WHEN 'SCHKZ'.

MOVE-CORRESPONDING struc TO pme01.

CASE pme01-persg.

WHEN '1'.

CASE pme01-persk.

WHEN 'T1'. retval = 'GLZ'.

WHEN 'T3'. retval = 'GLZ'.

ENDCASE.

WHEN OTHERS. status = '3'.

ENDCASE.

WHEN OTHERS. status = '3'. "not supported by country/region

ENDCASE.

ENDFUNCTION.

Function module for MOLGA = 21, passing type 2

FUNCTION hr_addon_feature_t_21.

*"----------------------------------------------------------------------

*"*"Local interface:

*" IMPORTING

*" REFERENCE(FEATNAME) LIKE T549D-NAMEN

*" REFERENCE(STRUC)

*" TABLES

*" RETVAL

*" CHANGING

*" REFERENCE(STATUS)

*"----------------------------------------------------------------------

*----------------------------------------------------------------------

* STATUS = 0 - value determined

* 3 - value not determined or feature not supported by country/region

* TABLES: pme01, pme04, pme07 declared globally

status = '0'. "success is assumed

CASE featname.

WHEN 'DATAR'.

retval = '01'. APPEND retval.

retval = 'H5'. APPEND retval.

retval = 'H6'. APPEND retval.

WHEN OTHERS. status = '3'. "not supported by country/region

ENDCASE.

ENDFUNCTION.

Notes

Interface description

o,,FEATNAME = feature name
Use it to distinguish which feature calls your function module

o,,STRUC = content of the PME* structure relevant for the feature - not typed !
If you need to access data in the structure, define the feature-specific structure in TABLES and move corresponding data from "struc" to it. See example above = 'LGMST'.

o,,RETVAL = outgoing value. It is either a field or internal table

o,,STATUS = return code
Whenever you return a value, set status to '0'. In all other cases set status to '3'.

This enhancement concept is available for features:
27ADR, ABKRS, ANSAL, CONTR, DATAR, DTAKT, LGMST, MASSN, P0001, P0002, P0004, P0006, P0008, P0009, P0011, P0016, P0021, P0022, P0023, P0041, P0185, P0267, QUOMO, SCHKZ, TARIF, ZLSCH - the program RPCADD00 is called from certain parts of the decision tree.

Additionally the RPCADD00 program is called from feature IVWID although it is not visible directly in the feature. It is called from the RP_GET_IVWID program.

This enhancement concept cannot be used due technical reasons in nested features (LVNUM, LVTYP, UABEG, UAEND).

Further information





Parameters

FEATNAME
RETVAL
STATUS
STRUC

Exceptions

Function Group

0AE2

ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 6464 Date: 20240523 Time: 115752     sap01-206 ( 72 ms )