SAP Reports / Programs

REEDM_ARCH_PROFVALS SAP ABAP Report - Analyze and Archive EDM Profile Values







REEDM_ARCH_PROFVALS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Analyze and Archive Profile Values This report is the first step in the process of archiving profile values...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 REEDM_ARCH_PROFVALS into the relevant SAP transactions such as SE38 or SE80


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 REEDM_ARCH_PROFVALS. "Basic submit
SUBMIT REEDM_ARCH_PROFVALS AND RETURN. "Return to original report after report execution complete
SUBMIT REEDM_ARCH_PROFVALS 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_AR_ILM = D .
Selection Text: P_LAUFZ = Runtime Restriction Active
Selection Text: P_LFZDAT = End Date
Selection Text: P_LFZTIM = End Time
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Selection Text: SE_PRFTP = D .
Selection Text: SE_PROF = D .
Title: Analyze and Archive EDM Profile Values
Text Symbol: S02 = Runtime Restriction
Text Symbol: S04 = Additional restriction of archiving quantity
Text Symbol: T01 = Profile Value Archived for &3 Profiles


INCLUDES used within this REPORT REEDM_ARCH_PROFVALS

INCLUDE: REEDM_ARCH_PROFVALS01,
MEAMAC00.
INCLUDE ARCH_WRITE_PRG_STANDARD2.


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:

ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.

ISU_DB_EPROFTYPE_SELECT_ALL CALL FUNCTION 'ISU_DB_EPROFTYPE_SELECT_ALL' TABLES yt_eproftype = lt_eproftype EXCEPTIONS OTHERS = 0.

ISU_DETERMINE_ARCHIVE_DATES CALL FUNCTION 'ISU_DETERMINE_ARCHIVE_DATES' EXPORTING x_archive_obj = co_isu_profvals_archive_obj IMPORTING y_archive_dates = gv_archive_data-archive_dates * Y_DATE_CHECK = EXCEPTIONS not_found = 1 OTHERS = 2.

ISU_DETERMINE_ARCHIVE_DATES CALL FUNCTION 'ISU_DETERMINE_ARCHIVE_DATES' EXPORTING x_archive_obj = co_isu_bill_obj IMPORTING y_archive_dates = lv_archive_dates * Y_DATE_CHECK = EXCEPTIONS not_found = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = gv_archive_data-detail.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = gv_archive_data-deltst object = co_isu_profvals_archive_obj create_archive_file = gv_archive_data-wriprd comments = gv_archive_data-comm do_not_delete_data = gv_not_delete output_sel_screen_when_dialog = co_true output_sel_screen_when_batch = co_true destroy = gv_destroy IMPORTING archive_handle = gv_archive_data-handle EXCEPTIONS OTHERS = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_COLLECT * CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' * EXPORTING * i_msgtype = '2' * i_msgid = 'EARC' * i_msgno = '201'.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = gv_archive_data-handle IMPORTING archive_name = gv_archive_data-name EXCEPTIONS OTHERS = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '201'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gv_archive_data-handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gv_archive_data-handle EXCEPTIONS OTHERS = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '202'.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '203'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '203'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-t01 i_total = li_num_entries_processed i_output_immediately = space.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-t01 i_total = li_num_entries_processed i_output_immediately = co_true.

ISU_LAST_BILLDATE_FOR_PROFILE





CALL FUNCTION 'ISU_LAST_BILLDATE_FOR_PROFILE' EXPORTING x_only_billcheck = co_true CHANGING xyt_profile_bill = it_profile_bill EXCEPTIONS system_error = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '224'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '225'.

ISU_DB_EDM_TRIGGER_CHECK CALL FUNCTION 'ISU_DB_EDM_TRIGGER_CHECK' EXPORTING x_profilenr = -profile x_from = wa_trigger_from x_to = wa_trigger_to x_only_input_trigger = space x_only_output_trigger = space IMPORTING y_trigger_exist = wa_trigger_exist.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '266'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '227'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '226'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '230'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '229'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '228'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '231'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '231'.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' "New Object register EXPORTING archive_handle = gv_archive_data-handle object_id = lc_archive_index EXCEPTIONS OTHERS = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '232'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '2' i_msgid = 'EARC' i_msgno = '233'.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = gv_archive_data-handle EXCEPTIONS termination_requested = 1 data_object_not_saved = 2 OTHERS = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '205'.

ARCHIVE_PROTOCOL_COLLECT * CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' * EXPORTING * i_object = -profile * i_msgtype = '2' * i_msgid = 'EARC' * i_msgno = '234'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.




ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '1' i_msgid = 'EARC' i_msgno = '235' i_msgv1 = lv_archivefrom i_msgv2 = lv_archiveto.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '1' i_msgid = 'EARC' i_msgno = '601'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '1' i_msgid = 'EARC' i_msgno = '602'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -profile i_msgtype = '1' i_msgid = 'EARC' i_msgno = '235' i_msgv1 = lv_archivefrom i_msgv2 = lv_archiveto.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



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