Replacing the a specific date in a query with blank

I have a report that customers run and within it they are wanting to replace a field when it equals a specific value - in this case when the sale date equals 31/12/9999 - we do not want to remove the row only replace that cell value with a blank - Does anyone know if this is possible within the query or will it mean a back end change?

sorry, you can only lookup stock in subcontract stock type, you cannot do it individually by vendor.
Edited by: Jürgen L. on Jun 22, 2010 12:51 PM

Similar Messages

  • Query on 0TCT_MC01 to get the last used date of a query

    Dear All,
    I tried to create a query on 0TCT_MC01 to get the last used date of a query.
    Since we do not have readily available key figure for Last used date, could any one help me out to achieve this result?
    I am interested to find the old queries which are not being used anymore.
    Thanks in advance.

    You can get the info from the below tables
    if you are working with BW 3.5 you can look in table RSDDSTAT in BI 7.0 it is RSDDSTAT_OLAP.
    Make a selction on the infocube and the OLAP Statistic Object which is the query ID and execute. Then you should see how often the query was executed, by whom and which date/time.
    in field Statistics Object Name Query ID you type in the tech name of the query
    from the Counter for statistics event calls -- will give the count... no of times the query used least the count lesser the query is used.
    Regards
    KP
    Edited by: Konduru Prashanth. on Dec 22, 2011 2:44 PM

  • MY hard drive crashed and I had to replace it. Now when I try to sync my iPod with iTunes it says that I have to replace the old library (that is lost forever) with the new library to sync. I do not want to lose all the songs on my iPod! What can I do?

    MY hard drive crashed and I had to replace it. Now when I try to sync my iPod with iTunes it says that I have to replace the old library (that is lost forever) with the new library to sync. I do not want to lose all the songs on my iPod! What can I do?

    Copy all the content on your iPod back to your PC and into iTunes. Then go ahead and sync the iPod with your new library.
    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Can I replace the DDR2 Memory in my F730 Laptop with DDR3 Memory?

    Can I replace the DDR2 Memory in my F730 Laptop with DDR3 Memory?

    Hi,
    Unfortunately you can't do this as the modules are physically different.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Does any one know if the iPhone camera one day will have the ability to date stamp photos taken with the iPhone

    Does any one know if the iPhone camera one day will have the ability to date stamp photos taken with the iPhone

    No one but Apple knows what will come in the future until they announce it. We are forbidden from speculating about it on these forums.

  • How could I replace hard coded value in my sql query with constant value?

    Hi all,
    Could anyone help me how to replace hardcoded value in my sql query with constant value that might be pre defined .
    PROCEDURE class_by_day_get_bin_data
         in_report_parameter_id   IN   NUMBER,
         in_site_id               IN   NUMBER,
         in_start_date_time       IN   TIMESTAMP,
         in_end_date_time         IN   TIMESTAMP,
         in_report_level_min      IN   NUMBER,
         in_report_level_max      IN   NUMBER
    IS
      bin_period_length   NUMBER(6,0); 
    BEGIN
      SELECT MAX(period_length)
         INTO bin_period_length
        FROM bin_data
         JOIN site_to_data_source_lane_v
           ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
         JOIN bin_types
           ON bin_types.bin_type = bin_data.bin_type 
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
       SELECT site_to_data_source_lane_v.site_id,
             site_to_data_source_lane_v.site_lane_id,
             site_to_data_source_lane_v.site_direction_id,
             site_to_data_source_lane_v.site_direction_name,
             bin_data_set.start_date_time,
             bin_data_set.end_date_time,
             bin_data_value.bin_id,
             bin_data_value.bin_value
        FROM bin_data
        JOIN bin_data_set
          ON bin_data.bin_serial = bin_data_set.bin_serial
        JOIN bin_data_value
          ON bin_data_set.bin_data_set_serial = bin_data_value.bin_data_set_serial
        JOIN site_to_data_source_lane_v
             ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
            AND bin_data_set.lane = site_to_data_source_lane_v.data_source_lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) lane_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'LANE'
                  AND report_parameters.report_parameter_name  = 'LANE'
             ) report_lanes
          ON site_to_data_source_lane_v.site_lane_id = report_lanes.lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) class_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'CLASS'
                  AND report_parameters.report_parameter_name  = 'CLASS'
             ) report_classes
          ON bin_data_value.bin_id = report_classes.class_id
        JOIN edr_rpt_tmp_inclusion_table
          ON TRUNC(bin_data_set.start_date_time) = TRUNC(edr_rpt_tmp_inclusion_table.date_time)
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data_set.start_date_time >= in_start_date_time
         AND bin_data_set.start_date_time <  in_end_date_time
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       =  bin_period_length;
    END class_by_day_get_bin_data;In the above code I'm using the hard coded value 2 for bin type
    bin_data.bin_type            =  2But I dont want any hard coded number or string in the query.
    How could I replace it?
    I defined conatant value like below inside my package body where the actual procedure comes.But I'm not sure whether I have to declare it inside package body or inside the procedure.
    bin_type     CONSTANT NUMBER := 2;But it does't look for this value. So I'm not able to get desired value for the report .
    Thanks.
    Edited by: user10641405 on May 29, 2009 1:38 PM

    Declare the constant inside the procedure.
    PROCEDURE class_by_day_get_bin_data(in_report_parameter_id IN NUMBER,
                                        in_site_id             IN NUMBER,
                                        in_start_date_time     IN TIMESTAMP,
                                        in_end_date_time       IN TIMESTAMP,
                                        in_report_level_min    IN NUMBER,
                                        in_report_level_max    IN NUMBER) IS
      bin_period_length NUMBER(6, 0);
      v_bin_type     CONSTANT NUMBER := 2;
    BEGIN
      SELECT MAX(period_length)
        INTO bin_period_length
        FROM bin_data
        JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                           site_to_data_source_lane_v.data_source_id
        JOIN bin_types ON bin_types.bin_type = bin_data.bin_type
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time >=
             in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time <
             in_end_date_time + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type = v_bin_type
         AND bin_data.period_length <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
      INSERT INTO edr_class_by_day_bin_data
        (site_id,
         site_lane_id,
         site_direction_id,
         site_direction_name,
         bin_start_date_time,
         bin_end_date_time,
         bin_id,
         bin_value)
        SELECT site_to_data_source_lane_v.site_id,
               site_to_data_source_lane_v.site_lane_id,
               site_to_data_source_lane_v.site_direction_id,
               site_to_data_source_lane_v.site_direction_name,
               bin_data_set.start_date_time,
               bin_data_set.end_date_time,
               bin_data_value.bin_id,
               bin_data_value.bin_value
          FROM bin_data
          JOIN bin_data_set ON bin_data.bin_serial = bin_data_set.bin_serial
          JOIN bin_data_value ON bin_data_set.bin_data_set_serial =
                                 bin_data_value.bin_data_set_serial
          JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                             site_to_data_source_lane_v.data_source_id
                                         AND bin_data_set.lane =
                                             site_to_data_source_lane_v.data_source_lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) lane_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'LANE'
                   AND report_parameters.report_parameter_name = 'LANE') report_lanes ON site_to_data_source_lane_v.site_lane_id =
                                                                                         report_lanes.lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) class_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'CLASS'
                   AND report_parameters.report_parameter_name = 'CLASS') report_classes ON bin_data_value.bin_id =
                                                                                            report_classes.class_id
          JOIN edr_rpt_tmp_inclusion_table ON TRUNC(bin_data_set.start_date_time) =
                                              TRUNC(edr_rpt_tmp_inclusion_table.date_time)
         WHERE site_to_data_source_lane_v.site_id = in_site_id
           AND bin_data.start_date_time >=
               in_start_date_time - numtodsinterval(1, 'DAY')
           AND bin_data.start_date_time <
               in_end_date_time + numtodsinterval(1, 'DAY')
           AND bin_data_set.start_date_time >= in_start_date_time
           AND bin_data_set.start_date_time < in_end_date_time
           AND bin_data.bin_type = v_bin_type
           AND bin_data.period_length = bin_period_length;
    END class_by_day_get_bin_data;

  • BAM Data Control - Group query with Active Data Service

    Trying to get a group query from a BAM data control to work with Active Data Service in an ADF application (JDeveloper 11.1.1.4.0).
    With a flat query, as the data changes, I can see DataChangeEvents fired, resulting in a data push to the client -
    <BAMDataChangeEventFilter> <log>
    #### DataChangeEvent #### on [DataControl name=CEP_Person_DOB_Flat, binding=data.view_mainPageDef.FlatDOB1.view_pageDefs_FlatDOBViewPageDef_WEB_INF_FlatDOB_xml_FlatDOB.QueryIterator]
    Filter/Collection Id : 1966
    Collection Level : 0
    Event Id : 5
    ==== DataChangeEntry (#1)
    ChangeType : INSERT_AFTER
    KeyPath : [2157, 0]
    InsertKeyPath : [null, 0]
    AttributeNames : [id, _PersonKey, _County, _Surname, _AGE, _DOB, _Country, _FirstName]
    AttributeValues : [2157, 10008/129, Vagzukarbsm, Gnnfzxxyqfgpsijcr, 110, Thu Dec 26 00:00:00 GMT 1901, Ekcqvrkoksr, Vwhm]
    When I try a group query on the same data, currently just trying to group by _DOB for every 10 years to count the number of people, I get no data change events fired, so don't get any data pushed to the client, though the data has been changed if I refresh the page.
    Any ideas ?

    can you include bam and jdev versions and also include exception from logs?

  • Replace the hard drive in my iPod Mini with CompactFlash Card?

    Hi. I just dropped my mini (a whole 4 feet) and now it's broken. The drive is busted. I can hear it just clicking away and then I get the un-happy mac icon. Since it's past its warrantee and I don't have apple care for it, either I replace the hard drive or chuck it in the trash. I'm going to try the first one. I open it up and pulled out the Hitachi 4GB mini hard drive. It appears to just be a CompactFlash Card drive. My question is this:
    Can I replace it with any Compact Flash Card?
    I was thinking about replacing it with a regular card (i.e. no micro drive with delicate spinning parts). I figure it will be more durable and possibly extend the battery life. I think I can get atleast a 2GB card, which is what I presume they use in the nano.
    Thanks

    Technically, you could replace the drive in your iPod. Just make sure you know what you're doing before you do it. After you replace the drive, just restore the iPod through the iPod restore software. After you restore your iPod, you can then use your iPod just like before. One thing I would like to point out is that the Nano uses a flash drive, not a hard drive so there is no point in trying to match a drive with the nano drive. Anyways, you may find the site http://www.ifixit.com helpful when you take on this task. I would also google "replacing iPod mini hard drive" just so you can get some insight before you take the task on.

  • Windows XP (sp2) will not update after replacing the hard disk of my Presario V4435NR with a new one

    Hi,
    I had to replace my Presario V4435NR hard disk (80 GB) with a new 160 GB hard disk from Samsung. The original hard disk did not crash but was churning all the time and did not have enough space for all I wanted to put on it. I installed the new 160 GB hard disk (which of course did not have the recovery partition that my old one had on it) and ran recovery from the recovery DVD I made when I first bought the laptop. Everything worked fine until I tried to update my xp through windows update website. This is the error # I get from windows updates (0x80072EE2).
    How can I get my xp to run updates sealessly as it used to before?
    THank you
    Abdul

    I installed it already and things were fine (updates installed with no problems) for a while but the same problem resurfaced after I installed MS Office. Xp gave me the same error code when I tried to update. Woke up in the morning and tried windows update again and windows found lots of updates and installed them smoothly.
    What is causing this inconsistency?
    * Now, I'm unable to get any updates (windows updates website gives me the same error code)

  • Replacing the PC2-5300 DDR2 667 MHz RAM with the PC2-6400 DDR2 800 MHz RAM?

    Good afternoon,
    I'm currently thinking about purchasing a MacBook Pro 4,1-2.5 GHz Intel Core 2 Duo that has 2 GB of the PC2-5300 DDR2 667 MHz of RAM, but has a BUS speed of 800 MHz. If I do purchase this machine I plan on replacing the 2 GB of memory with 4 GB, but I was wondering if anyone knows if it would be possible to put in the PC2-6400 DDR2 800 MHz model of RAM instead of the PC2-5300 DDR2 667 MHz model of RAM? The reason why I'm asking this question is because the BUS speed in this "early" 2008 MacBook Pro model is at 800 MHz, which is why I'm thinking the PC2-6400 800 MHz of RAM might work. I would appreciate any helpful and productive insights to my question that anyone could give me. Thank you.
    AMMOCAN

    No. It only uses PC2-5300. http://www.newegg.com/Product/Product.aspx?Item=N82E16820231135
    G.SKILL Kit 39.99 shipped.

  • Input Query with blanks when we press transfer values option

    I have an input query with 12 restricted key figures, but when I enter data and press on 'Transfer Values' or 'Save Values', the cells are blanked out (i.e. the values dissapear) and the data is not updated into the cube. I have done the following:
    In Query Designer, I have checked the attribute 'Start Query in Change Mode' and
    For all restricted key figures that needs to be planned, I have marked as 'Data can be changed using user entries and planning functions...'
    Can you please let me know your thoughts around this.
    Thanks,
    Srini

    Mayank,
    I have 10 characterstics(cost center, cost element, cost type, fiscal year period,fiscal year, version, value type, posting period, detail valye type, currency type+1kf(0amount)) in my aggregation level.
    I have created 12 rkf for each month with the following restrictions
    Plan rkf (sub rkf) with restrictions to
    fiscal year(variable), inforprovider-real time cube, value type 20, kf-0amount,
    jan plan rkf.....dec plan rkf has
    kf--Plan rkf(sub rkf) +  posting period 1...12(one for each month),
    And i have created an input query with the following fields
    unders rows
    Cost type, cost element
    under Columns
    Jan paln rkf to Dec plan rkf
    filters for controlling area EA
    I have change the query defination to "start query change mode" and also set all the rkf properties to "change by user enteries and/or planning options"
    So, is there anything i am missing here?
    Do i have to all characterstics of my aggregation level in my input query? or do i have to restrct my rkf to any curreny/unit fields? Please shed some light in here....:)
    Thanks for your help...
    Srini

  • How to get Date Difference in Query with Replacement Path !

    I need to get nr of days between two days. I knew that we can do this by replacement path in the queries. But when Iam trying to use replacement path with
    this two chars and put it in a formula the result is not showing correctly.
    Eg: I have dates Date1, Date 2 and I created two variables calles DateA ,Date B with reference to Date1 and Date2.
    Now Iam creating a formula sayint that (Date2 <> 0) * (Date1 - Date2) ...Here Date2 has sometimes balnk value...Iam getting the values when there is dates for both chars...But if there is one value is blank
    then Iam getting a strange value ....
    can any body send me step by step on how to fix this...
    Thanks

    Hi Sam,
    another important think you have to remember when having aggregated information is to divide the date1 and date2 key figures with the number of lines used in aggregation.
    Remember that date1 (internally) is a numerical value from some initial date which is used as reference. E.g., if the reference date is 01/01/0001  and you have the date 15/01/0001 then key fig. date1 internally stores just the value 14. So if you have something like:
                             date1       date2        diff
    customer1  material1       14          18           4  <- correct
    customer2  material1       14          18           4  <- correct
    and then you make an aggregation by removing customer from your report then you will have the following situation:
                             date1       date2        diff
    material1                  28          36           8    <- wrong
    So, you would have to divide by 2 in the second case. Please try to check the above and proceed accordingly. Let us now if something else weird appears.
    Best regards,
    Theodoros

  • Select query with blank date

    Hi All,
    I have issue with my select query, this query should execute when the date is empty in the table. Fields for the date is (trrecv and trpay)
    code:
    SELECT * FROM zcat3_mov
                       INTO CORRESPONDING FIELDS OF
                       TABLE lt_invmov
                       WHERE bukrs  EQ zcat3_mov-bukrs
                       AND trans EQ zcat3_mov-trans
                       AND status EQ 'CD'
                       AND clear  EQ ' '
                       AND trrecv EQ ' '
                       AND trpay  EQ ' '.
    Thanks,
    FED

    Hi,
    to check for blank date fields in database tables always use :
    date1 = '00000000'
    so your query will be -
    SELECT * FROM zcat3_mov INTO CORRESPONDING FIELDS OF TABLE lt_invmov
                            WHERE bukrs  EQ zcat3_mov-bukrs  AND
                                  trans  EQ zcat3_mov-trans  AND
                                  status EQ 'CD'             AND
                                  clear  EQ ' '              AND
                                  trrecv EQ '00000000'       AND
                                  trpay  EQ '00000000 '.
    regards,
    Shaurabh Pandey

  • No data Found for Query with hierarchy in 2004S SP10 in JAVA Stack

    Hello,
    I have typical issue while running the simple query in ABAP Web and JAVA Web (RSRT) with One row and one column. The char in the row is restricted with external hierarchy.
    If I run in ABAP web, I get the results.
    If I run in JAVA Web, No data found message displayed.
    Does any one come across this issue. Tried to get SAP note but not clear solution.
    If any one give me information where I can find the values used for query variable in the dictionary tables I might help in my investigation.
    Advanced thanks.
    Ramana

    Hello,
    Sorry I missed a point.
    The char on which the hierarchy is resferencing char. Effectively using the hierarchy of referenced char.
    Thanks.

  • Can you replace the ssd drive in retina macbook pro with hdd inside of a bay of some kind?

    Hey guys, want to replace my 256 flash based drive in my 2014 macbook pro retina with a 1th 7200rpm hdd. Is this possible with a bay adapter of some kind?

    No. The SSD is not upgradeable. There is not bay. The SSD is just a small board attached to the motherboard.

Maybe you are looking for

  • Web Application - Data caching of enterprise data

    Sorry in advance if this is off-topic but I can't find anywhere else to post this type of question. I am looking for information/suggestions such as books, technology or design methodology for my enterprise web applications. These sites are currently

  • Package name in Solaris 10

    Hi, I try to uninstall the following path: /usr/spool/lp/model/ppd/system/foomatic for all the printer model files. Is there a Solaris 10 Package name associate with these files that I can use pkgrm to do? Thanks!

  • Need for an Account?

    Do I need to keep an account on Revel just to work on my own computer and not store off-site?  And is having an account the only way to get help with editing?  I have not yet gotten to really use my programs, but I don't want to share my stuff with t

  • Standard playlists are missing, how do you get them back

    hi,  the original playlists have all dissapeared from my iphone, i.e. recently added, recently played.... these are missing from the playlists on my iphone but they show up in my itunes library.  how do i get them back on my phone... I have an iphone

  • Can I buy an unlocked iphone 5 A1429 in Canada?

    I'm going to buy an iphone 5 in canada but I need to use it in Europe also, so can I buy an iphone 5 A1429 that works in europe and also in canada? Thank you.