Document.Add stop transaction

Hi.
Seems that adding a document during a global transaction, the transaction is closed. I explain better.
I have to create a lot of draft delivery documents and I realized a loop on a collection.
The loop is internally at a global transaction
1)  m_cmp.StartTransaction()
2)  For Each tmpDDT In rows
3)    If Not createDraft(tmpDDT) Then
4)      isError = True
5)    End If
6)  Next
7)  If Not isError Then
8)    m_cmp.EndTransaction(BoWfTransOpt.wf_Commit)
9)  Else
10)   m_cmp.EndTransaction(BoWfTransOpt.wf_RollBack)
11) End If
12) Private sub createDraft(tmpDDT...)
13)   ' ...
14)   ' transaction check point before add
15)   draftDDT.Add()
16)   ' transaction check point after add
17) End Function
After the transaction is started (1), I call the createDraft() routine (3).
Checking the InTransaction state before the add (14) the transaction is up.
Checking the InTransaction state after the add (16) the transaction is down.
Can someone help me?
Ciao
Nicola

Hi Nicola,
In my experience, error -5002 is caused by one of two reasons:
1) You are attempting to add a document with a blank line item. In the DI, you don't need to call oDocument.Lines.Add for the first line as it is added automatically.
2) There was a bug when items that required serial numbers were added in the same document as non-serial items. This bug should have been fixed by now
Hope this helps,
Owen

