Return messages generated by a trigger
How can I do for return into an htmldb aplication a error or success message generated by a trigger?
The trigger can set package variables which your invoking process could use to construct messages or audit records.
Scott
Similar Messages
-
[Solved] ADF - Update does not return values generated by a trigger
Hello,
I'm using JDev 10.1.3.3.0 and DB 10.2.0.3.0.
On DB I've created a table, a sequence and a trigger:
CREATE TABLE TAB1
ID NUMBER PRIMARY KEY,
EDITED_AT DATE,
VALUE VARCHAR2(64)
CREATE SEQUENCE S_TAB1
INCREMENT BY 1
START WITH 1;
CREATE TRIGGER T_TAB1_BIE
BEFORE INSERT OR UPDATE ON TAB1
FOR EACH ROW
BEGIN
IF INSERTING THEN
SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
END IF;
:NEW.EDITED_AT := SYSDATE;
END;
/In JDev I've created an EO - Tab1, a VO - Tab1View and an AppModule.
In the EO Tab1 I have checked "Refresh After Insert" and "Refresh After Update" for Id and Edited_By attributes. I made the latter two attribures as "Never" updatable.
Then I test the AppModule with a JDev Tester (I use a connection which connects as an owner of the 3 objects above).
Then I insert a new row and enter a value into the Value field in the Tester. When I press Commit button everything works great - Id and Edited_By attributes get populated with values generated by the trigger.
But when I try to update the Value field and press Commit the Edited_By field does not retreives new value that was generated by the trigger.
Why does this happens?
Many thanks in advance.
Yerzhan.Frank,
I tried to set Refresh option on both, Value and Edited_At, fields but unsuccessfully.
Then I tried to do the following in SQL Plus:
SQL> insert into tab1(value) values('ddd');
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:01:24 ddd
SQL>
SQL> declare dt date; val varchar2(64);
2 begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
3 dbms_output.put_line('txt = ' || dt || ', ' || val);
4 end;
5 /
txt = 27.03.2008 17:01:24, ddd
PL/SQL procedure successfully completed.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:02:12 ddd
SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24.
Frank, maybe the issue is in the Oracle DB? -
How to display the return message in popup window
Hi Experts,
In WDA i want to display the return message through popup window.
Regards,
M.Chella Meenal.hi Chella Meenal ,
you can generate the popup using popup factory class also , look at the below sample code for displaying message in a popup , and you can do your own configurating like visible , enable the buttons you want ..
data:
lr_component type ref to if_wd_component,
ls_conf type wdr_popup_to_confirm,
lt_texts type string_table.
ls_conf-window_position = '1'.
ls_conf-button_1-text = 'OK'.
ls_conf-button_1-icon = 'ICON_OKAY'.
ls_conf-button_1-enabled = 'X'.
ls_conf-button_1-visible = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE.
ls_conf-button_2-visible = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
ls_conf-button_cancel-visible = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
lr_component = wd_comp_controller->wd_get_api( ).
append 'some text' to lt_texts.
cl_wd_popup_factory=>popup_to_confirm(
component = lr_component
text = lt_texts
CONFIGURATION = ls_conf
window_title = 'some title' ).
Regards
Chinnaiya P -
Hello All,
As mentioned in title, i am stuck up with that articular error from last three days,
i have following scenario, my SQL server 2008, my oracle 10g are on both same machine with OS Windows Server 2008.
the following error generated on my management studio when i execute my procedure written in my SQL server. Following is original source code snippet after error massage.
OLE DB provider "OraOLEDB.Oracle" for linked server "ORCL" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
Msg 50000, Level 16, State 2, Procedure PROC_MIGRATE_MST_FRM_ORA_SQLSERVER, Line 43
The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "ORCL" was unable to begin a distributed transaction.
BEGIN TRY
-- MIGRATION OF PR_COMPANY_MH START
BEGIN TRANSACTION T1
PRINT 'mILAN NNNNNNNNN 11'
INSERT INTO PROD.PR_COMPANY_MH
SELECT * FROM OPENQUERY(ORCL, 'SELECT * FROM PR_COMPANY_MH WHERE SQL_FLG = ''N'' ')
PRINT 'mILAN NNNNNNNNN 12'
UPDATE OPENQUERY(ORCL, 'SELECT SQL_FLG FROM PR_COMPANY_MH WHERE SQL_FLG = ''N''')
SET SQL_FLG = 'Y'
--EXECUTE ('UPDATE PROD.PR_COMPANY_MH SET SQL_FLG = ''Y'' ') AT [ORCL]
PRINT 'mILAN NNNNNNNNN 13'
COMMIT TRANSACTION T1
-- MIGRATION OF PR_COMPANY_MH END
END TRY
BEGIN CATCH
PRINT 'mILAN NNNNNNNNN 14'
ROLLBACK TRANSACTION T1
PRINT 'mILAN NNNNNNNNN 15'
SELECT
@ErrorNumber = ERROR_NUMBER(),
@ErrorSeverity = ERROR_SEVERITY(),
@ErrorState = ERROR_STATE(),
@ErrorLine = ERROR_LINE(),
@ErrorProcedure = ISNULL(ERROR_PROCEDURE(), '-');
PRINT 'mILAN NNNNNNNNN 16'
SELECT @ErrorMessage = ERROR_MESSAGE();
RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState, @ErrorNumber, @ErrorProcedure)
PRINT 'mILAN NNNNNNNNN 17'
END CATCH
this perticular part is raising that error, and i had tried every configuartion on my local machine related to MS DTC.
When i remove my transaction code, its work just fine no exception raise, but when i use then i.e. BEGIN TRAN, COMMITE TRAN, AND ROLLBACK TRAN. its giving me error, other wise its fine.
Please Help or disscus or suggest why my transaction base code is not woking????
thanks in advance.
Regards,
MilanSorry again, I am new on any kind of forum, so i am learning now, following is the error massage generated by SQL Server. and its not
an architecture problem, i had just included my complete architecture to be more informative while asking for the solution or suggestion. My real problem is T-SQL, i think and its related to Distributed queries raise in SQL Server in Oracle Link Server.
OLE DB provider "OraOLEDB.Oracle"
for linked server "ORCL" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
Msg 50000, Level 16, State 2, Procedure PROC_MIGRATE_MST_FRM_ORA_SQLSERVER,
Line 43
The operation could not be performed because OLE
DB provider "OraOLEDB.Oracle" for linked server "ORCL" was unable to begin a distributed transaction. -
BDC return message table problem
Dear All
We are doing BDCs for Excise Invoice (J1IS) and for Posting Excise
Invoice (J1IV) in Backgroung mode.
Here we are facing problem in BDC return message table (messtab) which
retruns the internal document number,errors or warning messages
in BDC rerurn message table.when we are doing BDC for J1IS in background
mode, no internal document number or error messages is generated in
BDC message table (ie in messtab), but the excise invoice is posted and database table
j_1iexchdr is updated with internal document number even though Accessible
value is '0'.Then we are taking this internal document nuber from databae
table j_1iexchdr passing to next BDC for J1Iv.Again after execution of BDC for J1IV
in background mode the same is happening as J1IS BDC return message table.
Is it the correct method of data retrieving from Database table ?
and we want to capture all types of error messages and internal document
no generated by BDC message table.How to capture BDC return messages.
Does Transactions J1Is and J1IV are executable for BDC ?
Thanks and Regards,
UlhasHi
Use the following code to capture the return table values.
data: i_msg type standard table of bdcmsgcoll with header line.
LOOP AT I_MSG.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = I_MSG-MSGID
LANG = SY-LANGU
NO = I_MSG-MSGNR
V1 = I_MSG-MSGV1
V2 = I_MSG-MSGV2
V3 = I_MSG-MSGV3
V4 = I_MSG-MSGV4
IMPORTING
MSG = W_STR
* EXCEPTIONS
* NOT_FOUND = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE:/ i_msg-msgnr,w_str.
endloop.
Regards,
Vishwa. -
How can I disable messages generated by Remote Panel?
I created an application (EXE) to server its panel to other network clients.
I used the Tools > Web Publishing Tool to generate a HTML code to create two different web pages to access this application using Web server:
- Embedded (for some users who need visualize the panel in real time).
- Monitor (to display panel snapshots to users updated every 1 second).
I don't need anyone controlling the remote panel, so I used this option:
Tools > Options > Web Server: Browser Access and checked Allow Viewing (not controlling) for every client connected.
Ok, both are working fine. But it a user try to Request control of VI on the Embedded page (right click in the remote panel), the application running in the server displays a message: Denied control request from XXX: Check permissions.
The embedded page stills working fine, but in the Monitor page that message appears in a box (see attached picture below)..
Is there a way to disable all messages in the remote panel? I realized that I need to access the computer where the application EXE is running to close the message.
I'm thinking in two solutions:
- Unable the right click menu in the embedded page to avoid clients request control of the remote panel.
- Run a code in the application to erase messages generated.
Has anyone an idea how to solve this?
Thanks in advance,
Klein
Message Edited by Klein on 08-06-2008 12:54 PM
Attachments:
Remote Panel message.jpg 10 KBHi Dpcamargo,
I'm already using monitor with a delay of 1 second and this doesn't seems real time like remote panel visualization.
But you sent me a good tip: use java code to cancel right clicks at all....
I will try this solution.
Hey, we are both brazilians! So, thank you so much, Dpcamargo. -
How to track return message in file to proxy interface
I am using file to proxy scenerio, where i will get my file from FTP and updating it into a table , after updating i am calling a program to Run BDC, in my method for proxy, after that i dont how to track return message , anyone please tell me suggestion regarding for this
thanking you
SridharHi Sridhar,
What exactly you want to track????
my assumtion is the call will be of asyn mode, once the data reach the proxy method the XI job done and u can easly track that using monitoring.
Regards,
Phani -
Error message generating Adobe Air output Unable to build a valid certificate chain for the signer
error message generating Adobe Air Output: Unable to build a valid certificate chain for the signer.
Are you talking about AIR Help produced by RoboHelp or an AIR application that you are creating?
If the latter, please see the notice at http://forums.adobe.com/community/robohelp/airhelp
If you are using RoboHelp, which version?
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Warning on PO Saving: No message generated for output of purchasing documen
The following message is coming while saving the Purchase Order.
No message generated for output of purchasing document
Message no. 06261
Diagnosis
The system was not able to find a message record via the message determination schema. Therefore it was not possible for such a record to be generated for this purchasing document. In consequence, the purchasing document cannot be outputted (printed or transmitted).
Procedure
The message determination process should be checked and, if necessary, corrected.
The message record can be created manually for this document. For this purpose, choose the function "Messages" in the menu "Header" and maintain the necessary data.
Please guide.
Regards,
AditiHello Aditi,
In messege determination necessary data is not maintained. Goto
MN04, select output type as NEU, then click on key combination and select the last option, then select document type as NB and FUNC as VN and put medium as 1 and in Date / time field 4, language EN and SAVE the data.
This will solve the problem.
Regards.
Sanjay -
Warning "No message generated for output of purchasing document" disabled
Hello Gurus
When a PO in ME21N is created and for some reason there was no output message determined the system should give a warning message "No message generated for output of purchasing document". It causes troubles because buyers don't know when they press SAVE whether output was made or not.
Please advise where to enable this feature.
Note: This happens not always and not for every user.
Great Thanks and Best Regards!Hi Oibek,
This message is automatic , i have not seen any config driving this.
If there is no output message type maintained for document type or requirement is met , system by default issue the warning message 'No message generated for output of purchasing document' .
Check the user GUI setting , may be warning messages are ignored for display.
Logon to SAP -> Customization of Local Layout (ALT+F12)-> Options -> Options tab -> Dailog Box at warning Message ( tick the Check box).
After this try creating PO from user Login , it should display a dialog box even for warning.
Thanking You ,
Sudhakar -
How to trap warning messages generated from the background processing?
Hi all,
Following is my requirement, i want to know whether it can be done and how?
The credit management (CM) warning messages generated as a result of the CM background processes, where do the messages go? Can you trap them and include them in an interface control report?
ThanksHi
If it's created a job for that process, you can try to read the log: here you should find all triggered messages, so the warning ones too.
U can try to use fm like BP_JOBLOG_READ or BP_JOBLOG_SHOW in order to get the log.
Max -
Return Messages for a BAPI run in Background
Hi all,
I am running a BAPI( BAPI_SALESORDER_CHANGE ) in Background task, It works fine and updates the Sales order but i dont get any return messages.But based on the return messages i need to show up on the report which orders got updated and which are not.....
Can anyone help me how can i get the return messages when i run a BAPI in background task......Thanks for the quick response....I think you got me wrong...I am not running the program as a background job....I am running only the bapi in background task as below.....
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
IN BACKGROUND TASK AS SEPARATE UNIT
EXPORTING
salesdocument = v_vbeln
order_header_in = it_bapisdh1
order_header_inx = it_bapisdh1x
TABLES
return = it_return
partnerchanges = it_bapiparnrc.
When the bapi runs as a background task i dont get any return messages in it_return but the sales order gets updated....
But i will have to capture the return messages as well....How can i achieve that ? -
Return message for timeout in BPM
Hey
I have a synchronous scenario using BPM. My question is: If the web service I'm calling is down and I receive a timeout, can I then create a return message from BPM to the sender system that can take attributes from the original message that did not reach it's target? I have read that I can do this in case of an error, but I read someone saying this is not possible when we have a timeout...
Thanks!
regards Ole
Edited by: Ole on Sep 23, 2008 1:16 PMHi Ole,
You can implement a Dedadline branch in your BPM that catches your time out.
You can follow theese links:
http://help.sap.com/saphelp_nw2004s/helpdata/en/ca/7c5c41fe06cf1ee10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/e8/8e2d4233c8db2ce10000000a1550b0/frameset.htm
Carlos -
I cannot install a previously purchased version of acrobat 9 pro downloaded from the site. Returns message at final install steps "invalid serial number." I had copied it and pasted it directly from "My Adobe". What to do?
Hi hgratz,
Considering 'invalid serial number' error for Acrobat 9, I would suggest you to please refer the KB doc link mentioned below:
Error "Invalid serial number" | Acrobat 9 | CS4
Let me know if that helps.
Regards,
Anubha -
Assign error with complex type return message
Dear all,
I have an axis web service with complex type return message. When I invoke the web service, and try to assign one element of the result to other variable, it fails with following error message(BPEL Fault:{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure{}
The invoking web service and assignment BPEL source is as follows:
<invoke name="registerConference" partnerLink="conferenceCenter" portType="tns:ConfArrangementPort" operation="Conference_Register" inputVariable="registerInput" outputVariable="registerOutput"/>
<copy>
<from variable="registerOutput" part="Conference_RegisterReturn" query="/Conference_RegisterReturn/confcity"></from>
<to variable="bookHotelInput" part="si" query="/si/city"/>
</copy>
I tunneled the response SOAP message:
==== Response ====
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Date: Sun, 31 Oct 2004 08:28:27 GMT
Server: Apache Coyote/1.0
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:Conference_RegisterResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://conference.sjtu.edu">
<ns1:Conference_RegisterReturn href="#id0"/>
</ns1:Conference_RegisterResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:ConfInfo" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://conference.sjtu.edu">
<confcity xsi:type="xsd:string">star</confcity>
<confend xsi:type="xsd:string">20041120</confend>
<confstart xsi:type="xsd:string">20041116</confstart>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
==============
However, when i check the invoke activity audit trail, it return the following info:
<messages>
<registerInput>
<part xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" name="gi">
<gi xmlns="http://conference.sjtu.edu">
<attendeename xmlns="">ss</attendeename>
<confname xmlns="">hh</confname>
</gi>
</part>
</registerInput>
<registerOutput>
<part xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" name="Conference_RegisterReturn">
<ns1:Conference_RegisterReturn xmlns:ns1="http://conference.sjtu.edu" href="#id0" />
</part>
</registerOutput>
</messages>
The detailed value of the return message lost, only leaving the href. Can I find the desired value again? should I try another XPATH expression? should I parse the result from the SOAP message directly? Or it's a problem of the system itself?
Hope you can do me a favor, thanks.From Axis's user guide: RPC services default to the soap section 5 encoding rules, objects will be encoded via "multi-ref" serialization. Document services do not use any encoding (so in particular, you won't see multiref object serialization or SOAP-style arrays on the wire)
May be I should try document service style instead of RPC. Thanks for your reply.
Maybe you are looking for
-
Exchg rate from new exch type X is not picked up in Treasury transactions
Dear All, I am maintaining a new exchange rate type for treasury transactions called "x". I have made all the settings required for this. Following is the series of steps configured to pick up the exchange rate maintained for type "x" for a Interest
-
Mail Adaptor : How to extract particular Mail from the mail server?
Hi @, I have a requirement where I need to extract all the new mails with a aprticular Subject line to the XI and then forward it to the receiveing system.My problem is that the actual payload is situated in the Mail attachment which I will use in my
-
Asset capitalisation with zero value
i noticed that some the assets that was given asset number previously was not capitalised. These assets were zero value assets. How do i solve this problem.
-
Hello all my mail is now sending and receiving. My issue to solve now is when I look at it through web-mail I get an error "ERROR: Could not complete request. Query: CREATE "INBOX/Sent" Reason Given: Invalid mailbox name". I see no folders just the e
-
ASR1k: VLAN re-write and EoMPLSoGRE
Hi, Is it possible to utilise EVC VLAN re-write together with EoMPLSoGRE on an ASR1k to extend these VLANs across a L3 boundary? Could these VLANs be extended from the same ASR1k where the VLANs' L3 sub-interfaces reside? I am not sure that it's poss