RGSALEPC 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 profit center 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 RGSALEPC into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
KE79 - EC-PCA: Send ALE Hierarchies
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: CEGROUP = Account group
Selection Text: KOKRS = D Controlling area
Selection Text: LOGSYS = Target system
Selection Text: PCGROUP = Profit center group
Title: Send Profit Center Groups or Account Groups via ALE
Text Symbol: OR1 = and / or
Text Symbol: PCG = Send Profit Center Groups
INCLUDE RGSALEF4.
No SAP DATABASE tables are accessed within this REPORT code!
K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING i_kokrs = kokrs IMPORTING e_kokrs = kokrs.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs IMPORTING e_tka01 = l_tka01.
G_SET_LIST_SELECT_RANGES CALL FUNCTION 'G_SET_LIST_SELECT_RANGES' TABLES class_tab = l_class subclass_tab = l_subcl setname_tab = l_setnm found_sets = l_sets EXCEPTIONS OTHERS = 0.
G_SET_LIST_SELECT_RANGES CALL FUNCTION 'G_SET_LIST_SELECT_RANGES' TABLES class_tab = l_class subclass_tab = l_subcl setname_tab = l_setnm found_sets = l_sets1 EXCEPTIONS OTHERS = 0.
G_SET_ALE_SEND_CO_HIERARCHY CALL FUNCTION 'G_SET_ALE_SEND_CO_HIERARCHY' EXPORTING logsys = logsys setid = l_sets-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.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = sy-msgid msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 txtnr = sy-msgno EXCEPTIONS OTHERS = 0.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GS' msgty = 'S' msgv1 = sy-msgv1 txtnr = '840' EXCEPTIONS OTHERS = 0.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING object = text-pcg send_if_one = 'X' show_linno = ' ' EXCEPTIONS OTHERS = 0.
MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 0.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RGSALEPC - Send Profit Center Groups or Account Groups via ALE RGSALEPC - Send Profit Center Groups or Account Groups via ALE RGSALEH1 - Send Complete CO Hierarchy via ALE RGSALEH1 - Send Complete CO Hierarchy via ALE RGSALEF4 - documentation and ABAP source code RGSALECE - Send Cost Element Groups via ALE