How to change data of a field automatically when sys date reaches a particu

Hi,
  I have 2 fields in my database BOOKING_DATE and BOOKING_FLAG. What i want is that the moment SYSTEM date becomes more than BOOKING_DATE(for an already existing record) , the field BOOKING_FLAG should change its value to 'F' for that particular record.
This actually should be happening in the background I guess. I dont know if its possible or not.
THANKS

Use this logic and create a progra. and then run this program in the background according to your need.
data: BEGIN OF itab1 OCCURS 0,
      booking_date type sy-datum,
      booking_flag type c,
  END OF itab1.
itab1-booking_date = '20110810'.
itab1-booking_flag = ''.
APPEND itab1.
clear: itab1.
  itab1-booking_date = '20110811'.
itab1-booking_flag = ''.
APPEND itab1.
clear: itab1.
  itab1-booking_date = '20110812'.
itab1-booking_flag = ''.
APPEND itab1.
clear: itab1.
LOOP AT  itab1.
if sy-datum > itab1-booking_date.
  itab1-booking_flag = 'F'.
  ENDIF.
  MODIFY ITAB1.
  CLEAR ITAB1.
ENDLOOP.

Similar Messages

  • How to change manual segment management to automatic? and vice versa

    how to change manual segment management to automatic? and vice versa
    i can't find any option for that in EM
    Thanks

    Paolo Marin,
    The original wants to change from Freelist management to Automatic Segment Space management - the URL you supplied is about converting from Dictionary Managed tablespaces (DMT) to Locally Managed tablespaces (LMT).
    In passing - the article you reference says: First, MAKE sure to take a full backup of the tablespace and all related tablespaces (inter-tablespace referential integrity) before running this procedure:. There's no such thing as 'tablespace referential integrity', but (a) it would be a good idea to make sure that no-one else is using the database whilst you do a conversion, and (b) it's the system tablespace that holds the data dictionary so that's the one other (really important) tablespace you have to back up before starting.
    There is a very old note about the limitations of doing the DMT -> LMT conversion here: http://www.jlcomp.demon.co.uk/book_8i/ch_08.html#Extent%20Management
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    https://www.jlcomp.demon.co.uk

  • How to change the year in a range of column dates to the new year?

    How to change the year in a range of column dates to the new year?

    Depends on the pattern of the dates. The last procedure will work for any pattern, or no pattern at all.
    For examples.the dates are assumed to be in column A, starting at A2
    Sequential dates?
    Enter first updated date in the first cell.
    Enter =A2+1 in cell A3. Copy the cell.
    Select A3 to the end of the list. Paste.
    With the cells still selected, Copy, then go Edit > Paste Values.
    Evenly spaced dates?
    Same procedure as above, but replace +1 in the formula with + and the number of days between dates in the list.
    Randomly spaced dates?
    Select cell B2. Press option-left arrow to insert a (temporary) column to the left of column B.
    Click on the empty cell B2 in the new column. Enter the formula below:
    =DATE(YEAR(A)+1,MONTH(A),DAY(A))
    Copy the cell, then select B2 - Bn where n is the last ow containing a date to be converted. Paste,
    With the cells still selected, Copy.
    Click on A2, then go Edit > Paste values.
    Click on the column B reference tab to select all of column B.
    Hover the mouse over the right end of the reference tab, and click the black triangle when it appears.
    Choose Delete Column from the menu that appears.
    Regards,
    Barry

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • How do I make the plugin run automatically when a photo is imported?

    I am trying to write a new plugin where the metadata will be automatically added to the photo when I import the photo in the Lightroom.
    How do I make the plugin run automatically when a photo is imported?
    Thanks for  your help!
    Regards,
    Prosenjit

    psaha84 wrote:
    What I want is, when I import a photo in Lightroom the plugin will run and assign the metadata.
    As John said, there is no mechanism to receive notification of import. The likely recourse is continuous polling (unless you get very creative..).
    You can try optimizing. e.g.: every second (or less), see if the count has changed, if it's gone up, something's been imported, if not then probably not (check anyway once in a while..).
    psaha84 wrote:
    How do I save the custom metadata with the image file?
    Lightroom 5 has the limitation, plugin  cannot link the custom metadata fields to XMP file or save them with image file.
    So, is there any alternative way to save the custom metadata?
    Yeah: Lightroom won't save custom metadata in xmp, nor read it if it's there, so you are pretty much on your own - you can save in a file, but if you save as non-standard sidecar Lr won't attend to it like it will jpg or xmp sidecar. For that reason it's often better to save in a separate dedicated location. You can save in image file itself, e.g. using exiftool if raw file, but that would make me nervous, and of course you'd have to have the logic to read it somewhere too..
    Good luck,
    Rob

  • HT1918 how to change the country of the store when purchasing an app?

    how to change the country of the store when purchasing an app?

    Try contacting iTunes Support and ask them to remove the balance from your account so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • IPhone 4S (IOS 7.0.2) is changing (or skipping parts) songs automatically when I unlock the device.

    My iPhone 4S (IOS 7.0.2) is changing (or skiping parts) songs automatically when I unlock the device, since the update to 7.0.2.
    The song is playing on background, so when I need to access something, I go and type my password, and the song goes backwards, or it completely changes songs / artists. Sometimes it just stops for less than a second, and starts playing again, normally.
    What's happening?

    I experienced such behavior few times (also on 4S). It's especially annoying when you listen audiobooks. I think it's a bug, and at this moment there's no remedy for it - at least I haven't found it.

  • How to Change Open Item Management Field in GL Master Record

    Hi,
    How to change the field Open Item Management becz eventhough I tried through in norrmal way of making it that GL balance to 0 and made the change after that it not allowing to save and throwing the following errors,
    Account Balance = 0 but open items exist is the error coming,
    Can any one plz advice ?

    Hi,
    Once transaction data is posted, GL Account cannot be made into an open item managed account. However, you can consider the following options:
    1. GL Account Balance is ZERO: If the GL Account balance is ZERO, the GL Master record can be changed to Open Item managed Account or vice versa. But this will not change the transaction data already posted. Only future transaction data will be open item managed.
    2. Until SAP version 4.0B SAP has provided a program to convert a GL Account to open item managed account after transaction data is posted (or vice versa). You can execute this program by blocking the GL Account and this will make the required changes in tables and also change GL Master record.
    But this program is not available for execution in higher versions. Hence, you can copy the program into a Z Program and execute it. The name of the standard program is RFSEPA02.
    Thanks
    Murali.

  • How do I make my text field automatically upper case?

    How do I make my text field in a form automatically upper case?

    Use the following as the text field's custom Keystroke JavaScript (choose a Format type of Custom):
    // Keystroke script for text field
    event.change = event.change.toUpperCase();

  • How to change standard selection-screen fields

    hi i am kishore.
    i have requirement.
    i have to change selection-screen label purchase order to purchase docuement in request for quatation.
    pls suggest that how to change the standard selection screen field labels.

    Hi.
    This is possible.
    Just try out this way.Heres is an example. 
    TABLES: pernr.
    data: i_tab type standard table of RSSELTEXTS with header line.
    initialization.
    i_tab-name = 'PNPPERNR'.
    i_tab-kind = 'S'.
    i_tab-text = 'Employee ID'.
    append i_tab.
    CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
      EXPORTING
        program                           = 'ZESO_TEST'
      tables
        seltexts                          = i_tab
    EXCEPTIONS
      PROGRAM_NOT_FOUND                 = 1
      PROGRAM_CANNOT_BE_GENERATED       = 2
      OTHERS                            = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks and regards,
    Maheshwari.V

  • I don't want to fill the Actual GI Date field automatically when GI

    Hi experts
    When I post good issue a delivery, Actual GI Date field is filled automatically.
    I don't want it.
    I don't want the Actual GI Date field to be filled automatically.
    Please, let me know how to.
    With config or user exit, anything possible.
    Thank you.

    Thank you for your reply Vinod.
    But it's still not the exact answer I wanted.
    1.
    Subroutine USEREXIT_SAVE_DOCUMENT_PREPARE in MV50AFZ1 is not useful for this situation.
    The field WADAT_IST(Actual GI Date) already has a value(today's date which is automatically inputted by system) in that subroutine.
    So it's impossible to know whether Actual GI Date is manually inputted or not.
    2.
    The BADI you mentioned does not exist in our site.
    Regards
    Ji yeob

  • How to change or Switch - scroll direction - automatic using registry keys

    how to change or Switch - scroll direction on TouchPad Synaptics - automatic using registry keys   ?

    Hi jrv
    How to explicitly take ownership of the subkey?
    System.Security.AccessControl.InheritanceFlags 
    I try use value
    "ContainerInherit、ObjectInherit、None", and It only take permission in root key.

  • [Forum FAQ] How do I send an email to users when the data in the report have been changed in Reporting Services?

    Introduction
    There is a scenario that the data in the report changes infrequently, so the users want to be informed and get the most updated data once the data changes. By default, report server always run the report with the most recent data. Is there a way that we
    can subscribe the report, so that we can send an email to users when the data in the report has been changed?
    Solution
    To achieve this requirement, we can create a subscription for the report, then create a trigger in the table which including the report data. When this table has data insert, update or delete, it will be triggered and execute the subscription to send email
    to users.
    In the Report Manager, create a subscription for the report and make it only execute one time.
    When we create a subscription, a corresponding SQL Agent job will be created. Then we can use the query below to find out the job based on ScheduleId:
    -- List all SSRS subscriptions
    USE [ReportServer];  -- You may change the database name.
    GO 
    SELECT USR.UserName AS SubscriptionOwner
          ,SUB.ModifiedDate
          ,SUB.[Description]
          ,SUB.EventType
          ,SUB.DeliveryExtension
          ,SUB.LastStatus
          ,SUB.LastRunTime
          ,SCH.NextRunTime
          ,SCH.Name AS ScheduleName   
              ,RS.ScheduleId
          ,CAT.[Path] AS ReportPath
          ,CAT.[Description] AS ReportDescription
    FROM dbo.Subscriptions AS SUB
         INNER JOIN dbo.Users AS USR
             ON SUB.OwnerID = USR.UserID
         INNER JOIN dbo.[Catalog] AS CAT
             ON SUB.Report_OID = CAT.ItemID
         INNER JOIN dbo.ReportSchedule AS RS
             ON SUB.Report_OID = RS.ReportID
                AND SUB.SubscriptionID = RS.SubscriptionID
         INNER JOIN dbo.Schedule AS SCH
             ON RS.ScheduleID = SCH.ScheduleID
    ORDER BY USR.UserName
             ,SUB.ModifiedDate ;
    Create a trigger in the table which including the report data.
    CREATE TRIGGER reminder
    ON test.dbo.users
    AFTER INSERT, UPDATE, DELETE
    AS
    exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    Please note that the command ‘exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'’ is coming from the job properties. We can go to SQL Server Agent Jobs, right-click the corresponding job to open
    the Steps, copy the step command, and then paste it to the query.
    Then when the user table has data insert, update or delete, the trigger will be triggered and execute the subscription to send email to users.
    References:
    Subscriptions and Delivery (Reporting Services)
    Internal Working of SSRS Subscriptions
    SQL Server Agent
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How to change the partition type on a table with data

    Hi
    I have a table, which is partitioned by list on date column. The table contains large volume of data.
    My requirement is to make the list partition into range on the same date column.
    I am working on Oracle10g
    Kindly advice

    partitioned by list on date How many distinct DATE values do you have ? Each DATE value would be a Partition in List Partitioning.
    Why do you need to convert this to RANGE Partitioning ? How many DATE values do you expect in the table in the future ?
    You can use DBMS_REDIFINITION to copy a LIST Partitioned Table to a RANGE Partitioned Table and then switch the tables at the end.
    See examples (where the source table is not partitioned)
    http://www.oracle-base.com/articles/misc/partitioning-an-existing-table.php
    http://uhesse.com/2010/02/15/partitioning-a-table-online-with-dbms_redefinition/
    But before converting I would justify why a LIST Partitioned Table be converted to RANGE Partitioned. Do you have Date-Range queries ?
    Hemant K Chitale
    Edited by: Hemant K Chitale on Mar 15, 2013 2:11 PM

  • How could I Write data into a field in Oracle whose data type is VARCHAR2

    The target data I want to write into Oracle is in http://tw.yahoo.com/info/utos.html.
    Now, these data is stored in Mysql database and the field which stores these data uses "Text" as its data type.
    I want to derive these data from mysql database and store them into a field of oracle database.
    In oracle, I create field whose data type is varchar2(4000) to store these data.
    I use JSP to derive data from mysql and insert into oracle through JDBC.
    But the result of the page shows me that "javax.servlet.ServletException: Data size bigger than max size for this type: 25623".
    Please anyone could help to resolve this problem?
    Thank you very much.

    My hunch is that the problem is that VARCHAR2(4000), but default, allocates 4000 bytes of storage. Depending on your database character set, a single character may require up to 4 bytes of storage.
    If you are on 9i, you can declare the column VARCHAR2(4000 CHAR) to allocate 4000 characters of storage. You can also set NLS_LENGTH_SEMANTICS to CHAR, which will cause Oracle to assume that your declarations are in characters rather than bytes.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • OBIEE 10G SSO Issue

    HI We have configured OBIEE 10g on IIS (ver-6) server. We have a business requirement where we need to integrate OBIEE with another ASP.NET application. So, user should log in once and to view OBIEE reports he should not log in again. Now we have che

  • Photoshop not working properly in Mavericks 10.9.1

    So i have major issues in Photoshop since upgrading to Mavericks!! Ive seen this all over the internet, but didnt find a real definitive answer to the issue, so im just going to post my own delema in the hopes we can find a solution. Since the "upgra

  • Every time i sync my Iphone it tries to sync all my photos back onto my Iphone from my Mac. How do i stop this as it just keep freezing as too many photos?

    I had to restore my iphone 4 for some reason (my mac said it could not read it) so i did. I then restored my iphone to my icloud back up. All was well i still have all my contacts, messages, settings etc. However now for some reason when i plug my ip

  • International calls and texting sept2012

    is it just me or didnt verizon used to have an option where you could block international calling?? i could've sworn they did! i have 2 adtnl lines, i remember one of them was blocked! now they can text from them. did they take that option off all to

  • Translating Japanese web pages to English

    Hello, New to the forums here. I need to translate an entire web site from Japanese to English and I have tried using Google's language tools and things like Babelfish but they are only working on the first few pages and won't translate the rest of t