FMS to Add Percentage to a Freight Charge

I'm trying to figure out how to create a formatted search that takes a value from a UDF and multiply it to the Sales Order Freight Charge value.  My client wants to add a 20% markup to most freight charges without doing the math on a calculator. 
I've tried creating two UDFs (one for the freight charge and one for the markup) and creating an FMS on the standard freight charge field.  However, the SQL calculation (select sum) never works.  Is this a field type mismatch problem?

Hi Martin,
Formatted search gets values of the UI item in the form of 'String', I guess.
So, you have to convert those values to the number values which you prefer.
Regards
Hyunil Choi.

Similar Messages

  • Regarding additon of Freight charges and Revised Delivery date in Z Trans

    Hi All,
    My client is using Z Transaction ZSales_Book(Billing report) and he wants to add  two extra fields Freight Charges and Revised Delivery date to this report as it is related to VBAP saled document line item and how can we connect it to VBRP Billing document line item can i know the connecting fileds.
    As i passed it to ABAPER as a requirement he asked me the same question..........

    Hi
    Is it is a revised or request delivery date? Assuming it is a request delivery date i am using request terminology
    As you want to add two extra feilds freight charges and Request delivery date.
    For Freight Charges - If they are item level freight charges then you give the following tables data - VBAP,KOMV
    For Revised Delivery Date -  use the following data  - VBAP, RV45A-ETDAT also
    Regards
    Srinath

  • Assign Project Code to Freight charges in AP Invoice

    Project Code field is not available in Freight Charges window at all though it can be displayed and edited by selecting Project Code to be visible and Active in Journal Entry Form Settings Table Format.  As this is a limitation in SAP B1 please feedback to Development for improvement.
    It is important to allocate Project Code to Freight charges in AP Invoice as every Purchase expense of Inventory or Non Inventory is assigned a Project Code for recognition in Profit and Loss Statement.  
    Kedalene Chong

    Hello,
    Your requirement to add project code on Freight Charges form is valid. This is well known issue and we have it on the waiting list; however, I cannot specify in which release this will be fixed.
    Is there any other specific requirement on Cost Accounting you would like to solve?
    Thanks.
    Peter Dominik
    SAP
    B1 Product Definition

  • Freight charges should not add to Material Cost

    Dear All,
    We are maintaining the Freight Charges condition in Pricing Procedure for Stock Transport Order process, as per SAP standard the Freight charges will add to the Material Cost for receiving Plant. But we dont want to add the Freight Charges for Material Cost.
    Please let me know how to avoid the Freight Charges adding to the Material Cost.
    Thanks & regards,
    Dhanu

    Dear Dhanu,
    Add the condition type at header. So it will not be distributed among individual line items.
    I hope this will help you.
    Regards,
    Ganesh

  • How to add Freight Charges for SO Via B1WS

    I am using B1Ws for adding a new Sales Order.
    I want to enter Freight Charges details also.
    In DIAPI through expense code we can add but in b1ws what is the equivalent of that ?
    Can anbody guide me ?
    Thanks
    Vaithy

    hi,
    can someone take a look to see what I'm missing to update a document with freight add.
    I am getting a document from an existing delivery and want to add a new freight line and cost to it.
    Dim dl As New Delivery.DeliveryNotesService
    Dim d As New DocumentParams
    d.DocEntry = "1"
    d.DocEntrySpecified = True
    Dim msgHeader As New Delivery.MsgHeader
    msgHeader.ServiceName = Delivery.MsgHeaderServiceName.DeliveryNotesService
    msgHeader.ServiceNameSpecified = True
    msgHeader.SessionID = sid
    dl.MsgHeaderValue = msgHeader
    Dim doc As Document = dl.GetByParams(d)
    Dim ex As New DocumentDocumentAdditionalExpense
    ex.LineNum = 0
    ex.LineTotal = 10
    ex.Remarks = "Shipping"
    ex.BaseDocEntry = d.DocEntry
    ex.BaseDocEntrySpecified = True
    doc.DocumentAdditionalExpenses = ???
    dl.Update(doc)

  • Add Freight Charges using API

    I am using oe_order_pub.process_order API to create orders. I need to add a Freight Charge line. Can I do this using oe_order_pub.process_order, or do I need to use another API?
    Thank you.

    you need to use WSH_FREIGHT_COSTS_PUB.Create_Update_Freight_Costs API to apply frieght costs....

  • How to add Freight Charges to an invoice using DI API?

    I need to be able to add Freight Charges to an invoice of suppliers using DI API. Please I need help....!!!

    Hi,
    1. Step: Open the Invoice using oDocument.GetByKey("[DocEntry]")
    2. Step: Use the Lines in the BusinesObject (maybe copy them in an extra LinesObject for a better reading)
    3. Step: Use the Add()-Method to add a new Line
    4. Step: Fill the Line-Properties you want
    a.E.
    oInvoice.Lines.ItemCode = "FREIGHT"
    oInvoice.Lines.ItemDescription = "Freight Charge"
    oInvoice.Lines.Quantity = 1
    oInvoice.Lines.Price = 10.0
    oInvoice.Lines.UnitPrice = 10.0
    Remember: The Item (ItemCode) you want to insert must be existing
    5. Step: Update the main-Business-Object
    a.E.
    oInvoice.Update()
    Hope that help´s
    best regards
    Jochen

  • How to add Freight Charges while creating PO

    At the time of creation of Purchase Order, the custom duty and the freight
    charges are not known.(Sometimes we know the freight charge)
    But when the supplier submit the invoice both these
    Custom duty and the freight charges are included, Now how do I go about
    matching the invoice. Do I need to go and modify the PO for the difference
    before I do the matching of PO with the invoice.
    Any suggestions would be appreciated

    Hi,
    I think you need to enable a DFF at PO header to provide the fright charges, this could be the one solution for your requirement.
    Regards,
    Kevin.

  • Freight charge with tax in sales order

    Hi all
    my company must implement a particular management of freight charges:
    in some cases to the customer sales order my company, a part the product cost, add the freight charges (made by a carrier vendor which will send after a vendor invoice to my company) to item value, but these aren't managed like overprice to product cost, but as a true service sales with how proper VAT tax.
    At example:
    I sell to customer A the product B with unit price 100 and quantity 10 (net value for product 1000) and VAT for product 10% (total value with tax 1100). We add a freight charge (estimated) of 200 euro (net value 1000 + 200 = 1200) with own proper tax percentage (example 20%). The total document value will be 1000 (product net) + 200 (freight charge) + 100 (vat 10% over 1000) + 40 (vat 20% over 200) = 1340 euro with two different VAT tax code.
    You know if exist something in the standard for manage this or I must play with the normal conditions?
    thanks
    Davide

    Dear ,
    Please check the Variant assigned to Sales document type in Tcode: VOV8 and select the document type being used
    and click on detail tab and check the variant field under Transaction Flow Tab.
    And further check the Variant in Tcode: SHD0,if the field is grayed out.
    Regards,
    Ajit K Singh

  • Freight Charges Break up in PLD

    Dear all,
    Can any one help me in showing the freight charges break up in PLD. My client is putting Packing and Forwarding charges along with the freight charges in the freight
    for example,
    freight = 100
    P&F = 20
    but in document it will display as freight = 120
    how can i show this break up in PLD
    please help me experts..
    thanks and regards,
    Yeshwanth Prakash

    Dear Yeshwanth,
    This could be possible via UDF and FMS. Please try the following:
    1. Create UDFs on Marketing Document header level - number of UDF
       depending on the max number of Additional Expenses from the OEXD
    2. Use query like below for UDF1:
       SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
              STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
              + ' ' + STR(T1.LINEVAT)
       FROM   OINV T0
         INNER JOIN INV3 T1
           ON T0.DOCENTRY = T1.DOCENTRY
         INNER JOIN OEXD T2
           ON T1.EXPNSCODE = T2.EXPNSCODE
       WHERE  T0.DOCNUM = $OINV.DocNum
         AND T1.LINENUM = 0
       Use query like below for UDF2:
       SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
              STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
              + ' ' + STR(T1.LINEVAT)
       FROM   OINV T0
         INNER JOIN INV3 T1
           ON T0.DOCENTRY = T1.DOCENTRY
         INNER JOIN OEXD T2
           ON T1.EXPNSCODE = T2.EXPNSCODE
       WHERE  T0.DOCNUM = $OINV.DocNum
         AND T1.LINENUM = 1
    and so on.
    NOTE: The line number is important as there can be more than
    one additional expense for the same Document Number;
    Note that the query draws the details of one single record per
    from the Add Expenses Table. You can make the amendments in the
    query as required by either removing or adding more fields;
    like increase space between the fields etc
    3. Add the UDF to the Layout.
    Hope this will help.
    Regards,
    Gagan Thareja
    SAP Business One Forums Team
    Edited by: Gagan Thareja on Mar 24, 2009 2:27 PM

  • Purchase Analysis Excluding Freight Charges

    Dear Expert,
    Our purchase analysis report by ap invoice is exclusive freight charges, is it the norm?  Is there anyway to include freight in the purchase analysis so that we can reconcile it against our purchase report?
    Regards,
    Ng

    Hi
    In purchase analysis report you got Accessable value only.  I think there is no way to add frieght charges in that report.
    With Regards
    Balaji Sampath

  • Scenario on Purchasing Process - Freight Charges to Different Vendor

    Hi Experts,
    We have a business scenario here that we want to implement on the MM - Purchasing Process.
    My Client's industry is on Selling Mixed Concrete. Every time they make Contract with Scheduling Agreements, for Raw Materials like Cement 20MM or DUST, on each available Plant from a partner company on a different location. Some of the Location are not inside the country as well.
    When we do Scheduling Agreement, we do a blank quantity for example, 30,000 for 20MM on Plant A and 10,000 for 20MM on Plant B. During the creation of Schedule Lines, we key in differect schedules of delivery (incl PGR). Then by the end of the Period, we create a Vendor Invoice.
    However on some delivery item, we have a scenario where from a specific Vendor A, we have a Vendor B that delivers our Materials to our Plant (Transporter Vendor). So we have to create another Invoice for them. We have to have 1 Invoice for the Supplier and 1 Invoice for the Transporter Vendor.
    I understand that SAP can do 2 Vendor assignment on PO, 1 for Material Goods and 1 for Freight Charge. The Amount will sum up per Ordered Item and during PGI, the Material Cost will be based on this amount. I'm okay with the first statement but the summed amount is not okay with some scenarios.
    The problem with some scenarios is that we should not base the Freight Charge on the schedule quantity. We agreed that the Quantity to be considered for Freight Charge is based on their Shipment Tonnage Agreement (which is weighed on the Vendor 2's side). Then for the Schedule Line Qty, we have to take the Average Weight from our side and from their side, and that should be the Schedule Line Qty. The Amount to be posted in PGR line item should be the amount from the Schedule Line Qty and the Freight Charge based on the Shipment Tonnage Agreement and the Material Cost will be valuated with the sum of these values. At the end of the Month, we create an Invoice for the 2 Vendors at the same time: one with Freight Charge the other on is the Stock Amount.
    So for this requirement, is there a way we can add another Quantity, based on the Shipment Tonnage Agreement to calculate the Freight Charge inside, And the Transporter Vendor, in the Schedule Line Conditions to be included in the PGR?
    Please suggest me configurations to do this also.
    Thanks a lot for your suggestions.

    Hi Cruz,
    If your requirement is to bill on the monthly average basis for the freight vendor, you can create new condition type for freight based on quantity. Use the calculation type 'M' - Quantity monthly price, in conjunction with the scales and use the scale basis 'C' if the freight cost is fixed based on your shipment agreement.
    If your agreement is based on no.of shipments use the scale basis 'S' - no. of shipping units.
    Even if these two are not suiting use the scal basis 'G' - formula and define the calculation based on your requirement.
    Once this is configured for the condition type. Then maintain the conditiona values accordingly.
    Hope this is helpful.
    Thansk,
    Satya

  • Freight charges cannot be changed in PO

    Hi Masters
             I have created a import PO for a vendor X and freight charges in PO for the vendor Y for about 14000 JPY. MIGO and MIRO(delivery costs) has been done later.After that it is found that the freight charges is wrongly mentioned in the PO.The actual freight cost is 1300 JPY.
         So I cancelled the MIGO document and MIRO document to change the freight charge in PO.Although I have cancelled the both i cannot change the Freight charge in the PO.
    How to solve this?
    Regards
    Mohan

    Refer the OSS Note ::  457511
    Is it possible to change or add delivery costs in the purchase order after a goods receipt has been executed?
    Answer:
    No, this should not be possible. The system generates error message V1631 'You cannot enter new delivery costs' (V1631). Important: If your system does not behave in the manner described, this is an error that can be corrected using Notes 187694 and 196884. This affects the earlier Support Packages of Release 31I, 40B, 45B and 46B (you will find more detailed information in the two notes mentioned).
    For the changeability of delivery costs after an invoice receipt, see Note 651798 and Note 720191, or Note 549408.
    The existence of held delivery cost invoice documents must be checked manually and has to be considered.
    Delivery costs must not be entered again or changed if all follow-on documents were cancelled for the purchase order item, unless there were no delivery costs for the posted documents. Otherwise there is no guarantee that continued processing will run without errors.
    If you change the Customizing for existing delivery costs, the system does not read this either in a purchase order with an existing goods receipt. The new Customizing settings only take effect when you create a new purchase order.
    Of course, the condition values of time-dependent conditions can still be changed even after a goods receipt has occurred. See question four for information on how to change the master condition values.
    Please note:
    The restrictions on changing delivery costs as described above have only been developed over time. This is not due to changed functions, rather previously we did not know that making changes could sometimes lead to subsequent irreparable errors.
    In particular, when you post invoices for delivery costs, the logic considers delivery costs that have already been posted (even if they have since been cancelled) AND the data for delivery costs from the database (as displayed in the purchase order). During processing, you have no way of knowing if this information is no longer compatible, nor any way to discover the cause, and this leads to incorrect processing.
    You should therefore proceed as follows:
    If delivery costs were entered incorrectly, you must cancel all related purchase order items (reverse all documents) and enter a new purchase order item with the correct delivery costs. Otherwise, there is no guarantee that further processing will be correct.
    If your delivery costs are changed regularly, you should use master conditions.
    Additional note:
    If you have manually changed or maintained conditions in the purchase order, under certain Customizing settings when you run a new price determination after a goods receipt, a condition may be determined twice. For more information, see Note 456691, question 26.

  • Freight Charges after doing GR in PO

    Dear All,
    We have not entered any Freight charges in PO by mistake, And for that PO, already we have done GR also. Now how can add the freight charges to that PO ? Now the freight charge condn type in PO became as Grey.Can make it as editable after GR also ? If i did so, what will happen ? If that is not the right way, then what is the other way. I want to add this freight charges to material cost.
    regds,
    CB

    Make the Vendor Invoice  in referenece to your GR and then
    Post the subsequent debit Entry through MIRO.
    Pls Note: System will not allow you to post the Subsequent Debit entry without Prior Vendor Invoice .
    Refer Below link..., I'm sure it will resolve your Issue
    http://help.sap.com/saphelp_46c/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm
    Regards,
    S Anand

  • Freight charges in PO

    We are currently on SRM_SERVER 550 on a Extended Classic Scenario.
    How do we meet the below requirements. 
    1. Add a freight amount automatically to the PO line item for specific vendor.  In R/3 its possible using condition records. How is it possible in SRM ?
    2. This freight amount has to be charged to another Cost Center that has been specified for Freight. How can this be done in SRM ?
    Rgrds,
    Sohail

    HI Shivanesh,
    You will first have tio initialise the Freight charges from Administration  - System initialisation - Document settings Below you will have to tick the box 'Manage Freight n Documents' . having Done this you will have to go into Administartion - Definitions -General and freight where you can define all teh trypes of freight applicable.
    Have defined this these will appear automatically in the Documents.
    Nagesh

Maybe you are looking for