SAP Reports / Programs

HGRUAPD2 SAP ABAP Report - IKA APD overview report







HGRUAPD2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to generate an IKA APD overview file...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 HGRUAPD2 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_APD2 - IKA APD overview report


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 HGRUAPD2. "Basic submit
SUBMIT HGRUAPD2 AND RETURN. "Return to original report after report execution complete
SUBMIT HGRUAPD2 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_APDTP = APD Type
Selection Text: P_CURR = D .
Selection Text: P_MONTH = Year Quarter Months
Selection Text: P_NEGAT = Display Negative records
Selection Text: P_PYTYP = D .
Selection Text: P_SEQNB = D .
Selection Text: P_SEQNR = Company Data Sequential No.
Selection Text: P_YEAR = Calendar Year
Title: IKA APD overview report
Text Symbol: P01 = Page:
Text Symbol: P04 = IKA - Analytical Periodic Overview Report


INCLUDES used within this REPORT HGRUAPD2

INCLUDE HGRUCMP0.
INCLUDE HGRUINS0.
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:

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = gv_endda IMPORTING last_day_of_month = gv_endda EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

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

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' * CALL FUNCTION 'REUSE_ALV_LIST_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 = W_MINUS.

REUSE_ALV_COMMENTARY_WRITE * call function 'REUSE_ALV_COMMENTARY_WRITE' * EXPORTING * IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = p_endda IMPORTING last_day_of_month = p_endda EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

HR_GR_READ_PYRES_INTERVAL CALL FUNCTION 'HR_GR_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'R' fmper = period_fm toper = period_to permo = lv_permo * BEGDA = * ENDDA = * INPER = p_inper * BONDT = APER-BONDT * PAYTY = APER-PAYTY * PAYID = APER-PAYID * TPRUN = ACURR = a_curr ACUDT = a_currdt TABLES all_runs = p_evp ** evp_runs = p_evp rtdet = lt_rtgr.



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 HGRUAPD2 or its description.