9
ABAP Development Functional Specification Development ID 2_GAP_SD_07 Module HU (Carton) proposal To-Be Doceument Company/Unit HIMA FS Prepare By Bibin Mathai Development Type Conversion Revision History Version Date Brief Revision Details 0 19-Nov-14 Initial Release Autho. Field 1 Autho. Field 2 Development Description 2.3.3_TO-BE_Order Allocation(Delivery Processing) System SID Authorization Object

Abap Fs 2 Gap Sd 07

Embed Size (px)

DESCRIPTION

Gap FS

Citation preview

Page 1: Abap Fs 2 Gap Sd 07

ABAP Development Functional Specification

Development ID 2_GAP_SD_07 Module SD

HU (Carton) proposal

To-Be Doceument

Company/Unit HIMA System SID HSD

FS Prepare By Bibin Mathai

Development Type Conversion

Revision HistoryVersion Date Brief Revision Details Approved By

0 19-Nov-14 Initial Release

Autho. Field 1

Autho. Field 2

Development Description

2.3.3_TO-BE_Order Allocation(Delivery Processing)

Authorization Object

Page 2: Abap Fs 2 Gap Sd 07

Approved Date

Page 3: Abap Fs 2 Gap Sd 07

Selection screen

Type of ReportField Description Field reference Field Type MandatoryCustomer VBAK-KUNNR SinglePurchase Order VBAK-BSTNK SingleDelivery LIKP-VBELN SingleGroup VBSK-SAMMG SingleShipment VTTK-TKNUM SinglePacking group MARA-MAGRV SingleSingle UPC/Carton Check BoxCase Pack Check Box

Additional Buttons Clear F5 Check F6

Validation At Selection Screen1 Customer & Purchase Order num. should be entered together. Else display an error message Enter Delivery Num. or Customer & Purchase order Num.2 If packing group is not entered then the default packaging group should be ZUS1.3 if single UPC/Carton is checked then different will not be packed in a single carton.4 Clear F5 Button Clears all the entered data.5 Check F6 button checks for allowed packaging Material based on packaging type assigned to packaging group6 Save button will pack the material in packaging material.

Page 4: Abap Fs 2 Gap Sd 07

Paramenter ID F4 HelpYesNoYesNoYesYes

Save F2

Customer & Purchase Order num. should be entered together. Else display an error message Enter Delivery Num. or Customer & Purchase order Num.

Check F6 button checks for allowed packaging Material based on packaging type assigned to packaging group

Page 5: Abap Fs 2 Gap Sd 07

Program Logic.

Step 1 Program should first Check if the Delivery is a valid delivery no in LIKP_VBELN. If not found, display an error message "Delivery does not exist"Step 2Step 3 Check if either Shipment num. is available or Group is available or delivery num. is available or customer num & PO field is available. If not then display an error message "Enter either Delivery or Customer and PO"Step 4 If Customer num is entered in the initial screen then pass customer num & Purchase order no into VBAK table & select Sales Order no. Pass the sales order into LIPS table to check if deliveries exist for the sameStep 5 Else if Delivery Num. is entered in the Entry screen then check in LIKP table if the Delivery Exist or not. Similarly check if Deliveries exist for Group, Shipment Step 6 Check packing status from VBUK table for the delivery. If packed Exit with a message. Step 7 Get the packaging material group from material MARA table for the material. Also get Material Volume, Volume Unit, Width, Height, Gross Weight, Weight Unit & Packaging material type.Step 8 Based on the above information the packing material based on the material type will be displayed.

Carton Volume CCM Weight LB

Step 9 If material volume unit is not in "CCM" then convert the material volume unit to "CCM". If material Weight Unit is not in "LB" then convert the material weight Unit to "LB". Step 10 Delivery is combined into based on Store no & PO,Step 11 If packing not in case pack, Based on the total Qty of the material in order, determine the material to be packed in inner label based on the inner label value maintained in MARA for the material.Step 12 Based on the Oty the material qty is again divided with units to be packed in a carton which is fetched from MARA table.Step 13 Material from the selected delivery should be shown in the table below with Qty which can be packed in cartons.

Carton Actual Carton Store Description Pack Material Qty Vol Weight Delivery

Step 14 The quantity which could not be packed in the carton as it was not in the multiples of material to be packed in carton should be Pick Packed.The pick Pack qty will be grouped together based on Put Away Zone & Packing material group.Material belonging to this group will be packed into empty carton determined from the packaging group.

Step 15 Best Fit algorithm - To find best fit carton for packing the material.(Partial qty.*(Inner Pack Volume/Inner Pack qty.)) of all materials belong to one group. Check if total goods volume can fit in smallest carton. If yes, go ahead and pack. If No, continue checking same with bigger carton. If total volume is higher than biggest carton then pack whichever can fit and remaining products will go through same steps to determine next carton

Step 16 Pack the delivery using function module 'SD_DELIVERY_UPDATE_PACKING' based on the packing details in the table above

Check the Packing group entered in the entry screen in MARA-MAGRV. If Not found display an error message "No Cartons found in packing group"

Page 6: Abap Fs 2 Gap Sd 07

Program should first Check if the Delivery is a valid delivery no in LIKP_VBELN. If not found, display an error message "Delivery does not exist"

Check if either Shipment num. is available or Group is available or delivery num. is available or customer num & PO field is available. If not then display an error message "Enter either Delivery or Customer and PO"If Customer num is entered in the initial screen then pass customer num & Purchase order no into VBAK table & select Sales Order no. Pass the sales order into LIPS table to check if deliveries exist for the sameElse if Delivery Num. is entered in the Entry screen then check in LIKP table if the Delivery Exist or not. Similarly check if Deliveries exist for Group, Shipment

Get the packaging material group from material MARA table for the material. Also get Material Volume, Volume Unit, Width, Height, Gross Weight, Weight Unit & Packaging material type.Based on the above information the packing material based on the material type will be displayed.

If material volume unit is not in "CCM" then convert the material volume unit to "CCM". If material Weight Unit is not in "LB" then convert the material weight Unit to "LB".

If packing not in case pack, Based on the total Qty of the material in order, determine the material to be packed in inner label based on the inner label value maintained in MARA for the material.Based on the Oty the material qty is again divided with units to be packed in a carton which is fetched from MARA table.Material from the selected delivery should be shown in the table below with Qty which can be packed in cartons.

Material Item

The quantity which could not be packed in the carton as it was not in the multiples of material to be packed in carton should be Pick Packed.

Material belonging to this group will be packed into empty carton determined from the packaging group.

(Partial qty.*(Inner Pack Volume/Inner Pack qty.)) of all materials belong to one group. Check if total goods volume can fit in smallest carton. If yes, go ahead and pack. If No, continue checking same with bigger carton. If total volume is higher than biggest carton then pack whichever can fit and remaining products will go through same steps to determine next cartonPack the delivery using function module 'SD_DELIVERY_UPDATE_PACKING' based on the packing details in the table above

MAGRV. If Not found display an error message "No Cartons found in packing group"

Page 7: Abap Fs 2 Gap Sd 07

Check if either Shipment num. is available or Group is available or delivery num. is available or customer num & PO field is available. If not then display an error message "Enter either Delivery or Customer and PO"If Customer num is entered in the initial screen then pass customer num & Purchase order no into VBAK table & select Sales Order no. Pass the sales order into LIPS table to check if deliveries exist for the same

If No, continue checking same with bigger carton. If total volume is higher than biggest carton then pack whichever can fit and remaining products will go through same steps to determine next carton