Automatic date in infopackage

Hello all, i have several infopackages that I need to run every month.
In the date field under data selection I have to specify the last month from the 1st to the last day of the month.  I was wondering if theres a way to that by a routine or something, so that I dont have to go to the infopackage everymonth and do the same for all of them.   Thanks for your help.

hi,
try infopackage with abap routine (type 6)
data: l_idx like sy-tabix.
data: l_date like sy-datum.
data: l_year type i.
data: l_month type i.
read table l_t_range with key
fieldname = '[your field date]'.
l_idx = sy-tabix.
DELETE l_t_range
WHERE fieldname = '[your field date]'.
last month 1st day
  l_date = sy-datum.
  move '01' to l_date+6(2).
  move l_date(4) to l_year.
  move l_date+4(2) to l_month.
  l_month = l_month - 1.
  if l_month lt 1.
    l_year = l_year - 1.
    l_month = 12.
  endif.
  move l_year to l_date(4).
  move l_month to l_date+4(2).
L_t_RANGE-LOW = l_date.
L_t_RANGE-HIGH = sy-datum.
L_t_RANGE-SIGN = 'I'.
L_t_RANGE-OPTION = 'BT'.
append l_t_range.
modify l_t_range index l_idx.
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform.

Similar Messages

  • 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.

  • SRM MDM: Workflow Unlaunch while performing the Automatic data transfer

    Hi,
    We are trying to import some data from R/3 4.6 C by configuraing remote system as ERP and creating Port based based on the XML Schema in the SRM MDM Catalog. We have created work flow to validate the above pulled data accuracy into data manager. Everything goes well here, I am able to get the data transfered into data manager Automatically But the only issue is in the Work flow.
    Set workflow into data manager is not able to launch automatically even though the record is accurate via automatic transfer. I have accuratly set the wokflow name in import manager while svaing the MAP file for automatic import.
    Please have your inputs why the work flow is not able to launch in automatic data transfer from the specified port.
    Thanks/Pawan

    Hi Pawan,
    please check in the Data Manager, that you selected by the workflow, the right Trigger Actions, such as Record Import. And that the Autolunch is also set correcly.
    Regards,
    Tamá

  • Automatic date update in Pages for iPad

    I want the date (date feild?) in a Pages for iPad letter template to update automatically (using the system date, like other word process application) but cannot see how to do this. This automatic date update appears to work in the Pages for iPad templates examples. i.e open a letter template and the date field shows the correct date, do the same with the same template 24 hours later and the date is shown correctly accordingly. I believe feature is achieved in the Mac version of Pages by setting up a date field. I would like to do the same with Pages iPad. Any ideas how this can be achieved? 

    We cannot speculate about future Apple products. We know no more about this than you do at this time.
    You can suggest it to Apple at Apple Feedback.

  • Loading data from infopackage via application server

    Hi Gurus,
    I have a requirement where i need to load data present in the internal table to a CSV file in the application server (AL11) via open data set, and then read the file from the aplication server, via infopackage ( routine ) then load it to the PSA.
    Now i have created a custom program to load data to AL11 application server and i have used the below code.
    DATA : BEGIN OF XX,
      NODE_ID     TYPE N LENGTH 8,
      INFOOBJECT  TYPE C LENGTH 30,
      NODENAME  TYPE C LENGTH 60,
      PARENT_ID  TYPE N LENGTH 8,
      END OF XX.
    DATA : I_TAB LIKE STANDARD TABLE OF XX.
    DATA: FILE_NAME TYPE RLGRAP-FILENAME.
    FILE_NAME = './SIMMA2.CSV'.
    OPEN DATASET FILE_NAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    XX-NODE_ID = '5'.
    XX-INFOOBJECT = 'ZEMP_H'.
    XX-NODENAME = '5'.
    XX-PARENT_ID  = '1'.
    APPEND XX TO I_TAB.
    XX-NODE_ID = '6'.
    XX-INFOOBJECT = 'ZEMP_H'.
    XX-NODENAME = '6'.
    XX-PARENT_ID  = '1'.
    APPEND XX TO I_TAB.
    LOOP AT I_TAB INTO XX.
      TRANSFER XX TO FILE_NAME.
    ENDLOOP.
    now i can see the data in the application server AL11.
    Then in my infopackage i have the following code,
    form compute_flat_file_filename
         using p_infopackage type rslogdpid
      changing p_filename    like rsldpsel-filename
               p_subrc       like sy-subrc.
          Insert source code to current selection field
    $$ begin of routine - insert your code only below this line        -
      P_FILENAME = './SIMMA2.CSV'.
      DATA : BEGIN OF XX,
      NODE_ID     TYPE N LENGTH 8,
    INFOOBJECT  TYPE C LENGTH 30,
      NODENAME  TYPE C LENGTH 60,
      PARENT_ID  TYPE N LENGTH 8,
      END OF XX.
      DATA : I_TAB LIKE STANDARD TABLE OF XX.
      OPEN DATASET P_FILENAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF SY-SUBRC = 0.
        DO.
          READ DATASET P_FILENAME INTO XX.
          IF SY-SUBRC <> 0.
            EXIT.
          ELSE.
            APPEND XX TO I_TAB.
          ENDIF.
        ENDDO.
      ENDIF.
    CLOSE DATASET P_FILENAME.
      P_SUBRC = 0.
    i have the following doubt,
    while loading the data from internal table to application server, do i need to add any "data seperator" character and "escape sign" character?
    Also in the infopackage level i will select the "file type" as "CSV file", what characters do i need to give in the "data seperator" and "escape sign" boxes?  Please provide if there is any clear tutorial for the same and can we use process chain to load data for infopackage using file from application server and this is a 3.x datasource where we are loading hierarchy via flat file in the application server.
    Edited by: Raghavendraprasad.N on Sep 6, 2011 4:24 PM

    Hi,
    Correct me if my understanding is wrong.. I think u are trying to load data to the initial ODS and from that ODS the data is going to t2 targets thru PSA(Cube and ODS)....
    I think u are working on 3.x version right now.. make sure the following process in ur PC.
    Start process
    Load to Initia ODS
    Activation of the Initial ODS
    Further Update thru the PSA(which will update both ODS and Cube).
    make sure that u have proper Update rules and Init for both the targets from the Lower ODS and then load the data.
    Thanks

  • Automatic Data Extract in ODI

    Hi,
    I want to do automatic data extract in ODI
    How do i achieve this?
    Thanks.

    Hi,
    If i understand your requirement correctly then scheduling in ODI will help you to do automatic data extraction at specific time/interval.
    Have a look,
    http://www.oracle.com/technology/obe/fusion_middleware/odi/creating_scheduling_scenario/creating_scheduling_scenario.htm
    You got what you are looking for?
    Thanks,
    Guru

  • Automatic data collection evaluation issue

    We are currently evaluating several automatic data collection applications that we are planning to integrate with our Oracle Applications --- got most of the RFQ constructed using this template, http://www.highjumpsoftware.com/adc/Vertexera062503/
    but we want to make sure that all the system integration issues have been accounted for.
    Does anyone have any success stories/horror stories about integrating automatic data collection products with the ERP system
    Thank you!

    cfhttp is a good place to start.

  • Automatic Data Transfer

    Hi everyone,
    I am trying to create an automatic control for checking automatic data transfer settings calibration for transfer data from SAP-FI to SAP BPC.
    Any idea of how to design it? Is there a tabla containing information about the complete transfer of the data?
    Thank you so much!!
    Kind regards,

    Hello
    maybe this will help
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96544/toc.htm
    lajos

  • I have lost the automatic date/time stamp

    I have lost the automatic date/time stamp when a form is submitted on my response page.  How do I make it start doing it again?  The column just appears blank now with new submissions.

    In the first cell of the column you need to re-enter the formula that used to be there.  Enter "= LOCALTIME(ROWCREATEDATE()".  You may need to change the date format after this.  Click on the Table button in the toolbar, select the Column with the dates, then select your prefered format.
    -Jeff

  • SMSY_SETUP automatic data transfer

    Hi,
    I'm trying to configure automatic data transfer between Solman 3.2 and SLD.
    So I start schedule data transfert, but from log I see this problem:
    Get clients for system 'SMI'
    RFC error(): SLDThe accessing object does not support the path //n
    Where is the problem?
    Another question...
    How can stop the schedule?
    Thanks to all
    Message was edited by: Stefano Scarpetta

    I think they are defined,
    however this is my situation in SMSY
    <a href="http://www.rogepost.com/dn/bd1o/SMSY.jpg">ScreenShot</a>
    All Systems and Logical Systems have been created by smsy_setup.

  • Using FormCalc to Automate Date Calculations

    How do I use FormCalc to add days to a date and automatically calculate a second date?

    Thanks for the feedback, but I've checked this out in depth before coming to this discussion group. It does not show me how to calculate the date as I need it. I have a timeline document where users will enter an initial date. Based on the initial date, I want to automatically calculate the milestone dates by adding the number of days in wait time. For example, the user will enter Jan 1, 2013. The first milestone should occur 3 days later, so the calculation would add 3 days to the initial date and automatically return a date of Jan 4, 2013. There are a number of milestones and automatic dates that occur throughout this 80-day timeline.
    Do you have any idea of what that calculation would be?

  • Ho to automate data extraction from KSB1 and GR55 transaction code

    Hi All,
    Can you please let me know if their is a way to automate data extraction from transaction code KSB1 and GR55. I have to extract data from 5 different servers .i.e different server for each region and again i have different controlling area codes in each region. Following are the details which i use to extract the data. It takes too long for me to extract data from all this regions and controlling area codes using my parameters. It's very time consuming so i want to automate this process. I am end user so i don't have any admin rights. Please let me know any workable solution asap.
    Production areas : PNA for Americas, PSI for Asia Pacific and Japan, PGY for Germany, PIT for Italy and PEU for Europe
    Controlling area codes in PNA : CAR for Argentina, CBR for Brazil, CMX for Mexico and CUS for USA. Same way there so may other controlling area codes for all other production areas
    Period From 1 to 12
    Fiscal Year : 2009
    Cost Centre Group : G_6284
    Cost Element Group : 1742000000
    Please let me know in case you need more details.

    Hi,
    Here follows a translation from German:
    SAP GUI (client) for Windows enable
    Start SAP Logon and log on to the SAP server.
    Click the button on the toolbar to adjust for Local Layout.
    Click Options and then click the tab for the scripting.
    Select the Enable checkbox for scripting.
    Disable the checkbox for Notify when a script is assigned to an active GUI and the checkbox for Notify when a script opens a connection.
    Save the settings and restart the SAP GUI again.
    SAP-server enable
    With the following procedure, you can enable scripting by the SAP client temporarily. The specified value in this way is lost when you restart the server.
    Start SAP Logon and log on to the SAP server.
    Start a transaction RZ11.
    Enter sapgui / user_scripting in the window to manage the profile parameters.
    Click on ads.
    Click in the window to display the profile parameter attributes to change value.
    Enter TRUE in the field for a new value.
    Save the settings and log out from the SAP GUI.
    Quit the SAP Logon.
    Note:
    If the server administrator edited the application server profile of the SAP system to sapgui / user_scripting = TRUE to include the scripting is enabled when you restart the server by default.
    SAP provides an option to change the network connection mode at any server. The following two connection modes are available: high-speed connection (LAN) and connecting with a slow speed. Although Functional Tester works in both modes, the high-speed connection with a recorded script is played only in this mode. This also applies to other modes. They must reflect your SAP script in the same network connection mode, with which the script was recorded. It is recommended that the mode of "high-speed connection, as it offers a greater number of valid recognition properties.
    Regards,
    ScriptMan
    Edited by: ScriptMan on Apr 13, 2010 12:32 PM

  • Time is delayed by 10 minutes when you use Automatically Date & Time

    Time is delayed by 10 minutes when you use Automatically Date & Time in France

    It is not carrier as all my Apple products where up to 10 minutes fast. I had to reset each product to the correct time. I'm in New Zealand.

  • Inserting an automatic date?

    I notice that when I want to insert a date, it only resets
    once the page has been updated.
    But I found a few pages on my site that has an automatic date
    that resets on its own, and when I tried to edit that page, all I
    saw was a little yellow box that looked like a "scroll" was in it.
    Here's an example of the page that I need to update to get a
    new date:
    http://naswnyc.org/
    Here's the page that does it on its own:
    http://naswnyc.org/archives/executive.htm
    can someone please help?

    Check your source code and you will see the difference:
    http://naswnyc.org/
    This page is using this code:
    <!-- #BeginDate format:fcAm1 -->Wednesday, August 13,
    2008<!-- #EndDate -->
    This is created by Contribute and will update once you edit
    and publish the updated page.
    http://naswnyc.org/archives/executive.htm
    This page is using this code:
    <script language="javascript">
    //--------------- LOCALIZEABLE GLOBALS ---------------
    var d=new Date();
    var weekday=new
    Array("sunday","monday","tuesday","wednesday","thursday","friday","saturday");
    var monthname=new
    Array("january","february","march","april","jay","june","july","august","september","octo ber","november","december");
    //Ensure correct for language. English is "monday, january 1
    - 2004"
    var TODAY = weekday[d.getDay()] + ", " +
    monthname[d.getMonth()] + " " + d.getDate() + " - " +
    d.getFullYear();
    //--------------- END LOCALIZEABLE ---------------
    </script>
    and:
    <script language="javascript">
    document.write(TODAY);
    </script>
    This is a javascript that writes the current date to the
    screen.

  • TS3297 I find the instructions to use automatic date/time in ts3297 to be totally unacceptable.

    I do things on my MBP (software builds) that REQUIRE consistent timestamps. I also travel extensively, which frequently results in "going backwards in time' (flying east to west). Updating date/time automatically causes total confusion for my builds, among other things.
    I haven't debugged (yet) the same error message on my iPhone 4 which _does_ have 'automatic date/time' set.
    My iPhone 4S and original iPad seem to work just fine. The 4S has automatic date/time, original iPad has manual date/time.
    All ios devices are 5.1.1, MBP is Mountain Lion. In other words, no software updates required for any device.
    The interesting thing, it's only updates.... Now that _does_ require date/time info, but I would expect to see 'no updates found', not 'unable to connect'.

    Okay, checked the iPhone 4 debug steps.
    Not my ISP, I can press 'featured' in the App Store and see what's up. Safari works, etc.
    Doesn't matter whether connection is Wi-fi or 3g, fails.
    Powered down/up, no change. Switched from automatic to manual and back, no change.
    Went back to MBP, the OSX app store works just fine. It found I needed to update iTunes on my MBP. We'll see what happens after that. Can't expect it to solve my iPhone 4 issue, though.
    Download time for iTunes update is 35+ minutes (hotel connection). I'll be back.....

Maybe you are looking for

  • Simple index (How to view data(all columns) of an index in toad)

    Hi All, I am training myself on sql tuning and over the years I have seen ppl creating many indexes, today I am trying to learn various types of indexes and just curious to see physical data in an index but I am not able to do so on toad, I know if I

  • AVAYA IP Phones unable to get an IP address from DHCP server.

    I installed new SRW208P switch and I mada an uplink connection with SRW 2024 switch (using GE port). when I am trying to connect AVAYA IP Phone to the SRW208P port, the set trying to get an IP address from the DHCP server and failed to get it. some t

  • 8.1.7- How to load an LDIF file

    hai, I understand that there's bulkload.sh to load LDIF file. But I think this is for unix. How can I load LDIF file in Windows? thanks in advance, Evan

  • Want Image Capture to automatically open instead of iPhoto

    When I upload photos from my camera, iPhoto automatically opens. How can I set up Image Capture as the default, instead? Thanks.

  • 10.6.3 and Adobe CS4

    I depend heavily on the Adobe Creative Suites for my business. I am currently running Adobe CS4. I have not yet upgraded to Snow Leopard 10.6.3 because I have heard about all of the problems with Adobe CS4. I really don't want to make that leap, unti