RGSALEH1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program to send a complete CO hierarchy via ALE...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 RGSALEH1 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: GROUP = D Group name
Selection Text: KOKRS = D Controlling area
Selection Text: LOGSYS = Target system
Selection Text: TABLE = D Table
Title: Send Complete CO Hierarchy via ALE
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' IMPORTING e_kokrs = kokrs.
G_SET_GET_ID_FROM_NAME CALL FUNCTION 'G_SET_GET_ID_FROM_NAME' EXPORTING shortname = group old_setid = setid kokrs = kokrs IMPORTING new_setid = setid.
G_SET_ALE_SEND_CO_HIERARCHY CALL FUNCTION 'G_SET_ALE_SEND_CO_HIERARCHY' EXPORTING logsys = logsys setid = setid EXCEPTIONS no_receivers_found = 1 kokrs_does_not_exist = 2 not_in_source_system_of_kokrs = 3 no_authority_to_read_sets = 4 hierarchy_not_found = 5 subgroup_not_found = 6 no_authority_to_send_idoc = 7 OTHERS = 8.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog "Current program dynumb = sy-dynnr "Current screen TABLES dynpfields = dynpfields. "Relevant screen fields
G_SET_SELECT CALL FUNCTION 'G_SET_SELECT' EXPORTING class = '010+' kokrs = kokrs set = setname_aux typelist = 'BS' IMPORTING setid = setid_aux set_name = setname_aux EXCEPTIONS no_set_picked = 1 no_sets = 2 OTHERS = 3.
DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = dynpfields.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.