How to get the latest ALV record?
Hi all,
I have create a ALV in my module pool with delete row feature. The module pool is able to display the record into the ALV.
The user needs to delete some of the unwanted records. After that, my program needs to populate the record (after deleted rows), and save it into a customized table.
My question is, how can I get the most up-to-date record from the ALV and assign it into internal table?
Thanks in advance.
Hi,
Yes, I am using OOPs ALV
I have included this code into PAI, but how do I get it assigns to a internal table?
data: lv_valid type c,
lv_refresh type c.
call method grid1->check_changed_data
importing
e_valid = lv_valid
changing
c_refresh = lv_refresh.
PBO
data grid1 type ref to cl_gui_alv_grid.
call method grid1->set_table_for_first_display
exporting
i_structure_name = 'ZSTRUCTURE_EXCEL'
it_toolbar_excluding = lt_exclude
is_layout = ls_layout
changing
it_outtab = gt_export2excel.
FYI, my ALV is with delete row feature, the user will delete some of the row and now I need to get the remaining row and assign it to an internal table.
Please help with some sample code. Thanks.
Similar Messages
-
How to get the latest credit limit values per each customer in the report.
Hi All,
Can anybody give me an idea on how to get the latest credit limit values per each customer in the report.
I have below requiremnt.
I have cube which is having transactional data on document and customer level .and it also having master data info object in the cube which is credit management view having all the customer numbers .
This credit management view is master data info object having credit limit key figure as attribute.These credit limit are per each customer.
So we need these credit limits in the report as dynamic values .(I mean whatever be the current credit limit in the master data table for that paricular customer that should show up in the reporting).
one more thing these credit limits should roll up correctly at the HTR level.
One HTR having number of customers .
for example HTR 100 can have customer number 200,300,400.
Those 200,300,400 customer credit limits should roolup correctly at the HTR 100 level.
Example below :
Cube DATA :
HTR Customer Doct number Credit managment view
100 200 10001 200
100 200 10002 200
100 300 10004 300
100 300 10005 300
100 400 10006 400
100 400 10007 400
100 400 10008 400
Master data tabel (P Table)(Credit managment view)
Credit managment view Credit limits
200 1000.00
300 50000.00
400 90000.00
Please remeber :
We can not make these credit limits as navigational becasue these are keyfigure attributes not characteristics.
one more thing we can not make them as charatistics because we need use these credit limits to derive other calkculation. so it is not possibel to derive calculations on charactristics .Create a formula variable of type replacement path with reference as attibutes of Credit management view and choose your key figure credit limit,say zcredit.
Now create a formula or CKF and use zcredit.
This should display the credit limit in your report as normal key figure.
I didnot get this part "one more thing these credit limits should roll up correctly at the HTR level.", may be the above will solve this too.Try it.
Hope this helps. -
How to get the latest creditlimits in the reporting
Hi All,
Can anybody give me an idea on how to get the latest credit limit values per each customer in the report.
I have below requiremnt.
I have cube which is having transactional data on document and customer level .and it also having master data info object in the cube which is credit management view having all the customer numbers .
This credit management view is master data info object having credit limit key figure as attribute.These credit limit are per each customer.
So we need these credit limits in the report as dynamic values .(I mean whatever be the current credit limit in the master data table for that paricular customer that should show up in the reporting).
one more thing these credit limits should roll up correctly at the HTR level.
One HTR having number of customers .
for example HTR 100 can have customer number 200,300,400.
Those 200,300,400 customer credit limits should roolup correctly at the HTR 100 level.
Example below :
Cube DATA :
HTR Customer Doct number Credit managment view
100 200 10001 200
100 200 10002 200
100 300 10004 300
100 300 10005 300
100 400 10006 400
100 400 10007 400
100 400 10008 400
Master data tabel (P Table)(Credit managment view)
Credit managment view Credit limits
200 1000.00
300 50000.00
400 90000.00
Please remeber :
We can not make these credit limits as navigational becasue these are keyfigure attributes not characteristics.
one more thing we can not make them as charatistics because we need use these credit limits to derive other calkculation. so it is not possibel to derive calculations on charactristics .
Edited by: sirisha Nekkanti on Oct 30, 2008 6:27 PM
Edited by: sirisha Nekkanti on Oct 30, 2008 6:35 PMThis is duplicate of
how to get the latest credit limit values per each customer in the report.
thread. -
How to get the latest procured value of a spare updated in material master
How to get the latest procured value of a spare updated in material master
J S S PRASAD
See table MBEW via transaction SE16.
However, you may need to look at the last PO created for that material.
PeteA -
How to get the latest versions of Internet Explorer t
We are running Single Primary Site with SCCM 2012 R2.
I
cant seem to find out how to get the latest versions of Internet Explorer to be included in software updates? Do you have to download this separately and install manually?Like Henrik said, make sure you have the Classifications selected that you want to address. IE 11 is the current browser, that was added to the catalog a few months back. If you are searching for this month you wont find it.
-
How to get the latest update for the phone?
hey does anyone know how to get the latest upgrade for my phone? 3230 nokia
http://www.nokia.co.uk/nokia/0,,58162,00.html
Gadget
Remember to mark all correctly answered questions as Solved. A forum is only as great as the sum of its parts, together we will prevail. -
HT1222 how I get the latest airport software update?
How i get the latest airport software update?
Marlon brown wrote:
I been trying to get this update off my phone but can not
I been trying to figure out what you're talking about but can not -
Master Child tables how to get the latest rows from both
Hi,
Need some help with the sql. I have two tables Master & Child. In my Master table I have multiple rows for the same record and in the child table also multiple rows for the same master row how can I get the latest one's from both.
For example Data in my Master table looks like
CONT_ID SEQ_NUM DESCRIPTION
1 189 Update 2
1 188 Update 1
1 187 NewNow in the child table for the same CONT_ID I may have the following rows
CONT_ID UPDATED_DATE STATUS
1 3/16/2010 2:19:01.552700 PM P
1 3/16/2010 12:29:01.552700 PM A
1 3/16/2010 12:29:01.552700 PM P
1 3/16/2010 12:19:01.552700 PM NIn my final query how can I get the row with seq_num 189 as it's the latest in Master table and from child table the row with status of P as it's the latest one based on the time. Here is the query i have but it returns the latest row from the child table only and basically repeats the master table rows as opposed to one row that is latest from both:
ThanksHi,
You can use the analytic ROW_NUMKBER function to find the latest row for each cont_id in each table:
WITH got_m_rnum AS
SELECT cont_id, seq_num, description
, ROW_NUMBER () OVER ( PARTITION BY cont_id
ORDER BY seq_num DESC
) AS m_rnum
FROM master_table
-- WHERE ... -- any filtering goes here
, got_c_rnum AS
SELECT cont_id, updated_date, status
, ROW_NUMBER () OVER ( PARTITION BY cont_id
ORDER BY updated_date DESC
) AS c_rnum
FROM child_table
-- WHERE ... -- any filtering goes here
SELECT m.cont_id, m.seq_num, m.description
, c.updated_date, c.status
FROM got_m_rnum m
JOIN got_c_rnum c ON m.cont_id = c.cont_id
AND m.m_rnum = c.c_rnum
AND m.m_rnum = 1
;If you'd like to post CREATE TABLE and INSERT statements for the sample data, then I could test this.
If there happens to be a tie for the latest row (say, there are only two rows in the child_table with a certain cont_id, and both have exactly the same updated_date), then this query will arbitrarily choose one of them as the latest. -
How to get the number of records of a streaming result set
Hi guys.
So if it wasn't a streaming result set, I would have done this:
{noformat}myResultSet<code class="jive-code jive-java">.last();
{color:navy}*int*{color} numResults = </code>myResultSet<code class="jive-code jive-java">.getRow();
</code>myResultSet<code class="jive-code jive-java">.beforeFirst();
</code>{noformat}
but being a streaming result set, beforeFirst() throws an exception...
So how do you get the number of records in that result set? I wanna avoid an extra count(*) query, so I would appreciate other solutions than that.JoachimSauer wrote:
vanwil wrote:
you see, for now I just use a count(*) query to get the number of records, but that's adding a lot of extra waiting time...Iterating over the result twice will surely be slower then doing the count(*).great! so what I got now is actually the fastest way there is... awesome...
If you get an exception, then you surely have a stack trace. That should tell you what happens, or at least where.com.mysql.jdbc.MysqlIO.checkForOutstandingStreamingData(MysqlIO.java:2066)
Why do you need to know the number of elements beforehand, anyway?I need to know the number of elements because the incoming data goes into a table. Now of course, I could use ArrayList<String[]> or something, but wouldn't that require more memory resources than Object[][] ?
No one can tell you that, at least not without more information (say, the stack trace for example).Here's the exception message:
java.sql.SQLException: Streaming result set com.mysql.jdbc.RowDataDynamic@10c0ef2 is still active. Only one streaming result set may be open and in use per-connection. Ensure that you have called .close() on any active result sets before attempting more queries. -
Urgent !!! How to get the Latest Exchange Rate from a list
Helo Gurus,
I want to get the latest exchange rate for all currencies in BI 7.0. Now when I checked in the table its showing all the exchange rates for various currencies according to the date. My client want the latest exchange rate in the report for all currencies. Now when I generating the currencies into the report the rate getting cumulated.
For certain currencies the rate is updated very recently. But for others two months back.
<b>How it is possible to take only the latest exchange rate for all currencies and can generate the report.</b>
I am working in BI 7.0 and the BEx using is of version 3.5.Mathew,
usually the currenies and other settings will be loaded nightly, but in your case if you want it urgently you can do this.
RSA1->Source System>Transfer Exchange Rates. This will open up a screen with two options Simulation and Update. You can verify with SImulation and needed you can update. It will not create any issues.
Hope this helps.
Alex (Arthur Samson) -
Get the latest date record in Query
Hi, Expert:
Please help on this:
The requirement is to get the the latest date record in Query. For example:
Data in provider:
Plant date amount
A01 2007/04/08 30
A01 2007/06/09 70
A01 2007/12/08 30
we only want the query display:
A01 2007/12/08 30
I have tried exception aggregation, but it does not work. Any ideas are highly appreciated.Or you can model the date as a key figure after 0date_kyf and set aggregation to max, you'll get something like
select plant, amount, max(date) from ... group by plant, amount
used it for inventory reporting (materials and their last movement date, days from the last movement etc.) and worked well. -
How to get the latest Change date and time of a M.O. from View VIAUFKST
Hi All,
I want to get the latest date and time of a M.O. from view
VIAUFKST. I have written the query like this...
SELECT AUFNR
AEDAT " Changed Date
AEZEIT " Changed Time
FROM VIAUFKST
INTO TABLE I_VIAUFKST
WHERE AEDAT >= W_LASTRUN_DATE
ORDER BY AEDAT DESCENDING.
but its not giving me right results... Pls help me out on this or suggest me the right approach to achieve the same...As this is very critical issue...
Advance Thanks and Points Gauranteed...
Suresh> SELECT AUFNR
> AEDAT
> AEZEIT
> FROM VIAUFKST
> INTO TABLE I_VIAUFKST
> WHERE AEDAT >= W_LASTRUN_DATE.
>
> IF NOT I_VIAUFKST[] IS INITIAL.
> SORT I_VIAUFKST BY AEDAT AEZEIT DESCENDING.
> READ TABLE I_VIAUFKST INDEX 1.
> ENDIF.
>
> The above statement is giving me different results...
> such as...
>
> 1. 30/11/2005 19:20:11
> 2. 29/11/2005 22:10:09
> 3. 30/11/2005 20:56:09
> 4. 28/11/2005 23:10:09
>
> by using the above SORT statement i am getting the
> fourth record as the latest, where as it should give
> me the third record....
>
> Please advise,
> Suresh.
Hi Suresh,
The reason why you are getting this result is because the system is interpreting the DESCENDING only for AEZEIT not for both. Change it to
SORT I_VIAUFKST BY AEDAT DESCENDING AEZEIT DESCENDING -
How to get the latest and valid BOM item entry from STPO
hi,
may i know with what condition we can get the latest and valid BOM item entry from STPO table?
i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of valid-from and valid till date.
can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
thank you.Hi
You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
Regards
Shiva -
How to get the latest filename in a specify directory in client's machine
Hi all,
I've created a web application which user need to input some text and upload a file to server, It's simple that user just need to browse the directory to select the file. submit the form to server then ........
However, after user's review and they prefer the system can upload the latest file in a directory in the cilent's computer (as all files are stored in the same directory) and upload to server after user click submit button automatically. User only input the text in the form, no need to search the picture in the computer (can save time) .
I understand that there has some security issue. but just want to know is it possible to do this?
The question I would like to ask is
Can Java (servlet / jsp) can get the latest file in a pre-defined directory in client's machine?
pls help
thanks a lot.
Kin.JSP and servlets run on the server, not the client. The client receives the output of the JSP/servlet, usually as an HTML page. Your question is: can an HTML page read a directory on the user's computer. The answer is obvious: no, it can't.
You may be able to work around this problem with some kind of plug-in, but this would likely create more inconvenience for the user, not less. -
How to get the latest update time of a info provider in ABAP
hi experts,
i am doing a ABAP program and need to get the latest update time of a info provider , does anyone know where it stores in BW or any other way to get it?
many thanks
WHYTable : RSREQDONE
you can give INFOPAK_ID as parameter and search for latest/last Request ID and dispaly time and Date.
Cheers
Praveen
Maybe you are looking for
-
Difference between vector obj.clear() and Vector obj = null
What is the difference between clearing the Vector object with .clear() method and assigning null value to Vector object? As per memory point of view, is it advisable to first clear vector and then assaign it to null for garbage collection or it does
-
i really can't find any apps thnx for helping!
-
Lack of support for Camera Raw plugin for Mac 10.6.8
I'm hoping to find some solutions to the road block I've run into. I'd been using Photoshop CS6 with Mac OS 10.6.8 without any problems. Then I got a new camera this week, and that's when the problems began..... I wanted to edit the raw files (R2W
-
Imovie 9 Can't change volume in voiceover clips.
I can't change the volume in voiceover clips. I have tried to re-record with new microphone, including internal. Also, have re-recorded with noise reduction changed at different levels and uncheck voice enhancement. Nothing works. Please help!
-
WWCTX_API equivalent in 9.0.2.6
Jerry/Oracle, Will 9.0.2.6 see the re-introduction of what was in old speak the Content Area APIs into Portal? I'm assuming it must be the case otherwise it would not be much of an upgrade release! The 9iAS 9.0.4 white paper did not mention anything