How to select date range 01/01/2007 to till date in info package selection
HI
I have a business requirement like i have to load data from 01.05.2007 to till date daily and the the till date should change daily when we are scheduling it daily.
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = 'KDAY'.
l_idx = sy-tabix.
L_T_RANGE-IOBJNM = '/BI0/0CALDAY'.
L_T_RANGE-FIELDNAME = 'KDAY'.
L_T_RANGE-SIGN = 'EQ'.
L_T_RANGE-OPTION = '<>'.
L_T_RANGE-LOW = '01.05.2007'.
L_T_RANGE-HIGH = 'sy-datum'.
modify l_t_range index l_idx.
l_idx = sy-tabix.
Hi,
try to debug that one by putting a <b>break-point</b>.
there is a reply from A.H.P , how to debug the routine in the infopackage.
put a loop on the routine,
data : debug(1).
do.
if debug = 'X'.
exit.
endif.
enddo.
and when run infopackage, go to sm50,
on that process, menu program->debug program,
in debug screen, type in debug, and fill with X and click 'edit'-pencil icon.
F5 to next step.
Similar Messages
-
Issue withe Info Package Selection for the CRM Datasource
Hello,
I have a custom CRM data-source which has the Selection option as CRM-GUID as the Selection option in the RSA3.
I have replicated the Same Data-source in BI system and Created the Info Package ,but i could not see that GUID Selection in the Info Package.
To Be Noted:
I went to RSA6 enabled the selection option( check Box ) , there is no hide option in the datasource , only the Selection option check box is enabled in the RSA6 .
Replicated again , and activated again , logged out and logged in again . But the Info Package does not show the CRM - GUID selection option.
I found something not sure this might be the issue:
1) The Data type is RAW with length 16.
2) The Datasource in the BI side has SS conversion Routine Blank for this field and the Selection has X.
But no Selection option in the Info Package.
Any suggestion and inputs are welcome.
Thanks in advance.
Adhvi.similar issue is disussed in the below thread...
Info package Selection were hidden
Info Package Selection Language key is not diplaying while this is checked
search for any SAP Note which explains about data type RAW .... -
Problem: "Select a Range" doesn't work (Cannot mark data from MS Excel)
Hi,
I need Your help. I have some problem with connection with MS Excel.
I can't use MS Excel range as data source.
Please find short overview of this situation (video clip):
[http://www.explorer-consulting.pl/XC-prob.swf|http://www.explorer-consulting.pl/XC-prob.swf]
(Windows 7 + Office 2007).
Maybe there is something to do w/ Windows 7 admin options, but I have no idea what kind of them.
Please share Your ideas.
WojtekHi Liliana,
about video (it's flash swf file) so maybe You have to give permission to watch this (in Your browser).
but here You are screenshot too:
[http://www.explorer-consulting.pl/xc.jpg|http://www.explorer-consulting.pl/xc.jpg]
XC 2008 servicepack3 with fixpacks 3.1, 3.2, 3.3 and 3.4
I try to select cells in Excel area, but "Select a Range" window is blank all the time.
Edited by: WojciechKorsak on Jan 31, 2011 7:38 PM -
Calweek in Info package selection parameter
Hi,
I need to send the data from cube1 to another cube2 on weekly basis.
Cube1 is getting the data on daily basis.
on every week end i need to send the data to cube2 based on selection parameter OCALWEEK, and the load should be full update.
i want automatic, so that every week end InfoPackage selection parameters should change to next calweek so that it will fetch correct lastweek data to cube 2 from cube.
Can you please suggest me how to automate the Info package.
Regards,
SilpaHi,
at infopacks selection screen, for field 0calweek select type : abap routine.
in routine use function mod DATE_GET_WEEK to retrive the week based on sy_datum (current date), reduce the result -1 and the result will be calweek minus 1, e.g.: 200725 for today.
/manfred -
Info Package Selection Language key is not diplaying while this is checked
Hi
i am facing an issue in BI 7.0
in Info Package Data Selection Tab "Language key field" is not diplaying while this field is checked as a Selection option in R3 Data source.
How can i put Language key field in Info package data selection
Regards
Atul
Edited by: AtulMohan Mishra on Apr 28, 2011 11:50 AM
Edited by: AtulMohan Mishra on Apr 28, 2011 11:50 AMHi,
Please see OSS note 1033537 .Even if langauge selection is available in infopackage it wont work .Tthe only way to restrict a particular language is in DTP or in transformation routine. Infopackage will extract all the language that is installed in BW system and you have to place your restriction in DTP or transformation.
Regards,
Raghavendra.
Edited by: Raghavendra Padmanaban on Apr 28, 2011 9:18 AM -
Language key in info-package selection
Hi,
Just wondering on the language key selection in the info-package. This topic was raised a number of times in the forum and what i have found is no matter what you do 'Language Key' will not appear in the info-package selction as its a srevice API feature and BW will automatically assign the language key based on the installed languages.
If i need to filter out on any particular language then i need to use some formula / routines etc (of course this is the last option).
Is my understanding correct ? or Do we have some workarounds to make the language key available in the info-package ?
Points will be assigned to value added answers.
Thanks,
SoumyaHi Soumya,
Hope you would have checked these:
1. Datasource for text is lang-dependent. If not make it lang-dependant.
Also check:
look in OSS Note 324684 'Selections for language and time-dependence'...
"If a field of a DataSource - typically with field name 'LANGU' or 'SPRAS' - is assigned to InfoObject '0langu', the field is not provided in the selection fields although the field actually can be selected. In this case, all languages of the language vector active in the BW System are requested by the source system but the language selection cannot be defined in the Scheduler.
Check for more details:
Re: Infopackage Language Selection
Bye
Dinesh -
BW 2.0B, info package selection, cant use two system variable for 0CALMONTH
Hi Experts,
I am working on BW 2.0B in APO system. There is an info package for which I want to supply two selection value for 0CALMONTH as equal to current month and last month. System variables 0CMONTH (for current month) and 0CMLMON (for last month) are available but I am not able to use them both.
If I change the variable in one selection, it automatically changes the other one too, making both the selection as same variable.
Can you suggest any solution/idea?
Regards,
Purvangany ideas to achieve this?
-
How do we raise an event into R/3 from a BW info-package ?
Hi friends,
Is there a way to raise an event from a BW stand-along info-package into the R/3 system, without using Event Collector..?
I cannot use the subsequent event option in the package itself since that will raise the event only into BW. I want it into R/3. I can probably raise an event from the package to start a process-chain and then add a step in the PC to run a pgm to raise an event into R/3.
But I am trying to see if there is a better and simpler way without having to create a extra PC.
I am on the BW 3.1 system.
Any suggestions/solutions will be greatly appreciated.
Thanks
lz70d71hi, here is what you do: This addition is with respect to the previous reply
You need an event from BW to R/3
Step1: create a custom FM copy of BP_EVENT_RAISE and making it rfc enable. To make a FM RFC enabled you just need to tick the radio button in the attributes of the FM.
Step2: Create a custome z program in BW and call FM z_bp_event_raise created in ECC.
Step3: call that program in Process chain.
hope this helps. if you need more let me know.
thanks
syed -
Dear friends,
How to select the record from BSEG table between Date range. Please give me the solution . Am also try to find the solution in SDN also.
select-options post_dt for bkpf-budat obligatory default sy-datum NO-EXTENSION.
select belnr budat from bkpf into corresponding fields of table it_head
where bukrs eq compcode
and gjahr eq year
and blart eq doctype
and budat in post_dt
order by belnr budat.
For this select query is working in perfect for single date only. But i want to select the date date range wise.
Thanks
Saravanan RHI,
U can check the Select Quert by using IN s_option.
Like eg:--
Select * form Zemp where empno in s_empno.
Hope this example will help u...
here Zemp is a table...... empno is a field s_empno is a Select-option.
Thanks and rEgards
Suraj S Nair -
Selecting last record in a date range
Post Author: Alien8n
CA Forum: Data Connectivity and SQL
I need to extract the last record for a group and display it. Normally this would simply mean selecting the max date in the SQL but...I need the last record from within a specified date range. By using the max date it won't pull out any records for a group that has a record after my date range. ie I have 2 group items and they both have a record for each day of the weekBy leaving the date open it pulls out the last record, Friday, for each item in the group.I want to set a range saying give me the last record from Mon - Wed.What I want returned is Wed's records and if there's no records on Wednesday the next last record for that itemSo If I have...Item Date RecordA MON 1A TUE 2A FRI 3B MON 4B TUE 5B WED 6B THUR 7B FRI 8I get A TUE 2 B WED 6FYI CR XI with SQL 2005Post Author: Alien8n
CA Forum: Data Connectivity and SQL
The database actually contains sample tests by date with each sample being tested multiple times over several months.I need to be able to pull a date range from the whole dataset, but I only want the last record in each date range. Samples can be tested every week or every 2 weeks and then the last record is used to show how the sample is doing over time. So you would run the report for say 3 weeks and show the last record for each sample. This wouldn't be a problem if you were only interested in the last 3 weeks data, but if you want to look at historical records you have to be able to pull from that date range. In effect the query has to work regardless of whether you ask for Mon-Fri (using my example above) or Mon-Wed or even just Mon alone. I'll give your example above a try and see how it goes -
How to create a date range in Web Application Designer
I am using 3.1 version of Web App Designer. I need to create a report with date ranges. I can get one date to work but not two (I need a start date and end Date). My Query has 0CALMONTH with a variable for Interval. When I select it as a dropdown (??) in Web App Designer, I only get one date prompt in web app designer.
Any suggestions??
Thanks
KristenHi Kristen,
I'm sorry i'm not coming to solve your problem,but for the trouble I have had,and I want to create a date picker in Web Application Designer,so if you have solved the problem ,please email to me? [email protected] ,thx very much!
best regards
zegion chan -
How to compare date range ?
hi, good day , i need some idea on my issue
scenario :
i need to know if given a new date range, and check whether this new date range is fall into between the date range
for example ,
new_start_date = 15/05/2006, new_end_date = 01/09/2006
existing start_date = 20/02/2006 , existing end_date = 11/07/2006 so in this case , new start and end date have fall into existing start and end date range, cause it should not interlapse the date range
- in short, new start_date and end_date cannot in between of existing start_date and end_date , how i write a algorithm on this ? thank you for guidanceimport java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
* DateSample.java
* Created on February 9, 2006, 10:09 AM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
* @author krichard
public class DateSample {
* new_start_date = 15/05/2006, new_end_date = 01/09/2006
* existing start_date = 20/02/2006 , existing end_date = 11/07/2006
/** Creates a new instance of DateSample */
public DateSample() {
String existingStartDateStr = "20/02/2006" ;
String existingEndDateStr = "11/07/2006" ;
String newStartDateStr = "15/05/2006" ;
String newEndDateStr = "01/09/2006" ;
SimpleDateFormat dateUtil = new SimpleDateFormat("dd/MM/yyyy") ;
try {
Date existingStartDate = dateUtil.parse(existingStartDateStr);
Date existingEndDate = dateUtil.parse(existingEndDateStr);
Date newStartDate = dateUtil.parse(newStartDateStr);
Date newEndDate = dateUtil.parse(newEndDateStr);
boolean newStartCheck = existingStartDate.before(newStartDate) && existingEndDate.after(newStartDate);
boolean newEndCheck = existingStartDate.before(newEndDate) && existingEndDate.after(newEndDate);
boolean inBetween = newStartCheck & newEndCheck ;
System.out.println("Existing::"+existingStartDate+" - " +existingEndDate);
System.out.println("New::"+newStartDate+" - " +newEndDate);
System.out.println("It is "+inBetween+" that the new dates are in between the existing ones.");
} catch (ParseException ex) {
ex.printStackTrace();
* @param args the command line arguments
public static void main(String[] args) {
new DateSample() ;
} -
How to put condition for one date range should not interfear with another ?
hi friends,
how to put condition for one date range should not interfear with another date range.
my data base table has two fields
from date
to date.
when we enter the date range in the data base , new date range means from date and to date should not interfear.
can anybody help me.
thanks &Regards,
Revanth
Edited by: rk.kolisetty on Jul 1, 2010 7:18 PMDo it the SAP way....
First entry...from is today, to is 99991231.
New dates entered, now we have two rows...:
from is original date to becomes yesterday.
From is today to is 99991231 -
No Data in Reports Details in Custom date range
Hello, iTunes U Public Site Manager Admins.
As the iTunes U Public Site Manager admin, I've been trying to access our institution's iTunes U Reports Details for a couple of days. (I send a monthly report of usage to our course/collection contributors.) When I custom the date range, under Details, there is zero entry; "No data available in table" message is shown.
This feature had been working well since Apple iTunes U added this enhancement on August 13, 2013. The report Details showed the exact stats for Browse, Subscribe, Download, Stream, and Enclosure for each course/collection in the custom date range.
Now under "Details", the data is shown only when the date range is Last 30 Days. It shows no data in custom date range when the Calendar is used to select a Start Date and End Date.
Has anyone else noticed this problem?
Thanks.
Q. WangErik.
I used your suggestion and it worked very well. This is how I did it.
Export the range of data that includes Feb. 1-Feb. 28, 2014 as .tsv file.
Open that file in Excel.
Add a blank column next to the Date column. Use function =Month() to just extract the month into the new column. Fill down the whole column. Then copy and paste special (value) into the same column (I have over 26,000 rows of data in the file.) Converting to Value will allow for the next step of PivotTable.
Create a PivotTable for the 26,000 rows of data. Use Month as the Report filter, iTunes_ID as the Row Labels, Select Browse, Subscribe, etc. as the Sum Values. (The result is a summary table with about 200 rows.)
I then do a Vlookup to my premade Master file to add Category (course, collection, resources) and Instructor Name to each of the 200 rows.
That will do it for my monthly report.
Thanks for your tip again. I did not know the .tsv file would have DATE for each item.
Sincerely,
Q. Wang -
Extracting a count of distinct values between two date ranges over months
Hi All,
I am having a bit of difficulty in figuring out the query to build a list of active campaigns over a date range.
i.e. I have a table with campaign IDs and their start and end date details like this
Campaign_id Start_date End_date
10001 1-Jun-09 31-May-11
10002 1-Jun-09 23-Jun-11
30041 21-Aug-09 31-Dec-09
20005 3-Jun-10 31-May-11
90021 21-Nov-09 30-Nov-10
54000 1-Jun-11 1-Dec-12
35600 1-Mar-10 31-Mar-12 What the above data means is, for eg. the campaign 10001 is active from 1-Jun-09 to 31-May-11 i.e. for 24 months (inclusive of the month Jun-09 and May-11)
What I need to figure out is the counts of active campaigns between a date range and display that active count at a month level (for e.g. lets say we want to see all the campaigns that were active
between the date range '01-JUN-2007' and '30-APR-2012' ). So the partial output would be as seen below. The list would continue till december-2012
Month Year Count of active campaigns
Jan 2009 0
Feb 2009 0
Mar 2009 0
Apr 2009 0
May 2009 0
Jun 2009 2
Jul 2009 2
Aug 2009 3
Sep 2009 3
Oct 2009 3
Nov 2009 4
Dec 2009 4
Jan 2010 3
Feb 2010 3
Mar 2010 4
Apr 2010 4
Dec 2012 1 Could anybody please help me with the right query for this.
Thanks a lot for help
Regards
Goldiset pagesize 40
with tab as
select 1 id, sysdate -100 start_date, sysdate end_date from dual
union
select 1 id, sysdate -200 start_date, sysdate -150 end_date from dual
union
select 1 id, sysdate -600 start_date, sysdate - 400 end_date from dual
union
select 1 id, sysdate -300 start_date, sysdate - 150 end_date from dual
union
select 2 id, sysdate -100 start_date, sysdate-50 end_date from dual
year_tab as
select
add_months(min_date, level -1) m
from
select min(trunc(start_date,'YYYY')) min_date, add_months(max(trunc(end_date,'YYYY')), 12) max_date
from tab
connect by level <= months_between(max_date, min_date)
select to_char(m,'YYYY') year_,
to_char(m,'Month') month_,
nvl(act, 0) act
from year_tab,
select m date_,count(*) act
from tab, year_tab
where m between trunc(start_date,'MM') and trunc(end_date,'MM')
group by m
) month_tab
where m = date_(+)
order by m;
YEAR_ MONTH_ ACT
2010 January 0
2010 February 0
2010 March 0
2010 April 0
2010 May 0
2010 June 0
2010 July 0
2010 August 0
2010 September 1
2010 October 1
2010 November 1
2010 December 1
2011 January 1
2011 February 1
2011 March 1
2011 April 0
2011 May 0
2011 June 0
2011 July 1
2011 August 1
2011 September 1
2011 October 2
2011 November 2
2011 December 2
2012 January 2
2012 February 2
2012 March 2
2012 April 1
2012 May 1
2012 June 0
2012 July 0
2012 August 0
2012 September 0
2012 October 0
2012 November 0
2012 December 0
36 rows selected.
Maybe you are looking for
-
Can I use an mp3 file as one of my basic tracks in which to overdub onto?
On the iPad I will want to take existing song files (say mp3) and have them be a track in which to overdub. Is this doable and if so is the process as simple as it is on my desktop computer?
-
IPhone 5 won't stop trying to install certain apps.
I have my iPhone 5 set to sync everything to my home computer, a Mac Mini. I went on vacation for 10 days, and upon my return, plugged my iPhone into my Mac Mini for the first time in 10 days. Upon syncing, it suddenly counted 179 apps as "new" and
-
I have a new 30 gig Video iPod 1 week old, and it was working fine. I plugged it in to download some music and the compter did not see it and the screen on the iPod went dark and started to make clicking sounds, like it is spinning up. It will not re
-
Hi there, I am wondering where I can download the eclipse plug-in for EJB and servlet development? Thanks in advance
-
Can i have More than One agent??
Hi,, Can i create more than 1 agent?? For example. if i have 10 user.i want to create agent1 and agent2 and ask or assign agent1 for first 5 users and the next to agent2. This is just i'm thinking if it will give the better performance. I'm totally n