SAP Reports / Programs

HGRUAPD0 SAP ABAP Report - IKA APD records creation







HGRUAPD0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You run this report to create IKA APD records intern used as basis for most of the legal APD reports...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter HGRUAPD0 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M45_APD0 - IKA APD records creation


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT HGRUAPD0. "Basic submit
SUBMIT HGRUAPD0 AND RETURN. "Return to original report after report execution complete
SUBMIT HGRUAPD0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_YEAR = Calendar Year
Selection Text: P_TEST = Test Execution
Selection Text: P_SEQNR = Company Data Sequential No.
Selection Text: P_MONTH = Calendar Month
Selection Text: P_CURR = D .
Selection Text: P_APDTP = APD Type
Title: IKA APD records creation
Text Symbol: T02 = Page
Text Symbol: T01 = IKA APD Records creation /ERROR messages
Text Symbol: 513 = Or to Cancel execution (No)?
Text Symbol: 512 = ! To overwrite them (Yes)?
Text Symbol: 511 = for APD Type:
Text Symbol: 510 = There are already data created for the selected options
Text Symbol: 505 = No data found for your selections !
Text Symbol: 503 = No APD Records were created !
Text Symbol: 501 = APD Records were created succesfully !
Text Symbol: 499 = Record creation not possible. No record was created !
Text Symbol: 495 = Initial deletion failed for this record.
Text Symbol: 491 = Employee records did not get unlocked for the specific key options !
Text Symbol: 490 = Employee records ares locked for the specific key options !
Text Symbol: 415 = There are NOT INSURANCE DAYS
Text Symbol: 414 = Negative EMPLOYEE'S IKA SUBSIDY AMOUNT found !
Text Symbol: 413 = Negative EMPLOYER'S IKA CONTRIBUTIONS found !
Text Symbol: 412 = Negative EMPLOYEE'S IKA CONTRIBUTIONS found !
Text Symbol: 411 = Negative GROSS AMOUNT found !
Text Symbol: 410 = Negative INSURANCE DAYS found !
Text Symbol: 407 = No FATHER'S NAME was found for the specific key options !
Text Symbol: 406 = No AMKA was found for the specific key options !
Text Symbol: 405 = No IKA REGISTRATION Nr. was found for the specific key options !
Text Symbol: 404 = No TAX ID Nr.(AFM) was found for the specific key options !
Text Symbol: 403 = No IKA Department was found for the specific key options !
Text Symbol: 402 = No KPK was found for the specific key options !
Text Symbol: 401 = No SPECIALTY IKA was found for the specific key options !
Text Symbol: 400 = No KAD was found for the specific key options !


INCLUDES used within this REPORT HGRUAPD0

INCLUDE HGRUCMP0.
INCLUDE HGRUINS0.
INCLUDE HGRUIKA0.
INCLUDE HGRUGEN0.




INCLUDE HGRUACT0.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = w_repid i_internal_tabname = itabname i_inclname = w_repid CHANGING ct_fieldcat = i_fieldcat_alv.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = i_events.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_background_id = 'ALV_BACKGROUND' " i_callback_program = w_variant-report i_default = 'X' " i_save = 'A' * is_variant = w_variant is_layout = w_layout " it_fieldcat = i_fieldcat_alv it_sort = i_sort it_events = i_events i_callback_top_of_page = 'TOP_OF_PAGE' is_print = w_print " TABLES t_outtab = gt_mess.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

DEQUEUE_ET7GR4APD CALL FUNCTION 'DEQUEUE_ET7GR4APD' EXPORTING mode_t7gr4apd = 'E' mandt = sy-mandt bukrs = p_apd-bukrs pyear = p_apd-pyear pmont = p_apd-pmont pernr = p_apd-pernr.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING textline1 = text-505 start_column = 10 start_row = 5 EXCEPTIONS OTHERS = 1.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING textline1 = text-501 start_column = 10 start_row = 5 EXCEPTIONS OTHERS = 1.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING textline1 = text-503 start_column = 10 start_row = 5 EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-510 textline2 = lv_text titel = text-510 IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-510 textline2 = lv_text titel = text-510 IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name HGRUAPD0 or its description.