You are on page 1of 2

Include: ZSDIN_MV45AFZZ_SUBROUTINES

Subroutine: Z_SET_HEADER_SHIPPING TYPE


We have added new shipping types that are specific for our Canadian customers that use UPS as the
carrier.

Current Logic:
 if vbak-abrvw = '005'.
    case vbak-vsbed.
      when 'X1' or 'Y1'.
        vbkd-vsart           =  '09'.
      when 'X2' or 'Y2'.
        vbkd-vsart          =  '11'.
      when 'L0'.
        "Code changes to account for small parcel carriers shipping collect 
to apply the 08 shipment type to B2B order. (HP) DEVK963418
        if vbkd-inco1 = 'COL' and
         ( xvbpa-lifnr  = 'UPSN' or xvbpa-lifnr  = 'FDEB' ).
          vbkd-vsart          =  '08'.
        endif.                           "END DEVK963418
    endcase.
  endif.
Proposed Logic:
read table xvbpa with key parvw = 'WE' transporting LAND1.

if vbak-abrvw = '005'.

  use a custom table to find the shipment type. This table will need a t/code
so it can be modified by end users.

Ship Ship
Cond IncoTerm Carrier SHCountry Type
X1 COL UPSN US 9
X1 COL FDEB US 9
Y1 COL UPSN US 9
Y1 COL FDEB US 9
X2 COL UPSN US 11
X2 COL FDEB US 11
Y2 COL UPSN US 11
Y2 COL FDEB US 11
L0 COL UPSN US 8
L0 COL FDEB US 8
X1 COL UPSN CA 31
X1 COL FDEB CA 9
Y1 COL UPSN CA 31
Y1 COL FDEB CA 9
X2 COL UPSN CA 33
X2 COL FDEB CA 11
Y2 COL UPSN CA 33
Y2 COL FDEB CA 11
L0 COL UPSN CA 32
L0 COL FDEB CA 8
      

DEV Testing:

Sales Order 152355 can be used. You can change the carrier and shipping conditions in the sales order
to test different scenarios.

You might also like