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

Similar Messages

  • 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.

  • How to post Freight Charge in INbound INVOIC Idoc? (MM Invoice Verif)

    Hi Folks,
    Would like to post an inbound invoice(810) IDoc  that has multiple line items that may or may not have variances(quantity, price, etc.). MM Logistics Invoice verification is the process used for posting our invoices for raw materials. We would like for the line item variances to continue to post to the PPV account. Our problem is freight. Freight in this instance is in the header of the IDOC(segment E1EDK05). For example, we create a purchase order with 3 line items for $100.00 each totaling $300.00 for the purchase order. We receive an EDI Invoice for $345.00 which contains a $45.00 charge in the header for freight. We would like for the freight to be posted to the appropriate account. Currently the $45.00 difference in P/O total and Invoice total is being posted to the PPV account. Your helpis appreciated!
    What if Freight charge is populated as Line item in the inbound invoic idoc. Will the inbound program allow this kind of posting??
    Throw some light experts.
    Thanks,
    Matt
    Edited by: Creasy Matthew on Aug 16, 2009 6:25 PM
    Edited by: Creasy Matthew on Aug 16, 2009 6:25 PM

    Yes, you can include the freight cost in line item as well but that would not be advisable. Why don't you include Fright Cost in your pricing procedure ??? Do check the following link
    How to account freight in purchase order

  • 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)

  • 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

  • Capture the Freight charges from incoming invoice

    Hi Guru,
    The requirement is to capture the Freight charges from incoming invoice . Is it possible to capture that amount in INVOIC01 idoc.
    The Analysis what I have done is INVOIC01 IDOC type is having only two segments (E1EDS01,E1EDP26)  with Amount field . Based on the qualifier the value is getting populated . My assumption is, if we find the right qualifier for freight this may get resolved .Please let me know if there is anyother way or rigt qualifier for capturing thefrieght charge
    The FM to post is ZIDOC_INPUT_INVOIC_MRM.Pls find the attached screenshot too.

    Hope you have not read the Invoice Idoc type whcih is used for EDI invoice.
    The Invoice idoc type does not support the functionality of Planned delivery costs ( Freight )
    Please go through the link
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/f50abcea3b11d194dc0000e83dd751/content.htm

  • Capture the Freight charges from incoming invoice in an IDOC

    Hi,
    The requirement is to capture the Freight charges from incoming invoice . Is it possible to capture that amount in INVOIC01 idoc.
    The Analysis that I have done is INVOIC01 IDOC type is having only two segments (E1EDS01,E1EDP26)  with Amount field . Based on the qualifier the value is getting populated . My assumption is, if we find the right qualifier for freight this may get resolved .
    The FM to post is ZIDOC_INPUT_INVOIC_MRM.Pls find the attached screenshot too.
    Pls let me know if there is anyother approach or right qualifier to populate the freight charge

    Hope you have not read the Invoice Idoc type whcih is used for EDI invoice.
    The Invoice idoc type does not support the functionality of Planned delivery costs ( Freight )
    Please go through the link
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/f50abcea3b11d194dc0000e83dd751/content.htm

  • How to add js files to sharepoint page using sharepoint designer

    how to add js files to sharepoint page using sharepoint designer

    Upload the files to your site collection into the site assets library or into the style library, depending on perference.
    Then you can include the JS files either in the master page, page tempalte or using web parts.

  • How to create Downpayment Invoice using DI API in SAP B1 2005 version?

    Hi there,
    I appreciate anyone that can suggest me how to create a down payment invoice using DI API in SAP B1 2005 version? What is the object that we need to use? I can't find any object to achieve this
    Many Thanks,
    Harianto Ng

    the object is SAPbobsCOM.BoObjectTypes.oDownPayments, but if i remember correctly this object wasnt exposed in DI for 2004 and maybe for 2005 too.

  • Does anyone know how to add a dateline in the website using muse?

    Does anyone know how to add a dateline in the website using muse?

    You cannot.
    You would have to add it to the mail server ( if you have an IMAP account), then it will appear on the ipad.

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • How i can deal with oracle file by using php api

    how I can deal with oracle file by using php api ?

    What has this to do with Reflections and Reference Objects?

  • How to create snapshot portlet and snapshot query using server API

    How to create snapshot portlet and snapshot query using server API
    Regards
    Dheeraj

    Hi Sebastian,
    I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
    RehaanKhan. M
    see the method discussed here
    http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How To Add Freight Amount in Invoice Before the Invoice is Posted Through SDK

    Dear All,
    I have a requirement in SAP B1 9.0 where the user want to add the freight amount in the freight window based on an udf value automatically .
    So if there is an possibility of adding the freight amount based on an udf calculated value though SDK before the Invoice get added in the Database.
    Please suggest if this is possible through SDK or any work around for this scenario in SAP.
    Thanks & Regards,
    Amit

    Hi Amit,
    Here is a way to do it via UIAPI:
    Setting a Freight by the UI API ?
    If you need to do it via DIAPI, have a look here:
    How to update amount in freight column(INV3) of A|RInvoice through SDK
    DI Copy AP(AP Invoice) from PO(Purchase Order)
    Populating Freight Charges on Sales Order
    Freight in A/R Invoice
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • 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

Maybe you are looking for