How to calculate week number from system date
Hi experts,
how to calculate week number from system date ?
thanks.
SK
hi,
The above FM can be used for BADI or customer exit, if it is design level then you can use formula as well, under formula date functions you can use DATE_TO_WEEK.
regards,
Arvind.
Similar Messages
-
XSLT Mapping: how to calculate Week number of the year from given date
Hi,
I have input as date, i need to know the Week number from that date in XSLT Coding.
for Eg: if date is 29-12-2009 it should give 53rd week of the year.
All answers will be appreciated.
Regards,
MayankHi add this statement to your XSLT Mappping
<xsl:stylesheet version="1.0" xmlns:java="http://xml.apache.org/xslt/java" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="java">
and use <xsl:template name="GetDateInLocal" xmlns:cal="xalan://java.util.GregorianCalendar"> in XSLT Mapping , write your logic.
cheers,
Raj -
How to get week number from date
Hi,
please mention how to get the number of week from a particular date using fn module?Hi Debarshi,
Use FM <b>DATE_GET_WEEK</b>
Reward points if helpful.
Regards,
Hemant -
How to generate a number from two dates
I am 'new' at this of using Numbers for anything. What I want to do AND I can't seem to figure it out, is to generate a 'days total' from two dates. I get paid S.S. on the 2nd Wednesday of each month. I have X number of dollars to spend. In order to view each day how much money I have for the rest of the month, I need to be able to obtain how many days are left in the period. I know what the fixed day is for the end and could key that in. I want it to be able to take the current day for the calculation without my having to key IT IN each day. Then I could use that returned number for other functions. I did look into "Functions" screen on the right hand side, read them several times, tried some but have not succeeded. Can someone here help this 68 year young man to figure this out? Thanks
you can use the function TODAY() to get the date.
then you can compute a duration (the difference between two dates). Data/time is a single type of variable in Numbers. Meaning that a complete date/time value includes both a date and a time. When you enter one without the other Numbers assumes the other portion.
you can subtract any two dates to get the duration.
The format for a date is:
1/2/2015 12:09A
2 Jan 2015 12:09A
a duration would look like:
3w 4d 6h 15m 45s 76ms
Three weeks, four days, six hours, fifteen minutes, forty five seconds, seventy six milliseconds
you can use any combinations of these parts for a duration
A1
=TODAY()
B1
=EOMONTH(TODAY(),0)
C1
=B1−A1 -
How to calculate Average time from a date field
Hi All,
I have a date type field in my table .
I want to calculate average time for a given country in a select query. Date has to be exculded. Only time has to be taken into consideration.
Kindly help me.
Sample data
india 25-JUN-09 08:12:45
india 25-JUN-09 09:01:12Take which one you want.WITH dates AS
(SELECT sysdate x FROM dual
UNION
SELECT sysdate + 1 +1/24 FROM dual
SELECT TO_CHAR(to_date(AVG(to_number(TO_CHAR(to_date(TO_CHAR(x,'HH24:MI:SS'),'HH24:MI:SS'),'sssss'))),'sssss'),'hh24:mi:ss')
FROM dates;
WITH dates AS
(SELECT sysdate x FROM dual
UNION
SELECT sysdate + 1 +1/24 FROM dual
SELECT floor(24 * AVG(x- TRUNC(x)))
|| ':'
|| floor(mod(24 * AVG(x- TRUNC(x)),1) * 60)
|| ':'
|| floor(mod(mod(24 * AVG(x- TRUNC(x)),1) * 60,1) * 60)
FROM dates;By
Vamsi -
How to get week number and day in my result?
hi experts, i have given the data is ID and DATE(yyyymmdd),i want to get output like ID,DATE,WEEKNO,YEAR,MONTH,DAY. how to get this output.
thanks & regards
vijayIn a routine transformation you can call function
DATE_GET_WEEK
to get the week number from the date.
To determ the others, use the substring
YEAR = DATE(4)
MONTH = DATE+4(2)
DAY = DATE+6(2) -
How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)
DT,
If the starting date is in Column A, and you want to calculate what the date would be 60 days later, in Column B, write in Column B:
=A+60
Couldn't be much easier.
Jerry -
Schedule lines should not change 3 weeks time from MRP date
Hi
Is there any specific customisation required to get following results in case of schedule lines.
1) MRP should not change/adjust the already send delivery schedule lines which are lying within 3 weeks time from MRP date
2) System should not allow to book the GRN unless the messages / print out has been generated from the system in case of scheduling agreement.
Thanking you
Shantakumar
09944009752Hi,
There are 2 possibilities:
1. use MRP fixing using planning time fences, this is done by putting the relevant settings in the MRP1 view of the material master
2. use the firming options of the scheduling agreement, these are set per material number that is entered in the scheduling agreement.
The GR can only be posted for schedule lines that have been processed aka output generated.
Regards, -
How to calculate the number of sent/received emails of a certain domain
Thank you for what you have helped me with!
How to calculate the number of sent/received emails of a certain domain in a certain period? It is Messaging Server 5.2, Directory Server 4.2. Is there a log option for this?
Thank you.Not sure where you find, "LOG_MESSSAGE_ADD". I don't actually find this option in the documentation.
The domains that mails are coming from and being sent to are certainly logged in the normal mail.log, so why mess with additional logging options? If you're talking about "LOG_CONNECTION", I actually see no additional data that is useful to you.
If you decide to change the option.dat, you do indeed need to
imsimta cnbuild (note, it's not cnrebuild)
imsimta restart
If I were facing the same issue, I'd be looking at the log parsing perl script, and simply modifying it to do what I wanted. -
How to calculate total number of pages in a script
hi
how to calculate total number of pages in a scriptJyothsna,
Date:-&sy-datum&
Time:-&sy-timlo&
Total No.of Pages:-&sapscript-formpages&
Page No:-&PAGE&/&SAPSCRIPT-FORMPAGES&
Give the above said lines in your text editor,and given the paragraph format.Better create one more window and give the above said lines in the text editor.
K.Kiran. -
Load Grid with data from System.Data.DataTable
Hi all.
A have a System.Data.DataTable e need load a grid with data from this DataTable.
How Load a Grid with data from System.Data.DataTable?Hi Francisco,
actually i don't think that you can use a .NET datatable to fill a business one grid.
the business one has it's own datatable.
in c# it would look like this:
oForm.DataSources.DataTables.Add("MyDataTable");
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).DataTable = oForm.DataSources.DataTables.Item("MyDataTable");
oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Field FROM [dbname].dbo.TABLE");
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).CollapseLevel = 1;
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).AutoResizeColumns();
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single;
good night
lg David -
Read Year from System Date & Compare - Assistance required
Hi All,
I am trying to read only the year part from the system date & then checking if any entry exists in EKKO table (EKKO-BEDAT) for the year. I think i am making an error in my data declaration for V_YEAR & in my select statement (EKKO~BEDAT LIKE V_YEAR), not sure how to compare only the year part, can someone help.
DATA:
V_EBELN TYPE EKPO-EBELN,
V_YEAR TYPE SY-DATUM.
CLEAR: V_EBELN, V_YEAR.
*Read year from system date
V_YEAR = SY-DATUM+0(4).
CONCATENATE '%' '%' '%' '%' V_YEAR INTO V_YEAR.
*Select section
SELECT SINGLE EKPO~EBELN INTO V_EBELN
FROM EKPO
INNER JOIN EKKO
ON EKPOEBELN = EKKOEBELN
INNER JOIN LFM1
ON EKKOLIFNR = LFM1LIFNR
WHERE EKKO~LIFNR = LFM1-LIFNR
AND EKKO~BEDAT LIKE V_YEAR
AND EKPO~LOEKZ = SPACE.Hi Sougata,
Thanks for the inputs, but it is not working:
Move: sy-datum(4) to v_begda, -> This reads the system year 2008
'0101' to v_begda, -> This changes 2008 to 0101
sy-datum(4) to v_endda, -> This reads system year i.e. 2008
'1231' to v_endda. -> This changes 2008 to 1231
Also in the select statement
AND EKKO~BEDAT between v_begda and v_endda
This would not work, as EKKO-BEDAT is in year month date format.
So can you please clarify why we are assigining 0101 & 1231 & also how we can compare only the year in EKKO-BEDAT with System Year
Update
I tried to
concatenate '0101 into v_begda.
concatenate '1231' into v_endda.
but system prompts "charlike-field" expected after "'0101'"
Can you please advice?
Edited by: Vivek on Jan 5, 2008 7:59 PM -
Missing Serial number from System profiler
I just noticed that I'm missing the serial number from my System Profiler.
The only reason why I noticed is that I was trying to gather information about the macs on the network via remote desktop and I found several that will not allow me to gather information about the system.
They are all the ones missing the serial number from System profiler.
How can I add it back? Also anyone know why it is missing?The serial number disappears when the motherboard/logic board is switched out, because the serial number is linked to that piece of hardware.
Authorized Apple repair tech are supposed to use some special software to input the S/N onto the logic board. Possibly they can do it for you.
Cheers, Tom -
How to get maximal value from the data/class for show in Map legend
I make WAD report that using Map Web Item.
I devide to four (4) classes for legend (Generate_Breaks).
I want to change default value for the class by javascript and for this,
I need to get maximal value from the class.
How to get maximal value from the data/class.
please give me solution for my problem.
Many Thx
Eddy Utomouse this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01 -
How to get internal table from SAP Data Provider C#
Hello.
ABAP:
DATA: lt_t001 TYPE TABLE OF t001.
DATA: url(1000) TYPE c.
SELECT * INTO TABLE lt_t001 FROM t001.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'APPLICATION'
subtype = 'X-R3TABLE'
TABLES
data = lt_t001
CHANGING
url = url
EXCEPTIONS
OTHERS = 4.
C#:
using SAPDataProvider;
using SAPTableFactoryCtrl;
public void SetDataFromUrl(string url)
SAPDataProviderClass p = new SAPDataProviderClass();
p.SetDataFromURL("APPLICATION", "X-R3TABLE", url);
ISapDPR3Table tbl = p.GetDataAsR3Table("APPLICATION", "X-R3TABLE");
SAPTableFactoryClass tf = new SAPTableFactoryClass();
Table tb = (Table)tf.NewTable();
tb.ISAPrfcITab = tbl.DataTable; // Exception !!!!!!
How to get internal table from SAP Data Provider ?Hi Sergey,
I'm trying to do the same, have you found a solution to solved it?
thanks for your help.
Regards.
Jonathan
Maybe you are looking for
-
Steps to upgrade Bw Objects from BW 3.5 to BW 7.0
I have upgraded a NW2004(BW3.5) system to NW2004s(BW 7.0) . After upgrade i see that the infocubes, infoobjects are still in BW 3.5 Concept itself. When i open each object and save it , it is changing to BW 7 Object. But there are about 10000 objects
-
Lightning to 30-pin Adapter - - will it be available in Black as well?
The reason I ask, is that if it only comes in white, it is going to look rubbish when used on a B&W Zeppelin. Black speakers, black iPhone 5 - white adapter. Not a good look at all. Apple - if you haven't produced one in Black - please do so!! I am
-
Why is the icloud icon not in system preferences on my Macbook Pro?
My Macbook does not have the icon for icloud in system preferences. I have the newest softeware and do not know how to set up icloud for m device if it is not listed under system preferences. Any help would be appreciated.
-
How do I get iCloud icon on my macAir?
How do I get Icloud icon on my macAir
-
I'm looking for some feedback here... I had planned to use Access as my database and link it up with Flash with an ASP file... is this a good way to do this... should I reconsider and use Excel and utilize XML and link it up that way....or is there a