Day wise MTD values
Hi,
In a report I have to provide selection as a month.
Output should contain day wise sales detail with MTD figure also.
I am not getting how to calculate MTD day wise while selection input is Month.
Input is Calmonth = 02.2009
Output format is
DATE TTD MTD
01.02.2009 374.78 374.78
02.02.2009 308.58 683.36 ( 308.58 + 376.78 )
03.02.2009 323.32 1006.68 ( 683.36 + 323.32 )
04.02.2009 273.87 1280.55 ( 1006.68 + 273.87 )
Plz suggest me what to do.
Create a RKF with User Exit Variable ( TO get First Day of month ) & MTD
Put Date in Coloum
User Offset,
But it will be static report.
No drill down is possible
Regards,
Viresh
Similar Messages
-
Stock Ledger Report in Day Wise not giving correct values for Opening Stock
Dear Experts,
I m working on Sock ledger report to give the day wise data.
since yesterdays closing Stock will become opening stock of today,
To get Opening Stock,
I have restricted the stock key figure with 2 variables on calday
(DATE FROM var with <=(Lessthan or equal to) and offset -1
DATE TO var with <=(Lessthan or equal to) and offset -1)
To get Closing Stock,
I have restricted the Stock key figure with 2 variables on calday
(DATE FROM var with <=(Lessthan or equal to)
DATE TO var with <=(Lessthan or equal to) )
But in the output Opening stock values are not coming correctly and for given range of dates,
for last date, opening stock is showing as Zero.
Could you please tell me how can I achieve the correct values for opening stock.
Thanks in advance.Hi Arjun,
Seems like you are making it more complicated. What is your selection screen criteria?
Ideally you should only use the offset.
You will have say Calday in rows and stock in Column
____________Opening Stock_____________Closing Stock
01/06/2009___(Closing stock of 31/05/2009)_(Stock of 01/06/2009)
02/06/2009___(Closing stock of 01/06/2009)_(Stock of 02/06/2009)
03/06/2009___(Closing stock of 02/06/2009)_(Stock of 03/06/2009)
So, from above scenario, create one RKFs and include Calday in it. Create a replacement path variable on calday and apply the offset as -1.
So, your Opening Stock will be calculated by closign stock of previous day.
- Danny -
YTD & MTD day wise while input is month
Hi,
In a report I have to provide selection as a month & plant.
Output should contain day wise sales detail with YTD & MTD.
I am not getting how to calculate YTD & MTD day wise while selection input is Month.
Plz suggest me wt to do.
Regards,
KiranHi,
Check in SDN
MTD and YTD fig calculations
It works based on SY-DATUM.
* First Month Of Current Fiscal year comment*
WHEN 'FMYEAR'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZMONTH'.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = sy-datum
* I_MONMIT = 00
i_periv = 'V3'
IMPORTING
e_buper = zbuper
e_gjahr = zbdatj.
CLEAR: l_s_range.
l_s_range-low+4(2) = '04'.
l_s_range-low+0(4) = zbdatj.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
Note: In the above code I passed i_date = sy-datum, so you pass your month as input for i_date.
i.e. Fix the DD = '01' and concatename your Input month with DD teh you get YYYYMMDD so pass that to i_date.
Thanks
Reddy
Edited by: Surendra Reddy on Feb 24, 2009 5:50 AM -
CO Profitability report day wise
Hi Gurus,
My client wants to see the Profitability report at company code level day wise, Sale order and Product, is it possible.
If its possible, then how the data will flow day wise and what are the pre-requisits to get this done.
Does SAP has any standard report to get the required.
Day wise i mean, if i take the COPA report on 2nd Feb, it should display only the amounts which were posted on 2nd Feb and activites confirmed etc.
Thanks & Regards,
PraveenHi All,
Can you tell me what is Line item report, and how is it different from KE30 summarised report.
What i understand from your saying is, Line item report will give us the particular dates information when the report is executed, leaving out the info till previous date.
Even if the line item report is created, can u tell me how the data will flow into it. Because we have Sale order cost estimate for the client. If i create a seperate value field for the cost component then it will give me the Sale order cost estimate info which is again standard. How is it possible to get actual data.
What about the other cost centers amount. How this data is passed onto it.
If i have to get this data into the reports then each day I should do Assessment cycles, settlements of the order and reverse the same the next day. But even if i do that i wont be able to get the day wise report as the data will get posted on month end date and again will be summarized one.
Pls clarify me on this. My clients expectation is to bring out the daily report to see the progress of each day and wats the cost he is incurring so that he can compare it with sterdays and also the plan data.
Thanks & Regards,
Praveen -
Hi Experts ,
I have a requirement for the report, where for the current week it should display the respective week and then day wise.
I have created a variable where it is taking the current week but i need to know how i can make that report display day wise.
Kindly help,
Thanks in advance ,
M.SHi M.S.,
Unfortunately you will not be able to generate any Characteristic values in the Report/Queries which is not present in the Cube/DSO etc directly.
But you can achieve this through "Virtual Characteristics". But performance wise, it might be little slower.
Pls go through the below link.
https://wiki.sdn.sap.com/wiki/display/BI/FiveWaystoEnhanceBIFunctionalityUsingABAP--PartIV--VirtualInfoCubes%2CKeyFigures%2Cand+Characteristics
I would suggest you to add the 0CALDAY, 0CALMONTH, 0CALYEAR & 0CALWEEK to your infocube and do a Time Conversion. It is the best way. Fortunately you dont have to delete the data, you can make use of the "Remodelling" option available in the BI7.x version.
Pls award points, if helpful.
Regards,
Chathia. -
Hi,
I got a requirement to do a forecast on the stock values.
I have created a Real-Time InfoCube in which the daily stock Issues and Receipt values are update from the Stock InfoCube which are actual Values.
I need to create a Ready-input query doing forecast values based on each day wise of the current month.
The business case is..assume that today date is 10th of the current month.
The report should display the actual values from 1 - 10th and from 11 to last day of the current month it need to be ready-input query to enter the values.
How to get the each day as column of the current month and how do we restrict the actual and forecast values at each column.
Please advice how to meet the requirement.
Regards
Jagannadha RajuHi David,
Thanks for the reply and for your time...
i want to explain in little bit.
My stock cube contains the data only upto day (10th). if i put cal day in the column it is display the only upto 10th day. But it should display the columns from 11 to 31 as input query also.
Please advice on this... even if we don't have data also how would we display all the days as columns.
Regards
Jagannadha Raju -
YTD,QTD & MTD values for variable under 0CALMONTH
Hi Gurus,
I need to calculate YTD,QTD & MTD values for a KF based on the value that the user enters in the variable under 0CALMONTH.
I have the code for how it can be done using 0CALDAY but not sure for 0CALMONTH.
Can you share the ABAP code for this requirement.
Your help will be greatly appreciated.
Thanks
ArvindHi,
Based on the month entered by the user, take First day of the month in teh exit,
1. YTD : Take SY-DATUM and calculate YTD
2. QTD : Based on the Month you calculate Quarter
3. MTD : Take SY-DATUM and calculate MTD
*Note: * If they give only Month want to date meanes, only SY-DATUM will be accepeted, because they are not passing 0CALDAY
Thanks
Reddy -
I am having day wise report.
The query is as below
select qr.character7 Dates
,to_char(to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY'),'DD') Days
,sum(qr.character4) NO_OF_MEMOS_ISSUED
,sum(qr.character5) STOPPED
,sum(qr.character6) NOT_STOPPED
from qa_results_V qr
where 1=1
and to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY')>= nvl(:P_From_date,to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY'))
and to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY')<= nvl(:P_To_date,to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY'))
and qr.plan_id=140
and qr.character7 is not null
group by qr.character7,to_char(to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY'),'DD')
i am getting the correct result.
but my problem is if there is no issues on that day then the day not return in the above query.
but i need those days also with value 0
Please help to solve
thanks and regards
AdinaTry this
select b.days,nvl(a.NO_OF_MEMOS_ISSUED,0) NO_OF_MEMOS_ISSUED ,
nvl(a.STOPPED,0) STOPPED ,nvl(a.NOT_STOPPED,0) NOT_STOPPED
from (select qr.character7 Dates,
to_char(to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY'),'DD') Days,
sum(qr.character4) NO_OF_MEMOS_ISSUED ,sum(qr.character5) STOPPED ,
sum(qr.character6) NOT_STOPPED
from qa_results_V qr
where to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY') >=
nvl(:P_From_date,to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY'))
and to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY') <=
nvl(:P_To_date,to_date(to_char(to_date(qr.character7,'YYYY.MM.DD.'),'MM/DD/YYYY'),'MM/DD/YYYY'))
and qr.plan_id=140
and qr.character7 is not null
group by qr.character7) a,
(select to_char(c.day,'DD') days
from (select date '2007-09-30' + level day
from dual
connect by level <= 31) c)b
where a.dates(+)=b.days -
Day wise cal of FI report...cl/bal..open..bal
Dear friends,
I am working in FI report (vendor balance for date ranges) .Its a ALV report. I want to fetch the datas for debit ,
credit,opening balance,closing balance,for the paticular vendor or all vendors for date ranges.the table for this iam using is BSIK AND LFC1.
all the datas stored in the table is for month wise,but my programe (my user needs even for day wise) how to calculate this,
or is there any function modules avaliable or can u konw any other table storing day wise balances...this report is urgent ..
any one pls suggest me .advance thanks..
regards
veeray u posted again ? u already closed the prev.thread.
u have to take BSAK+BSIK also .
BSAK :Accounting: Secondary Index for Vendors (Cleared Items)
BSIK:Accounting: Secondary Index for Vendors
Regards
Prabhu -
Vendor Balance Report Day wise based on Posting date
Hi Guru's,
I am creating vendor balance reprot day wise based on posting date .
In my report i want to show TDS(With hold tax ) amount where can i get that field name how can retrive the data using bsik and bsak .
I Donot want to display reversal documents in the displaying list .How can i remove reversal entries .
Regards
Nandan.Hi Nandan,
check these tables:
A399
T059O
T059ZT
Regards,
Santosh Kumar M -
PO Line Item wise gross value for combination of WBS and Material Group
Hello,
Our requirement is to get report for PO Line Item wise gross value for combination of WBS and Material Group. Standard report ME2J gives net price but not gross value for Material Line items. Please let me know if any standard report( or ME2J) will suffice this requirement.
Regards,
Milind DumbreDear Milind
No standard report available to get the PO Line Item wise gross value for combination of WBS and Material Group. Please go for development by taking reference ME2J.
Warm regards
Ramakrishna -
GL account opening balance day wise
HI,
I am working on FI report, where i need to calculate the G/L account closing balance on a daily basis, which will be used as the opening balance for the next day, please help me out with some sample report or logic to claculate the closing balance day wise.
u can mail me to :[email protected]
Regards
Soyunee.Hi,
You have to make use of many tables for this purpose.
1. You have to claculate the previuos period and finscal year for the given date..
2. You have to calculate the G/L balances for this period for the given G/L account from table GLT0.(You can use some of the standard function modules for the same)
3. You have get the line items from the various tables like BSIS,BSAS,BSIK, BASK, BSID and BSAD for the dates from the begining of the month to the given date-1. sum upthis amount with the amount retrieved from step 2 .This will be the opening balance for the given date.
4.retrieve the data from he same tables like step 3 for the given date. This will the transactions of the given date.
5. sum up the amounts from step 4 with step 3. this will be the closing balance for that date.
let me know id you want any further info..
Reward the points if i answered your question.. -
Reg :Production order cost report day wise.
Dear Expert,
1.We want a report for a particular Production order cost day wise.
The scenario is like this Production order is Released for 100 Qty.
Today they confirmed only 50 Qty.
Tomorrow they will confirm 50 qty.
Now they want to see the cost for today confirmation and tomorrows confirmation.
Reason being daily the Raw Material cost is changed and they want to track the variance.
Is there any standard report we can achieve this or do we have go for development
2. And also i need to know daily how many production orders have been released.
Thank u in advance.A day is not a controlled cost object. You could write a report to look at costs gathered in a day (by reporting date), but I strongly suggest that if you need to analyze costs per day you switch to daily orders.
You'll find then that all the standard processes work for you. -
Storage Location Wise Stock Value field and Table
Hi ,
Please let me know the storage location wise stock value field and table.
Regards
SureshHi Suresh,
As per my understanding it is not possible in a single Table.
If this is required for customized Z report then use this logic it may gives the correct information.
In the combination of MARD and MBEW.. From MBEW you can get the value for each Base Unit of Measure then multiply that value with storage location stock.
It may usefull to u..in the mean time i will try for some other option.
Please revert if u have any query.
Regards
Durga Sana -
i wanted to see batch wise material's op stock, closing stock, receipt value, issue value (qty wise and value wise), then which report we can consider. i am looking mb5b but in this either batch is appearing or value is appearing, but batch, value both are not coming in one screen
u can c only a limited information for the batch.
if u want all these infrmation, then a report has to be developed thru ABAP development
Maybe you are looking for
-
Dear Gurus , I made a screen that has a ALV list that is made using OO. When i press '&F03' (back) it doesn't return at the selection criteria at the first hit of '&F03' but at the third hit . Look my code below ... MODULE USER_COMMAND_0100 INPUT.
-
Why do I get duplicates notes with macbook air
I don't have #2 No option to deselect, or select Sync Notes Duplicate notes Syncing Notes both over the air and with iTunes can result in duplicate notes appearing in the Notes application. Use the following steps to resolve the issue: Connect your d
-
Problem with activating integration model
When I am trying to activate an integration model, that includes a scheduling agreement (type LF), the activation isn't successfull. It isn't blocked, but it never stops. In the screen I have a message called "determining delta model" but it never co
-
Muse progress bar says installing but it isn't
I am trying to install Adobe muse 2014.3 on an imac running OS 7.5 Lion, but the progress bar just stays up for hours without doing anything in application manager. I did try with an older version installed and updating but the same thing happened, s
-
Hi, How Do We Add ATtendance And Absencs In Payslip HR Form In PE51.... Plz Reply ASAP ... Thanks In Advance