SAP Reports / Programs

ROIJANMW SAP ABAP Report - IS-Oil TSW Archiving of nominations - write program







ROIJANMW is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program carries out archiving for object OIJ_NOMIN...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 ROIJANMW 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 ROIJANMW. "Basic submit
SUBMIT ROIJANMW AND RETURN. "Return to original report after report execution complete
SUBMIT ROIJANMW 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_COMMEN = Text
Selection Text: P_CREATE = Generate archive file
Selection Text: P_PACKAG = Package size
Selection Text: P_SHPMNT = Check bulk shipment
Selection Text: P_TESTMO = Delete in test mode
Selection Text: SO_NOMNR = Nomination number
Selection Text: SO_TSYST = Transport system
Title: IS-Oil TSW Archiving of nominations - write program
Text Symbol: 020 = Nomination & retention time not reached, cannot be archived
Text Symbol: 040 = & nomination(s) could not be archived
Text Symbol: 050 = Nomination & not archived (customer-exit)
Text Symbol: 060 = No retention time specified in archiving customization for nominations
Text Symbol: 070 = Nomination & not closed, cannot be archived
Text Symbol: 080 = Tickets for nomination & exist, archiving not possible
Text Symbol: 090 = Bulk shipment for nomination & not completely confirmed, archiving not possible


INCLUDES used within this REPORT ROIJANMW

INCLUDE: OIJ_STATUS_CODES,
ROIJAALI,
ROIJASHT,
ROIJANMI.


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_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = p_testmo create_archive_file = p_create comments = p_commen object = g_object IMPORTING archive_handle = g_archive_handle.

OIJNOMH_ARRAY_READ CALL FUNCTION 'OIJNOMH_ARRAY_READ' EXPORTING it_oijnomh_key = nom_tab[] IMPORTING et_oijnomh = g_oijnomh_tab[] EXCEPTIONS records_not_found = 0 records_not_requested = 0 OTHERS = 0.

OIJNOMST_ARRAY_READ CALL FUNCTION 'OIJNOMST_ARRAY_READ' EXPORTING it_oijnomst_key = nom_tab[].

OIJ_NOMST_AUTHORIZE CALL FUNCTION 'OIJ_NOMST_AUTHORIZE' EXPORTING iv_nomtk = g_oijnomh_tab-nomtk iv_nomtyp = g_oijnomh_tab-nomtyp iv_activity = '24' "<- Archiving in table TACT EXCEPTIONS no_authorization = 1 OTHERS = 2.

OIJ_NOMST_CHECK_STATUS CALL FUNCTION 'OIJ_NOMST_CHECK_STATUS' EXPORTING iv_status = gc_status_complete iv_nomtk = g_oijnomh_tab-nomtk EXCEPTIONS status_not_set = 1 status_not_active = 2 OTHERS = 3.

OIJNOMI_ARRAY_READ CALL FUNCTION 'OIJNOMI_ARRAY_READ' EXPORTING it_oijnomh_key = nom_tab[] EXCEPTIONS OTHERS = 0.

OIJNOMC_ARRAY_READ CALL FUNCTION 'OIJNOMC_ARRAY_READ' EXPORTING it_oijnomc_key = nom_tab[] EXCEPTIONS OTHERS = 0.

OIJNOMM_ARRAY_READ CALL FUNCTION 'OIJNOMM_ARRAY_READ' EXPORTING it_oijnomm_key = nom_tab[] EXCEPTIONS OTHERS = 0.

OIJNE_ARRAY_READ CALL FUNCTION 'OIJNE_ARRAY_READ' EXPORTING it_oijne_key = nom_tab[] EXCEPTIONS OTHERS = 0.

OIJNOMR_ARRAY_READ CALL FUNCTION 'OIJNOMR_ARRAY_READ' EXPORTING it_oijnomh_key = nom_tab[] EXCEPTIONS OTHERS = 0.

OIJNOMCOMM_ARRAY_READ CALL FUNCTION 'OIJNOMCOMM_ARRAY_READ' EXPORTING it_oijnomh_key = nom_tab[] EXCEPTIONS OTHERS = 0.

OIJNOM_SUBITEMS_ARRAY_READ CALL FUNCTION 'OIJNOM_SUBITEMS_ARRAY_READ' EXPORTING it_oijnomi_key = lt_nomit[] EXCEPTIONS OTHERS = 0.

OIJNOM_HATCH_ARRAY_READ CALL FUNCTION 'OIJNOM_HATCH_ARRAY_READ' EXPORTING it_oijnomh_key = nom_tab[] EXCEPTIONS OTHERS = 0.

