0 evaluări0% au considerat acest document util (0 voturi)
62 vizualizări5 pagini
This document describes revisions made to a SAP module called YRVSH208, which is a utility program for automatic truck building. It was created by Dharmendra Kumar on March 5, 2011 and has undergone several revisions by Dharmendra Kumar and one revision by Pramodh Kumar to fix exceptions. The revisions addressed various bugs and added new functionality around weight and volume calculations, cutoff limits, and order approvals.
This document describes revisions made to a SAP module called YRVSH208, which is a utility program for automatic truck building. It was created by Dharmendra Kumar on March 5, 2011 and has undergone several revisions by Dharmendra Kumar and one revision by Pramodh Kumar to fix exceptions. The revisions addressed various bugs and added new functionality around weight and volume calculations, cutoff limits, and order approvals.
This document describes revisions made to a SAP module called YRVSH208, which is a utility program for automatic truck building. It was created by Dharmendra Kumar on March 5, 2011 and has undergone several revisions by Dharmendra Kumar and one revision by Pramodh Kumar to fix exceptions. The revisions addressed various bugs and added new functionality around weight and volume calculations, cutoff limits, and order approvals.
*& Object Name : A utility program for automatic truck building &* *& Program Name : YRVSH208 &* *& Transaction Code: YV51 &* *& Author : DHARMENDRA KUMAR &* *& Module Name : Sales & Distribution &* *& Program Type : Module Pool Create Date : 03/05/2011 &* *& SAP Release : 5.0 Transport No : RD1K939032 &* *& RD1K941124, RD1K941432 RD1K941530 RD1K941614 &* *& SPR Number : ECC SD-HO#437/419 &* *&--------------------------------------------------------------------&* *& Revision DK001 : Modified on 16.11.2011 by DHARMENDRA KUMAR &* *& FIX THE WT BY FILL OR BY VOL USING THE CLEAR &* *& SSMSNO:ECC SD-HO#534 TR:RD1K941737 &* *&--------------------------------------------------------------------&* *& Revision DK002 : Modified on 16.11.2011 by DHARMENDRA KUMAR &* *& FIX THE BUTTON ISSUE &* *& SSMSNO:ECC SD-HO#534 TR:RD1K941944 &* *&--------------------------------------------------------------------&* *& Revision DK003 : Modified on 114.12.2011 by DHARMENDRA KUMAR &* *& -ve line item fix &* *& SSMSNO:ECC SD-HO#534 TR:RD1K942271 &* *&--------------------------------------------------------------------&* *& Revision DK004 : Modified on 30.01.2012 by DHARMENDRA KUMAR &* *& ADD THE BUTTON FIX &* *& SSMSNO:ECC SD-HO#553/517 TR:RD1K953063 &* *&--------------------------------------------------------------------&* *& Revision DK005 : Modified on 13.04.2012 by DHARMENDRA KUMAR &* *& ADD CUTOFF AND DAYS &* *& SSMSNO:ECC SD-HO#574 TR:RD1K953614 &* *&--------------------------------------------------------------------&* *& Revision DKXXX : Modified on 28.05.2012 by DHARMENDRA KUMAR &* *& No changes done. Retransport the earlier TR &* *& RD1K953614 with missing object &* *& SSMSNO:ECC SD-HO#574 TR:RD1K955359 &* *&--------------------------------------------------------------------&* *& Revision DK006 : Modified on 30.05.2012 by DHARMENDRA KUMAR &* *& SOCL inclusion in WD money calculation &* *& SSMSNO:ECC SD-HO#607 TR:RD1K955421 &* *& SSMSNO:ECC SD-HO#615/583 TR:RD1K955542 &* *&--------------------------------------------------------------------&* *& Revision DK007 : Modified on 01.08.2012 by DHARMENDRA KUMAR &* *& PLANT SELECTION BUG FIX &* *& SSMSNO:ECC SD-HO#633 TR:RD1K956734 &* *& RD1K956776 &* *&--------------------------------------------------------------------&* *& Revision PK01 : Modified on 04.12.2013 by PRAMODH KUMAR(PK01) &* *& Rectified Division by 0 Exception in the class &* *& Y_CL_TRUCK_BUILD_NEW(PREPARE_ALLOCATION_TABLE method) &* *& SSMSNO:ECC SD-HO#780/742 TR:RD1K965241 &* *&--------------------------------------------------------------------&* REPORT yrvsh208. ********************************************************************** * data declaration INCLUDE yrvsh208_top. *INCLUDE YRVSH208_top. * selection screen SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000. PARAMETERS: p_vkbur TYPE yvbranch-vkbur OBLIGATORY. " sales office PARAMETERS: p_vstel TYPE yvbranch-vstel OBLIGATORY. " shippment point PARAMETERS: p_date TYPE sy-datum DEFAULT sy-datum OBLIGATORY. SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-055. PARAMETERS: rb_fixed RADIOBUTTON GROUP rd1 DEFAULT 'X' USER-COMMAND rucom, rb_dyn RADIOBUTTON GROUP rd1. SELECTION-SCREEN END OF BLOCK b2. SELECTION-SCREEN END OF BLOCK b1. ********************************************************************** INCLUDE yrvsh208_f01. *INCLUDE YRVSH208_f01. ********************************************************************** AT SELECTION-SCREEN OUTPUT. IF rb_dyn IS NOT INITIAL AND rb_fixed IS INITIAL. w_dyn_fixed_fill = 'X'. " ie dynamic fill ELSEIF rb_dyn IS INITIAL AND rb_fixed IS NOT INITIAL. CLEAR w_dyn_fixed_fill. " ie fixed fill ENDIF. AT SELECTION-SCREEN ON p_vkbur. * validate branch PERFORM validate_vkbur. * perform authority check PERFORM authority_check. AT SELECTION-SCREEN ON p_vstel. * validate shipping point PERFORM validate_vstel. AT SELECTION-SCREEN . * validate combination PERFORM validate_branch_shp_comb CHANGING it_yvbranch. ********************************************************************** * BEGIN OF CHANGE BY DK004 IF sscrfields-ucomm = 'FC01'. SUBMIT yrvsh208_fix_sub1 VIA SELECTION-SCREEN AND RETURN. "#EC CI_SUBMIT RETURN. ENDIF. * END OF CHANGE BY DK004 ********************************************************************** ********************************************************************** * BEGIN OF CHANGE BY DK004 INITIALIZATION. MOVE 'Unblock Shipments'(047) TO sscrfields-functxt_01. * END OF CHANGE BY DK004 ********************************************************************** START-OF-SELECTION. * create object for basic calcuation of data for the truck load via constructor. CREATE OBJECT o_tload EXPORTING im_vkbur = p_vkbur im_date = p_date im_it_yvbranch = it_yvbranch im_vstel = p_vstel im_dyn_fixed_fill = w_dyn_fixed_fill EXCEPTIONS no_shipment_found = 1 no_material_found = 2 material_unit_not_maintained = 3 no_wd_found = 4 no_cutoff_maintianed = 5 rank_not_maintianed = 7 no_shiping_pt_to_plant = 8 OTHERS = 6. CASE sy-subrc. WHEN 1. MESSAGE i000(ymsd) WITH 'No shipment found'(004). LEAVE LIST-PROCESSING. WHEN 2. MESSAGE i000(ymsd) WITH 'No material found'(005). LEAVE LIST-PROCESSING. WHEN 3. MESSAGE i000(ymsd) WITH 'No material unit maintained'(006). LEAVE LIST-PROCESSING. WHEN 4. MESSAGE i000(ymsd) WITH 'No WD found'(007). LEAVE LIST-PROCESSING. WHEN 5. MESSAGE i000(ymsd) WITH 'No cutoff maintained'(008). LEAVE LIST-PROCESSING. WHEN 6. MESSAGE i000(ymsd) WITH 'Unknown error'(009). LEAVE LIST-PROCESSING. WHEN 7. MESSAGE i000(ymsd) WITH 'No Rank found in YVDIVRANK'(042). LEAVE LIST-PROCESSING. WHEN 8. MESSAGE i000(ymsd) WITH 'No key plant found for respecitve shiping point'( 016). LEAVE LIST-PROCESSING. ENDCASE. END-OF-SELECTION. * POPULATE THE FIN_DIS TABLE FOR DISPLAY IF o_tload IS INITIAL. MESSAGE i000(ymsd) WITH 'Unable to create instance for further processing'(048). LEAVE LIST-PROCESSING. ENDIF. * calculate the data for % fill and filter based on type of fill * CALL METHOD o_tload->data_pre_calculation( ). * display the screen. PERFORM display_alv USING o_tload->ci_it_fin_dis. *GUI Texts *---------------------------------------------------------- * TITLE --> & *Text elements *---------------------------------------------------------- * 000 Selection criteria * 001 Enter Valid Branch * 002 Enter Valid Shipping Point * 003 Enter Valid Branch & Shipping Point combination * 004 No shipment found * 005 No material found * 006 No material unit maintained * 007 No WD found * 008 No cutoff maintained * 009 Unknown error * 010 Shipping Pt * 011 Shipment No * 012 Truck Wt Utlz % * 013 Truck Vl Utliz % * 014 % to be filled(Wt) * 015 % to be filled(Vl) * 016 No key plant found for respecitve shiping point * 017 Shpmt Blocked * 018 SO Created * 019 SO Approved * 020 Del Created * 021 Shpmnt Attached * 022 Automatic Truck load Building * 023 Date : * 024 Branch : * 025 Branch Utiliz. Limit * 026 Lower Cutoff Limit : * 027 Upper Cutoff Limit : * 028 Simulation completed, check log for info or save * 029 Upper Fixed % fill : * 030 No Stock avialable for simulation * 031 Please select only which has delivery status checked * 032 Error in attching the delivery to shipment.Please check log * 033 Attachment done successfully * 034 Records update * 035 Please select only those records with approved orders in it * 036 Select one shipment only for allocation view * 037 Order approval status updated .Please check log. * 038 Check log for errors * 039 Error : Check Log for sales order creation * 040 No Entry in the log * 041 Error in displaying ALV * 042 No Rank found in YVDIVRANK * 043 Simulation compl * 044 WD has no money, Please check log * 045 Unblock Shipments * 046 Do you want to unblock all shipments before leaving * 047 Unblock Shipments * 048 Unable to create instance for further processing * 049 Block All * 050 Unblock All * 054 Check Info. log before simulation for any error * 055 Fill type * 056 Fixed % fill : * 059 Simulate Fill Shp. * 060 Save/Create DO * 061 Check Order App. * 062 Create Deliveries * 063 Attach Del to Shipment *Selection texts *---------------------------------------------------------- * P_CUTOFF Test Cutoff level * P_DATE @1U@ Shipping Date * P_VKBUR @DS@Sales Office * P_VSTEL @7S@Shipping Point * RB_DYN Dynamic Fill(b/w Lower & Upper * RB_FIXED Fixed Fill (Fixed % fill) *Messages *---------------------------------------------------------- * * Message class: Hard coded * Simulation completed, check log for info or save (028) * * Message class: YMSD *000 & & & & *073 No authorization for Branch & for & -------------------------------------------------------------------------------- --