Rollback automatic if Document.Add fails ?
Hi,
please have a look to this code
oCompany.startTransaction
If (0 <> objInvoice.Add()) Then
do you confirm that if Add or Update or other similar operations fails, the transaction automatically rollback without inserting this line of code?
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
I find this thing debugging my code.
Has it always been so or only in last versions of SDK - DI ?
Thank you
Andy
when working with a single object like the invoice object - SBO handles the transaction for you. thus when the add fails the system handles it for you - same thing if the add succeeds. you should only use transactions when you are doing adds/updates on multiple objects that rely on each other.
thus:
1. start transaction
2.1 add/update object 1
2.2 add/update object 2
2.3 add/update object 1
3. commit trnasaction
or
on exception or failure of 1 of the objects
roll back
NB : if you start a transaction, you HAVE to end it with a commit OR rollback
Similar Messages
-
Documents.Add failing in PS CS5.1
I wrote a program using VB Express 2008 that worked flawlessly until I updated to CS5.1. I'm stuck as to what could be causing the failure.
The failing call is:
docRef = appRef.Documents.Add(PageW, PageH, 300, NewDocName, , 1) 'white
PageW = 3001,
PageH = 2475
NewDocName = Y2013
docRef is a global variable, and appRef is defineds as:
appRef = CreateObject("Photoshop.Application")
What is real odd, is that I use the same call in another program. I copied from this one to it, and the other program works fine.
One other difference, CS3 was 32 bit. CS5.1 is 64 bit program.
Any help would be appreciated.
MikeI made this work. I replaced the variables in the documents.add call with constants that were identical to values in another program that was working. The call worked. So I tried walking back the changes until I got back to the original code. Still works. Shut everything down, brought it back up in the VB environment, still works. Tried to run original compilation, failed.
Apparently any VB for Photoshop that was compiled before I installed CS5.1, 64 bit, fails. If I recompile it, it works fine.
Another problem, if I start PS CS5.1 in 32 bit mode, or CS3, the scripts all fail, regardless of whether or not they were compiled before CS5.1 was installed. The error here states that it cannot start the ActiveX module for Photoshop.
Does anybody know if VB compiled in Win 7 and CS5.1 64 bit will run on a 32 bit Photoshop installation? If I distribute this program do I need a 32 bit and a 64 bit version?
Mike -
Error - ADD (FAILED : operation failed) while importing a FM in model
Hello,
When I try to import a FM in Web Dynpro Model, it gives me the following Error. What is the error related with. PLease read the error text below? How to resolve this ?
14:19:06.544 ADD (FAILED: operation failed) Raldb_Vari.dtsimpletype.xlf (C:\Documents and Settings\283818\.dtc\0\DCs\pg.com\ezp3\scezp3\dc_model\_comp\src\packages\com\pg\dc_model\models\ezp3model\types\Raldb_Vari.dtsimpletype.xlf)
Regards
MrinaliniHI
are you able to import some other function module successfully or is this the problem with all of them
Thanks
Sarbjeet -
Document Server fails generating Proposals
I increased log level to 5, it shows the following:
SBL-OMS-00203: Error (null) invoking method "(null)" for Business Service "(null)"
Document Engine: Error: Failed to process request under context
(docgensvc.cpp (2230)) SBL-EDC-00199: Unable to instantiate context for request.
I tried to run the logged sql, and it is working as it has to.
Usig Siebel 8.1.1 and IE8 (Siebel Web Client).
When generating on the local computer, that's OK, so the template is OK.
Does anybody have any idea? Some troubleshooting hints?the few lines of code has the named Parameters as geometricBounds, thats works fine, so that i think the same approach will work on the exportFile method too.....
var doc = app.documents.add();
doc.textFrames.add({geometricBounds: [0,0,25,25]});
is there any changes? -
How do I automatically or manually add incoming e-mail addresses to my address book?
How do I automatically or manually add incoming e-mail addresses to my address book?
Automatically? Really?? All addresses of all senders just sucked into the address book, spammers, advertisers and all?
Where an address appears in the panel above the message text, there is a star alongside it. Click this star to add the address to your Address Book. Once you have done that, you can click the star again to edit the address book entry.
Note that if the star is empty/grey (silver?) the contact is unknown. If the star is filled/yellow (gold?), the Contact is already in your address book. (This is very like the way bookmarks are managed in Firefox.)
If you really want all senders' addresses entered indiscriminately into your address book, this add-on may be of interest.
https://nic-nac-project.org/~kaosmos/index-en.html#addrcollector -
How can I STOP iTunes from automatically trying to add podcasts to my iPod when I plug it in and sync it, so I can manage the files? I have already unchecked "Sync Podcasts" and "Automatically include,"yet EVERY time I sync it,it still transfers podcasts as the last step, and at other times randomly, when trying to just add some MP3's to a playlist, for example. I can't seem to find any other option to uncheck, and can't find an answer from my so-far internet searching.
erict, you blew me away with that suggestion! It was something so simple I couldnt believe I hadnt thought of it! But in the end it didn't work, which I was really surprised about. On Windows anytime anything was moved itunes was hoplessly lost, but on this mac it still kept up with everything. I tried renaming folders, moving folders, and even renaming moved folders but it still kept trying to import.
I even went as far as deleting EVERYTHING i had moved to the Mac, which didnt really work. It still kept trying to import what wasnt there which made it continue to freeze up. However, after doing this it, the freezing was not nearly as bad. It gave me enough of a break to cancel it through the itunes dialog box at the top of the app. So in the end, thats all I really needed to do, only before I had deleted everything the freezing would not allow me to do it.
So now Im reimporting everything again, only slowly, and only a few Artists at a time. -
Document control failed due to error in [DOCMGR-CANCEL] with a return code
i am getting this error while calceling the purchase order "Document control failed due to error in [DOCMGR-CANCEL] with a return code of [OTHER]. "
I am doing the calcel like this
Nav: buyer work centre --> order
searche the po and then
select order --> cancel then click GO button
i gave the Reason as Cancel
communication method: email
Cancel Requisition: Yes
Please help on this, its urgent.
Thanks,
Vijay.Hi Vijay,
Check this MOS note.
Cancelling A Standard Purchase Order In Buyer Work Center Results In Error [Docmgr-Cancel] With A Return Code [ID 1338826.1]
Thanks
-Arif. -
Automatic billing document creation upon saving credit memo request.
Hi,
I have a requirment where in :
When a Credit Memo Request is created(va01) and upon saving the credit memo request an automatic billing document needs to be genereated i.e Credit Memo.
How can this be achieved.
ThanksHi Keni
If a Credit Memo Request is created and after saving the Credit Memo Request , automatic billing should happen means you should maintain a new sub-routine and assign in the copy control VTFA . In that sub-routine maintain a logic that once the Credit Memo Request is saved automatic billing should happen
Regards
Srinath -
Hi,
When i tried using the cancel PO API, it resulted in the following error.
Document control failed due to error in [DOCMGR-CANCEL], return code = [OTHER]
I searched the metalink and found out that it was a bug as p_doc_num variable was a number and in PO_HEADERS_ALL segment1 is VARCHAR2. But now the bug is fixed.
I tried both ways, with and without quotes but it is still giving this error. Please suggest.
I used the API in the following way.
DECLARE
l_return_status VARCHAR2(1);
BEGIN
fnd_global.apps_initialize(4480,20707,201);
--call the Cancel API
PO_Document_Control_PUB.control_document (
p_api_version=>1.0, -- p_api_version
p_init_msg_list=>FND_API.G_TRUE, -- p_init_msg_list
p_commit=>FND_API.G_TRUE, -- p_commit
x_return_status=>l_return_status,-- x_return_status
p_doc_type=>'PO', -- p_doc_type
p_doc_subtype=>'STANDARD', -- p_doc_subtype
p_doc_id=>34, -- p_doc_id
p_doc_num=>null, -- p_doc_num
p_release_id=>null, -- p_release_id
p_release_num=>null, -- p_release_num
p_doc_line_id=>null, -- p_doc_line_id
p_doc_line_num=>null, -- p_doc_line_num
p_doc_line_loc_id=>null, -- p_doc_line_loc_id
p_doc_shipment_num=>null, -- p_doc_shipment_num
p_action=>'CANCEL', -- p_action
p_action_date=>SYSDATE, -- p_action_date
p_cancel_reason=>null, -- p_cancel_reason
p_cancel_reqs_flag=>'N', -- p_cancel_reqs_flag
p_print_flag=>null, -- p_print_flag
p_note_to_vendor=>null ); -- p_note_to_vendor
commit;
-- Get any messages returned by the Cancel API
FOR i IN 1..FND_MSG_PUB.count_msg
LOOP
DBMS_OUTPUT.put_line(FND_MSG_PUB.Get(p_msg_index => i,
p_encoded => 'F'));
END LOOP;
END;
/first you have to assign org_id to the program,like fnd_client_info.set_org_context('167');
you also have to initialize,like this
fnd_global.initialize(session_id => l_session_id
,user_id => 2613
,resp_id => 50459
,resp_appl_id => 201
,security_group_id => 0
,site_id => -1
,login_id => 1102144
, --can't be -1,or else will be wrong
conc_login_id => 1102144
,prog_appl_id => -1
,conc_program_id => -1
,conc_request_id => -1
,conc_priority_request => NULL); -
Failed to open XML document. Failed to retrieve Public ID
I have a client posting to Weblogic 6.1 server with the help of Apache
SOAP 2.2. The posting works fine if the contents of the SOAP message
is small. But when the contents of SOAP reached more than 11KB, the
following error occurs:
Error: Failed to open XML document. Failed to retrieve PUBLIC id or
SYSTEM id from the document. Decrease the number of char between the
beginning of the document and its root element.
The SOAP document looks like:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<mn:sMethodName xmlns:mn="sMethodURI">
<batch appid="1">
<employee>
<name>...</name>
<address>...</address>
</employee>
<employee>
<name>...</name>
<address>...</address>
</employee>
</batch>
</mn:sMethodName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The Max Post Size in Weblogic is set to (-1).
The program is able to handle less than 50 items of
<employee>.....</employee>. The error occurs when more than 50 items
are used. The problem is that our application should be able to handle
more than 1000 items of <employee>....</employee>.
My questions are:
1. How should I configure weblogic to solve the problem?
2. How should I configure the deployment of Apache SOAP to solve the
problem?
Pls advise. Thanks.One can deduce from the error message that the parser is looking for the
<?XML...?> portion of the document because that is where the SYSTEM and
PUBLIC ids are found in the document.
Peace,
Cameron Purdy
Tangosol Inc.
Tangosol Coherence: Clustered Coherent Cache for J2EE
Information at http://www.tangosol.com/
"Grace" <[email protected]> wrote in message
news:[email protected]...
>
Sorry, but I didn't get what you mean. I thought that was handled by theApache
SOAP API already? And if it couldn't see the XML document header, then whydoes
this only happens when the document size is large? It doesn't haveproblems whenever
the document size is small.
"Cameron Purdy" <[email protected]> wrote:
It's looking for the XML document header "<?XML" ....
Peace,
Cameron Purdy
Tangosol Inc.
Tangosol Coherence: Clustered Coherent Cache for J2EE
Information at http://www.tangosol.com/
"Grace" <[email protected]> wrote in message
news:[email protected]...
I have a client posting to Weblogic 6.1 server with the help of Apache
SOAP 2.2. The posting works fine if the contents of the SOAP message
is small. But when the contents of SOAP reached more than 11KB, the
following error occurs:
Error: Failed to open XML document. Failed to retrieve PUBLIC id or
SYSTEM id from the document. Decrease the number of char between the
beginning of the document and its root element.
The SOAP document looks like:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<mn:sMethodName xmlns:mn="sMethodURI">
<batch appid="1">
<employee>
<name>...</name>
<address>...</address>
</employee>
<employee>
<name>...</name>
<address>...</address>
</employee>
</batch>
</mn:sMethodName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The Max Post Size in Weblogic is set to (-1).
The program is able to handle less than 50 items of
<employee>.....</employee>. The error occurs when more than 50 items
are used. The problem is that our application should be able to handle
more than 1000 items of <employee>....</employee>.
My questions are:
1. How should I configure weblogic to solve the problem?
2. How should I configure the deployment of Apache SOAP to solve the
problem?
Pls advise. Thanks. -
With Forms Central can I set up a form to send out an automatic PDF document like a quote?
With Forms Central can I set up a form to send out an automatic PDF document like a quote? In other words when my customer fills out the form and puts their email address on the form it automatically sends them a PDF quote on a piece of merchandise that I have. If not is Form Central compatible with Web Merge?
Hi;
At this time FormsCentral does not have the ability to send the PDF in the "Email Reciept", you can set up Email Reciepts to send the form filler a reciept with the form data, but it does not attach a PDF of the form.
FormsCentral is not compatible with Web Merge.
Thanks,
Josh -
Add failed. [4911] Cannot connect to License Manager
Hello
I am facing a strange problem with our CCM, i cant add new phones (auto registration or manual add) although i still have 82 DLU's free
Always getting the error Add failed. [4911] Cannot connect to License Manager
I have tried restarting the Call Manager servral times and still same error appears
can anyone help ?Hi mpagacz
I have checked the license manager service and it was the problem , it wouldn't start but i wasnt related to hardware issue
I found out from other community that it is a bug in my version 7.1.3 that when license exceeded certain limit that license service doesn't work
so i resolved the issue by deleting some licenses files
Also this issue was reported solved in 7.1.5 so i and doing the upgrade
anyway i have bought version 10.5 and will do the migration
thanks -
Automatic clearing document t-code f.13 (CUSTOMER)
if i want to clear customer advances thorough f.13 automatic clearing document how can i clear customer advances pl. give me the screen shot if available.
sanjayHi,
Please try t-code OB74 - maintain criteria and account which need to be automatically clearing GR/IR account.
Basically, the criteria for matching is PO number and PO line item.
Hope this help.
Regards. -
Automatic clearing document t-code f.13
Hi!
kindly guide me for automatic clearing document stepwise
T-Code f.13
SanjayThis Transaction code helps you to clear all the entries for which debit and credit exists. Ex:- you take the GR/IR Account first you do Good receipt where your GRIR account gets credited later on when invoice received then your GRIR account gets debited. Now your GRIR account has got both debit and Credit. Now if you run this f.13 system will clear this entry and shows only the exact open items for which Invoice should be raised.
-
Automatic Posting Document not display
Hi Experts,
We assign automatic posting document for IUE,
When executing IUE it shows Document, again we are going to check the document it displays the below message:
ERROR : Document header char. Movement Type has an ambiguous value in template document.
I checked in SDN Message No: 7561022 and also OSS Notes: 1247685, according to notes point 1, the fields are appearing for document type which having properties like posting level - Adjusted Reported data, posting - Manual Posting. But where are posting level - two side elimination, posting - Automatic, those fields are not appering
Please suggest any information to overcome from this problemHI Scotsman,
When I see document having Manual Posting option it shows field like Document field, Fixing, Input Opt., Hide, Name. But where as document having Automatic Posting as property it shows only Document field and Name only.
Below is the details from List setting of IUE document type.
Doc No - 85 IUE B/S Items
Properties
Document Field Options
Document Field Name
Cons Group None
Item None
Profit Centre Group None
Company None
Profit Centre For BC None
Segment None
Trading partner None
Investee (Company) None
Alloc. Company None
Movement Type None
Acquisition year None
First acq.per. None
Functional area None
Country None
Unit of Measure None
Transaction Currency None
Product Group
Activity w/OC Logic None
Org. Change No. None
Acy: Elim.P/L Assets
Activity Number None
C/I Activity None
Main Asset No. (Doc) None
Inventory Item
Asset-managing PC None
Asset-managing Co.
Please provide inputs
Regards
Madhu
Maybe you are looking for
-
hi guys when i run planning in PPDS for material in APO its creating PR's instead of schedule lines. when it should create PRs & when it should create Schedule lines Doc type is LP Ext planning ind : 1 i maintained. is there any setting in external p
-
What happened to list view in calendar with iOS 7
It seems like my favorite view is now longer there. Am I missing something?
-
How to add a WAIT, NOT Pause
Anyone know how to add a wait to a phone number? Thanks
-
Twice in the last month someone has been logging in to my apple account. I have changed the password but it doesnt seem to help. I wrecked my old iphone and now have a non apple phone and would like to eliminate my apple account. How do I do this?
-
Adobe shockwave player problem Help
Hi Guys! I just want some help . Whenever I open some websites with scripts like http://www.mytrickslab.com/, Suddenly the adobe shockwave plyer stops working in my browser. How can i fox this problem . Thanks Will be looking forward for some serious