Locking problem - unique documents with external numbers

Hello,
I have following problem:
In external system documents are generated with unique numbers. When they come to SAP (via RFC calls) corresponding documents in SAP are created with internal SAP numbering (the external document number is saved in "Ref. Doc No." field).
Recently we had a situation when the external documents were posted twice (with two different internal SAP numbers). There is a check if the document with "Ref. Doc No." already exists in database table but it doesn't work when double posting is performed in very short period of time (the document from first posting is not yet written in DB while the second posting checks if it is already there - in result the second posting is also performed).
I thought about using ENQUEUE/DEQUEUE mechanism but it seems to work only on records which are already in DB table.
Do you have any idea what "lock mechanism" could be used in this case?

Boinjour,
You said :
"I thought about using ENQUEUE/DEQUEUE mechanism but it seems to work only on records which are already in DB table."
My point of view is that you can lock an entry that is not already existing in the DB.                                          
Example : in the transaction code se11 try to create a LOCK OBJECT named eztest. During this creation and before saving, open an other sap session and try to create the same object. You will have an error message because a lock already exist.
The entry is locked but does not exist in DB.
"Do you have any idea what "lock mechanism" could be used in this case?"
Create a specific lock object with Lock parameter = a sap field to will correspond to the external number.
==> It will generate 2 function modules (ENQUEUE and DEQUEUE).
In the abap that is integrating incoming data :
add a CALL to the "ENQUEUE" function module ===> try to lock an entry
If the lock was OK (return code of enqueue function module is 0)
Then you continue
Else.
The entry that you are trying to lock is already locked.
ENDIF.
Cordialement,
Chaouki.
It is easy to test :
Cordialement,
Chaouki.

