Set variant in infopackage to get backward data 1 month automatically

Dear all,
Could anyone tell me how could I set variant in infopackag => tab Data selection  to get backward data 1 month from schedule day (every Monday) automatically? 
Many thanks & Regards,
Bigtree K.

Use this code...
l_t_range-option = 'BT'
l_t_range-sign = 'I'.
l_t_range-low = SY-DATUM - 1.
l_t_range-high = SY-DATUM.
Append l_t_range.
Take a look at this link for more info...
http://help.sap.com/saphelp_nw04/helpdata/en/a3/4f8f3b294a7f2de10000000a11402f/content.htm

Similar Messages

  • When I look up the creation date for files on my Macbook I get the date and month in brackets, but not the year.  Why is this and how can I look up the year?

    When I look up the creation date for files on my Macbook (using "get info", or the information window in Iphoto) I get the date and month in brackets, but not the year.  Why is this and how can I look up the year? 

    Does the Date Modified column in a window set to List view show the date correctly, or does it also display it incorrectly?
    To add additional columns to a Finder (folder) window, with that window open and active open the View Options for it. You can do that by pressing Command-J or by selecting View Options from the View menu in the main menubar.

  • Getting last date of month

    Dear Experts
    Please help, i am new in ABAP.
    I want to get number of days for a particular month .Eg if user selects feb as moth and 2009 as year i will get 28.02.2009 as output.
    if user selects march and 2009 as year it will automatically returns 31.03.2009..
    Also give me function module coding for selection of month and year.
    I whouls be highly thankful to you for this.
    Regards
    Raj Jindal

    Hi Raj,
    DATA:
      w_date type sy-datum.
    CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
      EXPORTING
        day_in                 = '20090214' " pass the date here for which u want the last date
    IMPORTING
       LAST_DAY_OF_MONTH       = w_date
    EXCEPTIONS
       DAY_IN_NO_DATE          = 1
       OTHERS                  = 2
    IF sy-subrc <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Write:
      w_date.
    With luck,
    Pritam.

  • URGENT - BI Publisher - Get Last Date of Month/Year

    Hello,
    I want to get the last date of a year/month through BI Publisher. We want to do it by creating a list of values containing the month/year name (i.e. January, February, March for month or 2004 2005 2006 for year) and when the user selects one of this values to get the last date of the month or year in order to select the correct number of records.

    Hi,
    try with a LOV like the following:
    select
    to_char(add_months(trunc(sysdate,'MONTH'),-level),'Month - YYYY') display_value,
    last_day(add_months(trunc(sysdate,'MONTH'),-level)) return_value
    from dual
    connect by level <=12
    which gives you the last 12 month from today.
    Regards
    Rainer

  • How to get last date of month ?

    Dear all
    hi!!!
    How can I get the last date of a particular month?
    I mean if the month is Feb, last date of the month should be 28.
    Is it required to write in loop or there is any method to get it.
    Please write me urgently,
    thanx,
    Samir

    Hello ,
    You can get the last date of a particular month of a particular year like this :
    int year= 2000;
    int month=1;     // February (month is zero based )
    int date = 20;
    java.util.GregorianCalendar gc = new java.util.GregorianCalendar(year,month,date);
    int last_day = gc.getActualMaximum(Calendar.DAY_OF_MONTH));
    Sandip

  • RE: FM to get last date of month

    Hi,
    Please tell me if there is a function to return the last day of the month.
    The input is year+month
    eg 200710 should return a date 31.10.2007
    I noticed that most of the function needs a date, ie DDMMYYYY

    Hi,
    use RP_LAST_DAY_OF_MONTHS
    SELECT-OPTIONS: S_DATE FOR SY-DATUM.
    DATA: V_DATE1 LIKE SY-DATUM,
    V_DATE2 LIKE SY-DATUM.
    DATA: P_INTRANGE LIKE RSINTRANGE OCCURS 0 WITH HEADER LINE.
    INITIALIZATION.
    CALL FUNCTION 'RS_VARI_V_1_LAST_MONTH'
    IMPORTING
    P_DATE = V_DATE1
    TABLES
    P_INTRANGE = P_INTRANGE.
    CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
    EXPORTING
    DAY_IN = SY-DATUM
    IMPORTING
    LAST_DAY_OF_MONTH = V_DATE2
    EXCEPTIONS
    DAY_IN_NO_DATE = 1
    OTHERS = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    S_DATE-LOW = V_DATE1.
    S_DATE-HIGH = V_DATE2.
    APPEND S_DATE.
    Check this link also,
    current month
    Thanks,
    Reward If Helpful.

  • DataSource 0CRM_SRV_PROCESS_H is not getting the data in infopackage

    Hi Masters,
    I have to upload the data from the datasources 0CRM_SRV_PROCESS_H and 0CRM_SRV_PROCESS_I into Infopackages, but when i execute the infockage it shows
    No data available
    Diagnosis
    The data request was a full update.
    In this case, the corresponding table in the source system does not
    contain any data.
    System Response
    Info IDoc received with status 8.
    Procedure
    Check the data basis in the source system.
    In CRM system when i checked it in RSA3 it is showing the data.
    I checked the older posts but i havn't find any answer post. I also checked the SAP note 692195, but it is applicable for 4.0. I am working on 7.0.
    Please suggest something so that I can get the data into infopackage.
    Thanks and Regards,
    Vicky.

    Hi Lokesh,
    Thanks for your reply.
    Actually i am working on such a project where they don't give SAP_ALL authorization to any user. If we need any authorization we need to show them particular SAP note of same version in my case it is CRM 7.0. If you know any note on CRM 7.0 which gives all the authorization objects required or it says we need SAP_ALL authorization please tell me.
    It will be very help full for me to get the authorization.
    Regards,
    Vicky.

  • Getting Rolling Date for a request in scheduled request set

    Hi All,
    I have a request set and autoinvoice runs as a part of this request set , autoinvoice has parameter default Date and when I schedule this request set , I have to fill this parameter (eg:07/07/2006) as this is mandatory parameter. However when I schedule this request set , I find that now reques set runs autoinvoice everyday with default date parameter having same value ie 07/07/2006 even though I have setup request set correctly ie I have supplied current date as default value for this parameter in request set.
    Can anybody tell me how do I get rolling date for a Autoinvoice request which fires as a part of scheduled request set running everyday.

    Hi Robert,
    This is an AOL problem. Please post your query in the AOL forum to get better replies.
    Regards,
    Swapna.

  • Failed to get a data set context!

    What does this mean?
    "processTokens: Failed to get a data set context!"
    Ive setup a Paged Data Set using
    var dsResults = new
    Spry.Data.XMLDataSet("/general/xml/xml_Results.php'",
    "/search_results/product");
    var pvResults = new Spry.Data.PagedView(dsResults, {
    pageSize: 7 });
    The paged data works and everything is displayed correctly
    however I receive that error message still? How do I resolve this?
    Thanks

    It typically means that you have a data reference that is
    refering to a data set that the region is not bound to, for
    example:
    <div spry:region="ds1">
    {dsFoo::bar}
    </div>
    --== Kin ==--

  • OLAP variant for InfoPackage usage

    Hi, experts
        new I need a new OLAP variant from current year period 1 to current year current period minus 2 ( for example, current period is 12, the varient should returen 2005001 - 2005010 )
        I find the SAP Exit "0FYTLFP" which can used in infopackage reture value from current year period 1 to current year current period minus 1 (2005001 - 2005011).
        then I write my customer user exit "ASP_PP_1" to derivated value from "0FYTLFP"
    CASE i_step.
      WHEN '0'.
          WHEN 'ASP_PP_1'.
            READ TABLE i_t_var_range WITH KEY vnam '0FYTLFP'
                   INTO i_var.
            l_s_range-low = i_var-low.
          "skip code for get value of current period minus 2
          "XXX is reture value
            l_s_range-high = XXX
            l_s_range-sign = 'I'.
            l_s_range-opt = 'BT'.
            APPEND l_s_range TO e_t_range.
         WHEN Others.
        ENDCASE.  "for i_vnam
      I debug user exit that I_Step = 0 if we select some OLAP variant in infopackage setting.
      the problem is, i_t_var_range table is alway blank when I debug the code. so I can not convert version from
    "0FYTLFP"
      how was solution about this problem ?  do you anyone met similiar problem as me?
    thanks in advance

    Hi Jie,
    the way you implemented the exit, variable ASP_PP_1 depends on variable 0fytlfp. When nobody enters values for 0fytlfp your variable will return an error (or no value). This of course counts for queries only.
    In InfoPackage, there is no way to enter any variables, so that's wy i_t_var_range is emtpy.
    Try to calculate your ranges based on sy-datum. Its the date of the clock of your server, so it should work
    regards
    Robert

  • Need how to get the data from the external file in eCatt

    Hi ,
      Could any body suggest how to get the values from the external file(Excel,CSV file,Text file) and pass it as varaiable in ecatt Test script.
    Problem: Need to execute FK01-Vendor creation Transaction with multiple set of data .As per my understanding we could achive through Variants in Testdata set in eCatt .
    But is there any way to store the data in excell file and get the data and pass it to FK01 Test scripts
    Appreciate response on this

    Hi
    See the links they may be useful
    check these link,
    eCATT- An Introduction
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    Creating Test Scripts
    /people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
    eCATT Logs
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    eCATT Scripts Creation – TCD Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    Creation of Test Data Container
    /people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
    eCATT Scripts Creation - SAPGUI Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    Integrating ECATT & MERCURY QTP Part -1
    /people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
    Using eCatt to Test Web Dynpro ABAP
    /people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
    and
    -command reference
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    http://prasadbabu.blogspot.com
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    http://www.erpgenie.com/ecatt/index.htm
    hope this helps.
    Reward points for useful Answers
    Regards
    Anji

  • How do I get my data from Sync account after I reformat my computers without backup favourites?

    Hello,
    I formatted my computer without backup all of my favourites in Firefox. I have Firefox sync account set up before that between the 2 computers but both of them have formatted. Now, how do I get the data out from my Sync account? Did Firefox save my data on their server and how can I check that?
    Thanks,

    Also:
    *If you have regenerated your Sync key or reset your Sync password, you can not recover your previous data
    *IMPORTANT - write down your Sync key as instructed in the original set up of Sync
    *if you have another device (computer or mobile) paired to the computer where you are having a problem, you can either:
    *#pair the problem computer to that other device
    *#get the Sync key from that other device
    '''<u>Remember</u>''', Sync was never intended for backup. The reason for its existence is to sync-up 2 devices. To back up your Firefox profile, which you should do frequently, to another drive or a pin/thumb drive or other backup media, see:
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile
    *http://kb.mozillazine.org/Recovering_a_missing_profile

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP

    Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
    Code is :
    <h1>JSP Page</h1>
    <%
    long type = 0;
    String tagId = null;
    String timeStr = "0";
    String deviceName = "";
    // Get Event Parameters
    // Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
    try
    type = Long.parseLong(request.getParameter("type")); // Get type
    tagId = request.getParameter("id"); // Get tagId
    timeStr = request.getParameter("time"); // Get time
              deviceName = request.getParameter("deviceName");
    catch (Exception e)
    out.println( "Error: "+e.getMessage() );
              // Write into DB.
              try {
              if ((tagId == null) || (type != 200) ){
                   // Do Nothing
                   //return;
              } else {
                   OracleDataSource ods = new OracleDataSource();
                   String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";     
                   ods.setURL(URL);
                   ods.setUser("cus");
                   ods.setPassword("cus");
                   Connection myConn = ods.getConnection();     
                   Statement stmt = myConn.createStatement();
                   String selectQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads ";
                   ResultSet rs = stmt.executeQuery(selectQuery);
                   String maxId = "1";
                   if (rs.next()) {
                        maxId = rs.getString(1);               
                   String selectMaxTagIDQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
                   stmt = myConn.createStatement();
                   rs = stmt.executeQuery(selectMaxTagIDQuery);
                   String maxTagId = "1";
                   if (rs.next()) {
                        maxTagId = rs.getString(1);               
                   long primaryKey = 1;
                   long tagKey = 1;
                   try {
                        primaryKey = Long.parseLong(maxId) + 1;
                        tagKey = Long.parseLong(maxTagId) + 1;
                   } catch (Exception e) {
                   long currentTime = System.currentTimeMillis();
                   long updateKey = (tagKey - 1);
                   String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
                   Statement updateStmt = myConn.createStatement();
                   updateStmt.execute(updateQuery);     
                   String query =
                        "INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
                   Statement insertStmt = myConn.createStatement();
                   insertStmt.execute(query);     
                   myConn.commit();
                   myConn.close();
              } catch (Exception e) {
    %>
    <p>For browser debug:
    <%
    out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
    %>
    Kindly suggest where is the problem...
    Thanks and regards
    Mohammad Nasim Akhtar

    HI Prabhat,
    Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
    But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
    Event statical is showing like this
    Events Received: 0 (0.00/sec)
    Events Generated: 311 (0.19/sec)
    Events Sent: 2 (0.19/sec)
    Queued Events: 309 (0.19/sec)
    Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
    Thanks and regards
    Nasim

  • Problem getting correct data from MS Access after doing an Update

    Hi all,
    I have a problem getting correct data after doing an update. This is the scenario
    I am selecting some(Eg: All records where Column X = �7� ) records and update a column with a particular value (SET Column X = �c� ) in all these records by going through a while loop. In the while loop I add these records to a vector too, and pass it as the return value.
    After getting this return value I go through a for loop and get each record one by one from the DB and check if my previous update has actually happened. Since No errors were caught while updating DB, I assume all records are updated properly but my record set shows one after another as if it has not been updated. But if I open the DB it is actually updated.
    This does not happen to all records, always it shows like this
    1st record     Mode = �c�
    2nd record     Mode = �7�
    3st record     Mode = �c�
    4nd record     Mode = �7�
    9th record     Mode = �c�
    10th record     Mode = �7�
    I am relatively new to java and this is someone elses code that I have to modify,So I am not sure if there some thing wrong in the code too
    //Here is the method that gets records and call to update and add to vector
    public static Vector getCanceledWorkOrders() throws CSDDBException{
    //Variable declaration
      try {
        objDBConn = DBHandler.getCSDBCon();
        strSQL  = "SELECT bal bla WHERE [Detailed Mode])=?)";
        objStmt = objDBConn.prepareStatement(strSQL);   
        objStmt.setString(1, '7');
        objWOPRs = objStmt.executeQuery();
        while (objWOPRs.next()) {
         //Add elements to a vector by getting from result set
          //updating each record as PROCESSING_CANCELLED_WO(c)
          iRetVal = WorkOrderDetailingPolicy.updateRecordStatus(objPWODP.iWorkOrderNumber, objPWODP.strPersonInformed, EMSConstants.PROCESSING_CANCELLED_WO);
          if (iRetVal == -1) {
            throw new NewException("Updating failed");
      catch (Exception e) {
        vecWONumbers = null;
        throw new CSDDBException(e.getMessage());
      }finally{
        try {
          objWOPRs.close();
          objStmt.close();
          DBHandler.releaseCSDBCon(objDBConn);
        catch (Exception ex) {}
      //return vector
    //here is the code that actually updates the records
    public static int updateRecordStatus(int iWONumber, String strPerInformed , String strStatus) throws CSDDBException{
       PreparedStatement objStmt = null;
       Connection objDBConn  = null;
       String strSQL = null;
       int iRetVal = -1;
       try{
         objDBConn  = DBHandler.getCSDBCon();
         objDBConn.setAutoCommit(false);
         strSQL = "UPDATE Table SET [Detailed Mode] = ? WHERE bla bla";
         objStmt = objDBConn.prepareStatement(strSQL);
         objStmt.setString(1, strStatus);    
         objStmt.execute();
         objDBConn.commit();
         iRetVal = 1;
       }catch(Exception e){
         iRetVal = -1;
       }finally{
         try{
           objStmt.close();
           DBHandler.releaseCSDBCon(objDBConn);
         }catch(Exception ex){}
       return iRetVal;
    //Here is the code that call the records again
      public static WorkOrderDetailingPolicy getWorkOrders(int iWorkOrderNo) throws CSDDBException{
        Connection objDBConn = null;
        PreparedStatement objStmt = null;
        ResultSet objWOPRs = null;
        WorkOrderDetailingPolicy objPWODP = null;
        String strSQL = null;
        try {
          objDBConn = DBHandler.getCSDBCon();    
          strSQL = "SELECT * FROM [Work Order Detailing] WHERE [Work Order No] = ?";
          objStmt = objDBConn.prepareStatement(strSQL);
          objStmt.setInt(1, iWorkOrderNo);
           objWOPRs = objStmt.executeQuery();
          if (objWOPRs.next()) {
            objPWODP = new WorkOrderDetailingPolicy();
            objPWODP.iWorkOrderNumber = objWOPRs.getInt("Work Order No");
            //......Get Record values
        catch (Exception e) {
          objPWODP = null;
          throw new CSDDBException(e.getMessage());
        }finally{
          try {
            objWOPRs.close();
            objStmt.close();
            DBHandler.releaseCSDBCon(objDBConn);
          catch (Exception ex) {}
        return objPWODP;
      }

    Hello,
    Can you put an example of your problem online?
    Are you sure you're not having problems with case sensitive data?
    Thanks,
    Dimitri

Maybe you are looking for

  • XML Data source - Referring from one section of data to Another section

    In my application, XML raw data is used as an input to the Crystal Report 2008. From this XML data, different type of report outputs are generated. So XML data has formatting information too. This formatting information need to be used in generating

  • CS3 wont install

    hi i had to reinstall my OS. yet agian and now my CS3 upgrade wont install , it dosent give an error message it just says on the crappy little window that there were errors installing and errors in the shared components. any one had this prob. or can

  • Problem with updating iPod Classic

    I need to restore my iPod because whenever I highlight the music portion of my iPod the artwork half of the iPod turns white and the iPod reboots itself. All other parts I can go to with no problem. Anyways I try to restore the settings but it says I

  • Slow start up & shut down, freezes randomly, sleep issues

    My mother has an iMac Intel Core 2 Duo, 2.8 GHz, model iMac8,1, with 4 GB RAM, and a 300 GB hard drive. She uses this computer primarily for email and the internet, and some writing using Pages. So on her hard drive, only 22 GB is used, and the rest

  • Images, Video, Slideshows

    MacBook has stopped displaying some images e.g. iPhoto doesn't display slideshow, PowerPoint doesn't display slideshow, Preview doesn't display TIF's & GIF's though the images show in Finder Preview window - have I accidentally changed a setting? Or