Weight and volume calculation in sales order

Hi,
    I have one requirement to populate weight of line item material in the sales order based of plant.
When the processing of sales order is trigerred the value in the reference characteristic will be available in the User Exit MV45AFZZ through the function CUCB_GET_VCSD_UPDATE.  Passing VBAP-CUOBJ.  If material is batch managed (MARA-XCHPF  = “X”), then use VBAP-CUOBJ_CH.
1.     Configured Material
The VC model will populate either a volume field or linear foot field, depending on the type of material, in the SAP communications structure VCSD_UPDATE.  If either field is populated then this user exit will take the value found in VCSD_UPDATE and extend it by the plant specific weight value and the total quantity referenced in the sales document.  This total value is then moved in the weight field in the table VBAP.
2.     Static Material with plant specific weight
If both fields in VCSD_UPDATE are not populated then the plant specific weight value is extended by the total quantity referenced in the sales document. This total value is then moved in the weight field in the table VBAP.
3.     Static Material with static weight
If both fields in VCSD_UPDATE are not populated and a plant specific weight value not found then the static weight, presumably the weight value in MARA, extended by the total quantity referenced in the sales document. This total value is then moved in the weight field in the table VBAP.  Note: The static weight could be maintained in the plant specific repository in which case this third test is not necessary.  However, this will create a lot of redundant entries in the repository for plant specific weights.
How to calculate?
Please explain step by step?What logic i have write?
Thanks & regards,
sairam

Please help me it is very  urgent.
Thanks & Regards,
sairam

