OIJ_VEH_AVAILABILITY 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 OIJ_VEH_AVAILABILITY into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
OIJ_FM
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'OIJ_VEH_AVAILABILITY' "Vehicle Availability
EXPORTING
* iv_app_area = '3WP' " oij_vehavl_apparea Vehicle Available Application Area
iv_fr_date = " oij_el_valf Validity period start date
iv_to_date = " oij_el_valt Validity period end date
* iv_vhrlper = " oij_period OIL-TSW: Rolling period
* iv_minavlper = " oij_period OIL-TSW: Rolling period
* iv_remcap = " oij_remcap_quan Remaining capacity in quantity
* iv_remcap_uom = " oij_unit General unit of measure
* iv_remcap_perc = " oij_remcap_perc Remaining capacity in percentage
* it_loc = " roij_locid_rtab Ranges Table Selection LOCID
* it_mat = " roij_matnr_rtab Ranges Table Selection MATNR
* it_fc_no = " oij_cpno_rtab Ranges Table Selection OIJ_EL_CPNO
* it_fc_pos_no = " oij_posnr_rtab Ranges Table Selection OIJ_EL_POSNR
* iv_vbtyp = " oij_el_cpvbtyp Freight contract document type
* it_fc_veh = " roij_doc_veh_assgn_t Contract ~ Vehicle Assignment
* it_vehicle = " roij_vhlnmr_rtab Vehicle List
* it_mot = " roij_vktra_rtab MoT List
* it_ts = " roij_tsyst_rtab Transport System List
* it_carrier = " roij_carrnr_rtab Selection Range
* it_shipper = " roij_ship_rtab Ranges Table Selection OIJ_SHIPNR
* iv_upper_limit = 100 " tbmaxsel Maximum number of selected entries
* is_crnmdet = " roij_crnmdet Current Nomination Details
* it_vehicle_type = " roij02_vhltyp_rtab Ranges Table Selection OIG_VHLTYP
IMPORTING
et_trans_avail_tab = " roij_trans_avail_t Vehicle Availability Structure
et_nmerr = " roij_vehavail_nmerr_t Table type for ROIJ_VEHAVAIL_NMERR
et_vhsts = " roij_vehavail_status_t Table type for ROIJ_VEHAVAIL_STATUS
EXCEPTIONS
FR_DATE_IS_BLANK = 1 " From Date is not Entered
TO_DATE_IS_BLANK = 2 " To Date is not Entered
TO_DATE_IS_LT_FR_DATE = 3 " To Date is less than equal to from date
FR_DATE_IN_PAST = 4 " From Date in Past
TO_DATE_IN_PAST = 5 " To Date in Past
REMCAP_UOM_NOT_PASSED = 6 " UoM of Remaining Capacity is not passed
NO_VEHICLE_IS_AVAILABLE = 7 " No Vehicle is Available
FC_NOT_EXISTS = 8 " Entered Freight Contract-Vehicle not exists
. " OIJ_VEH_AVAILABILITY
The ABAP code below is a full code listing to execute function module OIJ_VEH_AVAILABILITY 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).
| ld_et_trans_avail_tab | TYPE ROIJ_TRANS_AVAIL_T , |
| ld_et_nmerr | TYPE ROIJ_VEHAVAIL_NMERR_T , |
| ld_et_vhsts | TYPE ROIJ_VEHAVAIL_STATUS_T . |
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:
| ld_et_trans_avail_tab | TYPE ROIJ_TRANS_AVAIL_T , |
| ld_iv_app_area | TYPE OIJ_VEHAVL_APPAREA , |
| ld_et_nmerr | TYPE ROIJ_VEHAVAIL_NMERR_T , |
| ld_iv_fr_date | TYPE OIJ_EL_VALF , |
| ld_et_vhsts | TYPE ROIJ_VEHAVAIL_STATUS_T , |
| ld_iv_to_date | TYPE OIJ_EL_VALT , |
| ld_iv_vhrlper | TYPE OIJ_PERIOD , |
| ld_iv_minavlper | TYPE OIJ_PERIOD , |
| ld_iv_remcap | TYPE OIJ_REMCAP_QUAN , |
| ld_iv_remcap_uom | TYPE OIJ_UNIT , |
| ld_iv_remcap_perc | TYPE OIJ_REMCAP_PERC , |
| ld_it_loc | TYPE ROIJ_LOCID_RTAB , |
| ld_it_mat | TYPE ROIJ_MATNR_RTAB , |
| ld_it_fc_no | TYPE OIJ_CPNO_RTAB , |
| ld_it_fc_pos_no | TYPE OIJ_POSNR_RTAB , |
| ld_iv_vbtyp | TYPE OIJ_EL_CPVBTYP , |
| ld_it_fc_veh | TYPE ROIJ_DOC_VEH_ASSGN_T , |
| ld_it_vehicle | TYPE ROIJ_VHLNMR_RTAB , |
| ld_it_mot | TYPE ROIJ_VKTRA_RTAB , |
| ld_it_ts | TYPE ROIJ_TSYST_RTAB , |
| ld_it_carrier | TYPE ROIJ_CARRNR_RTAB , |
| ld_it_shipper | TYPE ROIJ_SHIP_RTAB , |
| ld_iv_upper_limit | TYPE TBMAXSEL , |
| ld_is_crnmdet | TYPE ROIJ_CRNMDET , |
| ld_it_vehicle_type | TYPE ROIJ02_VHLTYP_RTAB . |
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 OIJ_VEH_AVAILABILITY or its description.
OIJ_VEH_AVAILABILITY - Vehicle Availability OIJ_VEHPERF_UPDATE - updates database changes of vehicle performance table OIJ_VEHICLE_SINGLE_READ - Buffer read ~ TD-Vehicle OIJ_VEHICLE_ARRAY_READ - Buffer read ~ TD-Vehicle OIJ_VEHBERTH_CP_CHECK - Checks Vehicle~Berth Compatibility OIJ_UPD_NOM_ITEM_FRM_TC_PTC - Update nomination item with TC or Pre-TC details.