SAP Reports / Programs | Transportation and Distribution | Industry Solution Oil | Transportation and Distribution(IS-OIL-DS-TD) SAP IS

ROIGTRSL SAP ABAP Report - TD Find Shipments (e.g. for shipment costing)







ROIGTRSL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program is used to display a list of shipment documents for the following functions: VT11 Transportation -> List -> Transport planning VT12 Transportation -> List -> Transport processing Possible entries function for shipment numbers (VT02/VT03) In Customizing, you can define the selection views which determine which selection screens (SELECT-OPTIONS) are displayed for these reports...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 ROIGTRSL 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

O4B1 - Start shipment worklist


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 ROIGTRSL. "Basic submit
SUBMIT ROIGTRSL AND RETURN. "Return to original report after report execution complete
SUBMIT ROIGTRSL 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: K_VSART = D .
Selection Text: K_TPLST = D .
Selection Text: K_SSTSF = D .
Selection Text: K_SSTDT = Scheduling end
Selection Text: K_SHTYP = D .
Selection Text: K_SHNUM = D .
Selection Text: K_LSTDTA = Actual load start
Selection Text: K_LSTDT = D .
Selection Text: K_LEDDTA = Actual load end
Selection Text: K_LEDDT = D .
Selection Text: K_DSTDTA = Actual del.conf. start
Selection Text: K_DSTDT = Planned del.conf. start
Selection Text: K_DEDDTA = Actual del.conf. end
Selection Text: K_DEDDT = Planned del.conf. end
Selection Text: K_CRNAM = D .
Selection Text: K_CRDAT = D .
Selection Text: K_CHNAM = D .
Selection Text: K_CHDAT = D .
Selection Text: K_CARRIE = D .
Selection Text: A_WERKZ = Plant destination point
Selection Text: A_WERKA = Plant departure point
Selection Text: A_VSTEZ = D .
Selection Text: K_XBLNR = D .
Selection Text: UPTO = Process upto status (mandat.)
Selection Text: S_VTYPE = D .
Selection Text: S_VEHID = Misc.vehicle ID
Selection Text: S_VEHIC = D .
Selection Text: S_VBELN = Delivery
Selection Text: S_ROUTE = D .
Selection Text: S_RESER = Reservation
Selection Text: S_LIAVN = Shipping notification
Selection Text: S_EBELN = D .
Selection Text: S_DRIVER = D .
Selection Text: S_CARRIE = D .
Selection Text: S_AUFNR = Order
Selection Text: REFSHPM = Reference shpm. no. (10 digit)
Selection Text: RAPID = Do rapid delivery confirmation
Selection Text: P_NO_DG = D .





Selection Text: P_DG_OK = D .
Selection Text: P_DG_LCK = D .
Selection Text: P_DG_CAL = D .
Selection Text: P_DG_ALL = D .
Selection Text: P_CNT_DG = D .
Selection Text: O_LIDTYP = D .
Selection Text: O_LIDNO = D .
Selection Text: A_VSTEL = D .
Selection Text: A_VSART = Shipping type stage
Selection Text: A_TDLNR = D .
Selection Text: A_LSTEZ = Loading point at dest. point
Selection Text: A_LSTEL = Loading point at dep. point
Selection Text: A_LIFNZ = Vendor dest.point
Selection Text: A_LIFNA = Vendor dep.point
Selection Text: A_LGORZ = Storage location dest. point
Selection Text: A_LGORA = Storage location dep. point
Selection Text: A_KUNNZ = Customer dest.point
Selection Text: A_KUNNA = Customer dep.point
Selection Text: A_KNOTZ = Destination point
Selection Text: A_KNOTA = Departure point
Title: TD Find Shipments (e.g. for shipment costing)
Text Symbol: S10 = Reference
Text Symbol: S09 = Administrative data
Text Symbol: S07 = ShStg DestPoint
Text Symbol: S06 = ShStg DepartPoint
Text Symbol: S05 = ShStg General
Text Symbol: S03 = Status/Deadlines
Text Symbol: S02 = Processing
Text Symbol: S01 = General data
Text Symbol: DG7 = Not included
Text Symbol: DG6 = Included
Text Symbol: DG5 = Dangerous goods
Text Symbol: DG4 = Both
Text Symbol: DG3 = Blank
Text Symbol: DG2 = Set
Text Symbol: DG1 = BlockingInd.DG
Text Symbol: S12 = Vehicle
Text Symbol: S13 = Terminal automation system
Text Symbol: S14 = Batch control





