User Recponse in Triggers
Hello All
I am new in oracle I need to create a trigger to check for a condition and ask the user for a response if user accepts then the record should be saved else discarded
immidiate help will be appriciated
Thanks in advance
An Oracle trigger runs in the database. The Oracle trigger code resides in the database.
A trigger can be fired by a batch process. A SQL*Plus session. An ASP web page. A Java servlet.
Each of these clients may or may not have an interactive user. May or may not have a screen, mouse and keyboard.
Each of these clients may run on a different platform, using whatever hardware and operating system. The SQL*Plus session can be from a Siemens mainframe. The ASB page from a Windows Server. Etc. Etc.
Now how do you expect the trigger code, running inside the database, to magically work out how to prompt the end-user? How to access that client's terminal (in the case of a mainframe), Dell screen (used by the Windows user), or no screen at all by the batch process.
There are some fundemental concepts that one need to understand when using client server architecture and Oracle. I strongly recommend that you read the Oracle® Database Concepts guide. (http://tahiti.oracle.com)
One cannot use Oracle effectively, or write proficient Oracle code, not understanding these basic concepts.
Similar Messages
-
Which user exit is triggered on Save of CV01N/CV02N
I have some requirement to be triggered on the Save of a document using CV01N/CV02N.
I found three exits in the transaction EXIT_SAPLCV110_001, EXIT_SAPLCV110_002, EXIT_SAPLCV110_003 but none of them get triggered on Save even though I have activated the enhancement.
If someone knows which user exit gets triggered on Save of CV01N/CV02N please let me know.You can use BADIs.
You can use DOCUMENT_MAIN01.
Go to SE18. Display 'DOCUMENT_MAIN01.
On the menu bar, Click on Implementation > Create.
Give your own implementation name starting with Y or Z.
There's a method called BEFORE_SAVE in this.
It has all the data DRAW, DRAD, DRAZ etc as Changing Parameters.
So you will be able to manipulate that data in that method.
Activate the implementation And you are good to go.
Reward if helpful. -
User Exit that triggers for Change operation
Hi All..
I want a user exit which triggers when I enter into an infotype(2001) from tcode PA30.
My actual requirement is to show the field REFNR in display mode.
By using the exit PBAS0001 exit0001 I can make the field REFNR in displaymode for create operation.
But in change operation of the infotype the exit is not getting triggered.
Regards,
Anji.chk these
Transaction Code - PA30 Maintain HR Master Data
Enhancement/ Business Add-in Description
Enhancement
PBASRP01 PA: User exit distributed reporting
PBAS0002 PA: Enhancements for Personnel Administration - Menu
PBAS0001 PA: Pers.Admin./Recruitment: Default values and checks
PARA0002 Enhancement for Calculating Annual Salary; IT0008,14,15
PARA0001 Enhancement for Determining the Number of Periods
HRRPAI01 User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
HRPC0001 HR: PC download authorization
HRPBAS01 User Exit for HR Master Data
Business Add-in
HRPAD00_PREM Definition of User Exit for Collective Search Help PREM
HRPADUS_PBAS_0001 Customer Exit for Message handling
HRPAD_SUBTY_CHECK
HR_F4_GET_SUBTYPE HR: Entry help for subtypes
HR_FAST_ACTION_CHECK Check fields on the fast entry screen
HR_INDVAL HR: Indirect wage type valuation
HR_SET_PKGAB
HRPAD00_RECOG_SCREEN Employee - Recognition Screen
HRPAYXX_DELETE_PERNR BAdI for Reports Deleting Personnel Numbers
HRPAD00_PAPM Definition of User Exit for Collective Search Help PAPM
HRPAD00_GET_AF_0008 Additional Fields for Basic Pay Infotype (0008)
HRPAD00_ENTRY_LEAVE HR_ENTRY_DATE and HR_LEAVING_DATE
HRPAD00_ADRS HR: Address formatting
HRPAD00MGEACTIVATION Activation Action BAdI for Global Employees
HRPAD00INFTY Update / Infotype maintenance
HRPAD00AUTH_TIME Time Logic in the PA Authorization Check
HRPAD00AUTH_RECORD Spanish Data Privacy Law: Exit for Recording
HRPAD00AUTH_CHECK HR: Authorization Check
HRIV_REDUCE_AMOUNT Reduction within Indirect Valuation -
ESS CATS user exit not triggered
Hi,
I am making some validations on the time sheet using enhancement cats0006, but that user exit is not triggered in the portal, in ESS.
I have my project activated through tr. CMOD, the user exit is triggered in R/3 using transaction CAT2.
What could be the reason ?
Thanks,
Stefan
Edited by: Stefan Kolev on Jan 24, 2012 10:51 AMSolved
-
Viewing different user's constraints, triggers, synonyms etc.
I have a doubt as to how to view a different user's constraints, triggers, synonyms. If, we have to see a different user's tables, we use the syntax,
select * from username.table_name
provided we have select rights on that table of the user. Similarly, do we need view rights on the other user's indexes.
Please help in solving my doubt as i need it resolved urgently.do we need view rights on the other user's indexes.No, once the appropriate access to the concerned object has been granted, any indexes on that object (if appropriate) will automatically be used by the database.
Once you have access to the other users tables, the indexes on that table automatically are visible to you.
You could see the objects using ALL_OBJECTS or the ALL_INDEXES dictionary view. -
How this user exit MWMRF102 triggered in tcode LM05
how this user exit MWMRF102 triggered in tcode LM05. could somebody help for this procedure
thanks in advance
rakeshHi Sairam,
Goto the program for transaction VL10G.In that u make a seach for the user-exit
USEREXIT_PREPARE_LAYOUT_FILL.Then write the logic inside tht.U will need an access key for that.
<b>Reward points if it solves ur query or answer is helpful</b>
Thanks
Chinmay -
User-exit that triggers everytime I change a line item and change condition
Hello Experts,
We are encountering an error wherein when we create a return order with reference
to an invoice and we create multiple line items with the same material, the succeeding
line items points to the wrong conditions in the reference invoice. Below is an example:
Original Sales Invoice 3010002390
Line Item No. SKU Quantity Total Rebate Discount Per Unit Rebate Discount
10 100315 10 128.07 12.81
20 106666 10 128.07 12.81
30 100338 10 243.86 24.39
Return Order 1120000402 (repeatedly created with reference to the same sales invoice number)
20 106666 1 12.81 12.81
30 106666 1 24.39 24.39
For Return Order line 30, it should have picked the price 12.81 instead it picked 24.39,
which is the same line item with the original sales invoice.
I am using user-exit 'USEREXIT_NEW_PRICING_VBAP' and it triggers everytime I change the quantity of a line item.
But I tried to change the values in XKOMV and put 'U' in UPDKZ but it doesnt reflect when I view it.
Hope you can help me guys. Thank you and take care!Thanks anyways...
-
Need help in user privilage and triggers
hi,
i need to create general users who can insert a row into a table but should not be able to delete any data, so which minimuim privilages i should assign.
grant connect session and grant resource or anything else?
and one more prob in triggers, i have written a trigger to trigger if expamt exceeds eclimit. i am gettin errors
create or replace
TRIGGER TR_EXCEEDLIMIT
AFTER INSERT OR UPDATE OF EXPAMT ON EXPENSEITEM
FOR EACH ROW
DECLARE
V_ECLIMIT EXPCAT.ECLIMIT%TYPE%;
BEGIN
SELECT ECLIMIT INTO V_ECLIMIT FROM EXPCAT
WHERE ECNO = :NEW.ECNO;
IF(:NEW.EXPAMT > V_ECLIMIT) THEN
INSERT INTO LOG_TABLE (excno, exctrigger, exctable, exckeyvalue, excdate, exctext) VALUES (LOG_SEQ.NEXTVAL, 'TR_EXCEEDLIMIT', 'EXPENSEITEM', :NEW.EINO, SYSTEMSTAMP, ('INSERTED OR UPDATED DATA OF EXPAMT EXCEEDS THE VALUE IN ECLIMIT');
ENDIF;
END TR_EXCEEDLIMIT;
errors
Error(7,30): PLS-00103: Encountered the symbol "%" when expecting one of the following: := ( ; not null range default character The symbol "%" was ignored.
Error(12,235): PLS-00103: Encountered the symbol ";" when expecting one of the following: ) , * & | = - + < / > at in is mod remainder not rem => .. <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between overlaps || multiset year DAY_ member SUBMULTISET_ The symbol ")" was substituted for ";" to continue.
Error(14,5): PLS-00103: Encountered the symbol "TR_EXCEEDLIMIT" when expecting one of the following: ifYou don't need to select the (sys)timestamp from dual, you can directly assign it:
create or replace trigger tr_exceedlimit
after insert or update of expamt on expenseitem
for each row
declare
v_eclimit expcat.eclimit%type;
v_timestamp timestamp := systimestamp; -- or localtimestamp
begin
select eclimit into v_eclimit from expcat where ecno = :new.ecno;
if (:new.expamt > v_eclimit) then
insert into log_table
(excno, exctrigger, exctable, exckeyvalue, excdate, exctext)
values
(log_seq.nextval,
'TR_EXCEEDLIMIT',
'EXPENSEITEM',
:new.eino,
v_timestamp,
'INSERTED OR UPDATED DATA OF EXPAMT EXCEEDS THE VALUE IN ECLIMIT'
dbms_output.put_line('ERROR: EXAMT EXCEEDS ECLIMIT');
end if;
end tr_exceedlimit;You cannot use timestamp, but you can use localtimestamp or systimestamp.
See the Oracle Docs @ http://tahiti.oracle.com for more details on them (and triggers).
Also:
Error(15,5): PL/SQL: ORA-02289: sequence does not existCheck your LOG_SEQ sequence, does it exist and are privileges set correctly?
Edited by: hoek on Jan 26, 2010 8:20 AM typo in link -
Notification User-Exit not triggered
Hi all,
We have configured the system to automatically create a notification when creating an order (Define Notification and Order Integration)
However, when saving the order (without accessing the notification) we find that the Notification save user-exit (QQMA0014) is not triggered.
Has anyone found a work-around for this?
Also posted [here|http://www.sapfans.com/forums/viewtopic.php?f=7&t=328408]
PeteAPete,
It is a common issue. The logic of not calling this exit being that it can prevent notification save and that is not desirable when created in conjunction with the order.
No specific workaround that I know. Depending on what you exit does it might be possible to duplicate the logic into one of the order exits/Badis. Alternatively into a notification exits that is called - generally at create rather than at save - QQMA0025 for example.
-Paul -
User-exit not triggered(variable)
Hi mates,
I have two variables A (fiscal year), B(calmonth interval) and both of type user-entry(replacement type). I defined C varible of type user-exit(replacement type). In C, i'm reading A & B values and checked whether B's interval is in A.
eg: A input is 2007 (means 04.2006 to 03.2007).
B input interval 03.2006 to 10.2006.
In C i'm checking whether B's interval is in A (fiscal year).
Based on B's value, dynamically i have to show input & output layouts. I defined one function module for C, but it's not triggering after entering input values in plng folder.
How to trigger user-exit immediately after user enter input values? (without selecting dependent input or output layout tabs, these input or output layout uses varible B interval values for dynamically showing calmonth columns).
Previously i defined few varibles like above, there user-exits triggered only after i choosing related input or output layout tabs.
thanks,
RajuThe user exit written in the variable will be triggered if that variable is used anywhere in folder or layout or function or called in the logic of any other variable. In your case, C is not used anywhere that why it is not executing this code. For the required functionality, you have to create planning function of type exit and place this code. Run this function on layout open or folder opening something like this.
-
User Exits / BADIs triggered during the Material document creation
Hi Experts,
Can anybody tell me the User Exits / BADIs /Possibilities that can be triggered during the Material Document Creation which can be used to update the Equipment Master User Statuses.
Thanks,
Sangeeta.Hey Sangeeta,
Try these User Exit's
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Using Enhancement MGA00001 (Function Exit : EXIT_SAPLMGMU_001 ) you can validate & Change your Material Document Number.
Badi's
BADI_EAN_SYSTEMATIC
BADI_GTIN_VARIANT
BADI_MAT_F_SPEC_SEL
BADI_MATERIAL_CHECK
BADI_MATERIAL_OD
BADI_MATERIAL_OD
BADI_MATERIAL_REF
BADI_MATNR_CHECK_PVS
BADI_MM_MATNR
BADI_MM_MATNR
CDT_CHECK_MATERIAL
MG_MASS_NEWSEG
MG_MASS_NEWSEG
WRF_DISCONT_FACT_E
Note: This is for transaction code MM01, MM02 & MM03.
Regards,
Saravanan M -
User exit that triggers while saving in transaction F-02
Can any one please tell which userexit trigers while saving The document in transaction F-02.
I have tried some exits but they are not triggered while saving.Hi Satya,
These are the User Exits for that T-Code.
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
SAPLF051 Workflow for FI (pre-capture, release for payment).
Out of these, i am expecting one of the below is triggered while saving.
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
Regards, -
User Exit which triggers after creation of purchasing group
Hi all.
We are creating purchasing group by using the FOLLWOING PATH
SPRO->MATERIAL MANAGEMENT->PURCHASING->CREATING PURCHASING GROUP.
Our issue is whenever new purchasing group is created I need to track this and send this new purchasing group details only to other system. Can we have some user exit we can call one RFC.
Pls let me know. Thanks in advance.
cheers,
sami.Hi,
You can check which BADi is getting initiated on creating new purchase order and do your coding there..
You can search a BADi with SQl trace..
Go through this thread
Exit for Purchase Order ME21N
Regards
Mudit
Edited by: Mudit Batra on Jan 22, 2009 6:22 AM -
User exit/BADI triggered when WWI document is released in CG02
Hi,
In CG02 when a WWI document is created for a specification i want to know user exit/BADI associated when the document is released/accept in the report management.
Any help would be appriciated.
Thanks,
Sridhar.Hello
the user exits mentioned do have special purposes.
C1G20001 and C1G20002 are related with report management system
C1G20003 and C1G20004 are related with report information system
The other exit is related to tasks which can be "programmed" in using the report header. The "release/accept" process is generally related to the definition of the generation variant.
Regarding the mentioned BADI I have no special knowledge if it can be used here.
Could you indicate the reason behind your question?
Reason is: based on the generation variant definition there is no "real report" which can be "released" or the report is immediately "released" and the user exits mentioned will not help any more in most scenarios.
With best regards
C.B.
PS: I have done a small research: Badi EHSS_WWI_BADI_001 is available starting ERp 6.0 o my knowlegde; depending to your business needs there is a chance that this Badi can help.
Edited by: Christoph Bergemann on May 24, 2010 3:57 PM -
User exit for triggering release strategy
Hello Experts,
My requirement is when changes are made in purchase order (ME22N) then once again release strategy will have to get trigger.
is the user exits exists for this purpose,if yes, What is it?. I searched alot but not able to find right exits.Hello ,
I think you can achieve this via configuration .Basically you want the release strategy to get redetermined based on the changes in the item or if the price of these items increase a certain level .if you have the release startegy as changeble in the SPRO ticked it will automatically go for new release strategy if you have the value of release indicator set .This can be done SPRO->MM->Purchase order->Release procedure for purchase order->Define release procedure->Release indicator.
Set the appropriate value .
Remember you need to know what is that it retrigger that release strategy .
The link below deals with similar requirement ....
[http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/retrigger-release-strategy-for-purchase-requisition-with-any-change-1858101]
Thanks
Anjaneya .
Edited by: Anjaneya Bhardwaj on Aug 31, 2011 8:21 AM
Maybe you are looking for
-
Yoga 2 Pro: downgrade to windows 7 ultimate
Hi there, I recently purchased a Lenovo Yoga 2 pro laptop. (http://www.elgiganten.dk/product/pc-tablets/barbar-computer/LE59386592/lenovo-yoga-2-pro-13-3-multim... Since I'm not that excited for Windows 8, I decided to install Windows 7 ultimate. I f
-
I'm running Weblogic 7 sp2 server on a RedHat Linux 7.3 as the backend server and a Redhat 7.3 server with Apache 1.327 as the frontend. At first I had only one site to configure with the Bea Apache plugin. But there will be at least 3 sites more. I
-
Service For Objects Function/Button in BP - missing when performing BDC?
Hi all, I'm currently working on a conversion program that creates Business Partners in the transaction BP by using CALL TRANSACTION. The first thing I did was to record the transaction in SHDB. My problem is, the Services for Object button is mi
-
As soon as I run an update nothing works!
I have re installed FCP studio 2 about seven times now including erasing the drive and re installing the system. I finally found where my problem is. Every time I run the latest updates the sequence/project presets are missing in Motion and Final Cut
-
Basically I deleted some pictures on my phone by accident. They ment so much too me! Is there any way of getting them back?