Facing problem While deleting rows and adding rows
Hi,
In my form i have pass values to table rows by selecting values from Dropdown list.
i have taken 3 hidden obj and passing the dropdown values to hidden objects and then from hidden objects to table rows.
h1,h2,h2 are hidden obj
EMPNO,EMPNAME, DESIGNATION are drop downlist
i have add button with the following code
if(form1.P1.ItemSet.EMPNO.rawValue != null){
form1.P1.ItemSet.instanceManager.addInstance();
form1.P1.execInitialize();
var dynamicArray = form1.P1.resolveNode("ItemSet[" + arrayIncri + "]");
dynamicArray .EMPNO.rawValue = form1.P1.hidden.h1.rawValue;
dynamicArray .EMPNAME.rawValue = form1.P1.hidden.h2.rawValue;
dynamicArray .DESIGNATION.rawValue = form1.P1.hidden.h3.rawValue;
arrayIncri++;
form1.P1.SF1.EmpID.rawValue = null;
form1.P1.SF1.EmpName.rawValue = null;
form1.P1.SF1.Designation.rawValue = null;
My delete button code is
_ItemSet.removeInstance(this.parent.index);
form1.P1.execInitialize();
My problem is adding is happening while click and deleting is happening to the perticular row but once i delete paricular row then again if i want to add new row then it is taking null values . and agian if i click add then the values are passing to the next row
means i am getting null row if i do add funtionality after delete funtionality....
Please help me out in this..
Subba reddy
Hi,
I got the answer for this query, but when i do download and upload of the files from R/3 to GRC. Still it is not showing me the new transactions which were developed in R/3.
it means when i try to add the transaction in a function, under search mode with respective of the r/3 system, it is not showing me the search results.
What i did was, i run the reports /VIRSA/ZCC_DOWNLOAD_DESC & /VIRSA/ZCC_DOWNLOAD_SAPOBJ and uploaded them as below in GRC.
Text Objects - /VIRSA/ZCC_DOWNLOAD_DESC
permissions - /VIRSA/ZCC_DOWNLOAD_SAPOBJ
For each of the download i get 2 files for each and i tried to upload both of them but no luck.
Please suggest me, as am missing anything in this process
SV
Similar Messages
-
Facing problem while tieing item and locator
Hi All,
I am facing one problem While creating a relation between Item and locator using API INV_LOC_WMS_PUB.CREATE_LOCATOR.CREATE_LOC_ITEM_TIE.
Error: PLS-00225: subprogram or cursor 'CREATE_LOCATOR' reference is out of scope
Line: 16
Below is the code which i am using
create or replace procedure Item_loct(retcode out varchar2,errbuff out varchar2)
is
g_return_status VARCHAR2 (1) := fnd_api.g_ret_sts_success;
g_msg_count NUMBER DEFAULT 0;
g_msg_data VARCHAR2 (2000) DEFAULT NULL;
l_msg_index_out NUMBER;
cursor c1 is select *from item_inv_loc;-- where rownum<num_rec;
begin
for i in c1 loop
FND_GLOBAL.APPS_INITIALIZE( FND_GLOBAL.USER_ID,FND_GLOBAL.RESP_ID,FND_GLOBAL.RESP_APPL_ID);
INV_LOC_WMS_PUB.CREATE_LOCATOR.CREATE_LOC_ITEM_TIE(p_inventory_item_id => i.item_id,
p_organization_id => i.organization_id,
p_subinventory_code => i.subinventory_code,
p_inventory_location_id => i.locator_id,
p_status_id => i.loc_status,
x_return_status => g_return_status ,
x_msg_count=> g_msg_count,
x_msg_data => g_msg_data);
fnd_file.put_line(fnd_file.log,'Return Status = ' || g_return_status);
if g_return_status='S' THEN
FND_FILE.PUT_LINE(fnd_file.log, ' Sucess');
elsif ( g_msg_count > 1) THEN
FOR j IN 1 .. g_msg_count
LOOP
oe_msg_pub.get (p_msg_index => j,
p_encoded => fnd_api.g_false,
p_data => g_msg_data,
p_msg_index_out => l_msg_index_out
FND_FILE.PUT_LINE(fnd_file.log, l_msg_index_out || '. ' || g_msg_data);
END LOOP;
-- ELSif
-- FND_FILE.PUT_LINE(fnd_file.log, g_msg_data);
end if;
end loop;
end ;
Please tell where i am doing th wrong? If you have sample program please post itHi,
Please find the corrected code pasted below, also the pasted below is the value which has to be passed as an argument to the procedure.
---------------Correct one----------------------------
INV_LOC_WMS_PUB.CREATE_LOC_ITEM_TIE(
x_return_status => g_return_status ,
x_msg_count => g_msg_count,
x_msg_data => g_msg_data,
p_inventory_item_id => i.item_id,
p_item ------------------------------------------------------------------- This one was missed out.
p_organization_id => i.organization_id,
p_organization_code ------------------------------------------------------------------- This one was missed out.
p_subinventory_code => i.subinventory_code,
p_inventory_location_id => i.locator_id,
p_locator ------------------------------------------------------------------- This one was missed out.
p_status_id => 1
p_par_level ------------------------------------------------------------------- This one was missed out.
** procedure : create_loc_item_tie
** description : For a given set of organization, subinventory, item and
** locator, this API ties the given item to the given locator.
** i/p :
** p_inventory_item_id
** Identifier of item .
** p_item
** Concatenated segment string with separator of the item.
** Either P_inventory_item_id or the p_item MUST be passed
** p_organization_id
** Identifier of organization
** p_organization_code
** Organization code of organziation in which locator is to
** be updated. Either p_organization_id or p_organziation_code
** MUST be passed
** p_subinventory_code
** The subinventory to which the locator need to be attached to .
** p_inventory_location_id
** Identifier of locator to be attached to the specified subinventory
** p_locator
** Concatenated segment string with separator of the locator to be
** updated. Eg:A.1.1 either p_inventory_location_id or
** p_concatenated_segments MUST be passed.
** p_status_id
** Identifier of status
** p_par_level Indicates the the maximum quantity
** o/p:
** x_return_status
** return status indicating success, error, unexpected error
** x_msg_count
** number of messages in message list
** x_msg_data
** if the number of messages in message list is 1, contains
** message text
* Use this procedure to assign an item to a locator in an organization.
* For a given organization, subinventory, item and locator, this procedure ties
* the item to the locator.
* @param x_return_status Return status indicating success or failure
* @paraminfo {@rep:required}
* @param x_msg_count Returns the number of messages in message list
* @paraminfo {@rep:required}
* @param x_msg_data Returns the message text if the number of messages in message list is one
* @paraminfo {@rep:required}
* @param p_inventory_item_id Identifier of the item that is to be tied to a locator is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_item Concatenated segment string (with separator) of the item to be tied to a locator is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_organization_id Organization Id in which the item and locator exist, is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_organization_code Organization code in which the item and locator exist, is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_subinventory_code Sub inventory to which locator belongs is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_inventory_location_id Identifier of locator to be attached to the specified item is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_locator Concatenated segment string (with separator) of the locator is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_status_id Material Status of the locator is passed as input in this variable
* @paraminfo {@rep:required}
* @param p_par_level PAR level for the Item-Locator is passed as input in this variable
* @rep:scope public
* @rep:lifecycle active
* @rep:displayname Create Item-Locator Tie
Regards,
Yuvaraj.C -
Facing problem while deleting a child record in hibernate.
I am trying to update a child records i have following scenario
master record (having one to many assciation with child table cascade=all in .hbm.xml configuration file) ===> customerInfo
detail record set (having many to one assciation with master table cascade=all in .hbm.xml configuration file) ===> customerAccountsSet
i do following steps to update a record
1) get the customerInfo objetc from session successfully
2) get the customerAccountsSet = customerInfo.getCustomerAccounts();
3) traying to add a new customerAccount say customerAccount1 to be saved for the first time without primery key in it
4) traying to update a customerAccount say customerAccount2 to be updated with primery key in it
5) traying to add a delete customerAccount say customerAccount3 with primery key in it
only step 5 is not executed properly as i can still see the deleted record in db , although save and update steps have been successfully completed in db.
can anybody tell me whats going wrong here.code for steps 2,3,4,5 is as follows in the same order
2)Set customerAccountSet = (Set) customerInfo.getCustomerAccounts();
3)customerAccountSet.add(customerAccount);
4)customerAccountSet.add(customerAccount);
5)customerAccountSet.remove(customerAccount);Hi Nitesh,
1) Java stack should be up while trying to connect to R/3 backend.
2) You can check the JCOs by doing the following:
Type the following url http://<server name>:<port number>
Click on Webdynpro Console
Enter the user name and password.(You need the system admin right on the EP to do the same)
You can find the JCOs.
3) Better you contact the basis guy who had created the JCOs earlier and get the JCOs tested.
Hope it helps.
Regards.
Rajat
Edited by: Rajat Jain on Oct 12, 2009 1:47 PM -
While deleting sms in a row one one ios 7 hang up and restart. This is happening in my iphone 4. Ps help. Not happy with update, it is extremely slow. Would request apple to provide an option of restoring it back to ios 6
I'm having same problem with my iPhone 4. Even after restoring twice. Simple tasks casue the phone to lock up and restart, which, thanks to iOS 7 takes much longer than with iOS 6.
I love my phone, but it is almost unsuable after update. -
Delete in xsql:dml vs xsql:delete-request and returned rows attribute
There is a difference in the number of rows returned between using a delete in xsql:dml vs xsql:delete-request. If I issue a delete via xsql:dml and the row I wish to delete is not in the table, then I get a result with rows equal to 0 as expected. However if I issue a delete via xsql:delete-request and the row I wish to delete is again not in the table, then I get a result with rows equal to 1.
It appears that the value of rows in the response to xsql:delete-request is the number of rows to be processed, ie the number of rows in the posted document, whereas the value of rows in the response to xsql:dml is the number of rows processed in the database.
I'd expect that the result that we want is the number of rows processed in the database. Thus xsql:delete-request should use the rows attribute in the response to reflect the number of rows processed in the database and thus be consistent with xsql:dml, and possibly use another attribute to reflect the number of rows to be processed.
The same problem occurs with an update in xsql:dml vs xsql:update-request.
http://aetius/xsql/demo/dmldelete.xsql?cxn=demo&bind=ename&ename=COMPAQ&sql=delete+from+EMP+where+ENAME+%3d+?
result is
<xsql-status action="xsql:dml" rows="0"/>
where dmldelete.xsql is
<xsql:dml
null-indicator="yes"
connection="{@cxn}"
bind-params="{@bind}"
xmlns:xsql="urn:oracle-xsql">
{@sql}
</xsql:dml>
http://aetius/xsql/demo/reqdelete.xsql?cxn=demo&table=EMP&key=ENAME
where posted document is
<ROWSET><ROW><ENAME>COMPAQ</ENAME></ROW></ROWSET>
result
<xsql-status action="xsql:delete-request" rows="1"/>
where reqdelete.xsql is
<xsql:delete-request
connection="{@cxn}"
key-columns="{@key}"
table="{@table}"
xmlns:xsql="urn:oracle-xsql">
</xsql:delete-request>
Steve.If you post as an HTML parameter, then you can directly reference the parameter value as either a lexical parameter:
<xsql:dml>
insert into foo(xml_column) values ('{@paramname}')
</xsql:dml>
or as a bind parameter:
<xsql:dml bind-params="paramname">
insert into foo(xml_column) values (?)
</xsql:dml>
I'd recommend the latter since it's more robust to the presence of quotes in the XML that's being posted.
If you post the XML HTTP body, then you'd have to write a custom action handler that called the getPageRequest().getPostedDocument() to get hold of the posted XML Document. -
i am facing problems while openin an application in facebook and other places.when i go to the application,an error shows and firefox closes autmatically either i send error reports or dont.....plz help
Notes:
1) Please use the code tags when posting code or JNLP/HTML. It helps to retain indentation and avoids asterisks and plus sings being interpreted as formatting marks. To do that, select the code/JNLP etc. and click the CODE button seen on the Plain Text tab of the message posting form.
2) That launch file is invalid. You might check it (and the project in general) using JaNeLA.
3) The only place that SimpleSerial class could be, that the JRE would find, is in the root of aeon.jar. Is it actually there? -
Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
Regards
JerelHi, thank you for your replies, I found out few things about my servlet, and its portability
and i have few questions, although i marked this topic as answered i guess its ok to post
I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
of the modified files to the user for them to download the modified files.
What i am using to get the tempdir i will paste
File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
System.out.println(baseurl);
baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
links to the user for download ?
and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
And i want to create unique directory for each request made to the servlet , so file names dont clash.
one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
Reply A.S.A.P. please..
Thanks and regards,
Mihir Pandya -
Update Failed for Sum of previous row and current row
Hi i need to update the column length of the previous row and current row so i followed this method but i'm unable to update what is problem in my syntax
SQL> begin
2 DECLARE Total number = 0;
3 UPDATE StringOutput set Total = SumOfLength = Total + ColLength;
4 end;
5 /
DECLARE Total number = 0;
ERROR at line 2:
ORA-06550: line 2, column 22:
PLS-00103: Encountered the symbol "=" when expecting one of the following:
:= . ( @ % ; not null range default character
if i update without the variable total then my command is succeeded
UPDATE StringOutput set SumOfLength = ColLength;
but i need the previous row+current row count in SumOfLength
Thanks!Getting this error now
SQL> begin
2 DECLARE Total number := 0;
3 UPDATE StringOutput set Total = SumOfLength = Total + ColLength;
4 end;
5 /
UPDATE StringOutput set Total = SumOfLength = Total + ColLength;
ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00103: Encountered the symbol "UPDATE" when expecting one of the following:
begin function pragma procedure subtype type <an identifier>
<a double-quoted delimited-identifier> current cursor delete
exists prior
The symbol "begin" was substituted for "UPDATE" to continue.
ORA-06550: line 3, column 46:
PLS-00103: Encountered the symbol "=" when expecting one of the following:
. ( , * @ % & - + ; / at mod remainder rem return returning
<an exponent (**)> where || multiset
The symbol ". was inserted before "=" to continue.
ORA-06550: line 4, column 4:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the
following:
( begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted -
Interesting scenario- user facing error while deleting a sales order
Hello All,
I have one interesting scenario and want feedback from your side as soon as possible
Scenario-
One of my clients is facing a problem while deleting a sales order.
the sales order he is trying to delete is the old order created in 2007.
when i see the document flow the user has created the export order, then delivered it, invoiced and sent it to accounting, accounting document is also cleared. then he cancelled the invoice, reverse PGI and deleted the delivery. the status of the sales order system is showing is being processed. but please note in this case after reversing PGI and deleting a delivery the delivery document disappears from the document flow.
document flow looks like this
Order - 200004715 Being processed
invoice- 700005310 completed
accounting 700005311 cleared
Cancel Invoice 700005315 completed
Accounting 700005316 cleared
Now, in 2008 user is trying to delete the sales order but he is unable to do the same. system is giving him message "unable to delete sales order because of subsequent document 70005310 (which is invoice number)"
Can somebody please throw some light on this problem.
Thanks in advance.Hi,
As fas as I know, this is standard system behaviour. The reason - you have done PGI (which has created a material document as well as accounting doc) and invoiced & reversed (which again has created accounting documents & rversal documents). All these documents are referencing the sales order.
If you delete sales order, sales order number gets deleted from VBAK /VBAP tables.
Hence, in relational data base scenario (meanin SAP in this context), deletion of sales order after creation of subsequent documents is not feasible.
Hope it clarifies the issue.
Regards
Murali -
Matrix Add Row and Duplicate Row
Hi All,
Can anybody suggest me how to work on Add row and duplicate row in any document table.
Lets take one example
Sales order document
In this doc we have table format where we specify item no, item description etc. In this table when we right click on particluar row we have option for add, delete, duplicate rows..etc.
wht i would like to know is that when we click add row .....one row is added and number is incremented under # column. Hw to perform and display this auto increment/ decrement of number for these rows under this # column
thanks
harishHi,
I tried following both code, but in that i am geting value. Means i am getting .Value Why i not getting value.
matrix.Columns.Item("V_-1").Cells.Item(pVal.Row).Specific.value = matrix.RowCount
and i also tried for "AddRow",
If pVal.BeforeAction = False Then
Select Case pVal.ItemUID
Case "AddRow"
matrix = form.Items.Item("mtr").Specific
If matrix.RowCount > 0 Then
If Trim(matrix.Columns.Item("V_-1").Cells.Item(matrix.RowCount).Specific.value) = "" Then
End If
End If
End Select
End If
In both example i not getting .Value.
Plz tell y ?
Thanks -
I am facing problem while i create a xls sheet with some Header.
I am facing problem while i create a xls sheet with some Header.
If i give the hed names as FirstName , LastName its comming fine.
FirstName | LastName
--------------------------|------------------------
But when i specify a string like New"Deal , New"approach .
= "New"Deal " | =" New"approach" .
--------------------------|------------------------
Problem is:
It's adding = sign in front of the header name.
I dont want that = to be in front of the headername.
//rep.addColumn((String) itr.next());
The above code is used to add the header name to the xls sheet.
The argument will come as New"Deal
But after seeing xls it has become ="New"Deal "
Edited by: SUNJava2008NY on Jun 12, 2008 11:38 PMWhat is the tree structure created for the property of the componentB?
Can you try the below code in your componentB jsp and check whether you are getting the property value
Resource resource = slingRequest.getResource();
String description = ((String) ResourceUtil.getValueMap(resource).get(
"./description", String.class)); -
Facing problem while going to catch return result from web-services.
Hi everybody,
I am new to BPEL. I am facing problem while going to catch the attributes of resultsets returning from web-services(QAS). As far as my knowledge, two types of results it should return - XML entities and another is attributes which is coming as the part of XML entitites. I am able to catch the XML entities, but can't catch the attributes under it. Even, I am not able to see whether web-services returning something within that field.
When, I tried to catch the attribute and store to a temporary varilable using the following code:
*<assign name="AssignQASDoGetAddress1">*
*<copy>*
*<from variable="InvokeQAS_DoSearch_OutputVariable"*
part="body"
query="/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded"/>
*<to variable="temp"/>*
*</copy>*
*</assign>*
but, I am facing the following selectionFailure errors after running it:
*"{http://schemasxmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.*
-<selectionFailure xmlns="http://schemasxmlsoap.org/ws/2003/03/business-process/">
-<part name="summary">
*<summary>*
empty variable/expression result.
xpath variable/expression expression "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')" is empty at line 269, when attempting reading/copying it.
Please make sure the variable/expression result "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')"is not empty.
*</summary>*
*</part>*
*</selectionFailure>*
Getting this error it seems to me that web-service is returning nothing, but, it returns something as it has been catched using a method called isPostcodeRecoded() Java Code in Oracle ADF. This method has been used as it should return boolean whereas for catching the xml entities using java code we used the method like getPostcode(), getMoniker().
For your information, we are using Jdeveloper as the development tool for building the BPEL process.
Am I doing any syntax error. Please consider it as urgent and provide me asolution.
Thanks in advance.
Chandrachur.Thanks Dave and Marc, for your suggestions. Actually what I found is QAS web-service is returning nothing as attributes when the attributes are set to the default value. For example, following is the part of the wsdl of the result which QAS webservice returns.
<xs:element name="QASearchResult">
- <xs:complexType>
- <xs:sequence>
<xs:element name="QAPicklist" type="qas:QAPicklistType" minOccurs="0" />
<xs:element name="QAAddress" type="qas:QAAddressType" minOccurs="0" />
</xs:sequence>
<xs:attribute name="VerifyLevel" type="qas:VerifyLevelType" default="None" />
</xs:complexType>
</xs:element>
<xs:complexType name="QAPicklistType">
- <xs:sequence>
<xs:element name="FullPicklistMoniker" type="xs:string" />
<xs:element name="PicklistEntry" type="qas:PicklistEntryType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Prompt" type="xs:string" />
<xs:element name="Total" type="xs:nonNegativeInteger" />
</xs:sequence>
<xs:attribute name="AutoFormatSafe" type="xs:boolean" default="false" />
<xs:attribute name="AutoFormatPastClose" type="xs:boolean" default="false" />
<xs:attribute name="AutoStepinSafe" type="xs:boolean" default="false" />
<xs:attribute name="AutoStepinPastClose" type="xs:boolean" default="false" />
<xs:attribute name="LargePotential" type="xs:boolean" default="false" />
<xs:attribute name="MaxMatches" type="xs:boolean" default="false" />
<xs:attribute name="MoreOtherMatches" type="xs:boolean" default="false" />
<xs:attribute name="OverThreshold" type="xs:boolean" default="false" />
<xs:attribute name="Timeout" type="xs:boolean" default="false" />
</xs:complexType>
<xs:complexType name="PicklistEntryType">
- <xs:sequence>
<xs:element name="Moniker" type="xs:string" />
<xs:element name="PartialAddress" type="xs:string" />
<xs:element name="Picklist" type="xs:string" />
<xs:element name="Postcode" type="xs:string" />
<xs:element name="Score" type="xs:nonNegativeInteger" />
</xs:sequence>
<xs:attribute name="FullAddress" type="xs:boolean" default="false" />
<xs:attribute name="Multiples" type="xs:boolean" default="false" />
<xs:attribute name="CanStep" type="xs:boolean" default="false" />
<xs:attribute name="AliasMatch" type="xs:boolean" default="false" />
<xs:attribute name="PostcodeRecoded" type="xs:boolean" default="false" />
<xs:attribute name="CrossBorderMatch" type="xs:boolean" default="false" />
<xs:attribute name="DummyPOBox" type="xs:boolean" default="false" />
<xs:attribute name="Name" type="xs:boolean" default="false" />
<xs:attribute name="Information" type="xs:boolean" default="false" />
<xs:attribute name="WarnInformation" type="xs:boolean" default="false" />
<xs:attribute name="IncompleteAddr" type="xs:boolean" default="false" />
<xs:attribute name="UnresolvableRange" type="xs:boolean" default="false" />
<xs:attribute name="PhantomPrimaryPoint" type="xs:boolean" default="false" />
</xs:complexType>
here the attributes like FullAddress, PostcodeRecodedare , etc. are not being return by the web-service when it is getting the default value false. But, if it gets true then , it is being displayed at the BPEL console.
Do you have any idea how can I catch the attributes and its value even when it gets the default value which is already set. Previously, it was returning(it was not being displayed at the console).
Thanks once again for your valuable suggestions...!!!
Chandrachur. -
Difference between current row and previous row in a table
Hi All,
I am having a problem with the query. Can some of please help me?
I need to get difference between current row and previous row in a table. I have a table, which have data like bellow.
TABLEX
================
Name Date Items
AAA 01-SEP-09 100
BBB 02-SEP-09 101
CCC 03-SEP-09 200
DDD 04-SEP-09 200
EEE 05-SEP-09 400
Now I need to get output like bellow...
Name Date Items Diff-Items
AAA 01-SEP-09 100 0
BBB 02-SEP-09 101 1
CCC 03-SEP-09 200 99
DDD 04-SEP-09 200 0
EEE 05-SEP-09 400 200
Can some one help me to write a query to get above results?
Please let me know if you need more information.
Thanks a lot in advance.
We are using Oracle10G(10.2.0.1.0).
Thanks
Asif, nvl (items - lag (items) over (order by dt), 0)like in
SQL> with test as
2 (
3 select 'AAA' name, to_date('01-SEP-09', 'dd-MON-rr') dt, 100 items from dual union all
4 select 'BBB' name, to_date('02-SEP-09', 'dd-MON-rr') dt, 101 items from dual union all
5 select 'CCC' name, to_date('03-SEP-09', 'dd-MON-rr') dt, 200 items from dual union all
6 select 'DDD' name, to_date('04-SEP-09', 'dd-MON-rr') dt, 200 items from dual union all
7 select 'EEE' name, to_date('05-SEP-09', 'dd-MON-rr') dt, 400 items from dual
8 )
9 select name
10 , dt
11 , items
12 , nvl (items - lag (items) over (order by dt), 0)
13 from test
14 ;
NAM DT ITEMS NVL(ITEMS-LAG(ITEMS)OVER(ORDERBYDT),0)
AAA 01-SEP-09 100 0
BBB 02-SEP-09 101 1
CCC 03-SEP-09 200 99
DDD 04-SEP-09 200 0
EEE 05-SEP-09 400 200
SQL> -
My ipod nano 7th gen no longer shows "Playlists" in the music menu. No changes made other than deleting one and adding one playlist to those synced. Synced fine in late February. Not working as of 3/7/2014.
I would either say that the iOS is correpted due to a software glitch or y have have a hardware problem like bad memory locations that are corrupting the iOS.
- Restore from backup via iTunes. This will install a fresh copy of the iOS. See:
iOS: How to back up
- Restore to factory settings/new iOS device. This will elimate corruptin in the backup causing the problem.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Facing problems while mapping fields in LSMW.
Hi Friends,
i got a requirement to upload the address. Address is in
flat file.requirement is to use LSMW with object 0602 and the
standard report program is RSADRLSM02.This standard report
program uses the structures for uploading are ADR_LSM0 to
ADR_LSM6.But i have some fields in the source structure are
not at all related to the fields in destination structure(i.e ADR_LSM0 to ADR_LSM6)therefore i am facing problem while
mapping the source and destination fields.is there any other
way to map the fields.Please help me it's very urgent.
Thanks in advance.
Regards,
Sumiti Gupta.Thanks for the reply santosh.
GIS FIELD SAP LOCATION
ADDR_GID(10char) EXADR-KUNNR
STR_NO(10) ADR_LSM0-STRT_CODE
STR_NAME (42) ADR_LSM0-STREET
ADDRESS_UNIT(7) ADR_LSM0-HOUSENUM_H
and
ADR_LSM0-HOUSENUM_L
ADDRESS_UNIT_TYPE(5) EVBSD-VBSART
POST_CODE (10) ADR_LSM0-POST_CODE
MUNI_NAME (40) EXADR-APPLDATA
MAILING_CITY(60) ADR_LSM0-CITY_NAME
MAP_PAGE(4) EADRSTRTGRID_GRID_ID
EVAC_ZONE(1) EVBSD-ZEVAC
PIN_NUM (18) EHAUD-PLTXT
in the above fields the structure with ADR_LSM0 are found with the other fields i m not able to find the similar fields in the destination structure.Please help me.
Regards,
Sumiti Gupta.
Maybe you are looking for
-
How to Virtual cube with services works
Hi, How to Virtual cube with services works. can anyone provide me a realtime scenerio. if possible provide some code. Thanks, cheta.
-
Error message while creating configurable material for variant configuration.
Dear All, I want to create configurable material for the purpose of variant configuration. When trying to create configurable material using mm 01 or mm k1, it is displaying an error message that internal number assignment is not possible for the mat
-
ITunes cannot open files in the "MP3 Audio File" format
Lately I've been getting this error that iTunes can't open MP3 files. It happens when I try to double click on an MP3, however, if I click and drag the MP3 into my iTunes library it opens fine. Not a huge problem....just a nuisance. Running iTunes 10
-
Reg. METHOD redefnition
Hi, I tried to inherit a subclass from super class. In se38, i created supercalss and subclasses as local classes. Here in subclass, the system was expecting the keyword REDEFINITION while resuing the same method in the subclass. But when i do the sa
-
Any Better Screen Sharing VNC alternative ?
just stat to use Screen Sharing to control my other PCs at home , not sure is it some setting problem or what. Every time Screen Sharing first start it will run fine, but after a while screen sharing will fail to refresh the remote computer screen at