Ansicht
Dokumentation

OHA_DK_CUSTREP - Maintain Customer Enhancement for Danish Employee Reports with ALV Output

OHA_DK_CUSTREP - Maintain Customer Enhancement for Danish Employee Reports with ALV Output

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

In this step, you maintain enhancements for Denmark-specific employee reports that use the ABAP List Viewer (ALV) for output, such as:

  • RPCL72M0 - List for infotype 72 (Tax DK) for year-end reporting
  • RPUPRRM0 - Pension report
  • RPCDIFM0 - Difference display for wage types received from PBS in T5M58
  • RPCLLMM0 - List of retroactive differences that occur when employer is changed

To do this, you can insert new fields in the structure HRDK_PERSON_INFO By using the included customer-specific data structure CI_HRDK_PERSON_INFO. You then apply values to the fields using enhancement SE38HRM1, function module EXIT_SAPLHRBAS09_REPORT_PR_001.

You want to make the employee's address available in all reports. Create the structure CI_HRDK_PERSON_INFO and add the field Z_STRAS with the type PAD_STRAS into the structure. Activate the structure. In transaction CMOD, create a project for the customer enhancement (for example ADD_FIELDS). Using Assign enhancements you can add the extension SE38HRM1 to the project. Using Components go to function module EXIT_SAPLHRBAS09_REPORT_PR_001, and create the program ZXHDKU02, which is called up by the function module. Insert this code into the program:

LOOP AT OUTPUT_TAB. SELECT SINGLE * FROM PA0006 WHERE PERNR = OUTPUT_TAB-PERNR
AND BEGDA <= OUTPUT_TAB-ENDDA
AND ENDDA >= OUTPUT_TAB-ENDDA.
OUTPUT_TAB-Z_STRAS = PA0006-STRAS.
MODIFY OUTPUT_TAB.
ENDLOOP.

Consequently, all entries in the output table have the employee's address. You can now use this field in all Danish-specific output reports with ALV output.You can now, for example, print, send mail, sort by address

MODIFY OUTPUT_TAB.

MODIFY OUTPUT_TAB.

MODIFY OUTPUT_TAB.

MODIFY OUTPUT_TAB.

MODIFY OUTPUT_TAB.






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

Length: 2236 Date: 20240523 Time: 173055     sap01-206 ( 54 ms )