Similar Messages

  • DIAPI posting Delivery Document with Serial Numbers SP1

    Release 2005A, SP1 PL4 seems to have broken code that worked with SP00.  When trying to create a Delivery Document that contains Serial Numbers, an error is generated: Error -1, General Error.  When adding a delievery document which does not contain serial numbers, the document adds successfully.
    The following code loops through a recordset to create documents, add expenses and add serial numbers when appropriate.  Is this a new 'feature' or can we make a coding change to eliminate this error?
    Sample code:
        Try
          oSalesOrder = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
          RecSet = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
          RecSet2 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
          RecSet3 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
          RecSet4 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
          RecSet5 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
          RecSet6 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
          '-- Select Documents to process and loop through recordset
          lsSQL = "SELECT DocEntry FROM DeliveryTable WHERE ProcessResult IS NULL Group by DocEntry"
          RecSet.DoQuery(lsSQL)
          While Not RecSet.EoF
            oSalesOrder.GetByKey(RecSet.Fields.Item(0).Value)
            If bDocuments(piCompany).DelDraft = False Then
              oDelivery = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
            Else
              oDelivery = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
            End If
            oDelivery.CardCode = oSalesOrder.CardCode
            oDelivery.Comments = "Based On Sales Order " & oSalesOrder.DocNum & "."
            oDelivery.DocDate = Today
            oDelivery.ContactPersonCode = oSalesOrder.ContactPersonCode
            oDelivery.DocCurrency = oSalesOrder.DocCurrency
            oDelivery.DocDueDate = Today
            If bDocuments(piCompany).DelDraft = True Then
              oDelivery.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes
            End If
            '-- Handle Expenses for Document
            Dim ExpenseLoop As Integer
            Dim ExpenseCount As Integer = 0
            For ExpenseLoop = oSalesOrder.Expenses.Count - 1 To 0 Step -1
            ExpenseCount += 1
              '-- Create new Expense if needed
              If ExpenseCount > oDelivery.Expenses.Count Then
                oDelivery.Expenses.Add()
              End If
              oSalesOrder.Expenses.SetCurrentLine(ExpenseLoop)
              '-- Copy all non-readonly properties
              If oSalesOrder.Expenses.LineTotal > 0 Then
                oDelivery.Expenses.BaseDocEntry = oSalesOrder.Expenses.BaseDocEntry
                oDelivery.Expenses.BaseDocLine = oSalesOrder.Expenses.BaseDocLine
                oDelivery.Expenses.BaseDocType = oSalesOrder.Expenses.BaseDocType
                oDelivery.Expenses.DeductibleTaxSum = oSalesOrder.Expenses.DeductibleTaxSum
                oDelivery.Expenses.DistributionMethod = oSalesOrder.Expenses.DistributionMethod
                oDelivery.Expenses.ExpenseCode = oSalesOrder.Expenses.ExpenseCode
                oDelivery.Expenses.LineTotal = oSalesOrder.Expenses.LineTotal
                oDelivery.Expenses.Remarks = oSalesOrder.Expenses.Remarks
                oDelivery.Expenses.TaxCode = oSalesOrder.Expenses.TaxCode
                oDelivery.Expenses.VatGroup = oSalesOrder.Expenses.VatGroup
              End If
            Next ExpenseLoop
            Dim i As Integer = 0
            Dim liMinRef As Integer = -1
            For x = 0 To oSalesOrder.Lines.Count - 1
              lsSQL = "SELECT ISNULL(MIN(CAST(LineRef as int)),999999) as MinLineRef FROM DeliveryTable WHERE DocEntry = " & RecSet.Fields.Item(0).Value & " AND CAST(LineRef as int) > " & liMinRef
              RecSet5.DoQuery(lsSQL)
              If Not RecSet5.EoF Then
                '-- It's possible that the DeliveryTable has less records then the RDR1 table - if that's the case
                '-- we may be at the end, so set the liMinRef field to something out of range
                liMinRef = RecSet5.Fields.Item(0).Value
              End If
              '-- get line items for each document
              lsSQL = "Select * from DeliveryTable WHERE DocEntry = " & RecSet.Fields.Item(0).Value & " AND LineRef = " & x & " AND ProcessResult IS Null"
              RecSet2.DoQuery(lsSQL)
              RecSet2.MoveFirst()
              While Not RecSet2.EoF
                '-- We need to walk through the SO to find the item that we are receiving based on the LineNum
                Dim liCurrentLine As Integer = x
                Dim lbFound As Boolean = False
                While liCurrentLine <= (oSalesOrder.Lines.Count - 1)
                  '-- We need to get the PO Line number (x is NOT the LineRef)
                  oSalesOrder.Lines.SetCurrentLine(liCurrentLine)
                  If oSalesOrder.Lines.LineNum = liMinRef Then
                    lbFound = True
                    Exit While
                  End If
                  liCurrentLine += 1
                End While
                If lbFound Then
                  i += 1
                  If i > oDelivery.Lines.Count Then
                    oDelivery.Lines.Add()
                  End If
                  oDelivery.Lines.BaseEntry = oSalesOrder.DocEntry
                  oDelivery.Lines.Quantity = RecSet2.Fields.Item(6).Value
                  oDelivery.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
                  oDelivery.Lines.LineTotal = oSalesOrder.Lines.LineTotal * (oDelivery.Lines.Quantity / oSalesOrder.Lines.Quantity)
                  oDelivery.Lines.UserFields.Fields.Item("U_WhseLoc").Value = RecSet2.Fields.Item(8).Value
                  oDelivery.Lines.AccountCode = oSalesOrder.Lines.AccountCode
                  oDelivery.Lines.Address = oSalesOrder.Lines.Address
                  oDelivery.Lines.Currency = oSalesOrder.Lines.Currency
                  oDelivery.Lines.ItemCode = oSalesOrder.Lines.ItemCode
                  oDelivery.Lines.BaseLine = liMinRef
                  oDelivery.Lines.ItemDescription = oSalesOrder.Lines.ItemDescription
                  oDelivery.Lines.WarehouseCode = oSalesOrder.Lines.WarehouseCode
                  lsUserID = RecSet2.Fields.Item("UserID").Value
                  '-- manage serial numbers
                  j = -1
                  lsSQL = "Select * from DeliverySerial WHERE DocEntry = " & oDelivery.Lines.BaseEntry & " AND LineRef = " & liMinRef
                  lsSQL += " AND WIPLineRef = " & RecSet2.Fields.Item("WIPLineRef").Value
                  RecSet3.DoQuery(lsSQL)
                  While Not RecSet3.EoF
                    '-- get the next SystemSerialNumber for the Inventory Item
                    lsSQL = "EXEC " & gsDB(piCompany) & "xspGetSysSerial " & sparm(oDelivery.Lines.ItemCode) & ", " & sparm(RecSet3.Fields.Item("LotNo").Value)
                    lsSQL += ", " & sparm(RecSet3.Fields.Item("ManSerNo").Value) & ", " & sparm(RecSet3.Fields.Item("IntSerNo").Value)
                    lsSQL += ", " & RecSet3.Fields.Item("QTY").Value & ", " & sparm(oDelivery.Lines.WarehouseCode) & ", " & sparm(RecSet2.Fields.Item(8).Value)
                    RecSet4.DoQuery(lsSQL)
                      j += 1
                      If j + 1 > oDelivery.Lines.SerialNumbers.Count Then
                        oDelivery.Lines.SerialNumbers.Add()
                      End If
                      oDelivery.Lines.SerialNumbers.SetCurrentLine(j)
                      oDelivery.Lines.SerialNumbers.BatchID = RecSet3.Fields.Item("LotNo").Value
                      oDelivery.Lines.SerialNumbers.ManufacturerSerialNumber = RecSet3.Fields.Item("ManSerNo").Value
                      oDelivery.Lines.SerialNumbers.InternalSerialNumber = RecSet3.Fields.Item("IntSerNo").Value
                      oDelivery.Lines.SerialNumbers.SystemSerialNumber = RecSet4.Fields.Item(0).Value
                      oDelivery.Lines.SerialNumbers.BaseLineNumber = oDelivery.Lines.BaseLine
                    RecSet3.MoveNext()
                  End While
                  '-- 'end manage serial numbers
                End If
                RecSet2.MoveNext()
              End While
            Next x
            '-- now add object to SAP
            If 0 <> oDelivery.Add() Then
              Dim liError As Long
              Dim lsError As String
              Call oCompany(piCompany).GetLastError(liError, lsError)
              '-- write error code to table - Delivery document creation was unsuccessful
              lsSQL = "Update DeliveryTable SET ProcessResult = " & liError & ", ProcessDate = GetDate() WHERE DocEntry = " & oSalesOrder.DocEntry & " AND ProcessResult Is Null"
              RecSet2.DoQuery(lsSQL)
              lsuWriteEvent("AR Delivery", bDocuments(piCompany).DelDraft, oSalesOrder.DocEntry, liError, lsError, piCompany)
            Else
              lsuWriteEvent("AR Delivery", bDocuments(piCompany).DelDraft, oSalesOrder.DocEntry, 0, "Success", piCompany)
            End If
            RecSet.MoveNext()
          End While
        Catch
          LogErrorMessage(Err.Description)
        Finally
          If Not RecSet Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet)
          End If
          If Not RecSet2 Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet2)
          End If
          If Not RecSet3 Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet3)
          End If
          If Not RecSet4 Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet4)
          End If
          If Not RecSet5 Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet5)
          End If
          If Not RecSet6 Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet6)
          End If
          If Not oSalesOrder Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oSalesOrder)
          End If
          If Not oDelivery Is Nothing Then
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oDelivery)
          End If
          GC.WaitForPendingFinalizers()
        End Try

    We have narrowed down the issue to this:
    If you are just adding a delivery document with serial numbers, the DIAPI works OK.  If you are adding a delivery document which is based upon a sales order and add the 3 lines that reference it:
    oDelivery.Lines.BaseEntry = oSalesOrder.DocEntry
    oDelivery.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
    oDelivery.Lines.BaseLine = liMinRef
    then you receive a error of -1, General error.  This is functionality that did work in 2004 and 2005 SP00.  I believe this is a bug.

  • Just installed 10.6. Unable to print word document with outline numbering

    Just installed 10.6.8. Can't print Word document with outline numbering.

    You mean USB HUBs, correct? Not routers.
    Yes remove the HUBs and try the drives connected directly to the computer.

  • Using a workflow to share documents with external users

    I'm trying to create a workflow that will share documents with external users. Those external users don't have SharePoint logons.
    One approach might be to send an email using a 2010 workflow. However there doesn't appear to be the ability to attach a document to that email.
    The other approach could be to use the Share function of SharePoint 2013 but can this be triggered using a workflow? If so how?
    Please note: I'm using SharePoint Online
    Thanks in Advance,
    Mark E.
    Learning SharePoint

    Hi Mark,
    You can use external sharing option in SharePoint Online. Below links might help:
    https://support.office.com/en-gb/article/Manage-external-sharing-for-your-SharePoint-online-environment-c8a462eb-0723-4b0b-8d0a-70feafe4be85
    https://support.office.com/en-in/article/Manage-sharing-with-external-users-in-Office-365-Small-Business-2951a85f-c970-4375-aa4f-6b0d7035fe35?ui=en-US&rs=en-IN&ad=IN
    http://www.adrit.de/Blog/Post/25/External-sharing-with-Office-365---Part-2--How-to-share-SharePoint-content-with-external-users-
    Best Regards,
    Brij K
    http://bloggerbrij.blogspot.co.uk/

  • Problem creating document with function ISH_N2_MEDICAL_DOCUMENT

    Hello,
    first of all, creating a document with correct data works. But our customer wants the documents also to be created if the name of the responsible employee is wrong or not existing.
    Can this be done in some way? Because when i try to use the function "ISH_N2_MEDICAL_DOCUMENT" i get the message "message employee NAME is not employee responsible" and the document is not created.
    regards
    Daniel

    Dear Daniel,
    basically you cannot create a medical document without an existing employee responsible (business partner). Depending on your system configuration the EmR may to be assigned to the documenting ou.
    So how you can deal with that restriction?
    a) use a dummy bp for these onces which doesn't exists. You can check BP by the IS-H BAPI for Business partners.
    b) create the BP on the fly before creating the document.
    Regards,
    Axel

  • Problem veryfing document with more than one signature element ...

    hello everyone,
    Sorry for my english. I've got a short question (but interesting).
    I know how to write simple application which correctly sign and verify xml document (dsig and xades).
    When I sign the same xml document for a few times it looks like this:
    <data>
    <Signature 1 />
    <Signature 2 />
    <Signature 3 />
    </data>
    But only last signature element I can verify correctly. I use Transform.ENVELOPED, and haven't got any ideas what I do wrong. Maybe I have to remove all signature elements before sign next ? Maybe I have to remove other signature elements before verify right ?
    Best regards, kk

    Take a look at business area and groupings in they payment program settings...
    I am not sure what version you are on but the following link for 4.7 should provide some valuable information...
    http://help.sap.com/saphelp_47x200/helpdata/en/01/a9be64455711d182b40000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/01/a9be64455711d182b40000e829fbfe/frameset.htm
    Grouping Open Items and Individual Payments
    Wherever possible, the payment program will always group items together for payment.
    The payment program can only group together open items for payment if the open items in an account have the same:
    1. Currency
    2. Payment method in the item
    3. Bank in the item
    4. Contents of the grouping fields (if a grouping key is specified in the customer or vendor master record)
    You can also pay open items from different company codes together, as well as customer and vendor line items.
    Items in an account are not grouped together if you:
    1. Make payments separately per business area. This procedure entails separate payments being created per business area.
    2. Want to make individual payments
    Items in which a payment method is specified are not grouped with items in which no payment method is specified.
    You define the required grouping key in the IMG for Financial Accounting under Accounts Receivable and Accounts Payable -> Business Transactions -> Outgoing Payments -> Automatic Outgoing Payments -> Payment Method/Bank Selection for Payment Program -> Define Payment Groupings.
    In our system, if the business area is the same, there will be one ZP document with one line with a posting key of 25. Otherwise there will be many individual 25 posting key lines with.

  • DIAPI posting Delivery Document with Serial Numbers

    Hi,
    I am using SAP 2005A, SP01, Patch 8. I am not able to create a delivery document based on Sales Order with serial number items.
    Code is given below. The error i get is
    Error No: -10, Message: [DLN1.WhsCode][line: 0] , 'The selected quantity of batch/serial numbers is greater than the open quantity.'
    When i checked the openqty in the sales order it is 0 and i guess we cannot set it thru DIAPI. Any solutions?
    Dim oSO As SAPbobsCOM.Documents
    Dim oDlv As SAPbobsCOM.Documents
    oSO = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
    oDlv = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
    ' iSoDocEntry contains Sales Order no
    If oSO.GetByKey(iSoDocEntry) = True Then
    oDlv.CardCode = oSO.CardCode
    oDlv.DocDueDate = oSO.DocDueDate
    oDlv.Comments = "Based on Sales Order " & iSoDocEntry & "." & oSO.Comments
    oDlv.Address = oSO.Address
    oDlv.ShipToCode = oSO.ShipToCode
    oDlv.Address2 = oSO.Address2
    oDlv.AgentCode = oSO.AgentCode
    oDlv.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
    oDlv.DocumentSubType = SAPbobsCOM.BoDocumentSubType.bod_None
    oDlv.Lines.BaseLine = iRowNo
    oDlv.Lines.BaseType = SAPbobsCOM.BoAPARDocumentTypes.bodt_Order
    oDlv.Lines.BaseEntry = iSoDocEntry
    Dim objSerialNum As SAPbobsCOM.SerialNumbers
    Dim sSerialNumbers(), sSysSerialNumbers(), sInternalSerial() As String
    Dim iCount As Integer
    objSerialNum = oDlv.Lines.SerialNumbers()
    sSerialNumbers = sSupSerial.Split(",") ' Contains the List of Supplier Serial Nos value of the Selected serials
    sSysSerialNumbers = sSysserial.Split(",") ' Contains the List of Sys Serial value of the selected serials
    sInternalSerial = sInternal.Split(",") ' Contains the List of Internal Serial value of the selected serials
    For iCount = 0 To sSysSerialNumbers.Length() - 1
    objSerialNum.InternalSerialNumber = sInternalSerial.GetValue(iCount)
    objSerialNum.ManufacturerSerialNumber = sSerialNumbers.GetValue(iCount)
    objSerialNum.SystemSerialNumber = sSysSerialNumbers.GetValue(iCount)
    objSerialNum.SetCurrentLine(iRowNo)
    objSerialNum.Add()
    Next
    end if
    iReturnValue = oDlv.Add()
    Thanks,
    Jayakumar

    Hey,
    I was having the same problem... With that error though I found that when I wrote the Delivery Obj to an XML file that every time that you add a Serial Number Line you are adding a blank Serial number line, and thus producing that error. I have also seen other post the same problem with the same solution of removing the Add completely for all serial numbers. Just a warning as well. If you want to create a Delivery Withless items then the assosiated SO, There seems to be a bug with SAP that will give you a error stating that some random Item (one that may or may not be in the sales order) does not have a system Serial number avaliable...
    Anyways, that has been my experience,
    Hope this helps
    Jeremy Adam

  • Problems opening documents with Adobe Reader XI

    I tried to open a file from my email account. I got a message from Adobe Reader XI that it could not open ecause it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded.  I get this message with some documents which I have been able to open in the past and now I  can't.  I do not have Microsoft Office on my computer.  I have Microsoft Word Starter 2010.  I am a home user and this program works well as my Word software.  I have downloaded a trial of Adobe Acrobat Pro XI and that hasn't solved my problem.  Can anyone help me?

    If you don't have Word but want to view Word docs, you can download and install the MS Word Viewer from http://www.microsoft.com/en-us/download/details.aspx?id=4.
    In fact, istalling it may clear up the file association problem all on it's own.

  • Problem routing documents with Content Organizer Timer Job

    Hi,
    We have a farm that has two front-end servers with SharePoint Server 2010 Standard and one back-end with SQL Server 2008 R2. We are using a multiple site collections with the record center template to route documents in different document libraries. The farm
    has SP1 and cumulative update of December 2012.
    The problem is that the Content Organizer Job cannot route documents in a one of the sites, and reports the error in the log: “Routing Engine: Rule 'Move_Document' incorrectly specified the target folder /sites/Energy/DocumentLibrary was not found”. This is
    happening only in one of the front-ends, because, if the other front-end runs the job for this specific site, the problem doesn't replicate.
    We try to restart the two front-ends, and restart the SharePoint Timer 2010 service, but none of the solutions corrects the problem.
    Thanks for your help

    Do you have NLB in use and are you using Kerberos authentication? My gut feel is that you might have issues where one WFE is trying to work with the other one but is failing to authenticate for some reason.
    Try logging onto each box and browsing to the sites given as the timer service user identity, see if you can browse to the site.

  • File access/locking problems, most notably with AutoCAD

    A number of sporadic problems of AutoCAD users who've been working away
    suddenly not able to write to the file they've been working on. If
    multiple people try to use the same Xrefs, often some will get that the
    file is corrupted report by AutoCAD.
    What is reproducible is one of the Xref problems and it has given us a
    bit of a work around to keep working.
    To Reproduce:
    Start AutoCAD(2009), open a file with base(Xref)
    Save the base (no change needed) without closing, and refresh
    the base disappears from view, and when we look in the 'Xref Manager'
    we see that the Base has a status of 'Needs Recovery'. This applies
    even when multiple people had the Xref in read only view, that it is
    now unavailable, but when the full drawing is shut down and reopened
    by the one who had saved, the Xref is just fine.
    Autosave is not triggering the problem.
    This has been reproduced on the newest version of ACAD as well, just
    slightly different wording of errors.
    OES2 sp3 servers (in VMWare) with mostly XPsp3 clients but a few
    Windows 7 ones as well. The clients mostly have the newest clients
    installed, but there are some of the XP boxes with 4.91.4 still on
    them.
    Just migrated the main data volume from NetWare 6.5.8 to OES2 Linux and
    immediately started having the problem. 100% of file access is via
    NCP. no CIFS is configured, to the point we have cross-protocol-locks
    set to 0 (Zero, i.e. Off).
    I think I've been through every combination of file locking settings of
    server vs workstation without any apparent change.
    Still working out different tests to do to find what makes a
    difference.
    Observations that might just lead to clues toward the root cause:
    - On NetWare, if a user left files open over night, we could still see
    those being listed as opened in Monitor. Past history with these users
    is that there was always several showing as open every night even when
    we were sure they'd all been gone for hours. Now when we check the all
    the volumes late in the evening, they've been showing no files open.
    perhaps that is a clue to a problem in lock tracking.
    - While still at OES2 sp2, the pilot team kept giving vague
    descriptions of problems using ACAD against files on OES2, but those
    all went away after applying SP3, so after 2 months of one small group
    running ACAD against files stored on OES2-linux, we migrated the bulk
    of the data as the last volume from a failing NetWare 6.5.8 cluster
    (recreating SBDs was getting tiring).
    Andy Konecny
    KonecnyConsulting.ca in Toronto
    Andy's Profile: http://forums.novell.com/member.php?userid=75037

    Originally Posted by HvdHeuvel
    On Tue, 19 Jul 2011 14:19:33 +0000, Andy Konecny wrote:
    > In article <NvZTp.3150$[email protected]>, Hans van den
    > Heuvel wrote:
    >> This sounds as bug #691870
    >>
    > yup, it is, and that bug has actually been marked as a duplicate of
    > another and has been merged. The other related to opening and saving
    > PDF files, which we were also hitting as well. One user who had to
    > generate many PDFs off of a set of drawings was particularly nailed by
    > this.
    >
    > I have the FTF and applied it last night, just had to chase a few
    > stragglers to take a break to activate it since doing so does briefly
    > break links (reports/broadcasts as server 'down', but only for a
    > minute). The users are much happier this morning, got very nice
    > greetings as I arrived on-site. So far no sign of any other related
    > issues.
    Glad to hear that your (and our) customer's life became less complicated.
    Keep up doing the good work !
    Best regards
    Hans
    Hi Hans,
    i have just helped a customer to migrate their data from NW65SP8 to OES2SP3 and hit the same problem with the CAD group using AutoCAD 2004 on Windows XP with NC491SP3 + some Postpatches
    Do we have a release date for the next OES2 SP3 Scheduled Maintenace Patch?
    The last available is from May and has been apparently released the 31st of May.
    Do we have a chance to get the ftf in someway?
    Many thanks in advance and best regards,
    Stefano Barello
    LANworks AG - IT Engineering

  • Transaction Locking Problem in JDBC with ResultSet : ORA-17090.

    I have a locking concern using JDBC. I select a set of records to determine if they
    need to to be updated by a set of generated results (from else where in the program).
    If the results are not in this cursored set of records selected they are to be INSERTED
    else they (if they are in the select set) they are to be UPDATED.
    I set up a ResultSet using concurrancy parameters so that I can scroll through them for
    each of the program results to check. If I set up the ResultSet with TYPE_SCROLL_INSENSITIVE,
    CONCUR_UPDATABLE, I get a possible race condition if I am accessing teh same records
    through some other program such as toad. As such the first record is not checked (if my
    cursor in toad is on this first record) and as such is duplicated.
    If I set up the ResultSet with TYPE_SCROLL_SENSITIVE, CONCUR_READ_ONLY. This fixes this
    concurrancy problem but occassionally I get the following error which is Oracle based and
    not documented:
    java.sql.SQLException: operation not allowed: Unsupported syntax for refreshRow()
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:251) at
    oracle.jdbc.driver.SensitiveScrollableResultSet.refreshRow(SensitiveScrollableResultSet.java:171)
    at oracle.jdbc.driver.SensitiveScrollableResultSet.handle_refetch(SensitiveScrollableResultSet.java:239)
    at oracle.jdbc.driver.SensitiveScrollableResultSet.next(SensitiveScrollableResultSet.java:83)
    at sfwmd.hisa.oneflow.TimeSeries.load(TimeSeries.java:2502)
    at sfwmd.hisa.oneflow.OneParameter.main(OneParameter.java:808)
    which translates to an ORA-17090 (operation not allowed)
    {NOTE: I do NOT call ResultSet.refreshRow() anywhere in my program}
    I do not see any methods in ResultSet for record locking, outside of the mentioned parameters
    in the constructor. The database (updates and inserts) changes are all batched and executed
    AFTER this ResultSet is released.
    -James Fox
    [email protected]

    post ur code..

  • Merge documents with external links

    Hi all,
    I am wondering if there is a way to automatically change external links to internal links upon merging two or more documents.
    For example:
    I have a pdf document containing a table of contents with links that point to separate "section" or "chapter" pdf files within the same root directory structure.
    I would like to merge all of the pdf files into a sinlge document and maintain the table of contents.  Currently, when I merge the documents, the table of contents links still point to the external files.  I would like the links to point to the location of the sections in the new, merged, master document.
    Is there an easy way to do this without manually changing the links?
    I'd appreciate any help.
    Thanks.

    I don't think it's possible, at least not in any simple way.

  • Photoshop is a problem - "sticky" tools with external monitor

    Hello!
    When working in Photoshop is a problem - "sticky" tools. For example: working tool "Healing brush tool" we stifle alt and select the area and then release the Alt key and the target remains in the form of a cursor unstrument not be returned. The same problem with navigation for example, pinching the "space" appears "hand", which also remains.
    New keyboard) works on mac. Connected laptop + external monitor, using a graphics tablet Wacom

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Locking problem in adf with jheadstart

    I use jheadstart 10.1.2.0.19 and jdeveloper 10.1.2 latest patch and the same oc4j server
    I got the following error , I have already changed the locking mode on the application module
    with pessimistisch locking mode I got the following error
    05/11/14 14:17:49 [82167] DCUtil.findSpelObject(217) DCUtil.findSpelObject - Tokenizer : HoofdGebeurtenissenChildUIModel
    05/11/14 14:17:49 [82168] DCUtil.findSpelObject(275) DCUtil.RETURNING oracle.jbo.uicli.binding.JUFormBinding
    05/11/14 14:17:49 [82169] DCBindingContainer.refreshControl(1460) **** refreshControl() for BindingContainer :HoofdGebeurtenissenChildUIModel
    05/11/14 14:17:49 [82170] DCBindingContainer.refreshControl(1460) **** refreshControl() for BindingContainer :HoofdGebeurtenissenChildUIModel
    05/11/14 14:17:49 [82171] OracleSQLBuilderImpl.doEntitySelect(556) OracleSQLBuilder Executing Select on: GEBEURTENISSEN (true)
    05/11/14 14:17:49 [82172] OracleSQLBuilderImpl.buildSelectString(2382) Built select: 'SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen'
    05/11/14 14:17:49 [82173] OracleSQLBuilderImpl.doEntitySelect(591) Executing LOCK...SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen WHERE ID=:1 FOR UPDATE NOWAIT
    05/11/14 14:17:49 [82174] OracleSQLBuilderImpl.doLoadFromResultSet(1130) LoadFromResultSet failed (1)
    05/11/14 14:17:49 [82175] JUCtrlValueBinding.setInputValue(1773) CtrlAttrs: Caching exception :oracle.jbo.AttributeLoadException: JBO-27021: Kan waarde voor CustomDatum niet laden bij index 1 met Java-object van type oracle.jbo.domain.Number vanwege java.sql.SQLException.
    05/11/14 14:17:49 [82176] OracleSQLBuilderImpl.doEntitySelect(556) OracleSQLBuilder Executing Select on: GEBEURTENISSEN (true)
    05/11/14 14:17:49 [82177] OracleSQLBuilderImpl.doEntitySelect(612) Reusing prepared LOCK statement
    05/11/14 14:17:49 java.sql.SQLException: Definities ontbreken.
    05/11/14 14:17:49      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
    05/11/14 14:17:49      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
    05/11/14 14:17:49      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239)
    05/11/14 14:17:49      at oracle.jdbc.driver.NumberCommonAccessor.getBytes(NumberCommonAccessor.java:5437)
    05/11/14 14:17:49      at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:660)
    05/11/14 14:17:49      at oracle.jbo.domain.Number$1$facClass.createDatum(Number.java:103)
    05/11/14 14:17:50      at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1085)
    05/11/14 14:17:50      at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1519)
    05/11/14 14:17:50      at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:692)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5150)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3464)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2191)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:2115)
    05/11/14 14:17:50      at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1780)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1033)
    05/11/14 14:17:50      at org.tennet.bobs.frontoffice.model.adfbc.businessobjects.GebeurtenissenImpl.setOmschrijving(GebeurtenissenImpl.java:301)
    with optimistisch locking mode
    05/11/14 14:40:49 [15487] OracleSQLBuilderImpl.setSavepoint(1300) OracleSQLBuilder: SAVEPOINT 'BO_SP'
    05/11/14 14:40:49 [15488] OracleSQLBuilderImpl.doEntitySelect(556) OracleSQLBuilder Executing Select on: GEBEURTENISSEN (true)
    05/11/14 14:40:49 [15489] OracleSQLBuilderImpl.buildSelectString(2382) Built select: 'SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen'
    05/11/14 14:40:49 [15490] OracleSQLBuilderImpl.doEntitySelect(591) Executing LOCK...SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen WHERE ID=:1 FOR UPDATE NOWAIT
    05/11/14 14:40:49 [15491] OracleSQLBuilderImpl.doLoadFromResultSet(1130) LoadFromResultSet failed (1)
    05/11/14 14:40:49 [15492] OracleSQLBuilderImpl.rollbackToSavepoint(1330) OracleSQLBuilder: ROLLBACK WORK TO SAVEPOINT 'BO_SP'
    05/11/14 14:40:49 [15493] DCBindingContainer.reportException(154) DCBindingContainer.reportException :oracle.jbo.AttributeLoadException
    05/11/14 14:40:49 [15494] Diagnostic.printStackTrace(405) oracle.jbo.AttributeLoadException: JBO-27021: Kan waarde voor CustomDatum niet laden bij index 1 met Java-object van type oracle.jbo.domain.Number vanwege java.sql.SQLException.      
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1132)      
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1519)      
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:692)      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5150)      
    at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3464) at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:3925)      
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4066)      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2937)      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2748)      
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1922)      
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2115)      
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:962)      
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1215)      
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:954)      
    at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.onCommit(JhsDataAction.java:1579)      
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      
    at java.lang.reflect.Method.invoke(Method.java:324)      
    at oracle.adf.controller.lifecycle.PageLifecycle.handleEvent(PageLifecycle.java:544)      
    at oracle.adf.controller.struts.actions.StrutsPageLifecycle.handleEvent(StrutsPageLifecycle.java:252)      
    at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleEvent(StrutsUixLifecycle.java:249)      
    at oracle.adf.controller.lifecycle.PageLifecycle.processComponentEvents(PageLifecycle.java:477)
    thanks edwin

    Edwin,
    The following erro in the log:
    05/11/14 14:40:49 [15494] Diagnostic.printStackTrace(405) oracle.jbo.AttributeLoadException: JBO-27021: Kan waarde voor CustomDatum niet laden bij index 1 met Java-object van type oracle.jbo.domain.Number vanwege java.sql.SQLException.
    seems to be the problem. May be your EO attribute definitions do not match corrcetly with underling table column types?
    What steps do you perform in the application (first insert, then update?) before you get the error?
    Can you reproduce this in the ADF BC Tester?
    Steven Davelaar,
    JHeadstart Team.

  • Problem: Word document with Thai font to PDF

    I have a MS Office 2007 Word document (.doc) that contains both English and Thai language. I need to convert this document to PDF with Acrobat 9 Pro. However, after going through the conversion process from the ribbon within MS Word, all of the Thai language in the Word document becomes garbled nonsense in the Acrobat PDF file.
    1. How can I successfully create a PDF file from a Word file that includes Thai language?
    2. If I have a PDF file that contains Thai language, how can I convert it to a MS Word file?
    Hope someone can help. I'm sure the answer must be quite easy, but I cannot find it anywhere.
    I forgot to mention that this is all running on Windows Vista / Pentium 4D 3.0 GHz / 2Gb RAM.

    3 days has passed and no answers, it's either unclear what i'm asking or it's a comlicated issue.

