How to compute interval value of items
HI,experts,
I have a table with huge amount of data, like this, in source system.
key month amount1
A001 2008.1 900
A001 2008.2 1000
A001 2008.4 1100
A002 2008.1 80
A002 2008.2 80
A002 2008.3 90
I want to get a result in my ODS object like below,
key month amount1 amount2
A001 2008.1 900 0
A001 2008.2 1000 100
A001 2008.4 1100 100
A002 2008.1 80 0
A002 2008.2 80 0
A002 2008.3 90 10
if first time load.
amount2 = 0
else.
amount2 = amount1 - amount(last time)
endif.
Due to the huge amount of data, I want to use a modelling method in BW via ODS computing without lookup abap coding. Can any help me?
Hello Sam Lu,
There could be several solutions using Non-cumulative key figures but as you want ODS you should create an Update Rule for Key Figure 2 of type "Routine" checking data inserted.
Routine code would be the following:
data: total type f.
select kf1 from /BIC/Ayourodsname00
where Key = comm_structure-key and
month < sy-datum(6).
total = total + kf1.
endselect.
IF sy-subrc eq 0.
clear result.
else.
result = comm_structure-kf1 - total.
endif.
Similar Messages
-
How to get column values on item added event receiver
Hi,
I have two columns in a document library and one is people or group column and the other one is choice column with check boxes.
I want to know how to read column values on Item Added event receiver, so that I can create if statements based on those values.
Thank you,
AA.Hi AOK2013,
Have you had a look at this Microsoft tutorial: http://msdn.microsoft.com/en-us/library/office/gg981880(v=office.14).aspx
Essentially, you want to use the AfterProperties property to access the changed field value.
E.g.
var personvalue = properties.AfterProperties["YourPersonFieldName"]
Regards, Matthew
MCPD | MCITP
My Blog
View
Matthew Yarlett's profile
See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos -
How to reference the value of items in a generic report
Hello
I have created a generic report. The source is a PL/SQL-Function returning a query stored in a package of the parsing schema, using the apex_item package. I set the p_item_id values depending on p_idx and rownum. In the browser I can see the unique (id="...") of the items. The report works well.
One column is an analytical funtion and shows for every row the same value. The column is hidden. Depending on that value I want to show or hide buttons.
How can I get the value of this column. Apex_application.g_fxx don't work. Apex_application.g_fxx.COUNT =0 for all possible columns.
So how can I reference the value in the report.
Any suggestions?
ThanksHallo varad
Should I do really?
The SQL is a function in a package returning a sql-string. It's a join over five tables (one outer join) refrences some other package variables. For testing purposes I put in into the region, but nothing changed. SQL is ok.
So here is the region source:
declare
v_mdt_id pkg_typ_lagerplatzbelegungen.mdt_id_coltype;
v_laplstat_frei pkg_typ_lagerplatzbelegungen.laplstat_id_coltype;
v_laplstat_leermeldung pkg_typ_lagerplatzbelegungen.laplstat_id_coltype:=1;
v_sql VARCHAR2(10000);
BEGIN
v_mdt_id :=:g_mdt_id;
v_laplstat_frei:=pkg_konst_lagerplatzstati.fkt_laplstat_frei;
v_sql:= ' WITH lapl_lagepos
AS
(SELECT (rownum ) zeile
,laplbe1.mdt_id
,laplbe1.lapl_koor1
,laplbe1.lapl_koor2
,laplbe1.lapl_koor3
,laplbe1.lapl_koor4
,laplbe1.lapl_koor5
,lagepos.lage_id
,lagepos.lagepos_id
,pkg_sel_lagerplaetze.fkt_get_lapl_kurzbez_display( laplbe1.lapl_koor1
,laplbe1.lapl_koor2
,laplbe1.lapl_koor3
,laplbe1.lapl_koor4
,laplbe1.lapl_koor5
, laplbe1.mdt_id) lapl_kurzbez
,laplbe1.lavo_id
,mat.mat_id
,mat.mat_id mat_id_neu
,mat.matart_id
,mat.matart_id matart_id_neu
,mat.mdt_id_mat
,mat.mdt_id_mat mdt_id_mat_neu
,mat.mat_name1
,mat.mat_name2
,lagepos.lagepos_menge
,lagepos.meschl_id
,NULL zumenge
,NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)
,CASE
WHEN NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0) = 0
AND (laplbe1.laplstat_id < '||v_laplstat_frei||' OR NVL(laplbe1.lage_id,0) > 0) THEN 0
ELSE
NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)+1
END leerkennung
FROM (SELECT laplbe.mdt_id
,laplbe.lapl_koor1
,laplbe.lapl_koor2
,laplbe.lapl_koor3
,laplbe.lapl_koor4
,laplbe.lapl_koor5
,laplbe.lage_id
,laplbe.laplstat_id
,lapl.lapl_kurzbez
,lapl.lavo_id
FROM lagerplaetze lapl
,lagerplatzbelegungen laplbe
WHERE lapl.lapl_kurzbez ='||'''77B04B1'''||'
AND lapl.mdt_id ='||v_mdt_id||'
AND laplbe.mdt_id ='||v_mdt_id||'
AND laplbe.lapl_koor1 = lapl.lapl_koor1
AND laplbe.lapl_koor2 = lapl.lapl_koor2
AND laplbe.lapl_koor3 = lapl.lapl_koor3
AND laplbe.lapl_koor4 = lapl.lapl_koor4
AND laplbe.lapl_koor5 = lapl.lapl_koor5
AND laplbe.mdt_id = lapl.mdt_id) laplbe1
, (SELECT lage_id
,lagepos_id
,mdt_id
,mat_id
,matart_id
,mdt_id_mat
,meschl_id
,lagepos_mengeneinheit
,lagepos_menge
FROM lagergebindepositionen
WHERE NVL(lagepos_archiviert,0) =0
AND mdt_id = '||v_mdt_id||') lagepos
,(SELECT mat_id
,matart_id
,mdt_id_mat
,mat_name1
,mat_name2
FROM materialien
WHERE mat_archiviert= 0
AND NVL(mdt_id_mat,'||v_mdt_id||')='||v_mdt_id||') mat
WHERE laplbe1.lage_id = lagepos.lage_id(+)
AND lagepos.mat_id =mat.mat_id(+)
AND lagepos.matart_id = mat.matart_id(+)
AND lagepos.mdt_id_mat=mat.mdt_id_mat(+))
SELECT APEX_ITEM.hidden (31, zeile,'''',''P95801_f31_''||zeile ) zeile
,APEX_ITEM.text (32, leerkennung,10,10,''P95801_f32_''||zeile ) "Leerkennung "
,APEX_ITEM.hidden (33,mdt_id ,'''' ,''P95801_f33_''||zeile ) mdt_id
,APEX_ITEM.hidden (34,lapl_koor1 ,'''' ,''P95801_f34_''||zeile) lapl_koor1
,APEX_ITEM.hidden (35,lapl_koor2 ,'''' ,''P95801_f35_''||zeile ) lapl_koor2
,APEX_ITEM.hidden (36,lapl_koor3 ,'''' ,''P95801_f36_''||zeile) lapl_koor3
,APEX_ITEM.hidden (37,lapl_koor4 ,'''' ,''P95801_f37_''||zeile) lapl_koor4
,APEX_ITEM.hidden (38,lapl_koor5 ,'''' ,''P95801_f38_''||zeile ) lapl_koor5
,APEX_ITEM.hidden (39,lage_id ,'''',''P95801_f39_''||zeile ) lage_id
,APEX_ITEM.hidden (40,lagepos_id ,'''' ,''P95801_f40_''||zeile) lagepos_id
,APEX_ITEM.display_and_save(41,lapl_kurzbez,''P95801_f41_''||zeile) "Lagerplatz"
,APEX_ITEM.display_and_save(42,lavo_id ,''P95801_f42_''||zeile) "Fachtyp"
,DECODE(mat_id ,NULL, APEX_ITEM.popup_from_lov (43,'''',''MATLAVO'','''','''',0,'''',''''
,''onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" ''
,''YES'',''P95801_f43_''||zeile)
,APEX_ITEM.display_and_save(43,mat_id,''P95801_f43_''||zeile)) "Material-Id"
,DECODE(matart_id,NULL, APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)
, APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)) matart_id
,DECODE( mdt_id_mat,NULL, APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )
,APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )) mdt_id_mat
,APEX_ITEM.display_and_save(46,mat_name1 ,''P95801_f46_''||zeile) "Materialname"
,APEX_ITEM.display_and_save(47,mat_name2 ,''P95801_f47_''||zeile) "Materialbezeichnung"
,APEX_ITEM.display_and_save(48,lagepos_menge ,''P95801_f48_''||zeile) "Lagernde Menge"
,APEX_ITEM.display_and_save(49,meschl_id ,''P95801_f49_''||zeile) "Mengenschlüssel"
,APEX_ITEM.text(50,zumenge,10,10,'' style="width:120px" onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" '',''P95801_f50_''||zeile ) "Einzulagernde Menge"
FROM lapl_lagepos';
RETURN v_sql;
end;
Thank you for help -
How to combine Submit value and item values in report condition?
What I have is a report with some input parameters, one of which is a Select List with Submit that forces population of a second Select List. There is also a GO button. Depending on the combination of the two drop-downs, one of three report regions then gets displayed. This all works fine, but the users would like the report NOT to show UNTIL they click on the GO button. I'm trying to figure out how to tweak my conditions to include a Submit value along with item values. Can someone suggest a solution?
(PS. I'm using dependent selects because I'm still using APEX 3.2)Hello
When your page is submitted due to the the parent select list's value getting changed the APEX 'REQUEST' variable is set to the name of the select list item.
You could perhaps use this to perhaps set a hidden item on the page whose value can then be checked in the conditions that control the display of your report regions.
varad -
How to copy a value between items??
Hi friends,
[Apps R12]
I don't exactly know ho to do this:
Imagine you have a LOV.. and it retrieves a value in one of its attributes...
When selecting a value of that LOV.. I want one of those attribute values... be copied to other item in the same screen...
It would be te same as in Forms:
When-validate the lov ...
:block1.item2:=:block1.item1
where item1 is one of the columns retrieved by the LOV and item2 is another field on the screen....
Could any of you provide an example of how to do this?
Thanks!!!if (pageContext.isLovEvent())
// Form was submitted because the user selected
// a value from the LOV modal window,
// or because the user tabbed out of the LOV input.
// Find out which LOV input triggered the event.
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
// Find out the result values of the LOV.
Hashtable lovResults =
pageContext.getLovResultsFromSession(lovInputSourceId);
if (lovResults != null)
// Update the page depending on the value chosen by the user.
see if this helps....
--Prasanna -
How to compute field value in SIM
I have a form with 3 fields and 1 button. The user will populate the firstname and lastname field. When they press a button (i.e. button consists of an expression), the button script should concatenate the firstname and lastname, the result should then be shown on the 3rd field (i.e. fullname). This is to be done using XPRESS.
This seems to work if i have the script in the 3rd field, however, i am having trouble in populating the 3rd field by triggering the script using a button.(If my memory serves me well (not used for long time ago)
Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE: / 'Interactive Report &3'.
WRITE record-vbeln TO sy-tvar3.
Regards,
Raymond -
How to get the values from table region and how to set
Hi,
I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
Is it possible to through CO Extension, If yes..Pls help how to get it.
Thanks in Advance,
HanimiHi Hanimi,
1. You need to extend the VO, add a new Attribute.
2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
3. In this getter method you can write some code like:
if("ABC".equals(getItemDescription())
return "XYZ" ;
-Prince
http://princekapoor82.blogspot.com -
How to get a value from one item into another
How can i get value from one item into another item.
Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
How can i do this?
Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.Hi Fredr1k,
Use the V() function from pl/sql.
e.g. V('P3_MY_ITEM')
will return the value of that page item.
As long as the pl/sql is called from within the Apex environment.
Regards
Michael -
I had to get my computer cleaned off. I have itunes back now how do i get my phones items back on itunes? I was backed up on icloud
It has always been very basic to always maintain a backup copy of your computer for just such an occasion.
Use your backup copy to put everything back. -
HOW DO I SEND AN EMAIL ON MY IPHONE OR IPAD AND MAKE IT APPEAR ON THE MAIL APPLICATION ON MY MAC? IT ONLY WORK THE OTHER WAY ---SENDING AN EMAIL ON MY COMPUTER ---APPEARS IN SENT ITEMS ON MY IPHONE AND IPAD.
IT IS FOR GMAIL.
-
How to access the value of application item in javascript
How to access the value of application item in javascript?
Hi,
One way
var myVariable = '&MY_APP_ITEM.';Br,Jari -
How to assign NULL value to an ITEM in Forms Personalization?
Hi,
how to assign NULL value to an ITEM in Forms Personalization?
please suggest me.
ThanksI don't know what your form personalization does and maybe I misunderstand you ...
Try
:item_name := null; -
How to display characteristic values in X achsis in chart web item
Hello,
I have a chart web item which has to display key figure (Y achsis) with three characteristics T, A and B.
The first characteristic T has two values T1 and T2 which are represented through two columns in the graphic area.
The second characteristic A has three values and the second B has 7 values.
The characteristic values have to be listed as below in the graphic:
Y
^
|
| T1T2 T1T2 T1T2 T1T2 T1T2 T1T2 T1T2 T1T2 T1T2 T1T2 T1T2 T1T2
|.......................................................................................................................................................> X
0__A1__A2___A3__A1__ A2__A3___A1___A2__A3__A1__ A2 A3
_______B1________B2_______B3______B4_______B5__________..........
The third characterisitic with the two values T1T2 will be represented in the graphic with two chart colors which will be explained by the legend.
How can i set the chart item so that the characteristics values (for example 5 characters for each values) can be displayed for example vertically in the X achsis as drawed above.
Thanks for helping
Arnaud
Edited by: Arnaud on Aug 5, 2009 5:50 PM
Edited by: Arnaud on Aug 6, 2009 10:47 AMHi,
check the help.sap:
Formatting Axes and Gridlines
http://help.sap.com/saphelp_nw04s/helpdata/en/eb/2e373be72b2f48e10000000a11402f/frameset.htm
Chart
http://help.sap.com/saphelp_nw04s/helpdata/en/33/489d39d342de00e10000000a11402f/frameset.htm
Regards
Andreas -
How to move ONLY one iTunes item from iPad to computer
How do I move JUST one item from my iPad to the computer using the new iTunes? I do NOT want to sync everything on the iPad to the computer. I do NOT want the computer to download anything from the store.
My home internet connection isn't much faster than dial-up. I also have access to a high-speed internet connection somewhere else, so have been buying or renting movies and TV shows with the iPad. if I've purchased them, I transfer them to a separate iTunes library I have on an external hard drive connected to my computer and remove them from the iPad, since memory on it is an issue.
I just tried to do that for the first time using the newest version of iTunes. First iTunes went to the store to download a movie, which would take 8 hours and that I didn't want. I quit the program and selected sync from iPad. Then, it proceeded to automatically transfer a bunch of books and podcasts that I don't want to transfer (and it will take a bunch of extra time). How can I transfer ONLY the one episode of a TV show that's on the iPad? I don't want to transfer anything else, not the books and so on. I can't find any way to do that in the latest version of iTunes.
Is there any way to restore the old iTunes, so that I can individually choose what I want to copy to the computer from the iPad?mtngal2,
I've had this same problem and I haven't received a response how to get around it.
Have you received any answers? -
How do you log values from RT target to the computer?
Hi,
I am using sbRIO 9633. How do you log values from RT target to the computer?
I created a shared variable on the RT target and used them on the log VI created under "My Computer", but I get error.
I get this error..
\\192.168.1.140\temp deployment failed (error: -1967357949, IAK_SHARED: (Hex 0x8ABC8003) Unable to query Measurement & Automation Explorer for the Shared Variable Engine. Make sure the Shared Variable Engine exists on the RT target and check that the network connection is valid.).
kdmWhat are your data rates? If you are producing data "continuously", you might find that Network Streams are easier and more reliable than Network Shared Variables. In any case, you need an "engine" on one side (Host or Target) or the other. I'm streaming 24 channels of 16-bit data from a PXI controller to a PC this way, with three other streams handling two-way messaging and transmission of "occasional" time-stamped data to the PC.
Bob Schor
Maybe you are looking for
-
PDF email attachments opening in WORD
My PDF files open in WORD format and in computer language. My O/S is Win 7 Home Premium, and I have Adobe Reader XI. How can I get the PDF files to open as such? Thank you.
-
Failed to install Flash Player
I have tried several times to download the most recent adobe flash player onto my computer. However, when I click 'run' and get to the installation process at 50% installed it tells me I must close Internet Explorer to continue. Even though I do th
-
Bar code Printing for HU LABEL for RFID
Hi Team , It will be great help if anybody can suggest the steps i need to follow to create an HU barcode fr label printing. The labels will be used in Warehouse for scanning using RFID . Can anybody suggest me what is the use of Emulators in Label p
-
Thunderbolt not working between MacbookPro 10.9 and Imac 10.6
Hello, I have a macbook pro running 10.9 and a 27 iMac which is running 10.6. I would like to use the iMac as a display and purchased a thunderbolt cable and connected the two but can get the MacBook Pro to power the Imac display or even link them. P
-
Problem with view wwsbr_all_folders in UI Template
Hi, I want to display sub pages in a UI template. I want to use the view wwsbr_all_folders but it doesn't work. here the source : <oracle> htp.p('hello2'); for c1 in (select ID from portal.wwsbr_all_folders where CAID=255) loop htp.p('<table cellpadd