Populating Freight Charges on Sales Order

Does anybody know how I can populate freight charges using the UI-API on a sales order? The UI requires the user to click on a link button to pop up another screen. Does anybody have any best practices or advice on how to do this. I know how to do add freight charges with the DI-API, but I need to have it working on the opened (non-saved) sales order, so I mist use the UI-API. Thanks in advance.
Carlos

I manage to do something about this but is a very ugly code.  You littely have to intercept some event and do a .click() method on the freight link arrow, freeze the form and internally populate the matrix on the freight and then unfreeze the form and do a .click() on the update/ok button on the freight form.
Is very ugly and tricky but it manage to do what the customer wants.
I also saw that if you have freight on a parent document (like sales order) and you do a copy to (like to A/R Invoice) if you have freight amount it will duplicate on the document, one with the original value and a second one with value of zero (0).

Similar Messages

  • Freight charges on sales orders

    Hi,
    The system has been maintained to process freight charges, what would be the transaction code to see the freight charges applied to a sale order?
    Thanks

    In T-Code VA02, Go-To [Conditions] and you can view the freight charge(s).
    Standard SAP for Freight condition is HD00

  • Freight charges in sales order

    Hi experts,
    How do we findout the sales order number the freight charges between 1000 and 5000.
    because my company want analyse the freight charges for last two years. i already refer the table KONV and vbak table.till i didn't get correct results.
    Thanks
    Muthuraj.D

    hi check this..
    table EKBZ
    field name : VGABE, KSCHL ,WRBTR

  • How to avoid freight charge in sales order and not to invoice with frieght?

    Hi Experts.
    The customer group 5 indicates that the customer does not pay freight - ZLF5 condition, but still the freight is invoiced.
    Here i don want to invoice the customer with freight charge.
    Please advice me regarding this.
    Thanks
    Raghu

    Do the analysis of the pricing and check out if the condition record is maintianed for some other key combination(Access). I tihnk it must have maintained.
    If the frieght condition needs to be populated based on the customer ggroup. maintain that access/Combination on top so that it gets the highest priority
    Rregards
    Nithin

  • 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

  • Manage Packing Charge in Sales order Document

    Dear All,
    How I manage the packing charge in sales order.
    there are three type of packing charge by which user wants to book the SO.
    1 : Flat Amount
    2 : Percentage Amount on Basic Value.
    3 : Rate Per Unit Quantity
    Plz Give me solution .

    In addition to the pre-defined amounts that you can enter on the setup screen for freight, you could consider a stored procedure to add an amount to the sales order upon adding the sales order.
    For example, for one client we have they wanted to add a handling charge based on the total value of the sales order, for example
    $100 or under - $5.00
    200 - 300 - $7.00
    etc.
    To accomlish this, we created a user table with the ranges and handling charges (so it could be maintained but the client in the future) and a stored procedure to look at this table and add the value to the freight code called handling upon adding or updating of a sales order.
    This could work easily on a quote also but not easily on an invoice since the adding of an invoice creates journal entries immediately upon an add and before the stored procedure could fire.
    Hope this helps and gives you some ideas.

  • Actual Freight Cost on Sales Order

    Dear TM experts,
    We have a requirement to charge freight to customers based on actual freight calculated on SAP TM plus some surcharge built as a pricing condition on SD. We reviewed Cost Distribution related configuration & documentation however it is not stated directly that actual cost could be updated on sales order condition types. Our initial understanding is that assignment of charge types to SD condition types will ensure the costs go to sales orders. Could someone confirm if this is possible in standard SAP TM?
    Best Regards,
    KC

    Hello Krishna,
    I´ve heard this scenario but not in a standard way, using a developed integration between CRM and TM.
    Regards, Marcelo Lauria

  • Query to see the original Total Freight  in a Sales Order

    I need a query (for a approval procedure) to see the total freight charges (ORDR.TotalExpns) of a sales quotation. In what table does SBO saves the History of the Sales Order document ?

    It is ADOC with ObjType = '17'
    Thanks,
    Gordon

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • Freight Charges In Purchase Order

    Hello Friends,
                   I m working on Purchase order.I am using Freight charges which is given in the footer of PO form.I want to know about where this amount get stored and what is object ID of Freight Charges??The same functionality I want to used in my own form.So please give me information of Freight Charges.
    Please help me Solved this problem.
    Thanks & Regards,
        Swati

    Hi,
    these are the list of freight charges in saleorder and are found under ORDR table
    TotalExpns(total freight charges), TotalExpFC(total freight charges in foreign currency), TotalExpSC(total freight charges in system currency)
    Rgds
    Bharadwaj

  • Help required in identifying Line Charges in Sales Order Lines

    Dear All,
    I want to know the column or calculation used for retrieving Line Charges present in
    sales order->Line_items->Pricing tab.
    Thanks and Regards,
    Mahesh

    I got the solution . We can get the line charges column as (requested_quantity*unit_selling_price)/33.33.
    Thanks and Regards,
    Mahesh

  • Notification or Alert when selecting Item with charge on Sales Order???

    Hello,
    Is it possible to make an notification / alert on a salesorder when entering a item with batch/charge???
    Now everytime the customer must enter CTRL-TAB on amount field to select a batch but don't get a reminder for the batch.
    They don't want to select the batch/charge on Delivery.
    THX
    Mark

    Below is code that will prevent deletion of a line from Sales Order.
    DECLARE @NoOfRows int
    DECLARE @MaxLineNum int
    DECLARE @UserId int
    IF (@transaction_type = 'A' or @transaction_type = 'U') AND @object_type = '17'
    BEGIN
    select @NoOfRows = COUNT(*) from RDR1 where DocEntry = @list_of_cols_val_tab_del
    select @MaxLineNum = MAX(LineNum) from RDR1 where DocEntry = @list_of_cols_val_tab_del
    select @UserId = UserSign2 from ORDR where DocEntry = @list_of_cols_val_tab_del
    IF(@NoOfRows <> (@MaxLineNum + 1) AND @UserId IN (10,11))
    BEGIN
    select @error = 1234
    select @error_message = 'One or more lines have been deleted from the Sales Order'
    END
    END
    You can say which users cannot modify Sales Orders like by modifying the @UserId IN (10,11) below. You need to get the User ID from the OUSR table.
    IF(@NoOfRows <> (@MaxLineNum + 1) AND @UserId IN (10,11))
    Hope this helps
    Krishnan

  • Populating Contract Dates in Sales Orders using userexit

    Hi All,
    We want to use a userexit to populate the conract start date and end date based on some rules during sales order processing. Contact data displayed in VA01/VA02 is stored in VEDA table. Is it possible to use MV45AZZ user exit for this purpose?
    Thank You.
    Regards,
    Amit
    Edited by: Amit Kokane on Feb 13, 2009 4:31 PM

    Hi Jelena,
    Thanks for the response. We are not using the contracts at all. We are creating the sales order without any refrence. We want to use the revenue recognition for ceratin service items on sales orders for which we need contract start date and end date to be defaulted based on some rules. We had tried populating the VEDA, XVEDA tables in save prepare routine of MV45AFZZ for same but we observed that when system calls SD_VEDA_UPDATE FM during the saving, all the data in internal tables get refreshed and systen reads the data from screen.
    Can you please explain the use of ASSIGN with '(SAPLV45W)VEDA' to update the data in VEDA table in USEREXIT_MOVE_FIELD_TO_VBAP?
    Thanks again.
    Regards,
    Amit

  • Automatic Freight price on Sales Order with minimum total freight for order

    Hi,
    I am stuck trying to solve a freight pricing scenario on sales orders and I was hoping that someone might have seen this problem before. There are a number of basic requirements:
    1. The freight should be calculated automatically.
    2. The freight should be based on weight and shipping condition.
    3. The total freight of the order should be minimum X Euro.
    The problem we have is to try combining these three requirements since access sequences and condition records are not used on header conditions. The first 2 should be possibe to solve using a copy of standard item freight condition KF00 and creating a new access sequence including shipping condition. However, when including the last requirement we must see to the freight price of the complete Sales order and the system must automatically if the total reaches the minimum level.
    For example, say that we have a sales order with 2 items and the minimum freight for a total order should be 10 Euro. Based on weight and shipping condition the system automatically finds condition records giving item 1 a freight price of 2 Euro and item 2, 3 Euro -> giving us a total freight of 5 Euro.
    The system should see that the total freight of the 2 items does not reach the minimum freight price and automatically use the minimum price instead.
    I have been looking at the possibility to use 2 separate condition types (since the minimum should be a fixed price), or maybe it is possible to solve this through a user exit somehow? Has anyone seen this type of problem before?
    Any input and thoughts would be highly appreciated.
    Regards,
    /Dan

    Hi Dan
    For the 1st  query , maintain access sequence and assign it to the condition type and maintain condition record for that freight condition type
    For your 2nd query , in V/06 change the calculation type of the freight condition type to gross weight /Net weight
    But as  issue is concerned   in VK12 maintain minimum & maximum values. So if the Minimum value reaches then only the condition type triggers
    So in your pricing procedure say you have a 2 freight condition types of  ZXXX & YXXX . So assign minimum & maximum order values in VK12 for ZXXX condition type . And if its maximum value exceeds then YXXX condition type should trigger.
    Regards
    Srinath

  • Populating Customized fields in Sales Order Creation using BAPI

    Hi All,
    I have a requirement that, I need to populate 2 customized fields which are appedned in the VBAK tables through Append structure. I am using BAPI_SALESORDER_CREATEFROMDAT2 FM for creating it.
    Could anybody tell me how to send these 2 coustomized field values in this BAPI using EXTERNIN parameter.
    Regards
    Rajesh
    [email protected]

    Hi,
    To add data to custom fields there are two appraoches.
    <b>1)</b>Using the <b>EXTENSIONIN</b> in the Tables option in the FM <b>BAPI_SALESORDER_CREATEFROMDAT2</b>
    Check the Documentation for the same,
    <b>Customer Enhancement for VBAK, VBAP, VBEP</b>
    <i>Description</i>
    You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.
    <b>Technical information about Customer Enhancements</b>
    The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.
    The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:
    CFIELD1, CHAR 10
    CFIELD2, CHAR 3.
    The customer also requires that these two fields can be maintained with the BAPI.
    1. Maintain structure CUTEST in table VBAP
    2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:
    Field name       Data element
    CFIELD1            CHAR1
    CFIELD2          CHAR1
    3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.
    4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.
    5. Adjust the following structures for customer enhancements to table VBAK:
    a) VBAKKOZ
    b) VBAKKOZX
    c) BAPE_VBAK
    d) BAPE_VBAKX
    6. Adjust the following structures for customer enhancements to table VBEK:
    a) VBEPKOZ
    b) VBEPKOZX
    c) BAPE_VBEP
    d) BAPE_VBEPX
    7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
    8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.
    <i>For example:</i>
    You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.
    The following entries are expected:
    Import:     BAPIVBELN-VBELN       = '0000004711'  Document number
                BAPISDHD1X-UPDATEFLAG = 'U'           UPDKZ for doc header
    Tables:     BAPISDITM-ITM_NUMBER  = '000020'      Item number
                BAPISDITMX-ITM_NUMBER = '000020'      Item number
              + BAPISDITMX-UPDATEFLAG = 'U'           UPDKZ for item
    You must complete the EXTENSION table as follows:
    STRUCTURE                          VALUEPART1       1234561234567890123
    BAPE_VBAP                       0000004711000020                 XYZ
    BAPE_VBAPX                      0000004711000020       X
    <b>Further Information</b>
    You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.
    Notes
    You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.
    At the moment, you can use the BAPI to store enhancements in the following structures:
    VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.
    VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.
    VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.
    VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.
    If you also want to work with checkboxes, each X-structure must also contain an append structure.
    For example:
    A customer has created an order and wants to include the material long text (50 digits long).
    The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.
    Because the VBELN is normally blank when you create an order, the data can look like this:
    STRUCTURE   |BAPE_VBAP
    <b>2)</b> Create the Sales Document using the FM and when successfully craeted you will get the Sales Document No in the Export parameter <b>SALESDOCUMENT</b>.
    After its created and Committed using <b>BAPI_TRANSACTION_COMMIT</b> , do a <b>BDC</b> recording for the same to (<b>VA02</b> Change Sales Order) update the fields only and save the document.
    Regards,
    AS

Maybe you are looking for