Text Symbol: S15 = Get mass processing parameters from reference shipment
Text Symbol: S16 = Dangerous Goods
Text Symbol: T05 = Shipment stage: General
Text Symbol: T06 = Shipment stage: Departure point
Text Symbol: T07 = Shipment stage: Destination point
Text Symbol: U01 = List level:
Text Symbol: U02 = Entries:
Text Symbol: U03 = View:
Text Symbol: V03 = Find Bulk Shipment
Text Symbol: V06 = Create Shipment Costs
Text Symbol: V07 = Maintain Selection Variant
Text Symbol: V08 = TD Worklist
Text Symbol: V09 = Multi Shipment Batch Processing


INCLUDES used within this REPORT ROIGTRSL

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:

RANGE_CHECK_FOR_SINGLE_VALUES CALL FUNCTION 'RANGE_CHECK_FOR_SINGLE_VALUES' IMPORTING IS_SINGLE = L_RANGE_IS_SINGLE TABLES RANGE_TAB = K_SHNUM EXCEPTIONS OTHERS = 0.

OIGS_SHIPMENT_FOR_PURCHORD CALL FUNCTION 'OIGS_SHIPMENT_FOR_PURCHORD' TABLES I_SHIPMENT = K_SHNUM I_PURCHORD = S_EBELN E_SHIPMENT = K_SHNUM EXCEPTIONS PURCHORD_I_EMPTY = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

OIGS_SHIPMENT_FOR_SHINOTIF CALL FUNCTION 'OIGS_SHIPMENT_FOR_SHINOTIF' TABLES I_SHIPMENT = K_SHNUM I_SHINOTIF = S_LIAVN E_SHIPMENT = K_SHNUM EXCEPTIONS SHINOTIF_I_EMPTY = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

OIGS_SHIPMENT_FOR_SALESORD CALL FUNCTION 'OIGS_SHIPMENT_FOR_SALESORD' TABLES I_SHIPMENT = K_SHNUM I_SALESORD = S_AUFNR E_SHIPMENT = K_SHNUM EXCEPTIONS SALESORD_I_EMPTY = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

OIGS_SHIPMENT_FOR_DELIVERY CALL FUNCTION 'OIGS_SHIPMENT_FOR_DELIVERY' TABLES I_SHIPMENT = K_SHNUM I_DELIVERY = S_VBELN E_SHIPMENT = K_SHNUM EXCEPTIONS DELIVERY_I_EMPTY = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

OIGS_SHIPMENT_FOR_RESERVATION CALL FUNCTION 'OIGS_SHIPMENT_FOR_RESERVATION' TABLES I_SHIPMENT = K_SHNUM I_RESERVTN = S_RESER E_SHIPMENT = K_SHNUM EXCEPTIONS RESERV_I_EMPTY = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

OIGS_SHIPMENT_FOR_VEHICLE CALL FUNCTION 'OIGS_SHIPMENT_FOR_VEHICLE' TABLES I_SHIPMENT = K_SHNUM I_VEH_TYPE = S_VTYPE I_VEHICLE = S_VEHIC I_VEH_ID = S_VEHID I_CARRIER = S_CARRIE I_ROUTE = S_ROUTE E_SHIPMENT = K_SHNUM EXCEPTIONS SPECIFICATION_IS_EMPTY = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

OIGS_SHIPMENT_FOR_DRIVER CALL FUNCTION 'OIGS_SHIPMENT_FOR_DRIVER' TABLES I_SHIPMENT = K_SHNUM I_DRIVERCODE = S_DRIVER E_SHIPMENT = K_SHNUM EXCEPTIONS SPECIFICATION_IS_EMPTY = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

OIGO_SHIPMENT_ALV_VIEW_CHANGE CALL FUNCTION 'OIGO_SHIPMENT_ALV_VIEW_CHANGE'.

ENQUEUE_E_OIGS CALL FUNCTION 'ENQUEUE_E_OIGS' EXPORTING SHNUMBER = G_OIGS_TAB-SHNUMBER EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.

DEQUEUE_E_OIGS CALL FUNCTION 'DEQUEUE_E_OIGS' EXPORTING SHNUMBER = G_OIGS_TAB-SHNUMBER.

ENQUEUE_E_OIGS



CALL FUNCTION 'ENQUEUE_E_OIGS' EXPORTING SHNUMBER = G_OIGS_TAB-SHNUMBER EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.

