SAP Reports / Programs

SPI_ALE_TRACKINGDATA_CREATE SAP ABAP Report - Test Environment for Calling ALE Agents







SPI_ALE_TRACKINGDATA_CREATE 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 SPI_ALE_TRACKINGDATA_CREATE into the relevant SAP transactions such as SE38 or SE80


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 SPI_ALE_TRACKINGDATA_CREATE. "Basic submit
SUBMIT SPI_ALE_TRACKINGDATA_CREATE AND RETURN. "Return to original report after report execution complete
SUBMIT SPI_ALE_TRACKINGDATA_CREATE 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: INBDIMMD = Synchronous Inbound IDoc
Selection Text: IPIDCNO1 = Outbound IDoc Number
Selection Text: IPIDCNO2 = Additional Outbound IDoc
Selection Text: IPIDCNO3 = Incoming IDoc Number
Selection Text: PROCIMMD = Synchronous IDoc Processing
Selection Text: RFCIMMED = Call tRFC Directly
Selection Text: TRFC1IDC = Only One IDoc for Each tRFC
Title: Test Environment for Calling ALE Agents
Text Symbol: 001 = ALE process successful


INCLUDES used within this REPORT SPI_ALE_TRACKINGDATA_CREATE

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:

IDOC_READ_COMPLETELY CALL FUNCTION 'IDOC_READ_COMPLETELY' EXPORTING document_number = ipidcno1 IMPORTING idoc_control = ls_idoc1_control number_of_data_records = lp_idoc1_number_data_records number_of_status_records = lp_idoc1_number_status_records TABLES int_edids = lt_idoc1_int_edids int_edidd = lt_idoc1_int_edidd EXCEPTIONS document_not_exist = 1 document_number_invalid = 2 OTHERS = 3.

IDOC_READ_COMPLETELY CALL FUNCTION 'IDOC_READ_COMPLETELY' EXPORTING document_number = ipidcno2 IMPORTING idoc_control = ls_idoc2_control number_of_data_records = lp_idoc2_number_data_records number_of_status_records = lp_idoc2_number_status_records TABLES int_edids = lt_idoc2_int_edids int_edidd = lt_idoc2_int_edidd EXCEPTIONS document_not_exist = 1 document_number_invalid = 2 OTHERS = 3.

IDOC_READ_COMPLETELY CALL FUNCTION 'IDOC_READ_COMPLETELY' EXPORTING document_number = ipidcno3 IMPORTING idoc_control = ls_idoc3_control number_of_data_records = lp_idoc3_number_data_records number_of_status_records = lp_idoc3_number_status_records TABLES int_edids = lt_idoc3_int_edids int_edidd = lt_idoc3_int_edidd EXCEPTIONS document_not_exist = 1 document_number_invalid = 2 OTHERS = 3.

SPI_AGENT_IDOC_CREATE CALL FUNCTION 'SPI_AGENT_IDOC_CREATE' EXPORTING is_control_record = ls_idoc1_control it_data_record = lt_idoc1_int_edidd is_appl_obj = ls_app_obj.

ARFC_GET_TID CALL FUNCTION 'ARFC_GET_TID' IMPORTING TID = ls_trfc_id .

SPI_AGENT_IDOC_OUTBOUND CALL FUNCTION 'SPI_AGENT_IDOC_OUTBOUND' DESTINATION dest EXPORTING it_control_records = lt_idoc_controls is_trfc_id = ls_trfc_id.

SPI_AGENT_IDOC_INBOUND CALL FUNCTION 'SPI_AGENT_IDOC_INBOUND' DESTINATION dest EXPORTING is_control_record_old = ls_idoc1_control is_control_record_new = ls_idoc2_control it_data_record = lt_idoc1_int_edidd is_trfc_id = ls_trfc_id.

SPI_AGENT_IDOC_PROCESS CALL FUNCTION 'SPI_AGENT_IDOC_PROCESS' DESTINATION dest EXPORTING is_control_record = ls_idoc2_control it_data_record = lt_idoc2_int_edidd is_appl_obj = ls_app_obj.

SPI_AGENT_IDOC_STATUS CALL FUNCTION 'SPI_AGENT_IDOC_STATUS' DESTINATION dest EXPORTING is_control_record = ls_idoc2_control TABLES it_status_records = lt_idoc2_int_edids .



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