Scheduling WebI reports for Dynamic Date Ranges

Hello Everyone,
Our Env is BOBJ XI 3.1 SP2 FP2.5 integrated with SAP NW  BW 7.02 EPH1
We are trying to schedule few WebI reports which can be used on ad-hoc basis as well. Some reports need to get data from starting of the month to today (like MTD) and few are with dynamic date ranges.
In case of relational universes i used to do Magic Date as mentioned here :  http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts
But for OLAP Universes i have written a MDX filter prompt as :
<FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
<CONDITION OPERATORCONDITION= "Between">
<CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0)='First Day of Month','First day of Current Month\First day of Current Month',@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0))"/>
<CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0) > '1/1/2100 12:00:00 AM',''1/1/2010 12:00:00 AM'',(@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0))"/>
</CONDITION>
</FILTER>
We are getting MDX erros because IIF can only return numeric values. So are there any other approaches for dynamically scheduling the reports or can the above MDX prompt be modified to make it work ?
- Vamsi Ch

Ingo,
When we schedule the WEBI report we use the BEX query with a variable based on a customer Exit .
There are good examples in
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
In order to avoid providing a hard coded date restriction in the BEX query we want to have a flexible date range solution (e.g. data from 1.1.2011 until yesterday).
Is the folloing scenario possible:
Scheduled webi report with a hard coded date e.g. 1.1.1900 (for the BEX variable)
The BEX query should return the data from 1.1.2011 until yesterday (dynamically)  if date = 1.1.1900
else it should return the data (for the e.g. adhoc reporting)
Is a customer exit like this possible ?
Pseudo code:
IF date = 1.1.900 then return sysdate-1 else return entered date
For a relational universe I always used a magic date condition