Similar Messages

  • Update new material master weight and dimension in open sales orders and de

    Hi,
    Iu2019m maintaining gross weight, net weight, volume in material master. When the time of sales order entry in VA01 its calculating weight and dimensions based on material master and order quantity. And I create deliveries in VL01N.
    If I made a correction in the net and gross weight in material master after I created the sales order will the correct net and gross weight will pick up at the delivery creation.
    In other term is the VL01N net and gross weight is taking from which is available in SO or Material master.
    Is there any standard transaction to update already existing open sales order, delivery net and gross weight once it is corrected in material master?
    Please advice.
    Sam

    Is there any standard transaction to update
    No it is not possible to update the weight in existing sale order or delivery.  You have to change it manually or create a new sale order.   Weight in delivery will be fetched from sale order only and hence,  whatever delivery you create referencing a sale order, system will copy whatever is there.
    thanks
    G. Lakshmipathi

  • Shipped Weight and freight charges with Sales Order # and Invoice #

    Hi Gurus,
                  We have a report requirement where we have to provide Sales Order #, Invioice # , Material # and Shipped weight and Freight cahrges.
    Is there any way to combine all the info into one record. Please help.
    Warm Regards,
    Anil

    Hello Anil,
    Try to create a MultiProvider based on these data targets (Sales Cubes - Orders, Deliveries, Invoice).
    You can create a report on this multiprovider.
    Thanks
    Chandran

  • Sales Order Line Times Weight and Volume

    Hi All,
    Iam creating a sales order
    i have given line item and quantity and it give some weight and volume based on that material
    if i change the weight or volume than i saved after saving user exit calls
    now how can i find the changed weight or volume
    all the weight and volumes are in VBAP than how can i write select statement for that
    Please Give suggestion
    THanks
    Surendra

    u have to write code in userexit MV45AFZZ FROM SE38
    USEREXIT_SAVE_DOCUMENT_PREPARE   
    U WILL GET VBAPs data in XVBAP
    like u have to read xvbap-VOLUM and xvbap-NTGEW FOR CURRENT VALUE
    AND FOR PREVIOUS VALUE U HAVE TO WRITE SELECT QUERY LIKE
    SELECT * FROM VBAP INTO WA_VBAP
    WHERE VBELN = XVBAP-VBELN
    AND POSNR = XVBAP-POSNR.
    THEN CHECK
    XVBAP-VOLUM = WA_VBAP-VOLUM  .. LIKE THAT U CAN COMPARE VALUES
    THANKS

  • Update weight and volume when changing the quantity

    Hello ALL,
    For some configurable items, those whose weight and volume depends on configuration, when changing the quantity at set level, weights and volumes are not calculated again and order item is saved with wrong data about weights and volume.
    when ever changing the quantity we will get a message - " Changing date/quantity may result in different BOM Please configure"
    if we do explicitly by clicking "Item Details Configuration' then Weight and Volume will get update automatically.
    my requirement is Weight and volume should get update automatically when changing the quantity with clicking on "Item Details Configuration'.
    could you provide any OSS notes available for this or any help to achieve this functionality.

    Dear Prathap Naidu P,
    Did you solve this issue?
    Because I have the same problem, and I was looking for hints.
    Thank you so much for any help.
    Best regards,
    J.Flanders

  • Results analysis data is calculated through sales order

    Hi All,
    I m trying to calculate WIP of one process Order through KKAX. But I am getting the below error
    Results analysis data is calculated through sales order 300002423 001000
    Message no. KJ112
    Diagnosis
    The order you selected for WIP calculation or results analysis is assigned to a sales order. A results analysis key was entered for this sales order.
    System Response
    The system determines results analysis data for orders assigned to sales order items through the results analysis for the sales order.
    Procedure
    Carry out results analyis on sales order 300002423 001000.
    This process Order is related to Sales Order and I have checked the Result Analysis key is attached to Sales Order.
    Please help me out in this issue.
    Thanks!
    Regards,
    Vivek

    Hi,
    I was getting the above error because a RA key was selected ar Sales Order, Now what I have done is I have removed the RA Key from Sales Order, there is already a RA key attached to Process Order. Now When i am calculating KKAX (WIP) I am getting below message
    The order is not a WIP element
    Message no. KJ148
    I have done this because my client is not using KKA3(RA fro Sales Order)
    Please help!!!!!!!!!
    Thanks!
    Regards,
    Vivek Srivastava

  • Opening and closing stock with sales order and with out sales order

    hello,
    any body please help me my client want to check opening stock and and closing stock in areport.
    material contains batch and some material with sales order and some are with out sales order. my client is asking this in a single layout. please tell me isthere any teport or bapi or function module to get this report.
    this is very uregent. and layout is requesting like opening stock, production stock, sales stock and closing stock.
    please guide me to get this report.
    Thanks & Regads
    Bhakta

    Transaction MB5B
    For sales order related use specila stock as E and use radio button indicator in stock type
    For stock w/o sales order, use special stock indiactor as "space' and stock type valuated stock.
    to get a perticular month,opening stock/closing stock enter the start date/end date as month start and end date.
    See the o/p which will give the stock as required by you

  • Difference B/W Delivery plant  and item plant in Sales Order

    HI,
          May i know Difference between  Delivery plant and item plant in Sales order and what is the use of those fields.What is the process of raising sales order for different plants.
    Thnks&Rgds
    NAG
    Edited by: NAGA SUDHIR on Apr 3, 2009 6:10 AM

    HI G. Lakshmipathi,
                                   Thnks for the reply.Yes i am comparing (DWERK (at header level) and WERKS (at item level)) these two fields.
      Any how we can give only one plant in Customer Master, we are not maintaining Customer/mtrl regard (Not required in our company scenario) and we have extended MMR to different plants.
    So as per ur answer u went me to change only WERKS (at item level) while raising sales order for different plants.Is it enough?
    Thnks&Rgds
    NAG
    Edited by: NAGA SUDHIR on Apr 3, 2009 6:46 AM

  • IN BOM the Weight and Volume Update from the Parent item when Change Itemca

    Hi  Guru
    we are facing problem when we create SO for Configuration material, By Default all the weight and Volume Flow Proparlly form Material Master for all Parent and Child item  but when we change the item Categries for Child item the weight is copied from Parent Material
    Please give me solution for the above
    Prasanna

    Hi Prasanna,
    Check with weight/volume update in VOV7 for the item category you are using/changing manually.
    Regards
    Jeewnath

  • Cost Center and GL account in Sales Order / Delivery

    I have a requirement where we want user to specify what cost center and GL account should be used while posting goods issue.
    Currently GL account and Cost Center is automatically determined based on OBYC configuration.
    Is there a way  user can populate Cost center and GL account at Sales order or Delivery document level and what ever they have specified will be used for Posting Goods Issue.
    If user doesnt specify anything then standard OBYC determination should take place.
    I looked at OVF3 transaction which can default cost center (though no GL account) but its not useful in our requirement.
    I also looked at OKB9 transaction but not sure if we can use it either.
    Again we want user to enter Cost center and GL account at either SO or Delivery document level and then that should be used for Post goods issue.
    Thanks in advance.

    Hi,
    In delivery under tab GOODS MOVEMENT DATA
    After valuation type column COST CENTER & G/L Account column available
    Now with the help of FI consultant make it change mode so user can maintain  also I observe that if delivery created without reference to order then that fields are in change mode means user cn maintain data for this but if with reference to order it is disable mode
    Check in t-code OMJJ FIELD SELECTION FOR MOVEMENT TYPE
    Put movement 601
    Then select movement type and double click on filed selection (from 201)
    Then go to additional account assignment and for cost centre make it optional or requirement
    or Else under field selection enjoy for movement type 602 indsert field KONT0 and KOSTL and check
    If this can not work there is option field selection for G/L account check that with FI
    Kapil

  • Custom program for availability check and update for existing sale order at Item level(VA02)

    Hi,
    I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN  ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.   
    Regards,
    Shanmuga

    Hello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
    Points are always welcome if you feel an answer has been helpful.

  • How can we revise the pricing both at header and item level of sales order?

    Dear All,
      Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
      So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.

    Dear Lakshmipathi,
      Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
      I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
      And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
      I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot.

  • Hide the cost and margin fields on Sales Orders and Invoices

    Hi all,
    I need to hide the cost and margin fields in Sales Orders and Invoices. We sell our products to our employees sometimes, hence we don't want them to know cost and margin information.
    Can this be done?
    Cheers

    Go to VOV7 & as per the Item category ,de - select the Check Box Determine Cost.
    Else remove the Condition Type VPRS & Margin Condition type from the Pricing Procedure
    Best Regards,
    Ankur

  • Userexit to Restrict the VIEW and MODIFY of the Sales Order

    Hello Everybody,
    I need to do the following task.
    I want to restrict to VIEW and MODIFY the sales order for particular sales office or sales group.
    I need  user exit for that.
    Please help me by providing brief information.
    Thanks
    M Rahman

    Hi Rahman
    Instead of changing the DISPLAY and CHANGE status of Sales Order,
    i think it would be better if u make a check at the time of SAVE.
    When the SO is being saved in VA02,check the sales office or sales group
    and then give a error message to the user, saying that he is not authorised to make changes to the
    SO for this particular sales office or sales group.
    For this you can use the inckude MV45AFZZ,and USER EXIT userexit_save_document.
    Sample Code:
    IF SALES_OFFICE EQ 'XYZ'.
    MESSAGE 'Change not possible for this Sales Office' type 'E'.
    ENDIF.
    Regards
    Hareesh Menon

  • How TP/VS can pick up weight and volume from MATKEY table or MARM table

    Based on Base Unit of Measure, we want the TPVS optimizer to pick up the weight and volume from MATKEY table in some cases and from the MARM table in some other cases.
    For instance, in products where Base Unit of Measure is Litre, the system is picking up the volume from SI Unit of Conversion as 1 M3 and taking 0.001M3 per quantity and multiplying with the actual quantity to arrive at the volume in M3 which is incorrect, whereas TPVS should take the actual volume maintained by us in material master Basic Data.
    How to configure this requirement?
    Regards........Sunil

    BufferedReader br = null;
    int x = 0 ;
    FacesContext ctx = FacesContext.getCurrentInstance();
    //HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse();
    HttpServletRequest request = (HttpServletRequest) ctx.getExternalContext().getRequest();
    Date currentDatetime = new Date(System.currentTimeMillis());
    String StartTime = formatter.format(currentDatetime);
    int maxMemSize = 900000;
    long maxReqSize = 1000000000;
    //String fileDir = "/home/working/tmp/";
    boolean writeToFile = true;
    //String fileName = "deals.txt";
    String from = "";
    String files = "";
    String tmpStr = "";
    String comment = "";
    int num = 0;
    // CHECK THAT WE HAVE A FILE UPLAOD REQUEST
    boolean isMultipart = FileUpload.isMultipartContent((HttpServletRequest) request);
    ServletOutputStream out = null;
    // OPEN FILE TO DO PROCESSING
    fileName = fileName.replaceAll("\"", "\\") ;
    // added code for export pc_
    File inputFile = new File( fileName );
    try{
    in = new FileReader(inputFile);
    br = new BufferedReader(in);
    } catch (FileNotFoundException ex ) {
    ex.printStackTrace();
    genUtils.displayError("Invalid file name or file does not exists");
    return "-1";
    JSP file
    <f:view>
    <h:form id="TradeAdjustmentImportForm" >
    <table width="900" class="tableform" >
    <caption class="searchcaption" > Production Credits Deals File Import : <h:messages id="Messages" errorClass="errors" globalOnly="false"/> </caption>
    <tbody>
    <tr class="formtr" >
    <td class="td" style="color: red"><strong>Enter File to Import</strong></td>
    </tr>
    <tr class="formtr">
    <td nowrap align="left">
    <h:outputText id="fileImportTxt" value="File Name : " />
    <h:inputText id="fileName" value="#{ProdCreditUtilities.fileName}" styleClass="field-value" />
    </td>
    Can you help me change this code to work with <input type="file">
    I am not that familiar with JSP and HTML . I am a database coder trying to get this fixed.
    Your help is greatly appreciated.
    Thanks
    Ricky

Maybe you are looking for

  • How do I transfer purchased app to my other Apple ID?

    I ordered the 5-license version of BusyCal (BC) using my personal App Store ID instead of our organizational App Store ID.  Because of my error, I have to use my personal App Store and ID when updating BC. What  can I do to make the App Store and BC

  • Help Required Regarding Bill Estimation

    Hi all, I have a Requirment like based on meter read remark i have to bill the consumer,Hence for this bill estimation what exact algorithm spot i need to take. one algorithm is sufficient for this bill generation or more algorithms is required, pls

  • Appraisal Document : POWL Setting

    Hi Expert, We have used POWL to Display Appraisal Document for Employee /Manager.But Employee/Manager go in repective tab all the columns are visible which are not relevant to EMP/Manager Like Plan Version,Appraisal Doc Id,offline Status. I just want

  • UCCX 7 Historical Reports Tool Question

    Hi, I'm new to this tool and was wondering how I can see the report builds for the existing reports within the historical reports tool.  Is there a way to get into the pre-existing reports using Crystal Developer?  Any help and all help is appreciate

  • 11.2.0.3 GI installation is not able to find candidate oracleasm disks

    Hi, I am installaing 11.2.0.3 RAC on Linux. Installed ASM rpms and created oracleasm disks as root user. #oracleasm listdisks OCR_VOTE01 OCR_VOTE02 OCR_VOTE03 Now when I started the GI installation as grid user, it is not able to find the candidate d