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

Similar Messages

  • 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

  • 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

  • What authorities do I need to start a dispute with for Verizon charging for "Unbilled Data From Prior Months - GB "

    For the second month in a row, Verizon has added a $15.00 "data over usage" fee.  When I call customer service, I am told that the charge is for over usage of data from prior months in which they can't tell me what months we went over.  We've been Verizon customers for 10+ years & all of a sudden their customer service has severely declined.  I am always on Verizon's website looking at our usage and the past 6 month analysis to make sure we're staying within our range of usage and we've never gone over our allowed plan for data.  I plan to file a formal complaint/dispute with all of the consumer protection agencies and/or authorities but need to know which ones are for telecommunications issues for Georgia consumers.

    For a customer of 10 years to never read the customer agreement...:
    "HOW AND WHEN CAN I DISPUTE CHARGES?
    If you're a Postpay customer, you can dispute your bill within 180 days of receiving it, but unless otherwise provided by law or unless you're disputing charges because your wireless device was lost or stolen, you still have to pay all charges until the dispute is resolved. If you're a Prepaid customer, you can dispute a charge within 180 days of the date the disputed charge was incurred. YOU MAY CALL US TO DISPUTE CHARGES ON YOUR BILL OR ANY SERVICE(S) FOR WHICH YOU WERE BILLED, BUT IF YOU WISH TO PRESERVE YOUR RIGHT TO BRING AN ARBITRATION OR SMALL CLAIMS CASE REGARDING SUCH DISPUTE, YOU MUST WRITE TO US AT THE CUSTOMER SERVICE ADDRESS ON YOUR BILL, OR SEND US A COMPLETED NOTICE OF DISPUTE FORM (AVAILABLE AT VERIZONWIRELESS.COM), WITHIN THE 180–DAY PERIOD MENTIONED ABOVE. IF YOU DO NOT NOTIFY US IN WRITING OF SUCH DISPUTE WITHIN THE 180-DAY PERIOD, YOU WILL HAVE WAIVED YOUR RIGHT TO DISPUTE THE BILL OR SUCH SERVICE(S) AND TO BRING AN ARBITRATION OR SMALL CLAIMS CASE REGARDING ANY SUCH DISPUTE."
    SEE FULL AGGREEMENT HERE: Customer Agreement | Verizon Wireless

  • 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

  • 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

  • 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

  • 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

  • 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

  • Error when scheduling WEBI report to FTP server

    Hi
    We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server.
    Any help would be appreciated
    Regards,
    Anisa

    Hi All,
    I want a run my report once by scheduling, so i provide a time interval for scheduling a report
    start date/ time : 11:38:AM 10/30/2011
    end date/time : 11:43:AM 10/30/2011
    after completion of end time....report is failed and fetching an error
    Error : Object could not be scheduled within the specified time Interval
    Any solution for resolving this error

  • Scheduling a report with System Date as prompt

    Hi Experts,
    We have came across a requirement where users want to have a date prompt.
    While scheduling the report, by default prompt is to be populated with system date and it (prompt) should also allow us to select a different date.
    This report is used for regular run and also for scheduling.
    We need a single report with single prompt which allows us to run for any random date when prompted and also to be scheduled for the latest date.
    Please give us advice/ suggestion.
    Thanks
    Uttam

    Hi Neil,
    We have tried both the approaches given by you, but it is not working for my requirement.
    Let me explain it with the below scenario.
    scenario:
      we have developed the report by using 2 data providers,
    Dp1: It is a custom Query with date as follows ( it is a Transaction data) which brings the data from 1st day of month(user prompt) to user's prompt date.
    TRANSACTION_DATE BETWEEN last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\Transaction Date',Mono,Free,Persistent,,User:0)
    Dp2: It is also Custom Query, but it has only data on month ends.
    DIMV_plant_EOP.TRANS_END_OF_MONTH_DATE = last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\EOP plant Attributes\EOP Date',Mono,Free,Persistent,,User:0),-1))
    Report is having 3 prompts, namely
    1) As of date (prompt)
    2) Plant (prompt)
    3) Country (Prompt)
    For example: if my report is ran on 06-june-2014,
    DP1: Brings the data from 1st of June to 6th of june.
    DP2: Brings the Data from Inception to last month(say 30-may-2014) because it has only month end data.
    Upto this it is fine.... but
    My requirement is to schedule the report daily......
    Example: User want to schedule a report today(10-July-2014), tomorrow(11-July-2014) and so on...
    Scheduling should be done daily i.e, it has to fetch the data 10-Jul-2014, 11-july-2014,12-july-2014.... so on. 
    Automatically scheduling has to take the current date.
    Thanks,..

  • Scheduling webi reports via Java SDK in BI 4.1

    Hi,
    Has anyone been able to schedule a Webi report containing date prompts via Java SDK in BI 4.1? I have tried doing so but it doesn't work when date prompts are involved, I get the exception raised: java.lang.NullPointerException error. Though the scheduled instance is created and the date prompt appears to be correctly populated the report fails with the above mentioned error message. The code is working for other text prompts but fails when I have a date prompt in the report. I am using the populateWebiPrompts() method to populate the prompts.
    CF

    Hi Christopher,
    Try adding the following line in your code before scheduling:
    iWebi.setUserInputLocaleName(documentInstance.getProperties().getProperty(PropertiesType.BASE_LOCALE));
    Also as an FYI, please refer below details.
    For scheduling webi reports with prompts, the only supported way is to use Restful webservices SDKs.
    The feature of scheduling a webi report with prompts were deprected from release BI 4.x and introduced in the new restfull webservices. Restful is the future which SAP is focussing and would be great to have your application on supported terms with SAP.
    You can get details about the restful webservices from the documents and blogs available at below forum
    http://scn.sap.com/community/restful-sdk
    Thanks,
    Prithvi

  • Error When Trying to Schedule Webi report using SAP authentication

    Hii,
    We are trying to Schedule Webi report in CMC for Group of Users using SAP authentication(SSO) ,While Trying this we are geting error Unable to Connect to SAP BW server Incomplete Logon Data ..(IES 10901) .
    Authorization done at BI side and Its working properly.Users are able to login into BI Launchpad and View Report as per authorization
    Some Webi reports are created using BICS connection and some  are created using Universe Design Tool (.UNV) which are migrated from BO 3.1 to BO 4.0
    Server Status:
    BO server and Client Tools-:BO 4.0 SP6
    BW System-7.01
    Please refer attach Screen Shot

    Hi Rupesh,
    Please check the below note:
    Seems issue with SNC/STS settings.
    1798197 - Schedules fails with error "Database error: Unable to connect to SAP BW server Incomplete logon data.. (IES 10901)" in BI 4.0
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…

  • Getting multiple error while refreshing or scheduling WebI report

    Hi BO Admin Experts ,
    Feacing  multiple errors  while refreshing or scheduling webi reports in BI4.0 CMC ,
    Please find the below errors :
    1)report schedule status failed
    2)Parameters : xxxcorp-franklinee; ATOu supply unv
    Error Message : An internal error occured while calling 'ProcessDPcmndsEx' API (Error:ERR_WIS_30270)
    3 ) Format : WebI
    Parameters : 10000000000159270
    Error Message :CORBA error while communicating with the SL service
    Could you please help me on the abive 3 issues for the WebI schedule reports
    Cheers ,
    Pradeep Gorpadu

    Hi,
    While refreshing the WEBI Reports would recommend you check the WEBI PROCESSING Server's last changed date from CMC--> Servers.
    Check when you are refreshing the reports, do you see the time stamp changed of WEBI PROCESSING servers?
    Do you keep getting this error messages for all WEBI reports? Can you re-produce this with simple e-fashion reports as well?
    After that go to the node where WEBI PROCESSING servers installed and check on the event viewer details if you see any relevant error messages.
    Regards,
    Upendra

