SAP Reports / Programs

ROIB_COPY_DEF SAP ABAP Report - Report for copying default sets from OIB03 to the new Default tables







ROIB_COPY_DEF is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Copy selected parameter default sets from Table OIB03 to the new enhanced parameter default tables This report can be utilized to copy selected default parameter sets into the new parameter default table...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 ROIB_COPY_DEF 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 ROIB_COPY_DEF. "Basic submit
SUBMIT ROIB_COPY_DEF AND RETURN. "Return to original report after report execution complete
SUBMIT ROIB_COPY_DEF 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: B1 = correct sets only
Selection Text: B2 = all sets (checked)
Selection Text: B3 = all sets (NOT checked)
Selection Text: CNTLINES = Package size
Selection Text: GRIDI = List display
Selection Text: LF_UZEIT = D Time
Selection Text: PUPKZ = Update table with ....
Selection Text: RUECK = Reset OIB03 marker field
Selection Text: S_CHARG = Batch
Selection Text: S_DATUM = Date
Selection Text: S_LGORT = Storc. Location
Selection Text: S_MATNR = Material
Selection Text: S_WERKS = Plant
Title: Report for copying default sets from OIB03 to the new Default tables
Text Symbol: 001 = Sets for the new Default table
Text Symbol: 002 = Pre-Selection
Text Symbol: 003 = Update Selection
Text Symbol: 100 = Material/plant combination already updated


INCLUDES used within this REPORT ROIB_COPY_DEF

No INCLUDES are used within this REPORT code!


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:

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = gt_oib_def_index_gm-default_guid.

OIB_QCI_MOVE_STRUC_TO_ITAB CALL FUNCTION 'OIB_QCI_MOVE_STRUC_TO_ITAB' EXPORTING i_structure = gs_oib03_par i_ddic_reference = 'OIB03_PAR' TABLES t_oib_a10 = gt_oib_a10 EXCEPTIONS field_type_not_valid = 1 structure_not_exists = 2 OTHERS = 3.

OIB_QCI_MOVE_ITAB_TO_DBTABLE CALL FUNCTION 'OIB_QCI_MOVE_ITAB_TO_DBTABLE' EXPORTING i_guid = gt_oib_def_index_gm-default_guid i_umrsl = gt_marc-umrsl TABLES t_oib_a10 = gt_oib_a10 t_oib_param = gt_oib_defaults EXCEPTIONS parameter_name_not_valid = 1 unit_missing = 2 OTHERS = 3.

TR_APPEND_LOG CALL FUNCTION 'TR_APPEND_LOG' EXPORTING condense = 'X' master_langu = 'E' TABLES xmsg = iprot.

TR_FLUSH_LOG CALL FUNCTION 'TR_FLUSH_LOG'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_background_id = 'ALV_WALLPAPER2' i_grid_title = 'Sets for the new Default table'(001) it_fieldcat = gt_fieldcat * The field catalog (layout) is always equal, therfore "KH * the buffer should be used (buffer=space=default) "KH i_buffer_active = 'X' "use buffer "KH TABLES t_outtab = gt_oib_def_index_gm EXCEPTIONS program_error = 1 OTHERS = 2.

OIB_UPDATE_DEFAULTS CALL FUNCTION 'OIB_UPDATE_DEFAULTS' IN UPDATE TASK TABLES u_oib_def_index_gm = gt_oib_def_index_gm u_oib_defaults_display = gt_oib_defaults_disp u_oib03 = gt_oib03.

DIMENSION_GET CALL FUNCTION 'DIMENSION_GET' EXPORTING language = sy-langu length = 3 use_buffer = 'X' IMPORTING dimid = gf_dim_volume EXCEPTIONS dimension_not_found = 01.

SI_UNIT_GET CALL FUNCTION 'SI_UNIT_GET' EXPORTING dimension = gf_dim_volume unit = ' ' IMPORTING si_unit = gf_siuom_volume EXCEPTIONS dimension_not_found = 01 unit_not_found = 02.

OIB_QCI_MOVE_DBTABLE_TO_ITAB CALL FUNCTION 'OIB_QCI_MOVE_DBTABLE_TO_ITAB' EXPORTING i_guid = gt_oib_def_index_gm-default_guid TABLES t_oib_a10 = lt_param t_oib_param = lt_defaults EXCEPTIONS parameter_name_not_valid = 1 unit_missing = 2 OTHERS = 3 .

OIB_QCI_MOVE_STRUC_TO_ITAB CALL FUNCTION 'OIB_QCI_MOVE_STRUC_TO_ITAB' EXPORTING i_structure = ls_cntrl i_ddic_reference = 'OIB_A11' TABLES t_oib_a10 = lt_param EXCEPTIONS field_type_not_valid = 1 structure_not_exists = 2 OTHERS = 3.

OIB_QCI_QUANTITY_CONTROL CALL FUNCTION 'OIB_QCI_QUANTITY_CONTROL' TABLES t_qt2tab = lt_qtytable t_param = lt_param t_return = iprot2 EXCEPTIONS calculation_failure = 1 calculation_overflow = 2 trans_uom_not_found = 3 unit_conversion_error = 4 window_cancelled = 5 inconsistent_data = 6 out_of_range = 7 inconsistent_customizing = 8 OTHERS = 9.

OIIC_GET_TIMESTAMP CALL FUNCTION 'OIIC_GET_TIMESTAMP' EXPORTING i_date = gt_oib_def_index_gm-datum i_time = gt_oib_def_index_gm-time "#EC DOM_EQUAL i_zone = sy-zonlo "#EC DOM_EQUAL i_werks = gt_oib_def_index_gm-werks IMPORTING e_timestamp = gt_oib_def_index_gm-timestamp.



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