Similar Messages

  • Want to schedule WebI report for End date of Prior Month

    Hello Experts,
    We have WebI report created on top of Bex Query, We have key date as prompt for the report. Can we schedule the webi report for key date as last date of prior month, so if current month is February, my key date should be Jan 30 2011. I am not sure if this is possible?
    Thanks,
    Ravi

    You need to apply two FM to get the end day of the month.
    First you need to apply FM MONTHS_PLUS_DETERMINE. This will give you the date after 3 months.
                CALL FUNCTION 'MONTH_PLUS_DETERMINE'
                  EXPORTING
                    MONTHS        = 3   " << for 3 months
                    OLDDATE       = l_start_Date   " << 12/01/2007
                 IMPORTING
                   NEWDATE       = l_3_Date. " << 02/01/2008
    Then call the FM RP_LAST_DAY_OF_MONTHS . this will give you the end date of the month
      CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
        EXPORTING
          day_in            = l_3_Date  " << 02/01/2008
        IMPORTING
          last_day_of_month = l_3_Date  " < 02/29/2008
        EXCEPTIONS
          day_in_no_date    = 1
          OTHERS            = 2.
    Call both FMs again to get your another date(after 4 months).
    Regards,
    Naimesh Patel

  • Scheduling WebI reports for Dynamic Prompts

    Hi All,
    Please find my requirement
    Scenario 1:-
    I am having 30 Different Process Code ( 10 –OAR; 20 – Credit USA; 40 – New Sales etc.) in our project.
    Currently I am developing a single report for each “Process Code”. (Total 30 Reports – Templates and query will be 98% same except for different Process Code).
    Let us assume that “End user” will not have BO Access. So all the developed reports will be scheduled and sent to the corresponding end user as BO PDF format.
    Our Requirement:-
    In near future, we will be getting “New Process Code” in data. So the End User wants report for “New Process Code” also.
    Is there a way so that we can automate BO to pass each and every Process Code separately to existing BO report and get multiple instance BO PDF output report (One for each Process Code)?
    Please give me some solution to achieve this.
    Thanks and Regards,
    Tharini

    Hi Arijit,
    Thank you for your response. Irrespective of the recipients i need to pass dynamic parameters separately to existig BO report and should get multiple BO Pdf output for all recipient.
    Currently I am having only 30 values. So as of now I can pass these 30 values separately to BO WebI report and Schedule separately for 30 instances.
    What if i get 2 New values (Value 1, Value 2) next week and want to view the BO Pdf reports for these 2 values separately (2 New Reports for Value 1 and Value 2 separately)?
    How I can achieve these? Is it possible with publishing? If so, please explain it to me.
    Thanks,
    Tharini

  • How to take unreconcilled transactions report for a date range ?

    hi all,
    How to take unreconcilled transactions report for a
    data range ?
    we have taken unreconcilled transactons from
    external reconcillation using filter option mentioning
    range of dates,But when we take print out using PLD,
    it showing unreconcilled transactions for all dates.
    But our client requires it as a standard report from SAP ?
    Our client is using SAP B1 2005B PL39.
    Jeyakanthan

    Hi
    Financials -> Financial Reports -> Accounting -> General Ledger.
    In the 'Display' dropdown select, 'Unreconciled' .
    Hope this should help you.

  • Schedule webi report using  BW data source and send through email..

    Hi  all,
    I want to schedule webi report and send it through email.
    I am able to send through email.
    here im  got stopped how to schedule the report from bw data source . i have to schedule in webi infoview how to give date format in universe the report sholud run for (sysdate-2) daily
    eg. today is 02-DEC-2011 if i schedule the report it should run for 30-NOV-2011.  iam trying in both BW qyuery and CUBE im not getting how to give date format in
    let me knw is there any solutions..
    im using XIR3 3.1 sp3
    bw 7.1
    Integration kit sp3
    Regards,
    Ravi Sarma.

    it is resolvede by keeping sysdate-2 variable at bw query side i have solved my issue.
    Regards
    ravi

  • Report for a date range

    Hi,
    My end user requires me to develop a report that will accept the following parameters:
    Customer Code : ABC
    From Period : 01-Jan-2005
    To Period : 31-Dec-2010
    Output must be as follows :
    Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-10 Total Order
    Code
    ABC 10 15 5 20 10 ...................................... 15 X value
    I have told my end user that it is not possible to create an Oracle report that will give data for any period range that the user specifies. First the number of columns for the date range must be fixed like say at a time only data for 12 months will be displayed in the report. Then they can run the report for any year and the parameter has to be
    Customer Code : ABC
    Year :2005
    The output will be :
    Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-05 Total Order
    Code
    ABC 10 15 5 20 10 ...................................... 15 X value
    Am I right or wrong ? Please advise. This is very urgent.

    I don't see why this should not be possible.
    Remember that you can have repeating frames in every direction (ie. right and down) and can combine these.
    What I would do is look for (or create) a type of calender-table where I could select the date values from (ie. JAN 05) qualified by the from- and to-Parameters (aka query1),
    then have a second, dependent query which uses the date from the calender (aka query2).
    Then stack a down repeating frame for query2 into the right repeating frame for query1 and you should be almost there... Use the date from query1 as heading...
    Cheers,
    Jens Rettig

  • Schedule Monthly Reports with Dynamic Dates, but also allow Ad-Hoc Running

    Post Author: Dan-Mica
    CA Forum: General
    I am trying to find a way to schedule a report that has an as_of_date, and a start and end date.
    When running monthly it will be scheduled to run on the 11th of each month.  The as of date will be the 10th of the month.  The start date will be the first day of the year and the end date will be the last day of the previous month.
    I have written the report using date functions to calculate the correct dates, and this can be scheduled.
    Now the users are asking to be able to run ad-hoc versions of the report and choose the dates that they use.
    What I don't know how to do is to schedule the job to run monthly as above, but also allow the users to choose the start and end dates and as of dates for the report? 
    Besides writting two versions of the reports is there another way to do this???
    Thanks for the help....

    Hi,
    U can use Infoset Query for report in HR. T-Codes are SQ03, SQ02 AND SQ01. By SQ03 create user group. then SQ02 -infoset and by SQ01 create reports.
    try this. it works.
    Regards
    Nas

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • Date error when scheduling webi reports

    Hi,
    When i click the prompt option in re schedule the scheduled webi report, i got the error "while trying to invoke the method java.util.date.gettime() of a null object loaded from a local variable 'date' "
    The BI version is 4.1 SP03
    The scheduled webi reports failing and got the error as "Unparseable date: "01/01/1900" "
    How to solve this issues?
    Regards,
    Kathir

    This might fix it from the note http://service.sap.com/sap/support/notes/1981477
    Create a WebI report that uses a date object in the Query Filters
    Schedule the report
    Reschedule by manually entering date value which shows only date and no timestampExample: 12/31/2007
    Reschedule by selecting date value from the calendar which shows date timestampExample: 12/31/2007 12:00:00 AM
    Create a biar file using the Import Wizard and migrate to BI 4.1 SP2
    BI 4.1 SP2 BILaunchPad, navigate to and Right click the report and go to “History”
    Right click the instance without a timestamp for the date parameter and select “Reschedule”
    Click on “Prompts” on the left menu and note an error is produced:This error occurred: while trying to invoke the method java.util.Date.getTime() of an object loaded from local variable ‘date’
    Attempting to schedule this instance (as Run Now or Reschedule) without selecting a Prompt value fails with the error:  Unparseable date: “12/31/2007”
    Using the instance with a timestamp works as expected

  • Scheduling WebI reports in BusinessObjects 4.0 date prompts

    will SAp Business Objects 4.0 include some kind of feature to allow people to schedule webi reports in an easier way if the report conatins date prompts? For example if my report has 2 dates start date and end date prompts, it's logical if I want to schedule it to be refreshed every month I don't want to keep it scheduling with the same start date and end date for ever.  I want them to change depending on the month.
    I know there are some things that can be done at universe level, but what if a user doesn't have rights to modify the universe? It would be more useful to have some option in the schedule window to make the values change depending on some basic conditions.
    Or at least if profiles settings could help to do that by selecting in the list objects instead of fixed values from the list, it could help too.

    Hi,
    This looks like to be a request for future product enhancements.
    You need to log an Enhancement Request via Idea Place for the feature/functionality you would like to see in BI4.0.  Please follow steps in the attached SAP note [1515837 - How To: Enhancement Request Process - Idea Place |https://bosap-support.wdf.sap.corp/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303135313538333726]. If this idea is already submitted, you will need just to add your vote to it.
    Regards,
    Jeff

  • Scheduling WEBI reports with formulas for parameters

    Post Author: David Gordon
    CA Forum: WebIntelligence Reporting
    Hi,
    I am new to this environment. I would like to try and schedule a report monthly with dates (that will change from month to month). ie first and last day of previous month. Is there an easy way of achieving this automatically?
    D Gordon

    Post Author: DebT
    CA Forum: WebIntelligence Reporting
    Needed to do the same thing, with lots of different date ranges - month to date, year to date, last month, last week, fiscal year, etc.  Came up with a solution that takes a bit to set-up but then is re-usable and flexible.  I'll do my best to try and explain. 1)  Within the universe, created a "CurrentDate" derived table that calculates various points in time (yesterday, first of the week, last of the week, first of last month, last of last month, etc.).  Because the product would not let me use an unlinked table in calculations, I used a common table as the "from" in the SQL and included a common identifier so I could link the derived table to an existing table in the universe - I selected a small one with only a few records.  Using Oracle here, not SQL, so you'd need to modify to use SQL date functions, and add/delete the calculations you need:select distinctcommonidentiferfield,trunc(sysdate) as CurrentDate,trunc(sysdate)-1 as Yesterday,trunc(sysdate)1 as Tomorrow,case  when to_char(sysdate,'D')=2 then trunc(sysdate)-3  when to_char(sysdate,'D')=1 then trunc(sysdate)-2  else trunc(sysdate)-1  end as PriorWorkDay,case  when to_char(sysdate,'D')=6 then trunc(sysdate)3  when to_char(sysdate,'D')=7 then trunc(sysdate)2  else trunc(sysdate)1  end as NextWorkDay,case  when to_char(sysdate,'D')=5 then trunc(sysdate)4  when to_char(sysdate,'D')=6 then trunc(sysdate)4  else trunc(sysdate)2  end as TwoWorkDaysFromToday,trunc(sysdate,'D') as StartThisWeek,trunc(sysdate,'D')6 as EndThisWeek,trunc(sysdate,'D')-7 as StartLastWeek,trunc(sysdate,'D')-1 as EndLastWeek,trunc(sysdate,'D')7 as StartNextWeek,trunc(sysdate,'D')13 as EndNextWeek,trunc(sysdate,'MM') as FirstOfThisMonth,trunc(last_day(sysdate)) as LastOfThisMonth,trunc(last_day(add_months(sysdate,-2))1) as FirstOfLastMonth,trunc(last_day(add_months(sysdate,-1))) as LastOfLastMonth,case  when extract(month from sysdate)>=07 then extract(year from sysdate)1  else extract(year from sysdate)  end as CurrentFiscalYear,to_date(concat('07/01/',case                          when extract(month from sysdate)>=07 then extract(year from sysdate)                          else extract(year from sysdate)-1                          end),'mm/dd/yyyy') as StartCurrentFiscalYear,to_date(concat('23:59:59 06/30/',case                                   when extract(month from sysdate)>=07 then extract(year from sysdate)+1                                   else extract(year from sysdate)                                   end), 'hh24:mi:ss mm/dd/yyyy') as EndCurrentFiscalYear,case  when extract(month from sysdate)>=07 then extract(year from sysdate)  else extract(year from sysdate)-1  end as LastFiscalYear,to_date(concat('07/01/',case                          when extract(month from sysdate)>=07 then extract(year from sysdate)-1                          else extract(year from sysdate)-2                          end),'mm/dd/yyyy') as StartLastFiscalYear,to_date(concat('23:59:59 06/30/',case                                   when extract(month from sysdate)>=07 then extract(year from sysdate)                                   else extract(year from sysdate)-1                                   end), 'hh24:mi:ss mm/dd/yyyy') as EndLastFiscalYearfromsmallexistingtable 1a)  Link the derived "CurrentDate" table to smallexistingtable using
    your commonidentiferfield (at least I had to do this, though everything
    parsed ok in designer, when used in a query unlinked, it screamed quite
    unhappily which is why I ended up basing the query on
    smallexistingtable and linking). 2)  Created a "Dates" class and objects for each date in the above table, ie. "Current Date", "Yesterday", "Tomorrow", "First of last month", "Last of last month"3)  Created an object called Prompt - Date Range - Start Date.  This prompts the user to select the date range type they want and also allows for "custom" date ranges for on-demand reports.  For scheduled reports, you just select your response as part of the scheduled instance.casewhen @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Yesterday' then @Select(Dates\Yesterday)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Tomorrow' then @Select(Dates\Tomorrow)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Work Day' then @Select(Dates\Prior Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Work Day' then @Select(Dates\Next Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today - Next Work Day' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Two Work Days from Today' then @Select(Dates\Two Work Days From Today)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='This Week' then @Select(Dates\Start This Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Week' then @Select(Dates\Start Last Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Week' then @Select(Dates\Start Next Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Month' then @Select(Dates\First of this month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Month' then @Select(Dates\First of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - EOFY' then @Select(Dates\Start of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Today' then @Select(Dates\Start of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Last Month' then @Select(Dates\Start of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Fiscal Year' then @Select(Dates\Start of Last Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Current Month' then to_date(@Prompt('Begin Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Last Month' then to_date(@Prompt('Begin Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Date Range' then to_date(@Prompt('Begin Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))end4)  To capture the end date, created a second object, Prompt - Date Range - End Date.  Just be really sure that the wording of all your @Prompts is consistent throughout all the statements so you'll only receive one of each prompt.casewhen @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Yesterday' then @Select(Dates\Yesterday)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Tomorrow' then @Select(Dates\Tomorrow)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Work Day' then @Select(Dates\Prior Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Work Day' then @Select(Dates\Next Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today - Next Work Day' then @Select(Dates\Next Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Two Work Days from Today' then @Select(Dates\Two Work Days From Today)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='This Week' then @Select(Dates\End This Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Week' then @Select(Dates\End Last Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Week' then @Select(Dates\End Next Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Month' then @Select(Dates\Last of this month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Month' then @Select(Dates\Last of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - EOFY' then @Select(Dates\End of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Today' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Last Month' then @Select(Dates\Last of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Fiscal Year' then @Select(Dates\End of Last Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Current Month' then @Select(Dates\Last of this month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Last Month' then @Select(Dates\Last of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Date Range' then to_date(@Prompt('End Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))end 5)  Created a filter, Prompt - Date Selection that is used to select the appropriate records based on your record date being within the date range selected:@Select(My Date Field) between @Select(Prompt Fields\Prompt - Date Range - Start Date) and @Select(Prompt Fields\Prompt - Date Range - End Date)6)  When you create your query, just use the filter created in step 5.  I also usually include the Prompt - Date Range - Start Date and Prompt - Date Range - End Date objects so that I can use them min(Prompt - Date Range - Start Date) and max(Prompt - Date Range - End Date) in the report header to display the actual date range selected (all the value in Prompt - Date Range - Start Date are exactly the same, I use the min to avoid multiple value errors - same for Prompt - Date Range - End Date, I use max just because logically my brain likes that better).  When you refresh the query, it will ask what date range type you want, a start date and end date - used for custom ranges - you can enter any date if not selecting a custom date as it is ignored. Hope that makes sense and is helpful.  It's worked really well for me.  I also have an even more complicated version (imagine that!) for situations where there may be multiple dates a user can choose from, ie a posting date vs the date of service.  It will ask the user which they want and in the Prompt - Date Range - Start Date, a case statement is added to handle the selection/use of different date fields.Deb

  • Scheduled WEBI reports based on File Events not retrieving data

    Dear All,
    We are facing performance related issues with Scheduled WEBI reports based on file based events.
    When running Web Intelligence on demand it takes  4to 5 Minutes.
    Scheduling the same report in Excel format it takes more than 20 minutes.Schedule status showing success but no data found in Excel instance.
    Env:BOXI3.1 Sp3
    Windows 2003
    It woud be great if any one can share your ideas.
    Thanks,
    Kumar

    Hi Kumar,
    Is your report has prompts?
    if you have prompts , make sure that you assigned prompts in the schedule also.
    Hope you have multiple webi processing servers and adpative job servers for better scheduling performance.
    Try below solution .
    On the BusinessObjects Enterprise server, navigate to the folder <install root>\Business Objects\BusinessObjects Enterprise 12.0\win32_X86\dataAccess\connectionServer
    Open the file cs.config in a text editor such as Notepad
    Search the file contents for the string "Traces Active"
    Modify the line from  <Traces Active="Yes">   to  <Traces Active="No">
    Save the cs.config file
    Restart the Web Intelligence Processing Server

  • Devolped an ALV report for daily cash receipts for selected date range

    hi,   
                 how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.

    hi,   
                 how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.

  • Devloped an ALV report for daily cash receipts for selected date range

    hi,   
                 how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.

    Hi,
    You can develop simple reports using Report Painter.
    You may be also interested in:
    Check report SAPMF05A for credit memo
    See the following Std reports on Payment Advices execute the Tcodes:
    S_ALR_87009888
    S_ALR_87009889
    S_ALR_87009890
    S_ALR_87009891
    S_ALR_87009892
    S_ALR_87009893
    S_ALR_87009978
    S_ALR_87009979
    S_ALR_87009980
    S_ALR_87009981
    S_ALR_87009982
    S_ALR_87009983
    S_ALR_87010056
    S_ALR_87010057
    S_ALR_87010058
    S_ALR_87010059
    S_ALR_87010060
    S_ALR_87010061
    S_ALR_87010066
    S_ALR_87010067
    S_ALR_87012106
    S_ALR_87012107
    S_ALR_87012108
    S_ALR_87012109
    S_ALR_87012110
    S_ALR_87012111
    S_ALR_87012116
    S_ALR_87012117
    S_ALR_87012200
    S_ALR_87012201
    S_ALR_87012202
    S_ALR_870122
    S_ALR_87012204
    S_ALR_87012205
    S_ALR_87012350
    S_ALR_87012351
    S_ALR_87012352
    S_ALR_87012353
    S_ALR_87012354
    S_ALR_87012355
    sample ALV report:
    tables:
    marav. "Table MARA and table MAKT
    Data to be displayed in ALV
    Using the following syntax, REUSE_ALV_FIELDCATALOG_MERGE can auto-
    matically determine the fieldstructure from this source program
    Data:
    begin of imat occurs 100,
    matnr like marav-matnr, "Material number
    maktx like marav-maktx, "Material short text
    matkl like marav-matkl, "Material group (so you can test to make
                            " intermediate sums)
    ntgew like marav-ntgew, "Net weight, numeric field (so you can test to
                            "make sums)
    gewei like marav-gewei, "weight unit (just to be complete)
    end of imat.
    Other data needed
    field to store report name
    data i_repid like sy-repid.
    field to check table length
    data i_lines like sy-tabix.
    Data for ALV display
    TYPE-POOLS: SLIS.
    data int_fcat type SLIS_T_FIELDCAT_ALV.
    select-options:
    s_matnr for marav-matnr matchcode object MAT1.
    start-of-selection.
    read data into table imat
      select * from marav
      into corresponding fields of table imat
      where
      matnr in s_matnr.
    end-of-selection.
    Now, we start with ALV
    To use ALV, we need a DDIC-structure or a thing called Fieldcatalogue.
    The fieldcatalouge can be generated by FUNCTION
    'REUSE_ALV_FIELDCATALOG_MERGE' from an internal table from any
    report source, including this report.
    The only problem one might have is that the report and table names
    need to be in capital letters. (I had it )
    Store report name
    i_repid = sy-repid.
    Create Fieldcatalogue from internal table
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME         = sy-repid
                I_INTERNAL_TABNAME     = 'IMAT'  "capital letters!
                I_INCLNAME             = sy-repid
           CHANGING
                CT_FIELDCAT            = int_fcat
           EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM       = i_repid
                I_STRUCTURE_NAME         = 'marav'
                I_DEFAULT                = 'X'
                I_SAVE                   = 'A'
           TABLES
                T_OUTTAB                 = imat.
      IF SY-SUBRC <> 0.
        WRITE: 'SY-SUBRC: ', SY-SUBRC .
      ENDIF.
    Hope this will help.
    Regards,
    Naveen.

  • Can Tivoli (TWS) be used for scheduling WebI reports in BO XI 3.1?

    I am trying to figure out if it is possible to schedule WebI reports to refresh using TWS?
    We are using BO XI 3.1 SP2 deployed on unix and would like to use TWS to refresh WebI reports that are built on SAP BW Bex queries.  Does anyone have any experience scheduling WebI reports using TWS with XI 3.1?  Any information you can provide would be appreciated!
    Thanks,
    Derek

    Hi
    I can think of two options:
    1) You define in BO CMC external events  and schedule your reports to wait for them. In the TWS you can schedule an OS script to create the file that triggers the BO external event. The reports will run only after the file is created.
    2) You write  a java program that uses the BOBJ SDK in order to schedule immediately your reports. In the TWS you create a scedule that starts the java program. (You can find examples how to use the SDK here http://www.sdn.sap.com/irj/boc/samples )
    Regards,
    Stratos

Maybe you are looking for

  • How to adde New Language field value in CRM Business Partner Language Field

    Dear all, How can we add a new field value to the Business Partner Language field in CRM and ECC systems. Your suggestions will be highly appreciated Thanks Sravanthi

  • External Monitor Static When Waking From Sleep

    Hello community, did anyone had the disrcibed problem and knows about it? After waking up from hibernation, display is static an doesn't work on; getting of from thunderbolt and put in after a little bit of time doesn't help.

  • Fcpx with magic bullet green and pink flash frames

    Hi I'm using fcpx with magic bullet. all recent updates. an imac 3.4ghz 32gb ram 512ssd drive and 512mb card. I keep getting pink and green flash frames whenever i colour grade in magic bullet. first 22 secs of project were fine, next day I added to

  • Keyboard Player key

    Hi, i have a problem. I've got the keyboard with the player key ( next , previous , play etc.. ). When itunes window is opened, it work but, when i'm on another window, it don't work... why ? Thanks

  • Multiple Form Field Validation

    I run throught these series of checks before submitting the variables to the .jsp script. Problem is that it will ignore the sender name and receipient name as long as there are two email addresses. Why is that? if (sendername eq "") {         nameer