How to Get the last data dymanic
in my bussiness scenarios,I have a cube store some data by month
but some material have no records in some month
I need to check if this month have records,get it
or if there is no records, get the last records by month
how can i do this?
You check in R3...whether you have material data for that month...if yopu have data, in BW, run a repair full request by giving this criteria i.e. month criteria.
Thanks...
Shambhu
Similar Messages
-
How to get the last data point from a TDM file in LabVIEW?
Hello,
I am using LabVIEW to analyze some rather large TDM files, and I need a way to get only the last data point. So far, the only way I have been able to accomplish this is by reading the entire file. Is there a property in the TDM file or a function in LabVIEW that will allow me to get the index of the last item in a channel?
Thanks!
ChristinaDo you want to avoid reading whole file and want to be able to reach or get the index of last value of channel? is there any specific reason? I am not sure you could do it without loading the whole file. But the easiest way would be just to use array functions "array size" would give you the index of last element.
-Nilesh
Kudos are (always) welcome for the good post. :-) -
How to get the last date of that month after adding the two month.
Hi,
I have a requirement, My input is month/lastdate of the month/year after adding 2 months i want the same format mont+2/lastdate of the month/year.
Please let me know the exact FM for this.
I have check this FM RE_ADD_MONTH_TO_DATE.
Input:
Import parameters Value
MONTHS 02
OLDDATE 02/29/2008
Output:
Export parameters Value
NEWDATE 04/29/2008
But this wrong because i am expecting the last date of the April.
2) I have checked another FM that also also shows the wrong output: RP_CALC_DATE_IN_INTERVAL
Import parameters Value
DATE 12/31/2008
DAYS 00
MONTHS 02
SIGNUM +
YEARS 00
Export parameters Value
CALC_DATE 03/01/2009
Thanks In avance,
Thanks & Regards,
VenkataHi,
do the RE_ADD_MONTH_TO_DATE then
Plug the result date into FM RP_LAST_DAY_OF_MONTHS
Regards
Stu -
Hello....
I want to get the last date of the month.
For example, the last date of Jan is 31.
How can I get the last date of the particular month and year ????
Thanks for help.
GloriaHi Gloria
1. How can I compare the date???date1.compareTo(date2)
where date1 and date2 is a java.util.Date Object
will return 0 if it is the same date
or
date1.after(date2)
where date1 and date2 is a java.util.Date Object
will return true if date1 is after date2
(the same for date1.before)
2. How can I change the date format into yyyymmdd format???? I just want the year, month and date.try the java.text.SimpleDateFormat Object
new SimpleDateFormat("yyyymmdd").format(yourdate)
Hope this help.
Please also have a look at a calendar I wrote, (maybe it help)
demo & source :
http://www.geocities.com/globe_software/java/components/
globe_sa -
How to get the last day of the week?
Hii
i can get the calender week number for any given date using
SELECT to_char(to_date('04/04/2011','MM/DD/YYYY'),'WW') FROM dual
can any body tell me, how to get the last day of that week ?
and the answer should be 04/08/2011(8th april )
thanks
San
Edited by: sandeep9 on Apr 4, 2011 3:50 AMHi, San,
Here's one way:
WITH sample_data AS
SELECT DATE '2011-04-04' AS dt
FROM dual
SELECT dt
, TO_CHAR (dt, 'WW') AS week_num
, NEXT_DAY ( dt - 1
, TO_CHAR ( TRUNC (dt, 'YEAR') - 1
, 'Day'
) AS end_o_week
FROM sample_data;Another way is to use date arrithmetic:
WITH sample_data AS
SELECT DATE '2011-04-09' AS dt
FROM dual
SELECT dt
, TO_CHAR (dt, 'WW') AS week_num
, TRUNC (dt, 'YEAR')
+ (7 * CEIL ( (dt - (TRUNC (dt, 'YEAR') - 1))
/ 7
- 1 AS using_date_arithmetic
FROM sample_data; -
How to get the last day of a month?
HI,
I want to know how to get the last day of a month.
In my JClient form, I tried to get it by using oracle.sql.Date method, that is:
lastday=oracle.sql.Date anydate.lastDayOfMonth();
But it does not work. The result is lastday=anydate.
Why?
StephenYou can use the Calender class...
Calendar c = Calendar.getInstance();
and then something like...
c.add(c.MONTH, 1);
int dayOfMonth = c.get(Calender.MONTH);
c.add(c.DAY_OF_MONTH, - (dayOfMonth-1) );
other usefull functions are:
System.out.println(" YEAR : " + c.get(Calendar.YEAR));
System.out.println(" MONTH : " + c.get(Calendar.MONTH));
System.out.println(" DAY_OF_MONTH : " + c.get(Calendar.DAY_OF_MONTH));
System.out.println(" DAY_OF_WEEK : " + c.get(Calendar.DAY_OF_WEEK));
System.out.println(" DAY_OF_YEAR : " + c.get(Calendar.DAY_OF_YEAR));
System.out.println(" WEEK_OF_YEAR : " + c.get(Calendar.WEEK_OF_YEAR));
System.out.println(" WEEK_OF_MONTH : " + c.get(Calendar.WEEK_OF_MONTH));
System.out.println(" DAY_OF_WEEK_IN_MONTH : " + c.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println(" HOUR : " + c.get(Calendar.HOUR));
System.out.println(" AM_PM : " + c.get(Calendar.AM_PM));
System.out.println(" HOUR_OF_DAY (24-hour): " + c.get(Calendar.HOUR_OF_DAY));
System.out.println(" MINUTE : " + c.get(Calendar.MINUTE));
System.out.println(" SECOND : " + c.get(Calendar.SECOND));
System.out.println();*/ -
How to get the last day according to fiscal period input in selection scree
Hello expert
how to get the last day of fiscal period input.
the fiscal period inculdes 1-16
when fiscal period is greater than 12, only calculate the last day of 12nd month
your solution will be apprecaited, FM existing?
thank you
KevinHi,
when you give a particular date in any month
the following fm will give you the last date of that month
here you can give
R_FDATE-HIGH as 01 and month as the period you wnat and year for current year
concatenates '01' month year into r_fdate-high separated by '.'.
then it will give g_ltdt for that month and year which wil be the last date of that month
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
DAY_IN = R_FDATE-HIGH
IMPORTING
LAST_DAY_OF_MONTH = G_LTDT
EXCEPTIONS
DAY_IN_NO_DATE = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
thanks & regards,
Venkatesh -
How to get the "last changed by" for a set of function modules?
How to get the "last changed by" for a set of function modules?
is there any table to get it??See [this|Re: Date of creation of function module] I posted earlier.
>TFDIR will give you the name of the function group program and the include number.
>E.g. SAPLZFUNCGROUP Include 01.
>From this you can construct the include name: LZFUNCGROUPU01.
>You can look this up in TRDIR to find the creation date (CDAT) of the function module.
In your case, you need unam and udat.
matt -
Get the last date of a given date...
Hello experts,
How do I get the last date of a given date? for example:
20060615 "June 15,2006
So I want to get the last date of june so that will be
20060630
But I want to make it this way:
06/30/2006 because I will use it in my where clause.
Again, thanks a lot guys and take care!The date format should be in 'YYYYMMDD'
data : v_last_day like sy-datum,
v_in_date like sy-datum.
v_in_date = '20050109'.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
DAY_IN = v_in_date
IMPORTING
LAST_DAY_OF_MONTH = v_last_day
* EXCEPTIONS
* DAY_IN_NO_DATE = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write : / v_last_day.
Cheers
VJ -
How to get the last error for while loop?
How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.
What do you mean by "get" and "transfer"?
If the shift register is not what you want, use a plan tunnel instead.
Typically, programmers are interested in the first, not last, error.
Can you show us your code so we have a better idea what you are trying to?
LabVIEW Champion . Do more with less code and in less time . -
How to get the last version of flash in MSI format automatically?
How to get the last version of flash in MSI format automatically?
Roberto Neigenfind
Bravo Tecnologia
www.bravotecnologia.com.brHi Barbara,
Flash Professional CS5.5 is a 32-bit application which can be installed on computers with either 32-bit or 64-bit operating systems.
You can purchase this by Adobe's backward Licensing policy :
" Adobe allows program members to order a current-version license but use a prior version. These members can contact Adobe Customer Service to request a serial number for the earlier version if they do not already have one. Prior-version software is available via ESD and can be purchased through standard resellers. The program member must follow all guidelines of the current-version EULA. "
Please check the doc : http://www.adobe.com/volume-licensing/policies.html -
How to get the last page SAP Script form
How to get the last page SAP Script form.
I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
RegardsHi
You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
From SAP Help:
This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
/: IF &NEXTPAGE& = '0'
Last page
/: ENDIF
Max -
How to get the actual data in ALV report
I am doing some upgradation work in that i am using Submit & And return and also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
With the use of set table for 1st display i got the ALV report but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get the actual data in ALV report, With the use of Any Function Module or with Coding,
with regards,Hi Saravana
I am sure you must be getting the values in tables of table parameters from every FM.
consolidate the values from tables of all FMs in one table and built ALV for that table only.
I hope this way you can show the actual data in ALV.
thanks
Lalit -
How to get the "current date" in the BEx?
Hi all,
I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
Thanks1. Create a New Formula in Key Figures structure
2. Give tech name and description and Select "New variable" option
3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
4. in next screene select the date characteristic that represents the first date to use in the calculation (From Date)
5. In the next screen select Key in the Replace Variable with field. Leave all the other options as they are
6. In the next Currencies and Units screen select Date as the Dimension ID.
6. Save variable
repeate the Above steps to create another variable (To Date)
and now you can use these two new replacement path variables in your new formula.
Dev -
How to get the current date in a workflow
Hey,
Can anyone tell me how to get the current date while in a workflow?
Thanks in advance.Here is how we did it, hope it helps
<defvar name='locCalendar'>
<new class='java.util.GregorianCalendar'/>
</defvar>
<defvar name='dateFormat'>
<new class='java.text.SimpleDateFormat'>
<s>MM/dd/yyyy</s>
</new>
</defvar>
<defvar name='formatedDate'>
<invoke name='getTime'>
<ref>locCalendar</ref>
</invoke>
</defvar>
<invoke name='format'>
<ref>dateFormat</ref>
<ref>formatedDate</ref>
</invoke>
Maybe you are looking for
-
HOW CAN i GET ItUNES TO PLAY MY TUNES?
i AM UNAB;E TPO PLAY MY MUSIC FILES ON ItUNES. I uninstalled and reinstalled the iTunes app with no change. The ap appears to load but doesnot play.What can I do to get it to play?
-
My video also shows up under music...
I just bought The Waterboy and it shows up under videos just fine and it works and everything but if I go to music I can turn it on in music folder it plays as if it is a music file I can watch it in both sideways modes and the normal mode which is a
-
Linking Table between AR to GL
Hi Everyone, I have transferred all my AR Invoices to GL. Now I want to trace which AR Invoice is linked with which GL entry. Can anyone pl help me by giving the linking tables ?? Thanx in advance. Regards,
-
Want to buy some donuts on the Simpsons tapped out game and it is telling me to contact support. I have updated my info and credit card. Help
-
Mensaje: Error! Check Activation
Cuando abro un archivo .acsm bajado de, por ejemplo, la casa del libro, Adobe Digital Editions me comunica: Error! Check activation. Ya tendo ID de adobe, me ha confirmado que está bien pero sigo sin poder abrir nada. Cambié el firewall, reinicié y n