Maybe you are looking for

  • Error Updating WAS SP13 -- SPS18, Phase Deploy Online: SAPJTECHS18_0.SCA

    hello, I can not update SAP WAS Java SP13 to SPS18. I get an error message during phase "deploy online" (18 of 24). see the error message and log below. Previous to running the update I successfully run the WAS SP18 Prerequisite Check based on "WAS-P

  • Looking for a small project via internet (part time )

    Hello! I'm a beginer in labview with only one year experience in device programming (e.g.-power supply) and i search for some little project for develop my skills in labview. I am available maximum 15 hours/week. If someone is interested plese e-mail

  • How to use AS's "make new" command in Scripting Bridge?

    Anybody know how to rewrite this line of Applescript in Cocoa using the Scripting Bridge? tell application "iTunes" to make new playlist with properties {name:"Some Name"} I'd hate to have to embed AS into my app just for this thing. Is there maybe s

  • 60gb iPod does not see music files on my external HD

    I'm going nuts trying to figure out why my iBook does not see the music files on my external HD. I have a 250gb external hard drive (that I put together with an enclosure and HD I bought from Tiger Direct). I have the hard drive hooked up to my G3 iB

  • USB quit working after upgrade to snow leopard

    I went from Tiger 10.4.11 to snow leopard today. The install went perfect, but neither USB drive will work now. They both worked fine last week when I backed up everything to an external via USB. Any ideas on how to fix?? Thanks Kelly