SAP Reports / Programs | Controlling | Overhead Cost Controlling | Overhead Cost Orders(CO-OM-OPA) SAP CO

R_ALE_INTERNALORDER_SEND SAP ABAP Report - Distribute internal order using ALE







R_ALE_INTERNALORDER_SEND is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program for targeted sending of one or more internal orders (order categories 01 and 02) from the master system to one or more receiver systems using 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 R_ALE_INTERNALORDER_SEND 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

KOA1 - Send Internal Order


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 R_ALE_INTERNALORDER_SEND. "Basic submit
SUBMIT R_ALE_INTERNALORDER_SEND AND RETURN. "Return to original report after report execution complete
SUBMIT R_ALE_INTERNALORDER_SEND VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Distribute internal order using ALE
Selection Text: DTARGET = According to ALE Customizing
Selection Text: SELAUART = Order type
Selection Text: SELAUFNR = Order
Selection Text: SELKOKRS = Controlling area
Selection Text: SELVAR = Selection variant
Selection Text: TARGET = Receiver system
Title: Distribute internal order using ALE
Text Symbol: 018 = Errors occurred for the following orders (no processing):
Text Symbol: 017 = Following orders transferred without error to ALE outbound processing:
Text Symbol: 001 = Receiver group determination
Text Symbol: 009 = Order:
Text Symbol: 010 = Receiver system:
Text Symbol: 011 = According to ALE Customizing
Text Symbol: 012 = Number of orders selected:
Text Symbol: 013 = Number of orders triggered for ALE distribution:
Text Symbol: 014 = Number of orders for which ALE distribution is not possible:
Text Symbol: 015 = No orders were selected
Text Symbol: 016 = Log


INCLUDES used within this REPORT R_ALE_INTERNALORDER_SEND

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:

K_VALUE_REQUEST_AUART CALL FUNCTION 'K_VALUE_REQUEST_AUART' EXPORTING display = ' ' fieldname = 'AUART' tabname = 'T003O' IMPORTING select_value = selauart-low TABLES autyp_tab = t_allowed_autyp.

RS_VARIANT_CATALOG CALL FUNCTION 'RS_VARIANT_CATALOG' EXPORTING report = 'RKOSEL00' IMPORTING sel_variant = selvar.

K_ORDER_SELECT CALL FUNCTION 'K_ORDER_SELECT' EXPORTING i_autyp_erl = '01,02' i_fill_t_aufk = 'X' i_variant = selvar i_send_warning = space IMPORTING e_tabix = counter_orders TABLES t_aufk = t_aufk.

K_ORDER_SELECT CALL FUNCTION 'K_ORDER_SELECT' EXPORTING i_autyp_erl = '01,02' i_fill_t_aufk = 'X' i_send_warning = space IMPORTING e_tabix = counter_orders TABLES t_cosel = t_cosel t_aufk = t_aufk.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

KAUF_ALE_ORDER_DISTRIBUTE CALL FUNCTION 'KAUF_ALE_ORDER_DISTRIBUTE' EXPORTING i_coas = s_coas i_message_handler = 'X' TABLES t_receiver_input = t_receiver_input.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 4 e_message = 3 i_message = 1 w_message = 2.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = t_mesg.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = p_arbgb msgnr = p_txtnr IMPORTING message_text_output = pt_mesg_list-text.

MASS_MESSAGE_SHOW_LONGTEXT CALL FUNCTION 'MASS_MESSAGE_SHOW_LONGTEXT' EXPORTING arbgb = pt_mesg_failure-arbgb msgnr = pt_mesg_failure-txtnr msgv1 = pt_mesg_failure-msgv1 msgv2 = pt_mesg_failure-msgv2 msgv3 = pt_mesg_failure-msgv3 msgv4 = pt_mesg_failure-msgv4 EXCEPTIONS not_found = 1.

MASS_MESSAGE_SHOW_LONGTEXT CALL FUNCTION 'MASS_MESSAGE_SHOW_LONGTEXT' EXPORTING arbgb = pt_mesg_success-arbgb msgnr = pt_mesg_success-txtnr msgv1 = pt_mesg_success-msgv1 msgv2 = pt_mesg_success-msgv2 msgv3 = pt_mesg_success-msgv3 msgv4 = pt_mesg_success-msgv4 EXCEPTIONS not_found = 1.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.



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