OIJNOM_SIEVENTS_ARRAY_READ CALL FUNCTION 'OIJNOM_SIEVENTS_ARRAY_READ' EXPORTING it_oijnomsi_key = lt_nomsi[] EXCEPTIONS records_not_found = 0 records_not_requested = 0 OTHERS = 0.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = g_archive_handle object_id = g_oijnomh_tab-nomtk.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = g_archive_handle record = g_oijnomh_tab record_structure = c_oijnomh.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = g_archive_handle.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = g_archive_handle.

ARCHIVE_CLOSE_FILE





CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = g_archive_handle.

OIJNOMI_ARRAY_READ CALL FUNCTION 'OIJNOMI_ARRAY_READ' EXPORTING it_oijnomh_key = lt_nomtk[] IMPORTING et_oijnomi = g_oijnomi_tab[] EXCEPTIONS OTHERS = 0.

OIJNOMC_ARRAY_READ CALL FUNCTION 'OIJNOMC_ARRAY_READ' EXPORTING it_oijnomc_key = lt_nomtk[] IMPORTING et_oijnomc = g_oijnomc_tab[] EXCEPTIONS OTHERS = 0.

OIJNOMM_ARRAY_READ CALL FUNCTION 'OIJNOMM_ARRAY_READ' EXPORTING it_oijnomm_key = lt_nomtk[] IMPORTING et_oijnomm = g_oijnomm_tab[] EXCEPTIONS OTHERS = 0.

OIJNE_ARRAY_READ CALL FUNCTION 'OIJNE_ARRAY_READ' EXPORTING it_oijne_key = lt_nomtk[] IMPORTING et_oijne = g_oijne_tab[] EXCEPTIONS OTHERS = 0.

OIJNOM_SUBITEMS_ARRAY_READ CALL FUNCTION 'OIJNOM_SUBITEMS_ARRAY_READ' EXPORTING it_oijnomi_key = lt_nomit[] IMPORTING et_oijnomsubitems = g_oijnomsubitems_tab[] EXCEPTIONS OTHERS = 0.

OIJNOM_HATCH_ARRAY_READ CALL FUNCTION 'OIJNOM_HATCH_ARRAY_READ' EXPORTING it_oijnomh_key = lt_nomtk[] IMPORTING et_oij_nomhatload = g_oijnom_hatchload_tab[] et_oij_nomhatplan = g_oijnom_hatchplan_tab[] EXCEPTIONS OTHERS = 0.

OIJNOM_SIEVENTS_ARRAY_READ CALL FUNCTION 'OIJNOM_SIEVENTS_ARRAY_READ' EXPORTING it_oijnomsi_key = lt_nomsi IMPORTING et_oijsubitemevents = g_oijnom_sievents_tab[] EXCEPTIONS records_not_found = 0 records_not_requested = 0 OTHERS = 0.

OIJNOMST_ARRAY_READ CALL FUNCTION 'OIJNOMST_ARRAY_READ' EXPORTING it_oijnomst_key = lt_nomtk[] TABLES et_status_upd = lt_oijnomst_upd[].

OIJNOMR_ARRAY_READ CALL FUNCTION 'OIJNOMR_ARRAY_READ' EXPORTING it_oijnomh_key = lt_nomtk[] IMPORTING et_oijnomr = g_oijnomr_tab[] EXCEPTIONS OTHERS = 0.

OIJNOMCOMM_ARRAY_READ CALL FUNCTION 'OIJNOMCOMM_ARRAY_READ' EXPORTING it_oijnomh_key = lt_nomtk[] IMPORTING et_oijnomcomm = g_oijnomcomm_tab[] EXCEPTIONS OTHERS = 0.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_archive_handle record_structure = pi_struc TABLES table = px_itab.

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING id = '*' language = '*' * NAME = G_TEXT_KEY-TDNAME * OBJECT = G_TEXT_KEY-TDOBJECT TABLES t_object = lt_tdobject t_name = lt_name selections = g_header_tab.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = g_archive_handle id = g_header_tab-tdid language = g_header_tab-tdspras name = g_header_tab-tdname object = g_header_tab-tdobject object_delete_flag = 'X'.

OIGS_SINGLE_READ CALL FUNCTION 'OIGS_SINGLE_READ' EXPORTING i_shnumber = pi_oijnomh-shnum IMPORTING e_oigs = oigs EXCEPTIONS record_not_found = 0 OTHERS = 0.



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