Daily, Monthly, and Yearly Report
Hi I am new to the BAM. I have a BPM process. I want to generate the daily, monthly and yearly report for it. Please advise how can I achieve it. I have a one dimension variable on the process.
Thanks in advance!
Hi,
Try this query to get default ware house and its quantity and modify above query.
SELECT T0.[ItemCode], T0.[WhsCode], T0.[OnHand] FROM OITW T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode WHERE T0.[WhsCode] = T1.[DfltWH] and T1.[ItemCode] = [%0]
Thanks & Regards,
Nagarajan
Similar Messages
-
DRQ: Isolate the Daily, Monthly and Yearly CheckBoxes in Selection Criteria
Module: Financials => Financial Reports => Accounting => General Ledger
Request to Isolate the Daily, Monthly and Yearly Check Boxes in the General Ledger - Selection Criteria screen, instead of an option in the report window.
Problem: If there is BP/General Ledger having long transaction list, then once user un-check any of the check boxes system takes long time to remove/hide those rows which contains Totals. Which is effecting the performance of the report also. Also those checkboxes appeared with check marked by default.
If user has an option in the selection criteria screen, then they can choose which Total they want before previewing the report and mark accordingly.
Thanks & Regards
Anjan BhowmickBeing reached to 10 open question, I am forced to close this thread
-
Sales report for current month and year a go month
i could you please guide me builting report for current monthwise for current month and year a ago month
report parameter month_year='06-2010'
tables = sales and below are the table fields
customer_id
invoice_dt
invoice_am
thanks
nhmOkay, Still you did not mention how you will pass value in report while generating.
Anyway the query with UNION ALL will work. For Example.
I am assuming that the parameter for date/month you will pass in range like 01-JUN-2010 to 30-JUN-2010
SELECT customer_id, SUM(curr_value) curr_value, SUM(past_value) past_value
FROM
SELECT customer_id, NVL(SUM(invoice_amount),0) curr_value, 0 past_value
FROM sales
WHERE invoice_dt BETWEEN :P_FROM_DATE AND :P_TO_DATE -- here P_FROM_DATE and P_TO_DATE will be the date range for current year as i showed above.
AND -- Any Condition goes here...
GROUP BY customer_id
UNION ALL
SELECT customer_id, 0, NVL(SUM(invoice_amount),0)
FROM sales
WHERE invoice_dt BETWEEN ADD_MONTHS(:P_FROM_DATE,-12) AND ADD_MONTHS(:P_TO_DATE,-12) -- This add_months function for the previous year same month.
AND -- Any condition goes here...
GROUP BY customer_id
GROUP BY customer_idNow using the above query you can design the tabular report as you showed the format.
-Ammad
Edited by: Ammad Ahmed on Jul 3, 2010 7:55 PM
added GROUP BY -
List of Month and Year in SSRS report parameter?
Hi, I have two parameters in my SSRS Report i.e. Month and Year. I want to show the list of all Months in dropdown and years for a particular range say 1995-Current Year.
Can any one suggest me the query for how to get it to work.Thanks!!
MCPI am not sure I what you're business needs are for this report. You stated that you need the month and year for parameters. If this is the case then there has to be a date and time column in which you can query against to provide both the month(s) and year. In order to accomplish this using t-sql without querying an existing column would require a loop or cursor based approach,which can negatively impact performance, or a union statement specifying a string literal and the effort to write either of these would exceed the effort required to statically assign the parameter values in reporting services. The below query shows how to statically create a query for each month and its ordinal position in the year and the same could be done with the year(s) 1995-2009, but this process involves more resources than assigning the static values for the parameters
SELECT DATENAME(MONTH, 1 ) AS MONTH,
1
UNION
SELECT DATENAME(MONTH, 2 ) AS MONTH,
2
UNION
SELECT DATENAME(MONTH, 3 ) AS MONTH,
3
UNION
SELECT DATENAME(MONTH, 4 ) AS MONTH,
4
UNION
SELECT DATENAME(MONTH, 5 ) AS MONTH,
5
UNION
SELECT DATENAME(MONTH, 6 ) AS MONTH,
6
UNION
SELECT DATENAME(MONTH, 7 ) AS MONTH,
7
UNION
SELECT DATENAME(MONTH, 8 ) AS MONTH,
8
UNION
SELECT DATENAME(MONTH, 9 ) AS MONTH,
9
UNION
SELECT DATENAME(MONTH, 10) AS MONTH,
10
UNION
SELECT DATENAME(MONTH, 11) AS MONTH,
11
UNION
SELECT DATENAME(MONTH, 12) AS MONTH,
12
David Dye -
Table for Material Quantity and Value for particular month and year
Hi All
My requirement is that for a particular month and year I want to know the stock quantity and stock value for a particular material for a given plant.From which SAP table can I get this data as I want to fetch data for my Y report?
Regards
Satish KumarHi,
You can use MB5B table as suggested earlier.also you can use:
MBEW-VMKUM --> stock for previous month period
MBEW-VJKUM --> stock for previous year period
PLease view these links which migh tbe helpful to you:
http://help.sap.com/saphelp_47x200/helpdata/en/39/55fee3bc6111d4b3960050dadf0791/content.htm
TableStock
Thanks
Nisha -
SELECTION SCREEN FIELD FOR MONTH AND YEAR
Hi All.
We are developing a 'Monthly Sales Tax(payable) Report.
they want the report based on the date(in the selection screen it will come only month and year only.).Depends on that month and year for that select-options ,it will pick up the record.
like if, jan 2005 to march 2006.
then it will pick up from 01.01 .20005 to 31.03.2006 records.
Can any body help me to resolve this.
Thanks in advance,
Regards,
VenkatHi Venkat,
Copy the following code.
DATA : ws_billfrom TYPE dats,
ws_billto TYPE dats.
DATA : mon TYPE fcltx.
SELECT-OPTIONS: s_month FOR mon
MATCHCODE OBJECT zsdhtch_sh_mnth
OBLIGATORY. "o get values for F4
PARAMETER : p_year LIKE bkpf-gjahr
MATCHCODE OBJECT zsdhtch_sh_year
OBLIGATORY.
RANGES : s_date FOR sy-datum.
DATA : ws_fcmnr TYPE fcmnr.
START-OF-SELECTION.
SELECT SINGLE mnr
INTO ws_fcmnr
FROM t247
WHERE ltx = s_month-low.
CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = ws_billfrom
IMPORTING
ev_month_begin_date = ws_billfrom
ev_month_end_date = ws_billto.
s_date-low = ws_billfrom.
s_date-high = ws_billto.
s_date-sign = 'I'.
s_date-option = 'BT'.
IF NOT s_month-high IS INITIAL.
SELECT SINGLE mnr
INTO ws_fcmnr
FROM t247
WHERE ltx = s_month-high.
CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = ws_billfrom
IMPORTING
last_day_of_month = ws_billto.
s_date-high = ws_billto.
ENDIF.
APPEND s_date.
WRITE s_date.
You can write your select statement here.
select * from dbtable where date in s_date.
If 'HR_JP_MONTH_BEGIN_END_DATE' is nto there in your server, you can use 'RP_LAST_DAY_OF_MONTHS' in both cases.
Regards,
Susmitha.
Dont forget to reward points for useful answers -
How to set filter criteria for month and year using in timestamp input field?
Hi,
I am using jdev 11.1.2.3,
I have one problem with Report generation,,,,,,I have one report table which is in the form of VO(query based) and i want to search this table as month and year basis
but in this table(query) that field having timestamp based value.. how to search with month name and year only.. Here i am using totally query base VO's for generating
reports........ Can any one guide me.
Thank You.You can use a inputdate, which allows you to selecte a moth, year and a day. Once the selection is made you convert it to only allow moth and date like
<af:inputDate label="Label 1" id="id1" autoSubmit="true" value="#{bindings.myMonthYear1.inputValue}">
<f:convertDateTime pattern="MM/yyyy"/>
</af:inputDate>
<af:outputText value="Selected #{bindings.myMonthYear1.inputValue}" id="ot1" partialTriggers="id1"/>
then you have a string holding month and year only. This value you split into two variables you or pass it as a whole parameter to the query and split it there.
Another way is to add two static lovs one for month and one for year and use them to get to the filter values.
Timo -
Elapse days - calculation from month and year
Duplicate thread ...
coding required for converting month into days
I have Month and year field in my DSO --Year( 2009), Month(4)
I want below logic to calculate -
MTD qty % = (qty * elapse days) / no of days in month
so from the above, I want to know,
1. How can we get the no of days from the above 2 objects (year and month).
2. Elapse days are the days that are over from current date to Ist day of that month.
eg: current date - 04.03.2009 , 1st day of the month - 04.01.2009,
elapse days = 2. (you need to consider all days in the month, not only working days)
so my questions is how can we get, # of days n a month from above 2 fields and elapse days based on the above condition.
also want to know, where can I have the logic in transformations or query level.
please provide your suggestions.
Thanks,
Pra
Edited by: Arun Varadarajan on Apr 5, 2009 10:44 PM
Edited by: Arun Varadarajan on Apr 5, 2009 10:45 PMHello,
I think the sample program below does what you ask: it finds the days in the month (bit of an overkill to use function modules for that) and then computes the QTD.
Note that the internal string representation of a data variable is always YYYYMMDD, regardless of the "externalized" form (e.g. yyyy/mm/dd or dd.mm.yyyy), so this code will work regardless of your custom date format.
Regards,
Mark
REPORT zqty_to_date.
PARAMETERS:
p_date TYPE dats,
p_qty TYPE i.
DATA:
days TYPE i,
n_year TYPE numc4,
n_month TYPE numc2,
n_day TYPE numc2,
qtd(6) TYPE p DECIMALS 1.
START-OF-SELECTION.
n_year = p_date+0(4).
n_month = p_date+4(2).
n_day = p_date+6(2).
PERFORM days_in_month USING n_year n_month CHANGING days.
qtd = ( p_qty * ( n_day - 1 ) ) / days.
WRITE: / 'Days in month:', days,
/ 'Qty to date :', qtd.
*& Form days_in_month
* text
FORM days_in_month USING year month CHANGING days.
DATA: ymod4 TYPE i,
ymod100 TYPE i,
ymod400 TYPE i.
CASE month.
WHEN 4 OR 6 OR 9 OR 11.
days = 30.
WHEN 2.
ymod4 = year MOD 4.
ymod100 = year MOD 100.
ymod400 = year MOD 400.
IF ( ymod4 = 0 AND ymod100 > 0 ) OR ( ymod100 = 0 AND ymod400 = 0 ).
days = 29.
ELSE.
days = 28.
ENDIF.
WHEN OTHERS.
days = 31.
ENDCASE.
ENDFORM. "days_in_month -
Can we modify the pnp selection screen and get only month and year?
Dear Freinds,
I have requirement where i have to modify the PNP selection screen. So with the help of report category and coding in AT SELECTION-SCREEN OUTPUT , i have modified all the fields relating to dates . i.e i have removed all the radio buttons (i.e Today, Current month,current year etc) and finally
i have landed with only Period ( PNPBEGDA & PNPENDDA range) . But i dont want the PNPBEGDA & PNPENDDA range , but i want only is the month and year ( i.e just like the PNPPABRP & PNPPABRJ)
on my selection screen along with the pernr .
i have used the below code to close all the fields except pnpbegda and pnpendda.
AT Selection-Screen output.
loop at screen.
IF screen-group4 = '098' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '092' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '094' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '100' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '104' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
MODIFY SCREEN.
endloop.
i.e on my selection screen i want only month & year combination and pernr -
when iam using the logical database PNP . Could any one please let me know how can i get only mon & year only on my selection screen .
If it is possible please let me know .
Thanks & regards
divya.Hi ,
The requirement is that the user doesnt want to enter the date range i.e for ex: 01012008 to 31012008.
As per the requirement the user will enter only the month and year only . so i on the selection screen
i want only the month and year only . Is there any means i can modify the date period which is there by
default (PNPbegda and PNPendda) on PNP selection screen. Instead of we givign to the user the
PNPBEGDA and PNPPENDA i want is only month and year .
AS already the code has already been written and now they have asked that they want only the month and year on the selection screen.
Please suggest me in this regard.If iam hiding all the buttons relating the dates fields, and now if iam adding the parameters for the month and year it is coming below below the fields pernr , personnel ara and subara , company code , payroll area, employee group of the standard fields of PNP selection screen , there by any body could please suggest me how to change.
regards
divya. -
Selection screen - month and year
Hi friends,
I have a selection screen where I need to have two fields one for Period(month) and the other for Fiscal year. So I used
parameters : p_lfmon like mbewh-lfmon.
parameters : p_lfgja like mbewh-lfgja.
My requirement is when I execute the program I want to see the current period(08) and Year(2006) in these two fields. And also I was wondering if we can add the input help F4 for these two fields as they dont have one right now.
Finally if I want to compare the these two fields month and year with a field in normal date format (08/25/2006), what is the easiest way to do that.
Waiting for replies. Especially from Rich. ThanksIf you need to default the current fiscal period, then you can do this.
report zrich_0001.
data: datum type sy-datum value '20060806'.
parameters: p_spbup type spbup .
initialization.
data: xgjahr type bkpf-gjahr.
data: xpoper type t009b-poper.
call function 'FI_PERIOD_DETERMINE'
exporting
i_budat = sy-datum
i_bukrs = '0010'
importing
e_gjahr = xgjahr
e_poper = xpoper.
concatenate xgjahr xpoper+1(2) into p_spbup.
start-of-selection.
if datum+0(6) = p_spbup.
write:/ datum, 'is in period', p_spbup.
endif.
Regards,
Rich Heilman -
Date concatenation using MONTH and YEAR
Env : Oracle Reports 9I.
I need to display reports based on dates.
If the user enters in one field 'SEP' and in another '2005',
how can I concatenate both the fields as one and then display
all results for SEP 2005?
The Table has a field called Eff_Date (of type Date)
and containing values:
Eff_Date
==============
01-09-05
02-09-05
04-09-05
05-09-05
My code is
SELECT col1,
col2
FROM TableA
Where TRUNC(Eff_Date )=:MONTH ?? PARAMETER: Here is the month : SEPT
and TRUNC(Eff_date) =:YEAR ?? PARAMETER: Here is the Year : 2005I need to concatenate parameters MONTH and YEAR in one and then
display records for that month.
How can I write the SQL Query to concatenate MONTH and YEAR and
TRUNCATE the column eff_date?
Please help.Env : ORACLE REPORTS 9I
I am passing 3 parameters to the report:
Parameters are of type CHAR
Report Parameters
Year / Month : 2005 / AUG
Effective Date :
The colunm in table is eff_date
eff_date
01/08/2005
02/08/2005
03/08/2005
15/09/2005
17/09/2005
18/09/2005
29/09/2005The problem is:
1)If I dont enter anything,I just get displayed 2 record for the above.
It should display all records rather than 2.
2)If I enter Effective date as 01-AUG-2005,no records are displayed.
This is my code:
Select col1,col2
from TableA
where ( TRUNC(ch.eff_date) = nvl (:E_DATE, TRUNC(ch.eff_date) )
AND TRUNC(ch.eff_date, 'MONTH') = nvl (TO_DATE(:YR||:MTH, 'yyyymon') ,
TRUNC(ch.eff_date) )
)Shud i change the AND to OR? -
Hi ,
I have two dates order date and billing date.
1) in the report billing date will be entered through user entry variable and i want month and year separatley
ex: 20090102 i want 2009( year) in one column and 01 (month) in one column.
2) orderdate is coming from cube and in the report we need year and month in columns.
ex: 20100202 i want (2010) year in one column and 01 (month) in one column.
i want use these billing date (year and month) and orderdate (year and month)
which again i want use in calculations.
in secnario for billing date i have created manual entry / char variable and two customer exit formula variables.
now how to pass the values to these variables in cmod guide me through code.
no idea of about scenario what variables to create and what logic to write in cmodHi
1) in the report billing date will be entered through user entry variable and i want month and year separatley
ex: 20090102 i want 2009( year) in one column and 01 (month) in one column.
I suggest to have a formaula or routine in your transformation to get the year and month in your cube based on the billing date.
Include your time chars in your cube and populate the values in it by using the Billing date.
Then in query in can use those objects for calculations. it wolud be more easier rather than customer exists. and also it increases the performance of the query too.
Hope this helps.
Regards,
Reddy
Edited by: Reddybl on Apr 12, 2010 8:32 PM -
Concatenate Date fields as month and year
Hi,
I want to concatenate the field bseg-augdt as month and year.
And have to append as a seperate field (Fiscal month | fiscal year) in the output.
Plz help me to overcome this issue.
Thanks and Regards,
Karthik
Moderator message: very basic, please try yourself and search for information before asking.
locked by: Thomas Zloch on Aug 4, 2010 1:22 PMEnv : ORACLE REPORTS 9I
I am passing 3 parameters to the report:
Parameters are of type CHAR
Report Parameters
Year / Month : 2005 / AUG
Effective Date :
The colunm in table is eff_date
eff_date
01/08/2005
02/08/2005
03/08/2005
15/09/2005
17/09/2005
18/09/2005
29/09/2005The problem is:
1)If I dont enter anything,I just get displayed 2 record for the above.
It should display all records rather than 2.
2)If I enter Effective date as 01-AUG-2005,no records are displayed.
This is my code:
Select col1,col2
from TableA
where ( TRUNC(ch.eff_date) = nvl (:E_DATE, TRUNC(ch.eff_date) )
AND TRUNC(ch.eff_date, 'MONTH') = nvl (TO_DATE(:YR||:MTH, 'yyyymon') ,
TRUNC(ch.eff_date) )
)Shud i change the AND to OR? -
How i can get list of months and years from my tables(ex. tab1), when i have start date ex. 072003 and end date ex. 042005 . That i use in report 6i.. . .
months | years| . . . . .
----------------------------------If i am not wrong you want these result
SQL> SELECT hiredate FROM emp;
HIREDATE
17-DEC-80
20-FEB-81
22-FEB-81
02-APR-81
28-SEP-81
01-MAY-81
09-JUN-81
19-APR-87
17-NOV-81
08-SEP-81
23-MAY-87
03-DEC-81
03-DEC-81
23-JAN-82
14 rows selected.
SQL> INSERT INTO emp (empno,hiredate,deptno) VALUES (1,SYSDATE,10);
1 row created.
SQL> COMMIT;
Commit complete.
SQL> SELECT hiredate FROM emp;
HIREDATE
17-DEC-80
20-FEB-81
22-FEB-81
02-APR-81
28-SEP-81
01-MAY-81
09-JUN-81
19-APR-87
17-NOV-81
08-SEP-81
23-MAY-87
03-DEC-81
03-DEC-81
23-JAN-82
01-SEP-06
15 rows selected.
SQL> SELECT TO_CHAR(a,'MON-YYYY') b FROM
2 (SELECT ADD_MONTHS(TRUNC(sysdate,'YYYY'),(rn.r-1)) a FROM
3 (SELECT ROWNUM r FROM user_objects WHERE ROWNUM<=12) rn)
4 MINUS
5 SELECT TO_CHAR(hiredate,'MON-YYYY') FROM emp;
B
APR-2006
AUG-2006
DEC-2006
FEB-2006
JAN-2006
JUL-2006
JUN-2006
MAR-2006
MAY-2006
NOV-2006
OCT-2006
11 rows selected.
SQL> SELECT b FROM
2 (SELECT TO_CHAR(a,'MON-YYYY') b FROM
3 (SELECT ADD_MONTHS(TRUNC(sysdate,'YYYY'),(rn.r-1)) a FROM
4 (SELECT ROWNUM r FROM user_objects WHERE ROWNUM<=12) rn)
5 MINUS
6 SELECT TO_CHAR(hiredate,'MON-YYYY') FROM emp)
7 WHERE b BETWEEN 'NOV-2006' AND 'SEP-2006';
B
NOV-2006
OCT-2006
SQL> Khurram -
Hide days from WebElements component WECalendar (show only month and year)
Dear expert,
I'm using WebElements to replace standard InfoView parameter screen for my Crystal Reports. My question is:
1. Is it possible to customize WebElements component: WECalendar so that we only see Month and Year, but not the Days (in other words to hide the days from the calendar).
If not possible then is there any other WebElements component that i can use for this purpose?
Because i only need to pass value of month and year selected by user when jumping to other report (using OpenDocument).
2. When i looked at the code, i'm afraid the only way is by editing the HTML part that is marked with:
// *** do not modify the code below
Since there's no available variables for hiding the days in the section that can be modified:
// *** the code below can be modified to change the formatting to the desired look and feel
Below is some of the code of the WECalendar component:
Function (stringvar ElementName, datevar ElementDefault, stringvar MonthDisplays, stringvar DayDisplays)
// *** the code below can be modified to change the formatting to the desired look and feel
// calendars use the stringvars below if nothing is entered into the WECalendar function for these parameters
if DayDisplays="" then DayDisplays:= 'Su|Mo|Tu|We|Th|Fr|Sa'; // note that there must be two characters for each day...or use " " as in 'S |M |T |W |T |F |S '
if MonthDisplays="" then MonthDisplays:= 'January|February|March|April|May|June|July|August|September|October|November|December';
// the font below is for the month & year display in the calendar and can be modified
stringvar headerfont:= WEFont('Verdana', 11, 'Navy', '', true, false,"","");
// the font colour and size below can be modified...this is for the arrows that change the month or year of the calendar
stringvar arrowfont:= WEFont('Arial', 10, 'Gray', '', false, false,"","");
// these fonts for the calendar days must be a fixed width font such as Lucida Console or the calendar spacing will break
stringvar datefont:= WEFont('Lucida Console', 8, 'Black', '', false, false,"","");
stringvar daystringfont:= WEFont('Lucida Console', 8, 'Black', '', false, false,"underline","");
stringvar weekendfont:= WEFont('Lucida Console', 8, 'Gray', '', false, false,"","");
stringvar inputfont:= WEFont('Lucida Console', 8, 'Navy', 'Center', false, false,"","");
// *** do not modify the code below
Thank you very much.
Kind regards,
aswin
Edited by: Aswin Setyawan Margono on Feb 2, 2011 5:16 PMhi Aswin,
you can always modify any of the webelements controls or create your own if you're feeling adventurous. the "do not modify" is just a warning that the code below is not as customizable as the code above which is made to be easily changed.
my recommendation for an easy win in your case though is to use the weSelectDuo control having years in the first of the select menus and the months in the second select menu.
cheers,
jamie
Maybe you are looking for
-
Error 805a0194 When trying to download App
i am unable to download the navigation app and get the error code 805a0194. I have restarted the phone which is a Lumia 620 purchased only a day ago. A full reset has not helped. The reason I purchased a Nokia was for the navigation. Is there anythin
-
I have a 2711x monitor, worked well for about 17 months, not sure what happened but now all I get is the top 25% of the screen working+ but this is with program win 7 running and the below is monitor on boot up with no input. Sure something is blown.
-
MAX cannot auto-detect my SCXI cards in my PXI-1011 chassis.
I manually set up the SCXI-1140 cards and ran my labview program. The measured data was bad. I tracked down the problem and figured it was the chassis that had the problem. I wondered if the incorrect data was related to the auto-dectection problem o
-
What are Binary Format. I took over a site and now using DW to update. I can't get Flash files to work and was told to make sure I'm using Binary Format. Does that happen with DW
-
Help please: given the following all class have the same RID class A class B derived from class A class C derived from class A Is there a way to have classes A,B,C in separate load file without using the Shareable interface communications mechanism.