Number of Vendor in the given date range
Hi All,
I have a requirement like I need to calculate Total Number of Vendors in a given Date in Report Level. Could anyone please let me know how to do this?
Thanks in advance.
with Regards,
Mahi.S
Hi Al,
Thanks for the prompt answer.
I tried creating a Calculated Key Figure and given Vendor as Characteristic. When I run the report I can see Count 1 for all the Vendors. But the user wants to see total number of records. FYR, please have a look at the below sample data.
Vendor Vendor Account Group Company Code Created on Plant Total number of Vendors
2 ZINT 0101 07/2/1998 # 1
3 ZINT 0101 07/2/1998 # 1
4 ZINT 0101 07/2/1998 # 1
5 ZINT 0101 07/2/1998 # 1
7 ZINT 0101 10/27/1998 # 1
12 ZINT 0101 05/6/1999 # 1
14 ZINT 0101 05/6/1999 # 1
17 ZINT 0101 06/7/1999 # 1
18 ZINT 0101 06/7/1999 # 1
19 ZINT 0101 06/7/1999 # 1
20 ZINT 0101 06/7/1999 # 1
22 ZINT 0101 08/26/1999 # 1
27 ZINT 0101 09/28/1999 # 1
28 ZINT 0101 09/28/1999 # 1
29 ZINT 0101 09/28/1999 # 1
30 ZINT 0101 09/28/1999 # 1
31 ZINT 0101 09/28/1999 # 1
32 ZINT 0101 09/28/1999 # 1
33 ZINT 0101 09/29/1999 # 1
42 ZINT 0101 10/1/1999 # 1
52 ZINT 0101 10/22/1999 # 1
53 ZINT 0101 11/16/1999 # 1
54 ZINT 0101 11/16/1999 # 1
57 ZINT 0101 02/1/2000 # 1
62 ZINT 0101 04/25/2000 # 1
63 ZINT 0101 04/25/2000 # 1
67 ZINT 0101 05/30/2000 # 1
72 ZINT 0101 07/6/2000 # 1
82 ZINT 0101 09/21/2000 # 1
Thanks & Regards,
Mahi.S
Edited by: SRI on Dec 20, 2011 7:57 AM
Similar Messages
-
Any FM to get count of each week day for the given date range
Hi guys,
Any FM to get count of each week day for the given date range?
eg: If i give 14/07/2008 to 14/08/2008
I need to find how many Mondays, tuesdays...sundays in this given date range.
If not single FM is available, any logic that gives above result is also appreciated.
Thanks,
Vinod.hi Vinod,
this is not a full solution, I just give you a basic idea:
DATA : lv_start TYPE sy-datum VALUE '20080714',
lv_end TYPE sy-datum VALUE '20080814'.
WHILE lv_start LE lv_end.
CALL FUNCTION 'FTR_DAY_GET_TEXT'
EXPORTING
pi_date = lv_start.
* IMPORTING
* PE_DAY_TEXT1 =
* PE_DAY_TEXT2 =
* PE_DAY =
* you have to summarize the output here somehow...
lv_start = lv_start + 1.
ENDWHILE.
hope this helps
ec -
Get Months for the given date ranges on the Selection Screen
Hello All,
If I give Begin Date (Begda) and End Date (Endda) on the Selection Screen, I need to get all the months given in the selection screen ranges.
Could any one please suggest me how to proceed further on this.
Thanks in Advance
Regards
YathishHI,
Check this FM
HR_99S_INTERVAL_BETWEEN_DATES ---> this can help you it will return the month in this table MONTH_TAB
HR_99S_MONTHS_BETWEEN_DATES -
Fetching information within the given date range
Hello All,
PLease can u help me in solving this : --
I need to fetch those employees who will complete 18 yrs within the date range specified.
For example, if date1 = 10/21/2008 and date2 = 11/03/2008
then i need to display information of all those employees whose birthday fall within the date range along with the date.
Thanks in advance !Hi,
16:58:25 b1>desc test1
Name Null? Type
AGE NUMBER
BDATE DATE
16:58:36 b1>SELECT * FROM test1
16:58:47 2 ;
AGE BDATE
18 23-OCT-08
17 23-NOV-08
16:58:48 b1>SELECT *
16:58:55 2 FROM test1
16:58:55 3 WHERE Bdate BETWEEN TO_DATE('21/10/2008','DD/MM/YYYY') AND TO_
DATE('30/10/2008','DD/MM/YYYY');
AGE BDATE
18 23-OCT-08- Pavan Kumar N -
Name of users of a particular Tcode for a given date range
Hi experts,
I am making an alv where inputs will be
1> T_code(as parameter)
2> Date Range(as Select options)
I have to display the following fields:::
1> User name
2> Frequency of use the Tcode for the given Date range.
Please give me the tables where I can get the relation of those fields.
N.B. I know the transaction AL08 and SM04.But it won't solve my purpose.
Thanx in advance,
Sourav>
SOURAV PAUL wrote:
> Hi experts,
> I am making an alv where inputs will be
> 1> T_code(as parameter)
> 2> Date Range(as Select options)
by creating the report As per your this requirement you need not to create any Bulk on your SAP.Just use STAD/STAT transaction they are availabe for this purpose.
and more you may track by security log audit by SM20 get these details.
i'm worried about tables which sre storing these details. -
FM that gives number of day in the week for the given date
Hi,
I have a requirement to find the number of the day in a week for the given date. For example, 07/09/2009 is Thursday & 4th day of the week. Is there any FM to accomplish this task?
Appreciate your help in Advance.
Thanks,
Kannan.Hi Kannan,
ISH_GET_DAY_OF_WEEK.
Regards,
Dilek -
FM which gives the date if we add 'x' number of days to the current date.
Hi all,
can you plz tell me the FM which will give me the exact date if i add some ' X ' number of days to the present date.
in detail -->my inputs would be 1)DATE
2)no of days
i need--> the exact date which comes after those days get added to the given date.
PLZ HELP ASAP.
Rgds,
REDDY.Hi,
You can use FM RP_CALC_DATE_IN_INTERVAL.
data: wa_date like sy-datum.
*Add 21 days to current date.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 21
months = 0
signum = '+'
years = 0
importing
calc_date = wa_date.
write: / wa_date.
Regards,
Ferry Lianto -
How to calculate a week & Month in given date range (not for sele-options)
Hi ,
I have defined 2 date parameters in sel-screen (Plz remember that date variable are not a SELECT-OPTIONS). Now i want ot display week nos & monts in output.
Ex: date1: 20080101 & date2: 20080229. then
weeks : 1, 2, 3,---9.
months: jan-08, feb-08.
Plz help me with block of code or any FM.
Regards,Hi Srikanth,
The FM HR_99S_INTERVAL_BETWEEN_DATES is doesn't existing, but there is a fm HR_MX_INTERVAL_BETWEEN_DATES but it returns no of Years & Days.
But i found some FM which r returns no of months for given date range. but my requirement is, want to display the month no bw 1 to 12. (ex: dat1=15-03-2008 & dat2= 01-06-2008 then in month fields 03,04,05 & 06. ).
Plz help me on this.
-Regards. -
Get table partition name dynamically for given date range
Dear All,
Could you please tell me how to get the partition name dynamicaly for given date range ?
Thank you.SQL> select table_name,
partition_name,
to_date (
trim (
'''' from regexp_substr (
extractvalue (
dbms_xmlgen.
getxmltype (
'select high_value from all_tab_partitions where table_name='''
|| table_name
|| ''' and table_owner = '''
|| table_owner
|| ''' and partition_name = '''
|| partition_name
|| ''''),
'//text()'),
'syyyy-mm-dd hh24:mi:ss')
high_value_in_date_format
from all_tab_partitions
where table_name = 'SALES' and table_owner = 'SH'
TABLE_NAME PARTITION_NAME HIGH_VALUE_IN_DATE_FORMAT
SALES SALES_1995 01-JAN-96
SALES SALES_1996 01-JAN-97
SALES SALES_H1_1997 01-JUL-97
SALES SALES_H2_1997 01-JAN-98
SALES SALES_Q1_1998 01-APR-98
SALES SALES_Q2_1998 01-JUL-98
SALES SALES_Q3_1998 01-OKT-98
SALES SALES_Q4_1998 01-JAN-99
SALES SALES_Q1_1999 01-APR-99
SALES SALES_Q2_1999 01-JUL-99
SALES SALES_Q3_1999 01-OKT-99
SALES SALES_Q4_1999 01-JAN-00
SALES SALES_Q1_2000 01-APR-00
SALES SALES_Q2_2000 01-JUL-00
SALES SALES_Q3_2000 01-OKT-00
SALES SALES_Q4_2000 01-JAN-01
SALES SALES_Q1_2001 01-APR-01
SALES SALES_Q2_2001 01-JUL-01
SALES SALES_Q3_2001 01-OKT-01
SALES SALES_Q4_2001 01-JAN-02
SALES SALES_Q1_2002 01-APR-02
SALES SALES_Q2_2002 01-JUL-02
SALES SALES_Q3_2002 01-OKT-02
SALES SALES_Q4_2002 01-JAN-03
SALES SALES_Q1_2003 01-APR-03
SALES SALES_Q2_2003 01-JUL-03
SALES SALES_Q3_2003 01-OKT-03
SALES SALES_Q4_2003 01-JAN-04
28 rows selected. -
SD pricing extract for given date range
Hi,
Is any one knows any FM where you can able to extract pricing for given date range.
FM Pricing works for one date. I don't want to loop at this
FM for the given date rage. It takes very long time.
Thanks for any suggestion.
Kind Regards
NirHi,
Is any one knows any FM where you can able to extract pricing for given date range.
FM Pricing works for one date. I don't want to loop at this
FM for the given date rage. It takes very long time.
Thanks for any suggestion.
Kind Regards
Nir -
Price change report for a given date range in inforecords
hi,
Can any body suggest how we can get price changes in inforecords for given date range. is there any standard sap tcode or fuction module.Hi,
If you are referring to the changes in the condition record (for eg. for PR00), then you may go through the foll path:
Execute VK13 for any condition type - once inside the detail screen, from the menu path, choose Environment -> Changes -> change report. This will take you to a new selection screen where you can define the period you want to see the change record as well as the condition type for which you want to track the changes. Beware, this is a complex report for SAP and it will take definitely longer time to complete. So, it is better to specify short time periods and specific condition types and execute this in background.
Hope, this helps!
S. Siva -
Working hours of an employee between a given date range
Hi Everyone,
how to calculate working hours of an employee between a given date range
Please anyone qive me some idea..
Thanks in advanceHi Lathessh,
Thanks for the reply here is the sample data. Actually we have two datetime field and i want to calculate the Ageing of an employee , by excluding of sunday and holiday between startdate and endDate.
Ageing should be in hours. Thanks
StartDateTime
EndDateTime
HolidayList
2/24/2014 11:55
3/1/2014 16:45
1/1/13 0:00
2/24/2014 12:08
2/28/2014 12:55
1/14/13 0:00
2/24/2014 16:16
2/28/2014 15:20
1/25/13 0:00
2/14/2014 12:56
3/4/2014 16:20
3/27/13 0:00
2/14/2014 12:56
3/4/2014 16:20
3/29/13 0:00
2/14/2014 12:56
3/4/2014 16:20
4/24/13 0:00
2/14/2014 12:56
3/4/2014 16:20
5/1/13 0:00
2/26/2014 13:53
3/4/2014 16:20
8/9/13 0:00
2/27/2014 12:13
3/5/2014 13:05
8/15/13 0:00
3/3/2014 14:42
3/5/2014 17:05
8/20/13 0:00
3/3/2014 14:42
3/5/2014 17:05
8/28/13 0:00
3/3/2014 14:42
3/5/2014 17:05
9/18/13 0:00
3/6/2014 12:28
3/6/2014 17:55
10/2/13 0:00
3/6/2014 12:59
3/7/2014 13:55
10/16/13 0:00
3/6/2014 14:37
3/7/2014 11:15
11/5/13 0:00
3/6/2014 14:57
3/7/2014 12:10
11/15/13 0:00
3/4/2014 17:21
3/10/2014 15:55
12/4/13 0:00
3/4/2014 17:21
3/10/2014 15:55
12/25/13 0:00
3/6/2014 12:08
3/10/2014 14:10
12/31/13 0:00
3/6/2014 13:31
3/10/2014 13:05
1/1/14 0:00
3/6/2014 13:14
3/11/2014 13:20
1/14/14 0:00
3/6/2014 13:14
3/11/2014 13:20
3/17/14 0:00
3/11/2014 14:29
3/13/2014 11:20
4/8/14 0:00
3/11/2014 14:29
3/13/2014 11:20
4/14/14 0:00
3/12/2014 12:56
3/13/2014 11:45
4/18/14 0:00
3/12/2014 12:56
3/13/2014 11:45
5/1/14 0:00
3/12/2014 14:02
3/12/2014 18:10
7/29/14 0:00
3/12/2014 14:22
3/12/2014 18:05
8/15/14 0:00
2/24/2014 16:49
3/14/2014 12:10
8/18/14 0:00
2/24/2014 16:49
3/14/2014 12:10
8/29/14 0:00
2/24/2014 16:49
3/14/2014 12:10
10/2/14 0:00
2/24/2014 16:49
3/14/2014 12:10
10/3/14 0:00
3/12/2014 11:31
3/14/2014 15:55
10/6/14 0:00
3/12/2014 13:31
3/15/2014 12:20
10/23/14 0:00
3/12/2014 15:31
3/15/2014 11:10
10/24/14 0:00
3/12/2014 15:49
3/14/2014 13:55
12/25/14 0:00
3/12/2014 16:19
3/14/2014 15:05
12/31/14 0:00 -
To find quarters in given date ranges
Hi All,
I need help on this..
I need to display the quarter dates in a given date ranges.i.e the start date is 06-nov-2008 and the last date is 12-dec-2009.Hi,
Something like:
WITH d AS
SELECT TRUNC (TO_DATE (:from_dt_var, 'DD-mon-YYYY'), 'Q') AS from_dt
, TRUNC (TO_DATE (:to_dt_var, 'DD-mon-YYYY'), 'Q') AS to_dt
FROM dual
SELECT ADD_MONTHS (from_dt, 3 * (LEVEL - 1)) AS dt
FROM d
CONNECT BY LEVEL <= 1 + (MONTHS_BETWEEN (to_dt, from_dt) / 3);where :from_ and :to_dt_var are strings like '06-nov-2008'.
Edited by: Frank Kulash on Nov 6, 2008 9:52 AM
Added 1 to CONNECT BY condition. -
I am trying to connect to a Odata Data feed from Excel 2013 Power Pivot
The datasource is in sharepoint site eg: https://sitename/Shared%20Documents/datafeed.atomsvc
getting below error
Error message:
Failed to connect to the server. Reason: The payload kind 'BinaryValue' of the given data feed is not supported.
============================
Call Stack:
============================
at Microsoft.Data.DataFeedClient.DataFeedODataReader.ValidatePayloadKind(ODataPayloadKind payloadKind, ODataMessageReader odataMessageReader)
at Microsoft.Data.DataFeedClient.DataFeedODataReader.InterceptODataException(Action action)
at Microsoft.Data.DataFeedClient.DataFeedODataReader..ctor(IODataResponseMessage responseMessage, Int64 maxReceivedMessageSize)
at Microsoft.Data.DataFeedClient.DataFeedODataReader.CreateReader(IWebResponse webResponse, Int64 maxReceivedMessageSize, Boolean applySlashUpdatingBaseUriResolver)
at Microsoft.Data.DataFeedClient.ODataHelper.GetCollectionsFromServiceDocumentUrl(Uri serviceDocumentUrl, DataFeedConnection connection)
at Microsoft.Data.DataFeedClient.DataFeedConnection.Open()
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open(String& connectionIdentifier)
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open()
at Microsoft.AnalysisServices.Common.DataSourceBasic.ClickTestConnection(Object progressControl)
Appreciate suggestions/answers
NOTE: The error is showing only while using Excel 2013 powerpivot
its working good with Excel 2010 powerpivotAnita,
Please look into using Power Query to use OData as a source in Power Pivot.
Thanks!
Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
First Date of the Given date and month
Hi Evryone,
I want to extract first day of the given date.
For Ex: i aam giving date "30-jan-2013" but i want to show "01-jan-2013".
In Oracle, Trunc function behaving mentioned above. So i need appropriote function in HANA to get the FIRSTDATE....
I observed HANA Given last_date function but what about First_Date function? can i use it?
Regards,
ChandrakanthHi Chandrakanth,
Did you have a look on this blog:
SAP HANA: Get the First Date and the Last Date of Month from a Given Date | WuaWua
There is LAST_DAY in HANA but not FIRST_DAY.
Since last day of the month may vary but first day of the month will always be '01'. Hence they may not have added that function.
So either you can follow that approach in the blog or you can simply replace the day '01'.
Regards,
Krishna Tangudu
Maybe you are looking for
-
Found the answer on another discussion. Opened iPhoto preferences and deleted MobileMe account. Under the Accounts tab, there are + and - buttons where you can add and delete accounts.
-
All apple application not work
Need help! I saw following in the console: 13/3/15 12:57:15.111 pm com.apple.xpc.launchd[1]: (com.apple.systemprofiler[2417]) Service exited with abnormal code: 1 13/3/15 12:57:15.111 pm com.apple.xpc.launchd[1]: (com.apple.systemprofiler) Service o
-
I'm running into a problem from a RoboHelp project with topics being deleted. When I bring up a project most of my topics and folders have been deleted. Luckily, I backed up the project to another location, but when I copy the backup to the My RoboHe
-
Mac plugin, 32 and 64 bit needed? or just 64 bit?
Hi All I'm currently developing our plug-in for the Intel Mac. I'm primarily a Windows developer, so I'm not too familar with the Mac. Will we need to make both a 32 and 64 bit plugin for OS X? From what I can tell, OS X Lion onwards is 64 bit only
-
Fallo en SQL Developer , bugs in SQL Developer
He detectado que si hacemos clic con el botón derecho sobre una tabla y seleccionamos EXPORT ==> SQL INSERT. la exportación no se lleva a cabo. ¿Alguien ha detectado este problema?