How to commit data when item is being validated
the problem is, that I have an input field on the form. when
ever I make changes in it I need to validate the change first.
and if its validated then I need to make certain changes in the
database and commit.
I have written code in when-validate-item, which is called when
ever I make change in the input field. In this trigger I first
check data entry is correct and then make certain changes in the
database and finally when I try to commit the changes I made it
gives me error message of illegal restriction cannot use commit
procedure in when-validate-item.
can anyone help me as how can I validate an input field first
and then make transactions in the database and commit.
thanks
Hi
I do not know exactly what you want to
do, so use this with care.
If you want to commit only the database
(not forms itself), you can use:
forms_ddl('commit');
If you need to commit the form itself,
in the when-validate-item you can
create a timer, and in the when-timer-expired
trigger do a commit.
Luis Cabral
Similar Messages
-
How to decrypt data when you can't get the private key in Windows?
I'm very confuse. My english is poor, but I try to say my question clearly.
When browser connects to a https website which needs client certificate to authenticate the identity, the browser will send client certificate to web server.
Then the web server will use the certificate to encrypt some data and send it to browser.
Then broswer should have private key to decrypt that.
But as I know, if I install a pfx format personal certificate, I can set can't export private key, which means you can't get the private key to use it. So how can
the browser decrypt the data without private key?
By the way, what is CSP, use CSP's interface can we use CryptoAPI
to decrypt data without private key?Answer for question is "you cant"..
"How to decrypt data when you can't get the private key in Windows?"
Read more
http://msdn.microsoft.com/en-us/library/windows/desktop/aa387460(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/bb427432(v=vs.85).aspx
http://technet.microsoft.com/en-us/library/dd277320.aspx
http://en.wikipedia.org/wiki/Public-key_cryptography -
How to backup data when hard drive is failing.
I think my hard drive is failing..
I booted using Install DVD, and got message in Disc Utility that "this drive has a hardware problem that can't be repaired." It mentioned I should backup data and consult apple representative..
I clicked on Macintosh HD under the red physical drive (500.11 GB Hitachi HTS) and did disc repair.
Strangely, the message went away on the physical drive when I finished. It turned back to black wording and gave green "verified/repaired" messages in the log.
I am still able to boot my macbook, although everything is running slowly... Desktop excel files take 15 mins to open.
Does this still sound like a failing hard drive?
I am trying to act fast and borrowed my sister's external harddrive/ "passport for mac", and it slowly prompted a time machine backup. It is slowly working through "8.34GB of 200.33GB"
I do not really understand what I am doing, but hoping this is the right move. Could someone explain what time machine will do or how it will help?
Is there any chance I will harm her external hd?
I am mostly worried about iPhoto and itunes library, iMovie projects,and important excel spreadsheets on my desktop. Is time machine looking after these concerns?
Any help greatly appreciated.Where is you TM backup?
Where are your external data redundancies?
Now you will need to use very expensive data recovery experts to recover data when you could have had it safely on a $100 worth of 2 external HD.
Mechanical HD failure circumvents using recovery software.......so, now you backed yourself into a corner and needed expensive data expert recovery.
You took a wrong turn a long while back before reaching this cliff edge.
that wrong term was not having (preferably 2) external HD as a redundant data archive. -
How to preserve data when converting a Standard DSO into a Write Optimized
Hi,
I'm looking for proven strategies for preserving data when converting a standard DSO into a write optimized DSO. The data has to be dropped before the new DSO is transported into the environment.
1. The DSO is currently in synch with a cube,
2. The PSA does not have all the data which is in the DSO.
3. Data volume is incredibly high for a full reload from ECC, so we'd like to avoid that option.
Appreciate any help!Hi Gregg,
have you considered just deleting the data? I know that sounds simple, but it might be a valid solution.
If the DSO is just receiving new data (e.g. FI documents), you can continue to deliver a logically correct delta to the cube.
Should that not be possible and you really want all data that you currently have in your DSO1 in the write optimized future of it, then how about this:
- Create a new DSO2 same structure as DSO1
- Load all data into that
- Delete all data from your DSO1 and import the transport to make it write optimized
- Load all data back into you now write optimized DSO1 from DSO2
The problem you have then, is that all data that you have already loaded into your cube is due to be delivered as a delta from DSO1 again.
Depending on your transformation / update rules that might or might not be a problem.
Best,
Ralf -
How to fill data when call function of sap standard script form?
Hi every experts,
<Priority Normalized>
In our system, when we log in 'FR', we can print purchase order in language Franch,in t_code:ME22N. And when logging in 'EN', we can print it in language English, in ME22N. The English form is just only translated from Franch, with all same structure and frame. The form is done by script form.
And when logging in 'ZH', we create a new program, calling function smartform, instead of translating from EN language. Because of different structure and frame, I don't know the way to write script, so I print puchase order by smartform, when logging in 'ZH'.
But I have a new issue. Our MM module consultant needs me to print Chinese form if one condition, print English form in other condition.
So I have no idea to solve it. Because in my program, I get data to fill smartform and call function of smartform. And I don't know how to get data to fill script form. I only know the function name, 'OPEN_FORM' 'WRITE_FORM' 'CLOSE_FORM'.....
If I only call the several functions, I will get only frame without no data. So who can tell me how to do????
<Urgency downgraded>
Edited by: Suhas Saha on Jul 26, 2011 3:34 PM
Edited by: Vinod Kumar on Jul 26, 2011 4:09 PMHi,
Normally if we look in NACE transaction, you can see that upto five different FORMS can be assigned to a single output type . i.e. for each form there will be a seperate routine through which it gets called. But it all start from the first form only.
so you need to write your code in the ENTRY of the first form and if it does not satisfy do not go for processing of it but just exit of that form ENTRY. so that it will take you to next form.
hope this helps.
Thanks,
Venkatesh -
ARD - How do I see when I'm being viewed?
Using Mavericks and have ARD. I need to know if there's a clear way to know when I'm being viewed. Someone needs to develop a desktop widget to alert you.
Settings -> Sharing -> Remote Management -> Options
Make sure that "Show when being observed" is set. Then the icon in the menu bar will change when someone is viewing your system.
Regards. -
Regarding how to Read data when it is in offline in SMP 3.0
I have a big problem guyz...I am working on a hybrid Mobile App
When I am in Online I am able to read the data.When I kill the application and relaunch the app and place the App in Airplane mode and when I try to read the data It is throwing me a error in browser stating "ERR_CONN_RESET" and in the device I am getting an error such as HTTPREQUESTFAILED....
Mithun Please help us in reading the data in offline Mode.Please help us it is on high priority
Tags edited by: Jitendra Kansal (Moderator)Yeah for sure mithun,
function read() {
if(navigator.onLine){
alert("hi");
updateStatus2("read request started");
startTime = new Date();
clearTable();
if (!haveAppId()) {
return;
var sURL = applicationContext.applicationEndpointURL + "/DateFormats";
console.log("Date Formats Fetched"+ sURL);
var oHeaders = {};
oHeaders['Authorization'] = authStr;
oHeaders['X-SMP-APPCID'] = applicationContext.applicationConnectionId; //this header is provided by the logon plugin
oHeaders['Content-Type'] = "application/xml";
oHeaders['X-CSRF-Token'] = "FETCH";
var request = {
headers : oHeaders,
requestUri : sURL,
method : "GET"
console.log("read using " + sURL);
OData.read(request, readSuccessCallback, errorCallback);
else{
sap.OData.applyHttpClient();
//OData.read(request,readSuccessCallback,errorCallback);
function readSuccessCallback(data, response) {
var endTime = new Date();
var duration = (endTime - startTime)/1000;
updateStatus2("Read " + data.results.length + " records in " + duration + " seconds");
var productsTable = document.getElementById("ProductsTable");
for (var i = 0; i < data.results.length; i++) {
var row = productsTable.insertRow(1);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
cell1.innerHTML = data.results[i].DateFormatType;
cell2.innerHTML = data.results[i].DateFormatValue;
the above is my read() function in which the data is read.
I am also attaching my openStore() method:
if (!haveAppId()) {
return;
startTime = new Date();
updateStatus2("store.open called");
var properties = {
"name": "DateFormatsOfflineStore",
"host": applicationContext.registrationContext.serverHost,
"port": applicationContext.registrationContext.serverPort,
"https": applicationContext.registrationContext.https,
"serviceRoot" : appId,
"streamParams" : "custom_header=Authorization:Basic " + btoa(applicationContext.registrationContext.user + ":" + applicationContext.registrationContext.password) + ";custom_header=X-SMP-APPCID:" + applicationContext.applicationConnectionId + ";",
"definingRequests" : {
"DateFormats" : "/DateFormats"
store = sap.OData.createOfflineStore(properties);
console.log("Offline Store Created");
//var options = {};
store.open(openStoreSuccessCallback, errorCallback/*, options*/);
console.log("Offline Store Opened");
When the device is in online , data is read absolutely fine where as in offline i am unable to read data and Http request failed error is getting displayed.....
Mithun Please help us in this on high priority -
How to update Item level shipping data when item category is changed
Hi All,
My requirement is when user changes a sales quoatation item category value and presses 'Enter' then based on item category's value the corresponding item and it's sub-items' shipping data(delivery status) should be modified.
To achieve the same, i tried implementing the BADI CRM_ORDERADM_I_BADI which gets triggered when user makes changes in sales quoatation item level and presses enter. Now my query is within this implementation i am not able to use CRM_ORDER_MAINTAIN as it throws "Recursive_call" error so how can i update item level shipping within this implementation?
Regards,
Bharathy.Hi Shwetha!
I have never used this FM....but i have had a look and u hace to update the structure:
PRODUCTS STRUCTURE BAPIBUS20001_PRODUCTS
In this structure: BAPIBUS20001_PRODUCTS-SHORT_TEXT.
Regards,
Mon -
How automatically insert date when exit from Edit Item?
Hi all
Example: Sales - A/R -> A/R Invoice
when you input any symbol in field "due date" and will press tab beside you is automatically inserted current date. in system exist standart function transformations in date or not?
thank & hallo from moscow, russiaHi Artem Artamonov
I'm not sure exactly what you asking, but you can chenge the display format. Go to administration->system initialisation->general settings and look on the display
tab.
Hope this helps -
How to convert data when transferring from one table to another
I have two tables and these are the structure of the tables
create table E1(
ID NUMBER
,NAME VARCHAR2(30)
, DESIGNATION VARCHAR2(30)
,GENDER VARCHAR2(10));
create table E2(
ID NUMBER
,NAME VARCHAR2(30)
, DESIGNATION VARCHAR2(3)
,GENDER NUMBER); Now I want to transfer records from one table to another using a master tables where data are compared because the datatypes in tables are different
The first one is a gender table to match the gender and convert
create table Gender(
E1 varchar2(10),
E2 number);The second is for the designation
create table Designation(
E1 varchar2(30),
E2 varchar2(3);How to match and convert the data so that it can be transfered.Peeyush wrote:
Can we do it with the help of a cursor.
All SQL executed by the database are parsed as cursors and executed as cursors.
I mean I have to insert data in bulk and I want to use cursor for it.The read and write (select and insert) are done by the SQL engine. The read part reads data and passes it to the write part that inserts the data.
Now why would using PL/SQL and bulk processing make this faster? It will reside in-between the read part and the write part being done by the SQL engine.
So the SQL engine reads the data. This then travels all the way to the PL/SQL engine as a bulk collect. PL./SQL then issues an insert (the write part to be done by the SQL engine). And now this very same data travels all the way from the PL/SQL engine to the SQL engine for insertion.
So just how is this approach, where you add extra travel time to data, faster?
and i want to commit the transaction after every 50 recordsWhy? What makes you think this is better? What makes you think you have a problem with not committing every 50 rows? -
How to commit data at the end of a bounded task flow
Hi all,
I am using JDev 11.1.1.0.2.
I have this situation
1) A page with a button that goes to a task-flow to insert data (property data-control-scope set to shared and property transaction set to requires-transaction as suggested in http://www.oracle.com/technology/products/jdev/tips/fnimphius/cancelForm/cancelForm_wsp.html?_template=/ocom/print )
2) At the end of this task-flow a I have a TaskFlowReturn (property End Transaction set to commit)
When I click the button associated to this TaskFlowReturn, I return to the first page (described in 1) ), but the data I have just inserted are only submitted, but not committed.
What's the problem?
Any suggestions?
Thanks
AndreaHi,
if you set the return activity to commit the transaction then this is done. I don't see why rollback should work but commit doesn't
Frank -
How to update data when primary key is set through for update cursor
Dear friends,
I have tried to update data in the table through forms using cursor for update and i have given the plsql i have used please help me where i do mistake.
DECLARE CURSOR EMP IS
SELECT EMPNO,EMPNAME,FATHERNAME,COMMUNITY,SEX,BILLUNIT,BIRTHDATE,RLYJOINDATE,RETIREMENTDATE
FROM PRMAEMP WHERE BILLUNIT=:CTRL.BILLUNIT AND SERVICESTATUS='SR'ORDER BY DESIGCODE,SCALECODE
FOR UPDATE;
BEGIN
GO_BLOCK('EMP_DETAILS');
SYNCHRONIZE;
FOR I IN EMP
LOOP
I.BILLUNIT:=:EMP_DETAILS.BILLUNIT;
I.EMPNO:=:EMPNO;
I.EMPNAME:=:EMPNAME;
I.FATHERNAME:=:FATHERNAME;
I.COMMUNITY:=:COMMUNITY;
I.SEX:=:SEX;
I.BIRTHDATE:=:BIRTHDATE;
I.RLYJOINDATE:=:RLYJOINDATE;
I.RETIREMENTDATE:=:RETIREMENTDATE;
DOWN;
END LOOP;
COMMIT;
END;
your help is needed immediatelyDECLARE CURSOR ABC IS
SELECT EMPNO,
EMPNAME,
FATHERNAME,
COMMUNITY,
SEX,
BILLUNIT,
BIRTHDATE,
RLYJOINDATE,
RETIREMENTDATE
FROM PRMAEMP
WHERE BILLUNIT=:CTRL.BILLUNIT
AND SERVICESTATUS='SR'
ORDER BY DESIGCODE,SCALECODE
FOR UPDATE OF COMMUNITY;
V_EMPNO PRMAEMP.EMPNO%TYPE;
V_EMPNAME PRMAEMP.EMPNAME%TYPE;
V_FATHERNAME PRMAEMP.FATHERNAME%TYPE;
V_COMMUNITY PRMAEMP.COMMUNITY%TYPE;
V_SEX PRMAEMP.SEX%TYPE;
V_BILLUNIT PRMAEMP.BILLUNIT%TYPE;
V_BIRTHDATE PRMAEMP.BIRTHDATE%TYPE;
V_RLYJOINDATE PRMAEMP.RLYJOINDATE%TYPE;
V_RETIREMENTDATE PRMAEMP.RETIREMENTDATE%TYPE;
BEGIN
GO_BLOCK('EMP');
SYNCHRONIZE;
OPEN ABC;
LOOP
FETCH ABC INTO .... /*yOU NEED TO MENTION YOUR VARIABLES HERE*/;
UPDATE PRMAEMP
SET BILLUNIT= :EMP.BILLUNIT,
EMPNO= :EMPNO,
EMPNAME= :EMPNAME,
FATHERNAME= :FATHERNAME,
COMMUNITY= :COMMUNITY,
SEX= :SEX,
BIRTHDATE= :BIRTHDATE,
RLYJOINDATE= :RLYJOINDATE,
RETIREMENTDATE= :RETIREMENTDATE
WHERE CURRENT OF ABC;
EXIT WHEN ABC%NOTFOUND;
END LOOP;
CLOSE ABC;
END;
COMMIT;
END;Cheers
Sarma. -
How do you know when items will fall off your credit reports?
Can anyone tell me how you know what date items will fall off your credit report? Thanks
Each individual type of adverse information has its own exclusion date. They are all set forth in FCRA 605(a). DOFD applies only to a collection or charge-off, which have an exclusion date of no later than 7 years plus 180 days from the DOFD.Monthly account delinquencies are excluded no later than 7 years from their individual dates of occurence.BKs are exluded at 7 or 10 years, depending upon their type.Tax liens become excluded no later than 7 years from date paid.Judgments become excluded on the later of 7 years from date entered, or until the expiration of the statute of limitations on enforceability of the judgment. The credit report exclusion periods are imposed on the CRAs, and set forth the date after which they can no longer include that adverse item in credit reportes they issue.The CRAs are thus required to monitor the relevant date for each type of adverse item. The consumer should no have to request exclusion or remind the CRA of the exclusion date, but it is possible that they could miss a date, so the consumer should monitor.
-
How to change data in item table in sales order in UI
Hi Experts ,
i have 5 products line items in my item table in UI in sales order and i want to change the status of third line item on the basis of some condition .
please guide me how to do it .
thnx in advanceHi Abhinav,
You can assign a status profile to the item category of Item 3. Then set the condition depending on the new status profile.
Hope this helps..
Regards,
Shwetha -
** How to encrypt data when saving it in DB directly?
Hi All,
I want a method to encrypt data in the database when saving it directly
that is when any one enabled to see the data he will see it encrypted!Hi..
What is the oracle database version???
As you want the users to see the encypted data, the best option is use DBMS_CRYPTO to encrypt the data.
[http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm]
[http://www.oracle-base.com/articles/10g/DatabaseSecurityEnhancements10g.php]
HTH
Anand
Edited by: Anand... on Oct 19, 2009 2:11 PM
Maybe you are looking for
-
O menu do CREATIVE CLOUD não tem a opção de avaliar o Ae (AFTER EFFECTS), e quando tento baixar ele, me retorna para o menu principal, que não tem a opção que eu quero, como devo efetuar, para instalar o AE de avaliação no meu PC windows 7?
-
Input Variable in BO Webi Report
Hi, We have BW-Query and have defined BO Webi-Report using Universe on this query. When we execute BW-Query direct in BW, we can see all plants from master data table in the input Variable (Input help/F4). When we execute BO-Report in BO, it shows on
-
I have a Bluetooth receiver transmitter by Brookstone attached to the home stereo that we use to connect via bluetooth and play music from Pandora etc. From our iPhones or iPad. It has worked flawlessly until I updated the software on my iPad and iP
-
Sender SOAP Adapter with Https
Hi, can any one give me information on how my Sender SOAP adapter to be configured with HTTPS port. please give me the what are all different ways to make my Sender SOAP Adapter secure and give me the steps to achieve the functionality. Thank You, M
-
No Primary Key Column was set. (UPD_NO_PK_SET)
I'm trying to build an update record page that gets the primary key value passed from a dynamic edit selection. dynamic list is great..opens up to the update record page great...values filled in including the primary key...i can see the primary key v