Serial no. assigned in a base document

Hi Experts
Unable to print the serial number on the AR invoice when the AR invoice is based on notehr document ie a delivery note. I believe i will have to use a formatted look up filed on the AR invoice to get the serial number.
Basically Where is the Serial no. assigned in a base document found and can someone help me with a SELECT query to achieve this
Thank you
Regards
Apsara

Hi Sachin
Thank you so much for your reply.
I have slightly modified the query as i need to get the document number not the basedoc number. So the idea is to populate the delivery document number on the AR invoice using formatted search
Below query works fine with a hard coded delivery no. I dont want to hard code the delivery no. There for i changed replaced the the last bit with $[$8.0.1]. But the query does not work. Any help pl
select osri.intrserial,osri.itemcode,sri1.Basenum as 'Delivery note no'
from osri 
inner join sri1 on osri.itemcode=sri1.Itemcode and osri.sysserial=sri1.sysserial
inner join osrd on osrd.itemcode=sri1.Itemcode and osrd.DocNum = sri1.BaseNum and osrd.DocType = 15
where sri1.BaseNum = 10064
Thank you
Regards
Apsara

Similar Messages

  • Report for A/R Invoice's Base Document

    Hi..
    My client wants to have the report showing the base document(Delivery..if any) of A/R Invoice he has punched into the system.
    basically he wants to see the what is the base document of particular A/R Invoice.
    Regards
    Rakhi

    Hi
    pls find this Query
    SELECT T0.[DocNum]    As [Base Document No for Ar Invoice], T2.[DocNum]   As [A/R Invoice No]
    FROM ODLN T0  INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry,
    OINV T2 INNER JOIN INV1 T3 ON T2.DocEntry = T3.DocEntry
    WHERE T3.[BaseRef]  = T0.[DocNum] and  T3.[ItemCode]  = T1.[ItemCode]
    regards
    Jenny
    Edited by: Jennifer Anderson on Jul 15, 2010 1:26 PM

  • Error in Sales InvoiceSAP ERROR A/R INVOICE- ROWS [BASE DOCUMENT INTERNAL ID] "NO MATCHING RECORD FOUND"

    Hi,
    I am new to this portal.
    When I am trying to add A/R invoice based on Sales Order I got this Error Message from Evening in All Open Document. How to Rectify This.
    An Early Response Will Be very helpful.
    Thanks,
    Vikram

    Hello Vikram,
    Welcome to the Portal. Please check whether the Item Code and other line level Items on Sales Order are same or not.
    This type of message generally occurs when Base Document Rows Level are different from Target Document.
    Hope this Help
    Sudhir Sharma

  • PO from SO via DI API:Base document card and target document card do not ..

    HI All,
    I am trying to create Purchase Order from Sales Order. This is possible by GUI (on Sales Order on logistics tabs Click On Purcase Orders CheckBox.
    I got the error message: -5002-Base document card and target document card do not match.
    The message itself can be understandable, because the Customer and Supplier has a different CardCode.
    I am sure I am using a correct code
    oPo.Lines.BaseType = BoObjectTypes.oOrders
    oPo.Lines.BaseEntry = sDocEntry
    oPo.Lines.BaseLine = iLineNum
    Where oPo is a Purchase Order document.
    sDocEntry is a Sales Order docentry and iLineNum is a Line number of Sales Order
    For other A/R to A/R and A/P to A/P documents are working fine.
    Has anybody found this error or has anybody created application like this?
    I am using sbo2007PL46
    Regards,
    J.

    Hi guys,
    this is still on the suggestion page:
    Link existing Purchase Orders to (Sales) Orders via DI API : View Idea
    I tryed with 9.1 PL 4 and it didn't work.

  • Error "Account assignment 00 for  purchase document does not exist " when u

    Hai,
    I am encountering the following problem when posting a PO based Invoice using BAPI_INCOMINGINVOICE_CREATE.
    The error says " account assignment 00 for purchasing document does not exist".
    The scenario is very simple.  I need to raise an Invoice against a PO. the PO has a single line item of quantity 10 net price 10.  Tax code is U2 ( 7% tax).
    I am passing the following at header level.
    Invoice_indicator ( as 'X'),company code,doc date , posting date, gross amount (107, currency USD, calc tax indicator as 'X'.
    At line item i am passing Invoice document item 000001, po number , po item number, tax code(U2) item amount (100),
    Does this error has got any thing to relate configuration matters?
    Regards,
    Upender

    Hi Upender,
    In some cases, depending on the type of PO / Posting,
    you might have to populate the accounting data itab and pass in the BAPI parameter.
    you can select the accounting data from EKKN for the PO.
    Again it depends on the PO category, wether you need to populate Qty & Unit in accounting data.
    Further, the accounting data should be exactly the same as there in EKKN ( all the fields except Qty & Unit ).
    Thanks,
    Ram

  • Problem when Add Serial Number for Goods Receipt PO Document

    Dear All,
    In my App I have function to Add goods receipt PO and Serial for these items of this document as code bellows:
    oGrp = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                'Add Header Goods Receipt
                oGrp.CardCode = "CC1"
                oGrp.CardName = "Card Code 1."
                oGrp.DocDate = now
                oGrp.DocDueDate = now
                oGrp.TaxDate = now
                Dim Qty As Int32 = 2
                For i As Integer = 0 To Qty - 1
                    oGrp.Lines.SerialNumbers.SystemSerialNumber = 1
                    oGrp.Lines.SerialNumbers.ManufacturerSerialNumber = "MSR01" & "-" & i
                    oGrp.Lines.SerialNumbers.InternalSerialNumber = "ISR01" & "-" & i
                    oGrp.Lines.SerialNumbers.SetCurrentLine(i)
                    oGrp.Lines.SerialNumbers.Add()
                Next
                oGrp.Lines.ItemCode = "YMY2H-BLACK"
                oGrp.Lines.ItemDescription = "My Item"
                oGrp.Lines.Currency = "USD"
                oGrp.Lines.Quantity = Qty
                oGrp.Lines.Price = 10000
                oGrp.Lines.DiscountPercent = 0
                RetVal = oGrp.Add()
                If RetVal <> 0 Then
                    oCompany.GetLastError(ErrCode, ErrMsg)
                    Return -1
                Else
                  End If
    When Add this document I have Error : "You should use existing serial/batch numbers for this document type ". Please help me fix this problem. In my SAP doesn't have Serial for these item. Please let me know How to add serial master data?
    Thanks & Regards

    Dear,
    Thanks for your support but when I chaged code as bellows:
    oGrp = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                'Add Header Goods Receipt
                oGrp.CardCode = "CC1"
                oGrp.CardName = "Card Name."
                oGrp.DocDate = MyArrContainDocInfo(2)
                oGrp.DocDueDate = MyArrContainDocInfo(3)
                oGrp.TaxDate = MyArrContainDocInfo(4)
                Dim Qty As Int32 = 2
                oGrp.Lines.ItemCode = "YMY2H-BLACK"
                oGrp.Lines.ItemDescription = "My Item"
                oGrp.Lines.Currency = "USD"
                oGrp.Lines.Quantity = Qty
                oGrp.Lines.Price = 10000
                oGrp.Lines.DiscountPercent = 0
                For i As Integer = 0 To Qty - 1
                    oGrp.Lines.SerialNumbers.SetCurrentLine(i)
                    oGrp.Lines.SerialNumbers.SystemSerialNumber = i
                    oGrp.Lines.SerialNumbers.ManufacturerSerialNumber = "MSR01" & "-" & i
                    oGrp.Lines.SerialNumbers.InternalSerialNumber = "ISR01" & "-" & i
                    oGrp.Lines.SerialNumbers.Add()
                Next
                RetVal = oGrp.Add()
                If RetVal <> 0 Then
                    oCompany.GetLastError(ErrCode, ErrMsg)
                    Return -1
                Else
                              End If
    I have the same Error: "You should use existing serial/batch numbers for this document type". I try config in Gerneral Setting Form as image bellow: [http://www.hoanghaicap.com/GS.png|http://www.hoanghaicap.com/GS.png]. Please help me fix this problem. I try Add Goods receipt PO with items manage by Serial it's OK but by SDK it's not OK.
    Thanks & Regards,
    Edited by: Tao lao on Mar 10, 2010 2:44 AM

  • Enhancement for VF02 in which agreement no to be displayed  in assignment filed in FI document?

    Hi Experts,
    Does anyone know which exit has to be used in order to display the agreement no  in assignment filed in FI document for transaction VF02 (SD).
    lets say
    when i click on doc no. in the " Documents in Accounting"  pop up , Agreement no to be displayed in the assignment field instead of Date.
    Could anybody please help me out as i've never done any enhancement before.
    Thanks in Advance
    Regards
    Satish

    Hi Experts,
    Does anyone know which exit has to be used in order to display the agreement no  in assignment filed in FI document for transaction VF02 (SD).
    lets say
    when i click on doc no. in the " Documents in Accounting"  pop up , Agreement no to be displayed in the assignment field instead of Date.
    Could anybody please help me out as i've never done any enhancement before.
    Thanks in Advance
    Regards
    Satish

  • How do you create data base documents in Pages '09?

    Can you create Data Base documents with Pages, or any of the iWork Apps?

    If you want to create and use true databases, you must use an other app dedicated to this feature.
    There is a powerful database tool in LibreOffice but it requires a serious learn curve.
    There are numerous available apps starting from Bentoy to FileMaker or 4th Dimension.
    Matter of needs and finances.
    Yvan KOENIG (VALLAURIS, France)  dimanche 11 décembre 2011 10:54:27
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Closed base Document appears in the open item list

    Hi all,
    While we are fully copying a base document to a target document, the base document header and rows will be closed, but it will appear in the open item list report.
    So the customer has created a Sales Order -> Delivery -> A/R Invoice.
    The Sales Order document status gives 'Closed', but still appears in the Open Item list (Sales - AR --> Sales Reports --> Open Items List).
    The customer using: SBO2005A PL22
    Further i also have looked in the SAP Notes (Note 1083366) but i can't solved it.
    Thanks in advance.

    Chief,
    In open items list of sales order,
    *select reqd. sales order,net amount,tax & total amount open in
    sales order,
    also open delivery document & compare with it,
    there must be difference in tax total/total/they
    must have changed quantity,unit price,date,changed payment terms/tax codes which causes delivery created without reference to sales order.
    That's why sales order is open.
    You can manaully close sales order by Data-->Close.
    Jeyakanthan

  • UI API issue, clicking base document on sales order does not set ActiveForm

    I have a sales order window open with a sales order loaded.  When I right click and click on base document, the sales quotation window shows up properly, however in code when I get the ActiveForm, it is the sales order form and not the sales quotation form!
    Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
        If BusinessObjectInfo.Type = bo_type.SALES_QUOTATION And BusinessObjectInfo.BeforeAction = False And    BusinessObjectInfo.EventType = BoEventTypes.et_FORM_DATA_LOAD
            SBO_Application.MessageBox(SBO_Application.Forms.ActiveForm.Type) 'shows 139 instead of 149?
        End If
    End Sub
    If quotation data is loaded using the next/prev/first/last buttons on the menu bar, the activeform .Type is 149.
    If quotation data is laoded using the Base Document shortcut on the sales order, the activeform.Type is 139.
    Is that suppose to be correct?  If so, how do I get the new sales quotation form that is created by using the base document shortcut?
    Edited by: Dung Nguyen on Aug 24, 2011 2:12 AM

    János Nagy wrote:
    Hi Dung,
    >
    > Formdataevent is handling trhe data events, not GUI events. In form data load means that the form is data is loaded, not that the form is activated.
    >
    > You must handle menuevent, and in menuevent before_action = false case the active form will be the sales quotation (or child/parent in the document flow).
    >
    > You may use an SDN tool to determine the events. You can download it from:
    > http://www.sdn.sap.com/irj/scn/businessone-tools
    >
    >
    > Regards
    >
    > János
    The problem with form activated is that it is triggered everytime the window is "activated'.  Meaning that if a user clicks out of the form and clicks back in, the form activated event is triggered.
    I need to perform an operation only on the first time the form and data is loaded and/or activated.

  • Table name for serial number assigned to delivery

    Hi,
    How can I find the table having serial number assigned in a Inbound Delivery(VL31N).
    I need SAP Table having details of serial number assigned to a Inbound delivery
    regards
    bobby

    Hi Meet,
    I don't want to configure any thing, I am making a report in that I need to show the serial numbers assigned to an Inbound delivery Item Qty.  , therefore I need the table name from which I can pick the serial number assigned to delivery.
    like
    Inbound Deliver Numbers       Matnr       Qty     Serial No.
    10000018                             PENCIL      2       1234466788
    10000018                             PENCIL      2       1234466989
    thanks
    bobby

  • IO 229 - Batch for serial number 1234 (BBB) differs from document batch AAA

    Hello All,
    We use batch management for serialized materials only at our central plant. For all other plants, there is no batch control. Sometimes we need to return materials back to the central plant but with a different batch number.
    When we do two step stock transfer 303 / 305, we receive the following error message if we don't use the original batch number.
    "IO 229 - Batch for serial number 1234 (BBB) differs from document batch AAA".
    However, when we use one step plant to plant stock transfer 301, there is no error message. The batch number is also updated correctly in IQ02.
    I wonder if there is any configuration to use 303 / 305 with different batch numbers.
    Thanks,
    Hakan

    Thanks Arminda.
    64044 recommends to use 309 to change the batch, which works but this is an additional step.
    Currently 1 step plant to plant transfer i.e. 301 doesn't require this additional step. It updates the batch information with no problem.
    Is there any configuration option to change the behavior of 305, so that we don't have to do an additional movement?

  • Incoming Excise document automaticaly show the base document Series ans Do

    Dear All,
    One of my customer  have two branches and for that they  created them as two separate warehouses. And both branches are excisable unit. So when they  are transferring inventory from one branch to other which are excisable so they have to raise Excise invoice based on Inventory Transfer.
    They require in an incoming Excise document automatically show the base document Series and Docnumber  in a  "Excise Ref No."  field .
    pl provide me FMS query .
    regards
    Rakesh

    Bom dia Marc de Ruijter,
    Não dá para ler sua thread, mas imagino que seu validador esteja desligado.
    No GRC vá em SPRO --> SAP GRC Nota Fiscal Electronica --> Configure System Response for Each Tax Number (CNPJ)
    Para ligar/desligar o Validador basta clicar no check box na coluna Validation.
    Observação: Para correto funcionamento do GRC deve-se sempre utilizar o validador ligado.
    Após isto refaça seu teste, é provável que você receba um erro de validação para a NF-e. Veja em GRC Web monitor -> NFe Detailed View -> Validation History.
    Atenciosamente,
    Fernando Da Ró

  • Filling the text and assignment automatically of WA document

    can anyone please let me know where in SPRO do i configure for populating the text and assignment fields of WA document(accounting document) generated after GRN (movement type 105)?

    Hi,
    Good Day,
    Maintain Sort Key field under GL Account (FS00) - Control Data Tab for Automatic Assignment.
    Best Regards
    Suresh Kumar K
    If this info useful then assign points.

  • System message - Base document exchange rate cannot be used

    Hi!
    I need an Information ... when I use the function "Copy From" i get the Draft Document Wizard where i set "Use Exchange Rate from Base Document." But when I select "Finish" I get the following system message: "Basic Document Exchange rates can not be used, the rows will be updated using the exchange rate target document.
    Why??

    Hi
    at the sales front
    the exchange rate should be always as per the Posting date this is standard, how ever if you wish you can manually overwrite the defined exchange rate
    at the purchase side you define the system wether you want the exchange rate to be from based document or as per the posting date in choose  Administration -  System Initialization - Document Settings -> Exchange rate base date (A/P documents)
    hope i made my point
    sandeep

Maybe you are looking for