Invoice for Sales BOM through DI

Dear Experts,
I have done coding for creating the AR Invoice through DI API. But some of the Items have the Sales Bom . Its not working while adding the Invoice specially with Batch managed items. How to manage this ??
Thanks in Advance,
Senthil.K

Hi ,
Please close the thread.if ur issue is resolved.
Regards,
Prasad

Similar Messages

  • Drop Ship processing for Sales BOM

    Hi,
    We have a requirement to have a Sales BOM drop shipped from a Vendor. Only the header material is relevant for pricing and purchase order. However, we have a business requirement to explode the sales BOM in the sales document and billing document to address statistical pricing requirements at the component level.
    Since only the header material is required in the PO, it has a billing relevance of 'F'. However, we have set the components to be relevant for order related billing. Standard SAP opens up the components for billing even though a vendor invoice for the header has not been received.
    Can copy control be used to control the components from being billed unless the header is billed AND the quantity of component materials modified based on the header material being invoiced ? Is it possible to only explode the sales BOM in the billing document using a billing document exit ?
    Would appreciate suggestions from the forum.
    Regards

    Hi
    The billing document creation can be controlled through the copying requirement in Copy Control of Billing documents.
    Transaction VOFM | Billing documents: Create a new requirement which prevents billing unless the parent item has the vendor invoice receipt.
    This requirement has to be then assigned to the respective billing and sales document type in copy control.
    Regards,
    Vinu

  • Schedule Lines for Sales BoM Material

    Hi All,
    When i trying to maintain the multiples schedule lines for the Sales BoM Material(Both Header and Item), system is not allowing to maintain it.Please guide me how to achieve this?

    Hi,
    "Schedule Line allowed" is enabled at Item category. The Requirement is If we have multiple schedule lines for BoM Line Item, we are not able to maintain. Suppose the Order Quantity is 50 Units and we need schedule line of 10 Quantity each month. We are not able to maintain. System takes the complete 50 quantity and do the availability check and proposes the availablity Date. We are not able to maintain different schedules manually.

  • Proforma Invoice for Sales Order

    Hi,
    Currently, SAP will generate all items using the entered SO for Proforma Invoice despite that some items already being created.
    There isn't any suitable user exit to filter those checking on items being generated.
    Please revert if there is any other way in doing it.

    Hi
    My suggestion is to use the copying requirements at the item category level in the copy control in VTFA
    Copy routine is created in VOFM
    KIndly take the help of ABAPER for the Code, example given below
    if vbap-vbeln is not initial.
      select single * from vbfa into wa_vbfa
      where vbelv = vbap-vbeln
      and posnv = vbap-posnr
      and VBTYP_N = 'U'.
      if sy-subrc = 0.
          concatenate 'proforma for sales order ' vbap-vbeln 'and' vbap-posnr 'already generated' into lv_text separated by space.
          message lv_text type 'E'.
      endif.
    endif.
    Regards
    Damu

  • How to Create Specific SAP Query for Sales BOM

    Dear All Salute !!
    How I can create a SAP Query which provide information from the Sales Order-Line Item, this specific material is having any BOM or not?
    Suppose, user want Input,
    Sales Order No., Product Category, Duration of Sales Order Release.
    want Output,
    Sales Order No., Customer No., Customer Description, Sales Order Line Item, Material No., Material Description, Delivery Date, Quantity, Sales Order release Date
    Users requirement is, List of All Line Items for which BOM is yet to be Uploaded in the System.
    Please provide complete detail with Table & field by using SAP Query.
    Rgds
    Srivastav
    +91-9973504950

    If I am correct, in table KDST, you can see the details of Sales BOM with sale order.  Since right now, I dont have access to SAP, I am unable to confirm this.  You have to consider this table and develop on your own logic with the help of ABAPer.
    thanks
    G. Lakshmipathi

  • ATP check for Sales BOM

    Hi Gurus,
    We have a requirement to check ATP in APO (GATP) when Sales BOM (order BOM) is used. I am looking for some inputs on how to setup this scenario and how to explode Sales bom.
    I know sales bom creates sub items in sales order and Rule based-ATP cannot be used for sub items. Is there a possibility not explode BOM until ATP is completed for header item?  That is, how to control explosion of BOM in sales order.
    Can you someone please reply to this. It is urgent issue.. Appreciate your inputs.
    Thanks,
    BKN

    Hi Harsha,
    we can fullfill this requirment by using Material determination
    In Material determination Record
    normally we are maintaining for A give B instead of putting like this maintain record like this For A give A after that in additional data maintain more material like B,C etc..
    And maintain availability check for every material...
    then u r problem will solve..
    in this item category determination is
    OR NORM PREL        TAX     CX
    OR NORM PSHP TAX TAPS  PP
    like this u need to maintain determination then u will get..
    i hope ur problem will solve...PLZ Reward
    Regards
    Durga Prasad

  • Sales order for sales BOM item

    Hi,
    We are facing a problem in 2007B
    While creating sales order for a item which has sales BOM and excise able and the component of sales BOM item are also excise able, system is not saving the sales order.We have to go into the component item master to make those items non-excise able to save the Sale order. Is there any way to save the sales order without changing the component item master?
    With warm regards
    Atanu Chatterjee

    Hi Atanu,
    You can create  the sales order with sale BOM where components are excisable & the warehouse for the components are also excisable.
    Change the warehouse in sales BOM for components.
    Regards
    Datta kharat

  • PGI for sales BOM but deficit

    Dear All,
    I had config the sales BOM  like: main Item cate grp : ERLA and sub-item cat grp NORM so pricing is relevant for main item. But when I do PGI, the system show deficit of main item even the sub-items are not deficit. So do u have any idea in my trouble? THks a lot for your contribution!
    Regards,
    Nguyen Pham.

    Hi  Mr.Chandrasekhar,
    In DO, I see 3 lines with main item and 2 sub items. Main Item require picking and sub-item picking field is disable  and as I see I could do nothing with sub-item, only operate on main item so after key picking qty for main item, do PGI and get deficit message for main-item. Thks for your support!
    Regards,
    Nguyen Pham

  • Reg : Excise Invoice for Sales from Depot using J1IJ.

    Hi Gurus,
                  I am trying to create Excise Invoice thro J1IJ for Delivery Sales from Depot.While doing so it throwing an error "Foreign Lock on Delivery 82XXXXXX for Delivery".Please advice what to do for this.
    Thanks in Advance,
    Nambi.N

    Just check ,might be this delivery document is open in any Login.
    Best Regards,
    Ankur

  • Addional lead time for Sales BOM kitting process

    When a Sales Order BOM Sales Order is scheduled, we would like to have a lead time added for the Shipping kitting step.  So the pick date will be X number of days before the ship date.
    Is there a way to do this is ?
    Thanks,
    Doug Karien.

    Hi DK,
    Go to Ent structure > Definition > LE > Define shipping point, choose your shipping point, click on detailsand check there, "Rounding work days" filed may provide you some soln.
    Regards
    SD

  • Vendor invoice for sales order delivery cost condition type

    Dear SAP guru,
    We have a scenario where we have added certain delivery cost in the sales order as condition type. There will be an accrual posting out of this condition type. We have defined the vendor code in the condition record.
    The question is how to generate an invoice on this vendor with reference to Sales order, as there will not be any purchase order for the delivery cost.
    Thanks in advance.
    Rama

    did you already apply note 1585042
    Symptom
    You create a Sales Order with multiple third-party items.  The system
    automatically generates an MM Purchase Requisition with multiple line
    items.  Each of these line items can have a different fixed vendor
    (field EBAN-FLIEF).
    In the Customizing transaction VOV7, the Sales Item Category (usually
    TAS for Third Party) has the field ALEKZ 'Create PO Automatically'
    selected.  Therefore, one or multiple follow-on Purchase Orders will
    also be created from the Requisition data during the same Sales Order
    creation workflow.  The system creates a separate Purchase Order for
    each fixed vendor (supplier) found among the Requisition items.
    During this ALE PO creation, if one of the Requisition items fails to
    successfully create a PO, the next relevant PO created may have an
    incorrect vendor in its header.  The vendor in the PO header may not
    match the fixed vendor that was designated in the Requisition line item.
    Solution
    Implement the attached code corrections.   After this correction,
    regardless of whether one of the Requisition items fails to generate a
    PO, any PO that is successfully created during the process will have the
    correct assigned vendor.

  • Assigning informations in Sales Order for Sales BOM components with DI Server

    Hi,
    We are adding sales order in SAP B1 using DI Services(Order Service). In the Documents row, we are assigning only informations of the BOM parent and the child components are getting automatically added by the system, petty much the expected behaviour so far. But now, we want to assign a warehouse to the BOM parent and all of its children. How this information can be added? Is there any way to do so with the Add operation?
    Regards,
    Victor

    Dear Sanju,
    Could you please explain what you have done for the same?
    Thanks & Regards
    Piyush

  • Wrong Availability check for Header Item in Sales BOM after BOP

    Hi Guys
    I am stuck with a very weird problem. Request your advice:
    I have a Sales BOM with one item Lets header is 'A' and Item 'B'. On creation of Sales Order ATP check is performed and both the line items (with A and B) the committed qty and committed date.
    Now when BOP runs, it deletes the allocation of A and changes it to '0'
    Details:
    'A' is a non stockable product
    Req:
    1. I am not sure whether I should include A in BOP selection, however even running it only with B it deletes the allocation of A and the committed qty changes to '0'
    Can you please suggest the solution or standard way of running BOP for Sales BOM
    Thanks in advance
    -Rahul

    Thanks for writing in Prasun
    Yes I created a new Filter type however when you add a STO category and then you change the fields to include item category you will get the same error. I am also in V 5.0 of SCM
    Normally we use SAP_NetChange filter type. So is it possible to restrict using item category for this filter some how!
    On the otherhand I also wonder these should not ATP relevant as the header item is non stockable item! And I guess there should some catch to exclude if not item category as you mentioned!
    So the order categories included are:
    Customer Inquiry
    Customer quotation
    Sales Order
    SD Scheduling Agreement
    SD Scheduling agreement w/external
    Contract
    Delivery w/io charge
    Independent requriement
    Release from customer in plant
    STO
    Deplyometn release
    TLB release for purc ord
    Fields
    Product
    location
    distribution centrer
    MRP area
    product Hierarchy
    Location hierarchy
    supplier location
    These are std filter type and I cant be modified.. however we restrict our filter to location only!
    Kindly advice!
    Thanks in advance
    -RK

  • How number range for Sales Tax Invoice is maintained

    Dear Friends,
    Where number range for  Tax Invoice for sales is maintained for different product region wise.
    Regards,
    Alok

    Hi
    You question is not very clear. You can have multiple products also in one sales invoice, so how would you distinguish at the product level. Also, what would be the distinction for determining the region. You may bill to a customer centrally, but delivery can be across to various regions in a country or to a seperate country. You have to first determine these combinations.
    That said, if you are clear that sales invoice no has to be different based on for eg, region of  the delivering address, you have to do an small enhancement, calling up the user exit in VF01.
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
    Thanks & regards
    Sanil Bhandari

  • Error in Loading Sales Bom

    Hi ..
    When im  loading Sales BOM from Sales Quotation to Invoice with Sales Bom  via SDK , im receiving this error message .
    " Error The complete Sales BOM, not just some of the components, must be copied to an A/R Invoice or a Delivery  [INV1.TreeType][line: 42] " , im basically transfering record by record from  Sales Quotation to Invoice
    But if i used the copy to function to invoice this Sales Quotation , i can be invoice
    I would like to know, whats is reason of this error message?
    thanks
    Loren

    Hi Yatsea
    Thank you for your response,
    Yes i followed some of the documents in the forum on how to add /copy a document to another document . My problem right now, if i will load 2 or more bom items on one invoice,  i receive the same errror "Error The complete Sales BOM, not just some of the components, must be copied to an A/R Invoice or a Delivery http://INV1.TreeTypeline: 42"
    but if a sepate the sales bom on different invoice (1 invoice = 1 Sales BOM) , the transaction goes well ....
    please see code
      start code -
        Private Function CreateInvoiceFromQuotation()
            Dim oInvoice As SAPbobsCOM.Documents
            Dim oSalesQuotation As SAPbobsCOM.Documents
            Dim rsForInvoice As SAPbobsCOM.Recordset ' A recordset object
            Dim rsFrInvDtls As SAPbobsCOM.Recordset ' A recordset object
            Dim oRecordCount As Integer
            Dim rUpdateStatus As SAPbobsCOM.Recordset
            Dim SQLStr As String
            Try
                rsForInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                SQLStr = "SELECT OQUT.DocEntry,OQUT.DocDate, OQUT.DocDueDate, OQUT.CardCode, OQUT.NumAtCard, OQUT.Comments "
                SQLStr = SQLStr & "FROM [@TDOCPROC] INNER JOIN OQUT ON [@TDOCPROC].U_DocEntry = OQUT.DocEntry"
                rsForInvoice.DoQuery(SQLStr)
                oRecordCount = rsForInvoice.RecordCount
                Do While rsForInvoice.EoF = False
                    'oCompany.StartTransaction()
                    oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    oInvoice.CardCode = rsForInvoice.Fields.Item("CardCode").Value
                    oInvoice.DocDate = rsForInvoice.Fields.Item("DocDate").Value
                    oInvoice.DocDueDate = rsForInvoice.Fields.Item("DocDueDate").Value
                    oInvoice.Comments = rsForInvoice.Fields.Item("Comments").Value
                    oInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
    details -
                    Dim StrFilter As String
                    Dim z As Integer
                    Dim RecCnt As Integer
                    Dim oInvNum As String = 0
                    rsFrInvDtls = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    StrFilter = "SELECT * FROM qut1 WHERE DOCENTRY =" & rsForInvoice.Fields.Item("DocEntry").Value & " order by linenum "
                    rsFrInvDtls.DoQuery(StrFilter)
                    RecCnt = rsFrInvDtls.RecordCount
                    z = 0
                    Do While rsFrInvDtls.EoF = False
                        Dim prodCode As String
                        prodCode = rsFrInvDtls.Fields.Item("ItemCode").Value
                        If z = 0 Then
                            oInvoice.Lines.ItemCode = rsFrInvDtls.Fields.Item("ItemCode").Value
                            oInvoice.Lines.ItemDescription = rsFrInvDtls.Fields.Item("Dscription").Value
                            oInvoice.Lines.WarehouseCode = rsFrInvDtls.Fields.Item("WhsCode").Value
                            oInvoice.Lines.Quantity = rsFrInvDtls.Fields.Item("Quantity").Value
                            oInvoice.Lines.UnitPrice = rsFrInvDtls.Fields.Item("Price").Value
                            oInvoice.Lines.CostingCode = rsFrInvDtls.Fields.Item("OcrCode").Value '--- Profit Center             
                            ' oInvoice.Lines.TreeType = rsFrInvDtls.Fields.Item("TreeType").Value  '--- Profit Center
                            'oInvoice.Lines.AccountCode = rsFrInvDtls.Fields.Item("Acctcode").Value
                            oInvoice.Lines.LineTotal = rsFrInvDtls.Fields.Item("LineTotal").Value
                            oInvoice.Lines.BaseLine = rsFrInvDtls.Fields.Item("LineNum").Value
                            oInvoice.Lines.BaseEntry = rsForInvoice.Fields.Item("DocEntry").Value
                            oInvoice.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oQuotations
                        Else
                            oInvoice.Lines.Add()
                            oInvoice.Lines.SetCurrentLine(z)
                            oInvoice.Lines.ItemCode = rsFrInvDtls.Fields.Item("ItemCode").Value
                            oInvoice.Lines.ItemDescription = rsFrInvDtls.Fields.Item("Dscription").Value
                            oInvoice.Lines.WarehouseCode = rsFrInvDtls.Fields.Item("WhsCode").Value
                            oInvoice.Lines.Quantity = rsFrInvDtls.Fields.Item("Quantity").Value
                            oInvoice.Lines.UnitPrice = rsFrInvDtls.Fields.Item("Price").Value
                            oInvoice.Lines.CostingCode = rsFrInvDtls.Fields.Item("OcrCode").Value '--- Profit Center             
                            'oInvoice.Lines.AccountCode = rsFrInvDtls.Fields.Item("Acctcode").Value
                            oInvoice.Lines.LineTotal = rsFrInvDtls.Fields.Item("LineTotal").Value
                            oInvoice.Lines.BaseLine = rsFrInvDtls.Fields.Item("LineNum").Value
                            oInvoice.Lines.BaseEntry = rsForInvoice.Fields.Item("DocEntry").Value
                            oInvoice.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oQuotations
                        End If
                        z = z + 1
                        rsFrInvDtls.MoveNext()
                    Loop
                    rsFrInvDtls = Nothing
                    Dim cResult As String
                    Dim cMessage As String
                    Dim dPostDate As Date
                    cResult = ""
                    If oInvoice.Add <> 0 Then
                        ' MsgBox("Error " + oCompany.GetLastErrorDescription())
                        cMessage = "Error " + oCompany.GetLastErrorDescription()
                        cResult = "Failed"
                        dPostDate = DateTime.Now.ToString
                        dPostDate = Date.Parse(dPostDate)
                        rUpdateStatus = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        SQLStr = "update [@TDOCPROC] set U_DOCSTATUS = '" & cResult & "' ,U_InvNum = " & oInvNum
                        SQLStr = SQLStr & ",U_REMARKS = '" & cMessage & "'"
                        SQLStr = SQLStr & ",U_POSTDATE = '" & dPostDate & "'"
                        SQLStr = SQLStr & " where u_DocEntry = " & rsForInvoice.Fields.Item("DocEntry").Value
                        rUpdateStatus.DoQuery(SQLStr)
                    Else
                        Dim rs1 As SAPbobsCOM.Recordset
                        Dim retval As Long
                        Dim cValues As Integer
                        cResult = "Success"
                        oInvNum = oCompany.GetNewObjectKey()
                        oSalesQuotation = oCompany.GetBusinessObject(BoObjectTypes.oQuotations)
                        cValues = rsForInvoice.Fields.Item("DocEntry").Value
                        If (oSalesQuotation.GetByKey(cValues) = True) Then
                            oSalesQuotation.Close()
                            oSalesQuotation.Update()
                        Else
                            Dim errcode As String
                            Dim errmsg As String
                            oCompany.GetLastError(errcode, errmsg)
                            MsgBox(oSalesQuotation.CardCode)
                            MsgBox("Failed to Retrieve the record " & errcode & " " & errmsg)
                        End If
                    End If
                    dPostDate = DateTime.Now.ToString
                    dPostDate = Date.Parse(dPostDate)
                    rUpdateStatus = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    SQLStr = "update [@TDOCPROC] set U_DOCSTATUS = '" & cResult & "' ,U_InvNum = " & oInvNum & ","
                    SQLStr = SQLStr & " U_PostDate = '" & dPostDate & "'"
                    SQLStr = SQLStr & " where u_DocEntry =" & rsForInvoice.Fields.Item("DocEntry").Value
                    rUpdateStatus.DoQuery(SQLStr)
                    'If oCompany.InTransaction = True Then
                    '-ompany.EndTransaction(BoWfTransOpt.wf_Commit)
                    'End If
                    rsForInvoice.MoveNext()
                Loop
                rsForInvoice = Nothing
                '    'msg2send(NumOfInv) = oDocNum
                '    'Insert2OCTP(vDocNum, vDocDate, oDocNum, Now.ToShortDateString, vCardCode, vCardName)
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
        End Function
       end code
    thank you

Maybe you are looking for

  • Error while checking in Document as attachement

    Hi All I am getting the following error when i am trying to check in documents as "add attachement" Error Deatils are as follows : The service stack for this request is --EDIT_RENDITIONS (dID=12155) intradoc.data.DataException: !syParameterNotFound,H

  • How to connect to slingbox i need admin page

    HOW DO I FIND THE ADMINISTRATION PAGE W IP ADDRESS. NEED TO CONNECT TO SLING BOX

  • ".msm"-files in different language

    I have a german version of the app-builder but would have to build a french installer. In order to do this (the way that the customer when installing my app has the french runtime engine installed) I have to replace the merge modules ".msm" in the ap

  • How to automount with polkit in kde 4.4

    Try editing /etc/dbus-1/system.d/hal.conf to match similar to this & substitute your username. Automount in Dolphin without FSTAB entry: Look for following, and ad entry for USERNAME: <!-- This configuration file specifies the required security polic

  • OBIEE Ipad App HD 11.1.1.7

    Hello, Current version of OBIEE we are using is 11.1.1.6.6. I had been using OBI Ipad HD app version 11.1.1.6.2.1238 . And it was working just fine. Oracle recently updated their mobile HD app to support 11.1.1.7. And so I update it in my IPad. Now r