Conditionally disabling record updation after query
Dear members
I've a single record block and I wanna conditionaly disable records updation after query has fetched data. Problem is that if I disable the record updation in Post-Query trigger then it checks the condition for the very first fetched record and it the condition is true, then Updation is disabled for all the fetched records, even if the next records dont meet the condition. I'm using forms-10g. Can u give a better solution??? thanx.
you have to use SET_ITEM_INSTANCE_PROPERTY to modify only one record:
BEGIN
IF ... <your_condition> THEN
SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_FALSE);
ELSE
SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_TRUE);
END IF;
END;
Similar Messages
-
Dear Expert
we want to update the conditions of PO , after the reversal of GR but System is not allowing any changes in the Condition of the PO .Is it a standard SAP behaviour then if so then must be some sap notes on the same , please provide the SAP note otherwise please provide the setting which i have do , so that condition can be updated after GR reversal .
Regardshi,
check few notes:
439110
622634 - BAPI_PO_CHANGE: New PD despite follow-on documents
582252 - BAPI_PO_CREATE1/..._CHANGE: Header conditions are incorrect
549843 - BAPI_PO_CREATE: Technical fields available
539950 - BAPI_PO_CREATE1: n condition records for a condition type
537221 - BAPI_PO_...: Conversion factors incorrect for conditions
529531 - BAPI_PO_CHANGE: New pricing is no longer possible (V1227)
529287 - BAPI_PO_CHANGE: Price merge is not possible
428621 - EnjoySAP purchase order BAPIs - price det. & cond. change
425996 - BAPI_PO_CREATE1: Termination msge 00151 w/ header conditions
399791 - Enjoy-BAPI_PO...: Condition values are not transferred
197958 - BAPIs for purchase orders - Missing functions -
How to make record dirty programmatically after query record from db
Hallo,
JDeveloper 10.1.3.2
I try to make record dirty after I query records.
In VORowImpl.java I overwrite the populate() method:
protected void populate(ResultSet resultSet) {
super.populate(resultSet);
setStatus("J");
If I query DB for the first time, everything is ok.
For the second time I get the errror:
500 Internal Server Error
oracle.jbo.TooManyObjectsException: JBO-25013: Te veel objecten komen overeen met de primaire sleutel oracle.jbo.Key[1 ].
at oracle.jbo.server.EntityCache.add(EntityCache.java:555)
at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1762)
at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2151)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1073)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2946)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2839)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2252)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2127)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1501)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2818)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2674)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2634)
at oracle.jbo.server.ViewRowSetIteratorImpl.getRowAtRangeIndex(ViewRowSetIteratorImpl.java:722)
at oracle.jbo.server.ViewRowSetImpl.getRowAtRangeIndex(ViewRowSetImpl.java:3672)
at oracle.jbo.server.ViewObjectImpl.getRowAtRangeIndex(ViewObjectImpl.java:6288)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel._bringInToRange(FacesCtrlRangeBinding.java:541)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel.setRowIndex(FacesCtrlRangeBinding.java:504)
at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.setRowIndex(JhsCollectionModel.java:361)
at oracle.adf.view.faces.component.UIXCollection.setRowIndex(UIXCollection.java:379)
Thanks,
Anna
Edited by: adekkers on 11-nov-2010 16:13I'll try to explain.
I have a db-view.
I have instead of triggers on this view.
The user queries my view. A set of records appears on screen (for example 15).
The user changes some attributes for 2 records.
Other records stay in retrieved state. Or he does not change any record at all
The user wants all 15 records to be committed in database. Even this records are not updated on screen.
There is logics in instead of triggers, that makes real table-updates.
I'm not a guru in jdeveloper.
I thougt it is possible make records dirty after retrieving from database. In that case the jdeveloper can use normal commit-button without extra coding from my side.
The problem: I can not put retrieved record in dirty status.
If I use populate method in VO I get the error when I query my view for the second time.
Dimitar, sorry.
I did not understand your explanation.
Can you please give some example.
Thanks,
Anna -
Condition Record Updation Problem
Hi
Kindly note that after i maintain a condition in VK11 ,in the sales order item level , when i click on the Update button it does not get effected ,ie the condition is not updated in the line item in the order
Please advice
Regards
AkHi,
As I understood from your question, first time when you create the line item, price was picked correctly. And then when you click on the Update button, if went off. Am I right?
If that's the case, do like this. You'll be able to identify the issue.
First add another line item there with the same material. Then go to LI/ Condition tab. If the price is there, click on the Analysis button. Under that check your condition type. You'll be able to see how the condition record was determined.
Then do the Update button option.
Then again try with the Analysis button option.
You should be able to compare this with your previous findings and identify the cause.
Best regards,
Anupa -
Hi-I have an old Adobe Audition 1.5 and I used to be able to hear as I was recording. After updating computer and reloading Adobe Audition 1.5, can no longer hear as recording but only on playback. Please advise.
All the monitoring is done through your sound device, not Audition. When you updated your PC, the sound device playback settings would have been reset. One of them includes input socket monitoring, and it's this that you need to reinstate. Since we don't know what sound device you are using, that's as much as we can tell you, except that if it's an internal device, you'll need to open the volume control options and alter it there. This varies between OS versions though...
-
The latest Firefox update, installed this morning 6/21/2011, disabled McAfee. After installation, a window appeared stating that McAfee was not compatible and couldn't be enabled. This is NOT ACCEPTABLE! Please let me know how to uninstall this update.
Upgrade your browser to Firefox 8 and check
* getfirefox.com -
Checkboxes don't update after executing SQL query
I have a table bound to data from a database.
in order to fill the data, i execute the RowSet after setting several required parameters (WHERE foo = ?).
I use
try {
getSessionBean1().getModule_has_featureRowSet().setInt(1,userID);
getSessionBean1().getModule_has_featureRowSet().setInt(2,submoduleID);
getSessionBean1().getModule_has_featureRowSet().execute();
module_has_featureDataProvider.refresh();
} catch (SQLException ex) {
ex.printStackTrace();
}This works, but when I want to change to other parameter userID and submoduleID the checkbox (boolean values) do not update after calling the DataProvider to refresh.
Anyone understands what I would like to know and can help me?
Thanks.I still struggle with this problem.
Ok, what I do is the following. I have one table (tbl1), where you can select a row. according to the row, another table (tbl2) is filled with data from a dataprovider and information from the row selected in tbl1.
i do this using
public void radioButton1_processValueChange(ValueChangeEvent event) {
// ;) Ugly, I know.
int submoduleID = Integer.parseInt((String) RadioButton.getSelected("buttonGroup")) + 1;
try {
getSessionBean1().getModule_has_featureRowSet().setInt(1,userID);
getSessionBean1().getModule_has_featureRowSet().setInt(2,submoduleID);
getSessionBean1().getModule_has_featureRowSet().execute();
module_has_featureDataProvider.commitChanges();
module_has_featureDataProvider.refresh();
} catch (SQLException ex) {
ex.printStackTrace();
}This should change the content of tbl2. And it does most of it. It retrieves the correct amount of rows and display a correct string field. The boolean entries, represented by text boxes, are not changed.
I was checking, if there is something like 'refresh' or 'rerender' or similar in order to refresh the table with the information from the dataprovider. I think hte problem is that the checkboxes are not rerendered correctly after executing DataProvider.refresh().
Can anyone help me on this?
thanks! -
Equipment master record updation in Asset master record
Dear Friends,
I have a query with regard to Equipment master record updation in asset master record. Here we have created equipment in Plant maintenance module and we have created asset in AS01 tcode. When we give the asset number to PM module guys, they can easily update the asset number in their equipment master by changing the equipment master record.
But when we enter the same in asset master record in 3rd tab allocations tab, initially it is accepting the equipment details like equipment number, category, object and tech description, but the same is not available after saving.
Please let me know whether I have to do any customization in asset settings inorder to get the equipment number populated in asset master record.
Thanks,
Dwarak.Hi,
Thanks a lot for your reply.
I did both these customization, but still it is not working. Any other customization to be done? Please let me know.
And also in asset master record in allocations tab, do we need to select sync and workflow checkbox?
Thanks
Dwarak. -
PO without Info record Updation
Dear All,
I hope you all are fine and this is my first message to this forum.
We have a client specific requirement and in that client wants PO without Info Record updation. Info record will be there but for Material and Vendor only not for Price.
The situation is when we create a PO, the Price will not be pick up from Info Record conditions and from last PO Price.Means we have to manually enter the price and the info record will not be updated for price and cleint's other requirement is in the info record Order price history is not to be updated when any PO is created.
Please let me know the steps if anyone works on this issue.
Havea good day
Regards
LovkeshHi Lovkesh,
First of all dont create a info record manually.
Just go a PO with inforecord indicator turned on.
this will make a info record to be created automatically by the system when u post the PO.
this inforecord will be with or w/o plant depending on the setting u specify in customizing under define condition control at plant level in SPRO.
then under customizing for buyer values select not to copy from the last purchasing document.
info record gets updated in 2 ways normally 1> from previous PO document 2> from conditions entered manually or if the info record update was turned on in any of the purchasing documents.
after blocking these 2 ways info record will not get updated.
also make sure in ur case for the material and vendor combination there exists any quotation or agreement orcontractbecause inforecord gets updated automatically if it is turned on(info update indicator) in these purchasing documents also----if any of these exists then select no update of inforecord in all of them.
reply me to get updated
raja. -
Is it possible to update a query with another query?
I'm trying to update a query with another query (see attached
code). Here's my setup: I've got a table in an Access database in
which I enter a string into a form and update. This string
corresponds to a single record in another table of the same
datasource. The first table has only one record to provide the
second, which has many and will have more. Basically what I'm
wondering is: Is this a valid thing to do in coldfusion? If not
please help with an alterate method. I'm still a novice at
coldfusion.
The overall effect I'm going for is to display the one record
as a featured truck profile on the web site:
www.truckerstoystore.net.
I currently get an error when I try to display the page with the
current query setup.
Check this page to see the error:
www.truckerstoystore.net/currentTOW2.cfm
Help on this issue is very much appreciated.
------------------------------------------------------------------------------------------ -----------------------------------------------------------------------I think this is what you are after
<!--- this query will get all the records from the DB
--->
<cfquery name="cTOW" datasource="tow">
SELECT *
FROM currentTOW
<!--- Do you need to find a particular record in the
database --->
<!--- If so, then you need a 'where' clause in here
--->
</cfquery>
<!-- Loop the cTOW query for each record returned -->
<cfloop query="cTOW">
<!--- For the record returned from the cTOW query you now
need to update the table --->
<!-- Update the table -->
<cfquery name="currentTOW" datasource="tow">
UPDATE Your tblName
SET
Dataname = cTOW.DataValue
</cfquery>
</cfloop>
thats it
PS: I think your original query needs modifying. To return
the exact records that you want to update from the original table.
ie: Primary and foreign key relationship -
Purch Info Record Update - Difference of Ctyp PBXX PB00
Hi Sap Gurus!
Would like to seek your help! When I am using Ctype PBXX in Purchase Order, Purchasing Info record Price is not updating but if Ctype PB00 is used Purchasing Info Record Price is updated after creation of Purchase Order.
What is the difference of Ctype PB00 and PBXX?
Please advice.Follow this answered links
What is the difference between Condition Type PB00 and PBXX
Difference between PB00 and PBXX condition types?
PB00 and PBXX- Difference ? -
Disable the Update Opportunity Totals
Has anyone come up with a way of disabling the "Update Opportunity Totals" button on the Opportunity Page. Without going into detail, under certain circumstances, when our users click the button we come up with incorrect totals. This is due to our implmentation and how we populate the frequency & # of periods, not Oracle.
I looked into trying to add something in the in HTML Head Additions section of the custom web applet, that would disable just this button, but could not come up with anything.
The code that is executed when the button is selected is:
<div tabindex="5" onmouseover="toggleNavButton(this);" onkeypress="onButtonPress(this);" onmouseout="toggleNavButton(this);" class="buttonChildTitleBarTD" onclick="doNavigate('\/OnDemand\/user\/OpportunityDetail?OMTGT=RevenueList&OMCR0=1-19FGQ67&OpptyDetailForm.Id=1-19FGQ67&OMRET0=OpportunityDetail%3focTitle%3dDixie%2bPAS%26OMTGT%3dOpptyDetailForm%26OMTHD%3dOpportunityDetailNav%26ocEdit%3dY%26OpptyDetailForm.Id%3d1-19FGQ67%26OCTYPE%3d%26ocTitleField%3dName&OMCBO=Opportunity&OCTYPE=&OMTHD=UpdateTotals',true, this, null);" id="ProductRevenueChildListTB28508260*1"> Update Opportunity Totals </div>
Any thoughts?You can't remove the Update opty total button but I had a similar issue, we capture revenue in 2 fields mthly and inital setup and it wouldn't use both and send it to the Opty total so we looked at redesigning it. I have 2 new currency fields and when a record is updated it divides the initial setup by # periods and adds that figure to the monthly figure and puts it in the currency field that displays in related items. The update Opty button then works with the correct numbers. Of course this goes in right after R16 because then I can remove the original Monthly revenue field off the related items section.
cheers
Alex -
SIS- Updating- Open Orders value and quantity not updated after delivery
Dear Guru's
in the SIS transaction MCTA
when i create the sales order the values in the fields
incoming sales ,sales,credit memo,open orders ,open orders etc
are getting updated correctly
but after creating the delivery,pgi and billing these values are not getting updated .like the reduce in the open order,open oerder qty they same as earlier afer creating sales order.
if i cancel the order then the values are again updated accordingly
can you please suggest me a solution for this problem,why this is happening of not geting updated after doing delivery and pgi
waiting for the reply
thanks in advance
ramanaHi,
Your query revolve's around LIS reporting. For any reporting, SAP recommended solution is SAP BI
FYI SAP is not going to continue Support for LIS Based reporting.Developement on LIS based reporting is already stopped.
Companies still use this tool to manage their reporting.
Not all the key figures are updated by default. In your case you will have to carry out the enhancement.
Please go through the following path:
SPRO - Logistics General - Logistics Information System --- Check Help on Data Enhancement.
Rgds -
What are the valid values for CPU in conditional disable structure config?
After diggin' around for some time (but to no avail)...
Does somebody know the valid values for the CPU (symbol) in the conditional disable structure configuration or where I can find this information?
Best regards,
HorstNot sure but you can try this:
http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/app_apptarget_cpu/
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
How to update cost condition VPRS and Updation from VPRS to new cond ZVPR
Hi All,
How to do and is there any way to update the VPRS cost condition whenever vendor sends confirmation of material and cost after purchase order.
After receiving the confirmation form the vendor,the VPRS cost condition should get updated in the system automatically.
We have one cost condition type ZVPR which is same and consists of same properties of VPRS. How to update this ZVPR condition from VPRS Condition.
Thanks in advance....
Regards....Venkat
Edited by: venkat t on Feb 16, 2009 11:57 AMHi venkat
Check the link
[How to update cost condition VPRS and Updating from VPRS to new cond ZVPR;
NOTE : Dont post in many forums
Regards
Srinath
Maybe you are looking for
-
How do I get pop ups to stop even with pop up blocker enabled?
Hi there! I need help soooo badly Recently I have been getting all of these pop ups on my computer and they wont stop. My computer speed is still perfectly fine but the pop ups wont quit on my Safari and Google Chrome. I did download ClamXav app on t
-
Problem during creation of hierarchy
hai gurus, my problem is while creating hierarchy on particular char InfoObject it will shows an error "The import parameters were not filled correctly" in a pop box. how can create a hierarchy pls help me.
-
I monitor Google Analytics for a client and have noticed that there is a factor of 3+ difference between the visitor rates provided by Google Analytics (say 4,000/mth) and BC (say 13,000/mth). Can anyone advise how BC measures a visitor?
-
How Do I Find My Previously Asked Questiions?
When I sign in, I would expect to be able to find my previously asked questions. Where are they? This site is as ponderous as H**L. A couple of days ago I was able to find the questions that I posted, but purely by accident.
-
Hi all, We experience the problem that workflows strangely won't be saved in the repository, hence when we open the workflow afterwards, we still have a blank sheet. But when we "save as" the file to another location, it contains the desired content.