DEQUEUE_E_OIGS CALL FUNCTION 'DEQUEUE_E_OIGS' EXPORTING SHNUMBER = G_OIGS_TAB-SHNUMBER.

SD_SHIPMENT_PROTOCOL_GET CALL FUNCTION 'SD_SHIPMENT_PROTOCOL_GET' TABLES C_PROTOCOL = G_PROTOCOL EXCEPTIONS OTHERS = 0.

SD_SHIPMENT_PROTOCOL_OUTPUT CALL FUNCTION 'SD_SHIPMENT_PROTOCOL_OUTPUT' EXPORTING I_OUTPUT_MODE = 1 TABLES I_TREELIST_LAYOUT = LAYOUT EXCEPTIONS OTHERS = 0.

OIGO_SHIPMENT_ALV_INFO_GET CALL FUNCTION 'OIGO_SHIPMENT_ALV_INFO_GET' IMPORTING * e_sort_field = sort_field * e_sort_direction = sort_direction E_LIST_LEVEL = L_LIST_LEVEL E_VIEW_ID = L_VIEW_ID EXCEPTIONS OTHERS = 0.

RS_VARIANT_SAVE_FROM_SELSCREEN CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN' EXPORTING CURR_REPORT = REPNAME USER_VARI = US_VARIANT IMPORTING * variant = l_variant FUNCTION = L_FCODE EXCEPTIONS OTHERS = 1.

RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING REPORT = REPNAME VARIANT = US_VARIANT IMPORTING R_C = RETCODE EXCEPTIONS NOT_AUTHORIZED = 1 NO_REPORT = 2 REPORT_NOT_EXISTENT = 3 REPORT_NOT_SUPPLIED = 4 OTHERS = 5.

RS_VARIANT_DELETE CALL FUNCTION 'RS_VARIANT_DELETE' EXPORTING REPORT = REPNAME VARIANT = US_VARIANT IMPORTING VARIANT = US_VARIANT EXCEPTIONS NOT_AUTHORIZED = 1 NOT_EXECUTED = 2 NO_REPORT = 3 REPORT_NOT_EXISTENT = 4 REPORT_NOT_SUPPLIED = 5 VARIANT_LOCKED = 6 VARIANT_NOT_EXISTENT = 7 VARIANT_PROTECTED = 8 OTHERS = 9.

RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING REPORT = REPNAME VARIANT = P_VARIANT IMPORTING R_C = RETCODE EXCEPTIONS NOT_AUTHORIZED = 1 NO_REPORT = 2 REPORT_NOT_EXISTENT = 3 REPORT_NOT_SUPPLIED = 4 OTHERS = 5.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = REPNAME TABLES SELECTION_TABLE = SELTAB EXCEPTIONS OTHERS = 1.

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING P_STATUS = PFSTATUS_START P_PROGRAM = ROIGTRSL TABLES P_EXCLUDE = G_EXCLUDE EXCEPTIONS OTHERS = 0.

SD_SCDS_CREATE CALL FUNCTION 'SD_SCDS_CREATE' EXPORTING I_OPT_PACKAGE_SIZE = PACSZ I_OIGSCAPPL = C_OIGSCAPPL-TD IMPORTING E_REFOBJ_RANGE_LOCKED = G_OBJECT_RANGE_LOCKED[] CHANGING C_REFOBJ_RANGE = G_OBJECT_RANGE[] EXCEPTIONS OTHERS = 0.

SD_SCDS_CREATE CALL FUNCTION 'SD_SCDS_CREATE' EXPORTING I_OPT_PACKAGE_SIZE = PACSZ I_OIGSCAPPL = C_OIGSCAPPL-TD IMPORTING E_REFOBJ_RANGE_LOCKED = G_OBJECT_RANGE_LOCKED[] CHANGING C_REFOBJ_RANGE = G_OBJECT_RANGE[] EXCEPTIONS OTHERS = 0.

OIGO_SHIPMENT_ALV CALL FUNCTION 'OIGO_SHIPMENT_ALV' EXPORTING I_REPORT_NAME = ROIGTRSL I_MODE = I_MODE TABLES C_ALV_TAB = G_OIGS_TAB EXCEPTIONS OTHERS = 0.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = 'ROIGTRSL' TABLES SELECTION_TABLE = L_SEL_TAB 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 ROIGTRSL or its description.