SAP Function Modules

OIGS_SHIPMENT_FOR_VEHICLE SAP Function module - Shipments for vehicle







OIGS_SHIPMENT_FOR_VEHICLE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name OIGS_SHIPMENT_FOR_VEHICLE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OIGS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM OIGS_SHIPMENT_FOR_VEHICLE - OIGS SHIPMENT FOR VEHICLE





CALL FUNCTION 'OIGS_SHIPMENT_FOR_VEHICLE' "Shipments for vehicle
  TABLES
*   i_shipment =                " range_c10     Shipment numbers (RANGE) preselection
    i_veh_type =                "               Vehicle types (RANGE)
    i_vehicle =                 "               Vehicle numbers (RANGE)
    i_veh_id =                  "               Vehicle IDs (RANGE)
    i_carrier =                 "               Carriers (RANGE)
    i_route =                   "               Routes (RANGE)
    e_shipment =                " range_c10     Shipment numbers (RANGE) result
  EXCEPTIONS
    SPECIFICATION_IS_EMPTY = 1  "               No specifications transfered
    NO_ENTRIES_FOUND = 2        "               No shipments found
    .  "  OIGS_SHIPMENT_FOR_VEHICLE

ABAP code example for Function Module OIGS_SHIPMENT_FOR_VEHICLE





The ABAP code below is a full code listing to execute function module OIGS_SHIPMENT_FOR_VEHICLE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_i_shipment  TYPE STANDARD TABLE OF RANGE_C10,"TABLES PARAM
wa_i_shipment  LIKE LINE OF it_i_shipment ,
it_i_veh_type  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_veh_type  LIKE LINE OF it_i_veh_type ,
it_i_vehicle  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_vehicle  LIKE LINE OF it_i_vehicle ,
it_i_veh_id  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_veh_id  LIKE LINE OF it_i_veh_id ,
it_i_carrier  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_carrier  LIKE LINE OF it_i_carrier ,
it_i_route  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_route  LIKE LINE OF it_i_route ,
it_e_shipment  TYPE STANDARD TABLE OF RANGE_C10,"TABLES PARAM
wa_e_shipment  LIKE LINE OF it_e_shipment .


"populate fields of struture and append to itab
append wa_i_shipment to it_i_shipment.

"populate fields of struture and append to itab
append wa_i_veh_type to it_i_veh_type.

"populate fields of struture and append to itab
append wa_i_vehicle to it_i_vehicle.

"populate fields of struture and append to itab
append wa_i_veh_id to it_i_veh_id.

"populate fields of struture and append to itab
append wa_i_carrier to it_i_carrier.

"populate fields of struture and append to itab
append wa_i_route to it_i_route.

"populate fields of struture and append to itab
append wa_e_shipment to it_e_shipment. . CALL FUNCTION 'OIGS_SHIPMENT_FOR_VEHICLE' TABLES * i_shipment = it_i_shipment i_veh_type = it_i_veh_type i_vehicle = it_i_vehicle i_veh_id = it_i_veh_id i_carrier = it_i_carrier i_route = it_i_route e_shipment = it_e_shipment EXCEPTIONS SPECIFICATION_IS_EMPTY = 1 NO_ENTRIES_FOUND = 2 . " OIGS_SHIPMENT_FOR_VEHICLE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
it_i_shipment  TYPE STANDARD TABLE OF RANGE_C10 ,
wa_i_shipment  LIKE LINE OF it_i_shipment,
it_i_veh_type  TYPE STANDARD TABLE OF STRING ,
wa_i_veh_type  LIKE LINE OF it_i_veh_type,
it_i_vehicle  TYPE STANDARD TABLE OF STRING ,
wa_i_vehicle  LIKE LINE OF it_i_vehicle,
it_i_veh_id  TYPE STANDARD TABLE OF STRING ,
wa_i_veh_id  LIKE LINE OF it_i_veh_id,
it_i_carrier  TYPE STANDARD TABLE OF STRING ,
wa_i_carrier  LIKE LINE OF it_i_carrier,
it_i_route  TYPE STANDARD TABLE OF STRING ,
wa_i_route  LIKE LINE OF it_i_route,
it_e_shipment  TYPE STANDARD TABLE OF RANGE_C10 ,
wa_e_shipment  LIKE LINE OF it_e_shipment.


"populate fields of struture and append to itab
append wa_i_shipment to it_i_shipment.

"populate fields of struture and append to itab
append wa_i_veh_type to it_i_veh_type.

"populate fields of struture and append to itab
append wa_i_vehicle to it_i_vehicle.

"populate fields of struture and append to itab
append wa_i_veh_id to it_i_veh_id.

"populate fields of struture and append to itab
append wa_i_carrier to it_i_carrier.

"populate fields of struture and append to itab
append wa_i_route to it_i_route.

"populate fields of struture and append to itab
append wa_e_shipment to it_e_shipment.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OIGS_SHIPMENT_FOR_VEHICLE or its description.