SAP Reports / Programs

ROIRHCHSGEN SAP ABAP Report - Clearing House Settlement Message Structure Generator (IS-Oil SSR)







ROIRHCHSGEN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter ROIRHCHSGEN 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

O5BH03 - Generate CH Sttlmnt Msg Structure


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 ROIRHCHSGEN. "Basic submit
SUBMIT ROIRHCHSGEN AND RETURN. "Return to original report after report execution complete
SUBMIT ROIRHCHSGEN 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_ACT = Activate
Selection Text: P_DEACT = Deactivate
Selection Text: P_MS = Settlement Message Structure
Title: Clearing House Settlement Message Structure Generator (IS-Oil SSR)
Text Symbol: 001 = Generating IDOC Segments...
Text Symbol: 002 = Deleting IDOC Segments...
Text Symbol: 003 = Generating IDOC types...
Text Symbol: 004 = Deleting IDOC types...
Text Symbol: 005 = Updating control tables...
Text Symbol: 006 = Generating programs...
Text Symbol: 007 = Generation log


INCLUDES used within this REPORT ROIRHCHSGEN

FORM INCLUDE_GENERATE.
'* PLEASE DO NOT CHANGE MANUALLY, THIS INCLUDE IS GENERATED ! *'
INSERT REPORT C_GEN_INCLUDE FROM L_PROG_TAB.


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:

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING * CORRECTIONS_OPTION = ' ' * CORRECTIONS_FUNC_TEXT = ' ' * LINE_FROM = ' ' * LINE_TO = ' ' object = 'Generation log'(007) * SEND_IF_ONE = ' ' * BATCH_LIST_TYPE = 'J' * SHOW_LINNO = 'X' * SHOW_LINNO_TEXT = ' ' * SHOW_LINNO_TEXT_LEN = '3' * IMPORTING * CORRECTIONS_WANTED = * EXCEPTIONS * INCONSISTENT_RANGE = 1 * NO_MESSAGES = 2 * OTHERS = 3 .

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 1 text = 'Generating IDOC Segments... '(001).

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 1 text = 'Deleting IDOC Segments... '(002).

SEGMENT_CREATE CALL FUNCTION 'SEGMENT_CREATE' * EXPORTING * WI_SET_GENFLAG = ' ' IMPORTING segmentdefinition = g_segmentdefinition task = g_task TABLES segmentstructure = g_segmentstructure_tab CHANGING segmentheader = g_segmentheader devclass = g_devclass order = g_task EXCEPTIONS lock_error = 1 creation_failed = 2 no_authority = 3 transport_error = 4 namespace_violation = 5 OTHERS = 6.

SEGMENT_DELETE CALL FUNCTION 'SEGMENT_DELETE' EXPORTING segmenttyp = g_segmentheader-segtyp IMPORTING * RESULT = task = g_task CHANGING order = g_task EXCEPTIONS segment_not_existing = 1 lock_error = 2 delete_failed = 3 no_authority = 4 transport_error = 5 OTHERS = 6.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 31 text = 'Generating IDOC types... '(003).

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 31 text = 'Deleting IDOC types... '(004).

IDOCTYPE_CREATE CALL FUNCTION 'IDOCTYPE_CREATE' EXPORTING pi_idoctyp = g_idoctyp pi_devclass = g_devclass pi_attributes = g_attributesin IMPORTING pe_attributes = g_attributesout TABLES pt_syntax = g_syntax_tab CHANGING pc_order = g_task EXCEPTIONS object_not_found = 1 object_exists = 2 action_not_possible = 3 syntax_error = 4 segment_error = 5 transport_error = 6 db_error = 7 no_authority = 8 OTHERS = 9.

IDOCTYPE_DELETE CALL FUNCTION 'IDOCTYPE_DELETE' EXPORTING pi_idoctyp = g_idoctyp pi_delete_edimsg = c_flag_off CHANGING pc_order = g_task EXCEPTIONS object_not_found = 1 lock_error = 2 action_not_possible = 3 transport_error = 4 db_error = 5 no_authority = 6 OTHERS = 7.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 61 text = 'Updating control tables... '(005).

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 61 text = text-005.

FIELD_POSITION_IN_SEGMENT_GET CALL FUNCTION 'FIELD_POSITION_IN_SEGMENT_GET' EXPORTING segment = g_filter_tab-segtyp field = g_filter_tab-fieldname IMPORTING offset = g_filter_tab-fieldoff length = g_filter_tab-fieldleng EXCEPTIONS no_fields_found = 1 field_not_in_table = 2 OTHERS = 3.

TR_OBJECTS_CHECK CALL FUNCTION 'TR_OBJECTS_CHECK' TABLES wt_ko200 = l_ko200_tab wt_e071k = l_e071k_tab.

TR_OBJECTS_INSERT CALL FUNCTION 'TR_OBJECTS_INSERT' EXPORTING wi_order = g_task TABLES wt_ko200 = l_ko200_tab wt_e071k = l_e071k_tab.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'OQ_H' msgty = pi_msgty msgv1 = pi_msgv1 msgv2 = pi_msgv2 msgv3 = pi_msgv3 msgv4 = pi_msgv4 txtnr = pi_txtnr zeile = l_counter * IMPORTING * ACT_SEVERITY = * MAX_SEVERITY = * EXCEPTIONS * MESSAGE_TYPE_NOT_VALID = 1 * OTHERS = 3 .

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 71 text = 'Generating programs... '(006).

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 71 text = text-006.

DDIF_TABL_GET





CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = l_segment IMPORTING gotstate = l_state EXCEPTIONS illegal_input = 1 OTHERS = 2.

TR_OBJECTS_CHECK CALL FUNCTION 'TR_OBJECTS_CHECK' TABLES wt_ko200 = l_ko200_tab wt_e071k = l_e071k_tab.

TR_OBJECTS_INSERT CALL FUNCTION 'TR_OBJECTS_INSERT' EXPORTING wi_order = g_task TABLES wt_ko200 = l_ko200_tab wt_e071k = l_e071k_tab.



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