Maybe you are looking for

  • Photos Won't Start on iPod Touch [2.0 Firmware]

    I've got a strange issue with my iPod Touch (running 2.0 firmware). It appears that my 'Photos' preinstalled application won't start anymore. Since upgrading to 2.0, I hadn't sync'd any photos to my device and when I launched the app, it would just t

  • ABAP API to store DATE value in MDM 5.5

    Hello All, Currently I am working on MDM 5.5 and need to have some suggestions on ABAP API Function module to store date values in MDM. We have interface from where we take the user input which updates the field value back in the MDM. On the basis of

  • Attachment as Excel in a mail -through  HTML

    Hi Guys, I have a requirement on sending an Excel as attachment to a mail. Basically,the existing program runs for a single record and builds a HTML and sends the information as Mail body in the email. Now,they want to run a report which will be mult

  • Safari crashes as soon as I touch address bar

    I am so aggravated right now. I have 3rd gen iPad. As soon as I got it out of the box and configured it, Safari crashes. It was all factory settings and no other apps were installed. So I contact support and they do an exchange. I got the new one tod

  • Quicktime error   when opening itunes why?

    I have used itunes for a while with a Nano, i recently got an iphone.  Now no matter wht i do i get a quicktime error.  It says Quicktime was not found.  I have a hp with windows 7.  I have deleted about 6 times and reinstalled.  I have cut off all p