How To Display Recently Created Records
Hi
I want to display the recently created records into a table in sapui5.
Is there any control to display the recently created records.
Please suggest me if any control is there.
Thanks
Sathish
SQL> WITH T AS (
2 SELECT 'SANKAR' NAME, 10 NO FROM DUAL
3 UNION ALL
4 SELECT 'BALAJI', 20 FROM DUAL
5 UNION ALL
6 SELECT 'SANKAR', 10 FROM DUAL
7 UNION ALL
8 SELECT 'MANI', 30 FROM DUAL
9 UNION ALL
10 SELECT 'BALAJI', 20 FROM DUAL
11 UNION ALL
12 SELECT 'MANI', 30 FROM DUAL
13 UNION ALL
14 SELECT 'BALA', 10 FROM DUAL
15 UNION ALL
16 SELECT 'KALA', 20 FROM DUAL)
17 SELECT NAME, NO
18 FROM (SELECT NAME,
19 NO,
20 SUM(RNO) OVER(PARTITION BY NAME,NO) SNO
21 FROM (SELECT T.*,
22 ROW_NUMBER() OVER(PARTITION BY NAME,NO ORDER BY 1) RNO
23 FROM T))
24 WHERE SNO > 1
25 /
NAME NO
BALAJI 20
BALAJI 20
MANI 30
MANI 30
SANKAR 10
SANKAR 10
6 rows selected.Thanks,
Karthick
Similar Messages
-
Creating BOM using BDC :How to display no of records from flat file under
Hi,
How to display no of records from flat file under one (Alternative BOM) vertically.
When i execute, the records are replacing one by one.
Here my coding:
report ZBOM1
no standard page heading line-size 255.
*include bdcrecx1.
DATA: BEGIN OF bdc OCCURS 0,
matnr(18),
werks(4),
stlan(1),
END OF BDC.
DATA: BEGIN OF BDC1 OCCURS 0,
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
END OF bdc1.
DATA: BEGIN OF BDCDATA OCCURS 0,
matnr(18),
werks(4),
stlan(1),
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
posnr(4),
END OF BDCDATA.
data: ibdcdata type standard table of bdcdata WITH HEADER LINE.
*start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\dilipkumar.b\Desktop\soft.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ','
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = BDCDATA
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*perform open_group.
loop at bdcdata.
perform bdc_dynpro using 'SAPLCSDI' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RC29N-STLAN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29N-MATNR'
'SOFTDRINKS'.
perform bdc_field using 'RC29N-WERKS'
'WIND'.
perform bdc_field using 'RC29N-STLAN'
'1'.
perform bdc_field using 'RC29N-DATUV'
'16.09.2008'.
perform bdc_dynpro using 'SAPLCSDI' '0110'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29K-BMENG'
'1'.
perform bdc_field using 'RC29K-STLST'
'1'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-EXSTL'.
perform bdc_dynpro using 'SAPLCSDI' '0111'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-LABOR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSTP(01)'.
perform bdc_field using 'BDC_OKCODE'
'=FCBU'.
perform bdc_field using 'RC29P-IDNRK(01)'
BDCDATA-IDNRK.
perform bdc_field using 'RC29P-MENGE(01)'
BDCDATA-MENGE.
perform bdc_field using 'RC29P-MEINS(01)'
BDCDATA-MEINS.
perform bdc_field using 'RC29P-POSTP(01)'
BDCDATA-POSTP.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR'.
perform bdc_field using 'RC29P-POSNR'
BDCDATA-POSNR. "'0010'.
perform bdc_field using 'RC29P-IDNRK'
BDCDATA-IDNRK. "'15'.
perform bdc_field using 'RC29P-MENGE'
BDCDATA-MENGE. "'1'.
perform bdc_field using 'RC29P-MEINS'
BDCDATA-MEINS. "'ml'.
perform bdc_dynpro using 'SAPLCSDI' '0131'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POTX1'.
perform bdc_field using 'RC29P-SANKA'
'X'.
*perform bdc_transaction using 'CS01'.
*perform close_group.
CALL TRANSACTION 'CS01' USING IBDCDATA MODE 'A' UPDATE 'S'.
REFRESH IBDCDATA.
endloop.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR iBDCDATA.
iBDCDATA-PROGRAM = PROGRAM.
iBDCDATA-DYNPRO = DYNPRO.
iBDCDATA-DYNBEGIN = 'X'.
APPEND ibDCDATA .
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> NODATA.
CLEAR iBDCDATA.
iBDCDATA-FNAM = FNAM.
iBDCDATA-FVAL = FVAL.
APPEND iBDCDATA .
ENDIF.
ENDFORM.Hi,
the BDCDATA structure must be fnam, fval,dynbegin,dynpro,program.
You have to declare like this and pass this in your CALL TRANSACTION statement.
Please give some other table name for BDCDATA you declared for and also for IBDCDATA. -
How to display the NULL records by multiple XMLTABLE()
First, let me provide the testing data of INSERT and CREATE TABLE sql:
create table xml_t2 (xml_raw XMLTYPE);insert sql, a bit long.....just copy and paste then run it will be OK!
the system warns: Your message exceeds the maximum length of 30000 characters.
So, I place it on the mediafire shariing space
http://www.mediafire.com/?npmot6lgl86dgliTesting SQL:
SELECT t1.years, t1.months,t1.days,t1.hours,t1.value,t2.value
FROM xml_t2,
XMLTABLE ('$d/cdata/F1' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t1 ,
XMLTABLE ('$d/cdata/F2' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t2The condition for now is....In the xml data, I have deleted the month 'Jan' with <F2>tag which is in 2010.
That mean the output of XMLTABLE t2 will not contain the 'Jan' records but it is still remain in XMLTABLE t1.
The problem is that when I use the above SQL to show the t1.value, it will not display the t1.value in 2010 Jan.....it just skipped 'Jan' and becomes 'Feb'...
what i would prefer to display is something like this:
YEARS MONTHS DAYS HOURS t1_value t2_value
2009 Jan 01 01 8 8
2009 Jan 01 02 8 580
2009 Jan 02 01 580 580
2009 Jan 02 02 580 580
2009 Feb 01 01 440 440
2010 Jan 01 01 627 NULL
2010 Jan 01 02 627 NULL
2010 Jan 02 01 367 NULL
2010 Jan 02 02 367 NULL
2010 Feb 01 01 367 849
2010 Feb 01 02 849 849
..............So...the main problem is how to display back the record in JAN in 2010 in t1 XMLTABLE and assign null to the t2 XMLTABLE since it doen't contains this months record.
THANKS for help!!Hi,
What's your database version?
Are you using binary XML storage? (This is the default in 11.2.0.2)
If not you have to explicitely specify it :
create table xml_t2 (xml_raw XMLTYPE)
xmltype column xml_raw store as securefile binary xml;Along with object-relational, it's the best storage strategy to use in conjunction with XMLIndex.
You should also use a structured XML index instead, it's more appropriate than the unstructured index you're currently using :
create index xml_t2_sxi on xml_t2 (xml_raw)
indextype is xdb.xmlindex
parameters (q'#
XMLTABLE xml_t2_xt '/cdata'
COLUMNS
YEARS INTEGER PATH 'F1/name/year',
MONTHS VARCHAR(3) PATH 'F1/name/month',
DAYS VARCHAR(2) PATH 'F1/name/day',
HOURS VARCHAR(2) PATH 'F1/name/hour',
MINS VARCHAR(2) PATH 'F1/name/minute',
VALUE FLOAT PATH 'F1/name/value',
VALUE2 FLOAT PATH 'F2/name/value'
call dbms_stats.gather_table_stats(user, 'XML_T2');Use the query provided by Stew and check the explain plan, you'll see the difference. -
How to display only one record.
Hi Gurus,
Here my requirement is i have 2 pages.
first page having project_number lov,create and tableRN.
once u select the projectnumber and click on the create button it is navigate to secound page,here enter the data and click on the submit button it ll insert into database table and navigate to fitst page and display the data in tableRN what ever u insert the data(this part is over).
but the problem is, in tableRN displays all the records(previous records also displayed)
my requirement is display only one record(click on the submit button at the time of record only).
Plz help me
its very urgent.
Thanks
Seshu.
Edited by: its urgent on Jan 3, 2012 10:52 PMSeshu,
Do u want to display the inserted row...
Regards,
Gyan
www.gyanoracleapps.blogspot.com
www.querenttech.com -
How to display recently viewed pages?
Im looking for advice/tutorial on how to display a vertical
list (<ul>) inside a div which will display say the last few
pages (via their title) which a user has viewed on my site. Just a
simple vertical text based list rather like the list shown on the
"Back" button in IE. Are we talking croutons?
If a user leaves the site then goes back I want the list to
be cleared again.
Ok I know people may say, just use the back button but I
thought it could be a handy feature on the page itself.Hi freidaf1,
You should take a look at the Tile Tabs add-on:
https://addons.mozilla.org/en-US/firefox/addon/tile-tabs/
I believe it will do exactly what you are looking for. You could always open multiple windows, but I think this is a more elegant solution.
Hopefully this helps! -
How to display the real recording time of day in a video?
I want to create a video in which the real recording time of day is displayed though the whole video.
I already tried with the timecode generator, but this shows the time progress of the video being played back. What I need is the real recording TOD of every scene even after lots of cuts and trims and even after changing the clip speed.
Does anyone have an idea, how this could be accomplished?Hi Wei,
As far as I know the parent key needs to be initial for the top row. A workaround would be to create an additional attribute and fill it with an artificial parent key. In case you are using a DDIC structure at the node in question, you could add a sub node of 1:1 cardinality and place the attribute there.
Best regards,
Thomas
P.S: I forwarded your question to a colleague of mine who happens to be the expert for the table. Perhaps he knows another solution. -
How to Display number of Records in Single XML file
Hi,
In My SAP MDM DataManager I have a table called Location it contains 3 Fields. And Having 10000 Records in that.
When I am trying to make xml file through MDM Syndication Manager it is creating 10000 xml files.
I don't want to that much files and I need all the Records in a Single XML File, how can I do that in MDM Syndication server.
I have changed xsd:element attribute maxoccurs="unbound"
but there is no property like that.
I am using SAP MDM 5.5 with SP 4.
how can I see all my records in single XML file.
Thanks and Regards,
Ashok.hi,
To syndicate all XML records in single XML file:
follow the steps:
1. u201CIn the Destination Items pane, click on the root ( for product repository - Product).
2. u201CIn the Properties pane, for the Repeatable XML Node field, uncheck its u201CInheritu201D flag and check its flag in the u201CValueu201D column as shown below. This will cause all records to be syndicated into one XML file.u201D
3. In the item mapping tab:
In the Source Items page, select the root node,
. u201CIn the Destination Items pane, select the Products node and map it,
and do the remaining source and destination fields mapping,
now you will get all records in single XML file.
hope this may help you,
Regards,
Srinivas -
How to display programmatically created property in KM Conf.
Hi all,
I have created a KM property programmatically with
new Property(PropName,"test").getMutable();
I can not see it in KM Management < Content Management < Global Services < Property MetaData < Properties
Does anybody how to solve this issue?
IsmailHi Ismail,
I am not 100% sure of this, however my understanding is that what you are trying to do is not possible. You are creating a property for a KM resource at runtime, and then expecting to see it in the KM configuration which is basically at design time.
Although I expect that the property is created against the resource and saved, in order to display it via the standard KM UI you will need to create it manually in the configuration as well and then you can configure the UI to show you the property and it's associated value.
Like I said I am not 100% sure, so maybe a KM expert can chime in here too!
Hope that helps a little,
BRgds,
Simon -
How to display recent callers so I can add to my address book?
My phone is a 9630, version 4.7.1.61
How do I retrieve the phone number of a recent incoming caller so I can add them to my contacts? I can see their number during the call, but once the call is complete their phone number goes away and I cannot figure out how to locate?hi and Welcome to the Community!
See page 21 of your user manual.
http://docs.blackberry.com/en/smartphone_users/subcategories/?userType=1&category=BlackBerry+Smartph...
Good luck!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How to retrieve newly created record by webservices
Hi,
Suppose one new record has been created for any object. How to retreive that only that new record by webservices? What commands or criteria may be run for this? Please help.
Thanks
ArpitaArpita, As you may know when a new record is created a unique ID is also created for that record. You can get this unique ID for this record by exposing that field on the layout.
then query for that Row ID using your web service.
If you want to query all new records created in a day, then use the crated/ modified date field.
Thanks,
Royston -
How to display all incorrect records in PSA
Hello,
Is there a shortcut to display all the incorrect records in PSA. I am aware of a particular value that has been posted incorrectly and we're pulling over a million records from R/3. Each time i run the update, it fails due to the same data value error. This is prod env and i'm running delta init after a transfer rule change.
Pls. help.
MalliHi malli
I was facing the same problem. But i just asked my end user to make the changes in his data entry so that there were no errors while extraction itself.
One more thing what you can do if u know the exact data error is to write one select statement on the PSA table where the condition is the error what ur facing daily. There are no other shortcuts to see a error record in PSA unless untill u face problem while updating the data target. in that case the record in PSA will be in in status red and you can filter for this record.
Hope i made certain things clear. Please post if u r not convinced.
Regards
Sriram -
How to Display the Contain records in OBIEE Report
Hi Guru's
Col1 Col2 Col3
1001 ABC IN
USA
1002 XYZ IN
UAE
USA
1003 PQR IN
UAE
AE
as per above requirement it should be despaly UAE,AE if it contains.
Expected out put is
1002 XYZ IN
UAE
USA
1003 PQR IN
UAE
AE
i.e 1001 contains only IN, USA...but it's not contains any of the record in UAE or AE.
If it contains UAE or AE any one of the data it should display all the other countries.
Cheers
SunilYeah...I was applied....but it not suitable answer that i was got.
If i apply a filter
Country ='UAE' or 'AE'. it will display only those two records right....for me if it contains any of the record...then it should display all.
Like Union, Union All, Intersect, minus....operators. -
How to display metadata created by PSE 6
If I give someone a jpg image who does not have PSE, how are they able to see the keywords, notes etc that have been stored with the image in the metadata?
Reason I ask is that after doing a "Write Keyword Tag and Properties Info to Photos", I then use Windows Explorer, select a photo, right click, click on properties and then "summary", I don't see any of the information that I was expecting to see there created by PSE.Hi Paige,
Do I take it from your reply to this topic that you would be confident in recommending PSE6 as an organiser which DOESN'T use a proprietory method of attaching keywords etc?
I really like the trial version of PSE6, but am a little nervous about purchasing the full version and spending many days creating keywords for thousands of images, only to find that they can only ever be read in PSE. I may use PSE for a lifetime, but want to be sure of the flexibility in migrating to an alternative application in the future should I decide to do so, and taking my keywords with me! -
How to display all the Records of all the "Books of Business" in Report ?
Hello,
I have a user with 3 "Books of Business" (No Sub Books).
I would like to generate a report with the data of the 3 books.
With the "selector", it seems that I can't choose the "All" option.
Can someone confirm the behavior ?
Thanks for your help.Hello,
I do have a similar problem.
I have already tried to create a parent book (the checkbox "can contain data" is not activated), assign it to sub-books and add first my user as a book user (Admin role). However, when I start a simple report which should show e.g. Number of Contacts in a book an choose the parent book in the book selector I get an error message and there are no results ("The specified criteria didn't result in any data").
Did I miss any setup steps or is not possible to see all the records at once which belong to the sub-books with a parent book?
If I pick my user book, I see only the records I own. The problem is that our CEO needs a view there he could see records in sub-books separately but also the records in both of them at once. Unfortunately, the Manager Visibility can not be applied because we have a different hierarchy in the system as it is in real (otherwise wrong data in forecasts).
Many thanks in advance
Regards, Vilma -
How to display top n records(sorted by no of defects) within date range
I would like to display top n production orders(sorted by defects linked with each order) within the date range entered by the user.
Please advice.
I have 3 parameters to my report:
1. n(n is no of top records to be displayed)
2. From date
3. To date
Appreciate quick response.
Regards,
Hariif you use the parameters in the report by placing them in the record selection it should display the records within your date range.
if {date field} in ?start to ?end then true
Maybe you are looking for
-
Xorg 1.10.1 no longer affected by manual DPI setting
I use my 23 inch 1920x1080 monitor as TV also. As this means I sit rather far from it, I manually set DPI quite low to enlarge windows and fonts by default. However after the last upgrade, which brought Xorg 1.10 and Gnome 3, Xorg seems to no longer
-
How to set a window title...
Let me start with the basics: If you create an extension, the Stage Manager will create the container for you and load the swf into the container. This container can be one of three types: Panel, Model Dialog, or Modeless Dialog. Any one of these con
-
Hi, I have two XML schema documents. (A.xsd and B.xsd) Now i am parsing B.xsd using DOM. B.xsd has a definition like this : <xs:element ref="a:Employee"/> where 'a' is a namespace prefix. its actual definition is in A.xsd defined like this : <xs:elem
-
New Document without the Example?
Is there a setting of Pages (08 or otherwise) that I can apply to be given a blank sheet upon selecting something like "Extreme Newsletter," and yet have the page formatted and prepared to act exactly like that type of document would? That is to say,
-
Concurrent login firewire disk
Hi I'm trying to set up an Oracle RAC Test Environment concerning Mr. Hunter's article (http://www.oracle.com/technology/pub/articles/hunter_rac_2.html). I use Linux RedHat Fedora C2 on both nodes (2 Compaq ML370) and a Maxtor OneTouch 200GB as exter