Similar Messages

  • Stop Transaction Error Message Doesn't Display

    Hi,
    I am using a custom message, like "Results Not Yet Confirmed", in the Stop Transaction action. But this error message is not displaying when I run the JavaScript code. I used the expression "document.<AppletName>.getValue(1,1)".
    Any clues?
    Regards,
    Chanti.

    Hi Chanti,
    What display type are you using?  An iGrid?  If so, try
    document.appletName.getErrorMessage()
    Otherwise, please provide more details - the display type and which MII version you are using.
    Kind Regards,
    Diana Hoppe

  • Error when trying to Cancel an invoice document via MR8M Transaction

    Greetings Everyone,
    l am having an issue when trying to cancel an invoice document via MR8M transaction. It gives me the following error message;
    SYSTEM ERROR: error in routine MRM_DRSEG_CR_CREATE
    Message no.M8008
    Procedure:
    Contact your system administrator.
    This invoice was related to a check payment. The check has been voided already and there is no clearing document for the accounting document. So, the item remains open. However when l try to reverse, it display the error message above.
    Thanks in advance

    read notes 449277 and 750455, your solution is probably there.

  • HP LaserJet 1536dnf MFP document feeder stopped working

    The document feeder stopped working.  It clicks when trying to feed and comes up with the error Document Feeder Mispick, reload.  I cleaned the feed rollers as per the HP video, no change.  Is this something I can easily fix myself  (I can open screws and lubricate parts if necessary)?  Any suggestions?
    Thanks.

    Hi @Solray,
    Welcome to the HP Forums!
    I noticed that your document feeder has stopped working on your HP Laserjet 1536dnf MFP printer.
    There are two guides available that you can follow:
    'Document feeder mispick' Message Displays on the Control Panel and the ADF Does Not Pick Up Paper o....
    'Doc. feeder jam', 'Open door and clear jam', or Other Jam Message Displays on the Printer.
    If you have done all those steps already, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Country-language selector.
    Hope these guides help, and have a good day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • HP Officejet Pro L7590 printer auto document feeder stopped working

    HP Officejet Pro L7590 (Model: CB822A)
    Mac OS X Yosemite 10.10
    My automatic document feeder stopped working about a month or two ago. If I put a bunch of papers under the tray there is no beep/light to acknowledge that. So, I can't copy a bunch of papers at once. 
    Is there a recommended HP repair center/store in my area that can fix it? I'm in Bethesda, MD 20817.
    Thanks
    This question was solved.
    View Solution.

    Hi @rustyblue 
    Although HP does not have an authorizes repair facility that I can refer you to, I have located 2 helpful documents that would allow you to troubleshoot the issue yourself;
    An 'Original Jam: Clear jam, and then press OK' Message Displays for HP Officejet 6100, 7100, and D ...
    Automatic Document Feeder (ADF) Does Not Pick Up Paper
    If the issue persists, you can take the printer to a local mom and pop shop, or maybe call HP. HP could offer you a discount on a newer model.
    If you are in Canada or US call 800 474 6836, or you can Contact HP Worldwide.
    I hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Authority Check or BADI for deleting a document in SOLAR02 transaction

    Hi All,
    Could anyone tell me whether there is any authorization object or BADI to do the check before deleting any document from
    SOLAR02 transaction in Project Documentation Tab or General Documentation Tab
    Thanks a lot in Advance.

    Hi Jonathan,
    Appreciate your reply. As you know the validations kick in based on your input on the screen, kind of mostly part of PAI of the screen (0750 in this case). But my requirement is to prevent this change in the first place, not validating the user's input after a change option is given to the user.
    If you know if and how we can achieve this, please share your thoughts.
    Thanks & Regards,
    Venu

  • Change default document type in transaction F-47

    Hi guys,
    any idea how may I change the default value (not on user level) of the document type in transaction F-47.
    Thanks and regards

    Use transaction OBU1 (path: IMG Financial accounting / general ledger accounting / business transactions / G/L account posting / Carry out and check document settings / default values)

  • Not able to display document at sost transaction

    I am sending a mail by using the function module SO_NEW_DOCUMENT_ATT_SEND_API1. Initially I was able to see the document at SOST transaction. But now I am not able to display the document even though I had not done any changes in the program.

    Hi,
    In SOST goto SEND STATUS tab and check all the check boxes ie, Waiting, Errors & Sent.
    Hope this works.
    Regars
    Bikas

  • Is there a way to add other transactions to Applications in BDT menu?

    Hi Masters!
    I'm trying to learn how BDT works. I'm trying to use it to make my own checks in some standard fields. So far I'm able to call my own function at 'View'->Further Checks. It's working fine.
    But my problem is:
    At the BDT menu (BUPT) there is only one Application (Maintain Business Partner - transaction BP). But I want to check the fields (Tax Numbers) in another transaction (BBPMAININT).
    Does this mean that I can only use the BDT controls in this transaction? (It seems to be so; I couldn’t get into my function with BBPMAININT)
    Is there a way to add other transactions to the 'Application' folder, so I can manipulate the fields, views or screens? If there is please tell me how... I checked the documentation but couldn’t figure out...
    Do you have any other ideas of how to make my validations with the standard field (withou changing the standad code)? (NOTE: there is no BADI to do this).
    Thanks in advance,
    José Omar

    Write a custom carousel.  Usually carousel components are just ULs that use something like jQuery to rotate through the LIs.  The foundation carousel component is really just designed for some specific use cases.  Generally I would just recommend rolling your own.

  • Oracle Receivables -Document sequence for transaction

    Hi Guys,
    I have one requirement Separate invoice series is maintained for domestic and International customer.
    How can we maintain a document sequence for transaction document number for domestic and international customers separately.Plz provide the solution.
    Thanks
    Guru Prasad.

    Hello.
    Create two Transaction Types and two Sequences and assign each sequence to each transaction type.
    Octavio

  • Need to add Standard transaction code to User Menu.

    Hi All,
    I need to add Standard transaction code to User Menu. How this can be accomplished?
    Thanks

    Your Security and/or Basis team probably have control of the user menu settings.  On the other hand, if this is for YOUR user menu, you could choose to simply adjust your favorites.

  • Function module or any BAPI that lets park the document in the transaction

    Function module or any BAPI that lets park the document in the transaction FBV1.
    I need to park the invoice by providing some test value in FBV1. I want to know is there any function module or BAPI that is used to park the doucument in transaction FBV1

    hi,
    Use the BAPI BAPI_INCOMINGINVOICE_PARK to park the Document
    Regards
    Sudheer

  • In Which Table  I Will get Reference Document for MIGO Transaction

    Hai Experts
    In Which Table  I Will get Reference Document for MIGO Transaction
    Regards
    Jagadish

    Hi,
    The 2 main tables for this MIGO Transaction are ,
    MKPF - Header table
    MSEG -  Item table
    Reference Document is XBLNR.
    Regards,
    Raj.

  • AR AUTOINVOICE ignores the checked box "copy document number to transaction

    dear ,
    AR AUTOINVOICE ignores the checked box "copy document number to transaction number"
    I setup the batch source as check "copy document number to transaction number" but when
    I import the invoice by auto invoice I found the transaction number is 2 and
    the document number is 1
    That mean the system ignore the check box in definition of batch "copy document number to transaction number"
    Facts: Navigate -> Setup -> Transactions -> Sources
    Setup Transaction Source with Automatic Transaction Numbering checked and Copy Document Sequence Number to
    Transaction Number checked.
    Navigate - > setup -> system option  tab (transaction & customer)
    Document number generation level: when completed
    Expected Behavior:
    The Expected Behavior is that when I checked the "copy document number to transaction number" in definition of the source
    AR Auto Invoicing must assign the document number to transaction number
    Business impacts :
    There is gaps with the sequence number for the invoice that not accepted from the finance auditor in the last of the year
    thanks

    check have u performed these steps or not.
    you have to do all the necesarry set up steps:
    1) Enable the Sequential Numbering Profile Option
    2) Enable the AR: Document Number Generation Level Profile Option
    3) Check Copy Document Number to Transaction Number box on Transaction Sources
    4) Define Sequences
    5) Assign Sequences to Categories
    In batch source definition for your invoice, there is a flag for 'copy doc num to trx num'. is it ticked?

  • Attaching the documents to customer transaction screen

    Hello Experts,
    Greeting of the day!!
    One of my client wants to attached a scan document of received transaction in a Customer transaction screen, Now i m confuse whether this is possible in oracle Applications R12.1.3 or not?
    If yes then please guide me or give any reference??
    Oracle Application : R12.1.3
    Database : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    Thanks,
    Atul

    Hi Helios,
    I found the solution on oracle application screen itself.
    Oracle Apps already provided the attachement future in the application itself.
    VIEW ----> ATTACHEMENTS.. here we can attach a any type of document for customer transaction or supplier invoice.
    Thanks,
    Atul Ramteke

Maybe you are looking for