SAP Reports / Programs

RGSALEPC SAP ABAP Report - Send Profit Center Groups or Account Groups via ALE







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

KE79 - EC-PCA: Send ALE Hierarchies


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 RGSALEPC. "Basic submit
SUBMIT RGSALEPC AND RETURN. "Return to original report after report execution complete
SUBMIT RGSALEPC 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: 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


INCLUDES used within this REPORT RGSALEPC

INCLUDE RGSALEF4.


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:

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.



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