Comparing the Dates and Exclude the Dates with Blank one in BEx Query

Hi all,
    I have created the Formula Variables ZFV_DATE1 on ZDATE1, ZFV_DATE2 on ZDATE2,
       Calculated KF ZCKF_Date with 'ZV_DATE1 <  ZV_DATE2' and
       Restricted KF ZRKF_DATE on Key Figure ZCKF_DATE & Characteristic ZDELETE = 'X' to find the Count.
I should exclude if any ZDATE1 or ZDATE2 is Blank in the report. So I kept ZDATE1 & ZDATE2 with Exclude when it is Blank in Filter Section. It is excluding globally all Blank ZDATE1 & ZDATE2, but the Calculated KF logic 'ZV_DATE1 <  ZV_DATE2' is not working. It has 'ZV_DATE1 > ZV_DATE2' records also. Next I moved ZDATE1 & ZDATE2 to Restricted KF ZRKF_DATE to Exclude the Blank dates and the report doesn't show correct results. How could I get the correct results with 'ZV_DATE1 < ZV_DATE2' and any ZDATE1 or ZDATE2 is not Blank.
Thanks,
Venkat.

In that case, you approach seems to be mor or less correct. Restrcit the report using Filters on ZDATE1 and ZDATE2 not equal to Blank. You have mentioned that you have defined the CKF as 'ZFV_DATE1 < ZFV_DATE2'. i am assuming you have used boolean operator here. In this case it would  result in '1' when the condition is true (i.e, when ZFVDATE2 is greater than ZFVDATE1), else it will result in a '0'. Now, in your report, you should create a condition where you only keep the records where this CKF, ZCKF_Date = 1. This would filter out all the ZCKF=0 records, and hence only thiose records with ZFV_DATE1 < ZFV_DATE2 would be shown.
Regards,
Satwik

Similar Messages

  • HT4587 I downloaded Airport Express Utility 5.6 to get my Airport Express to work with the latest Mac OSX 10.7.4, but when I install and run it, it still says my Airport Express is out-of-date and needs the 5.6 utility.

    I downloaded and installed Airport Express Utility 5.6 to get my old Airport Express to work with the latest Mac OSX 10.7.4, but when I install and run it, it still says my Airport Express is out-of-date and needs the 5.6 utility. What's up?

    It is likely that you downloaded AirPort Utility 5.6.1.  If you checked the requirements, this only runs on Leopard or Snow Leopard Macs.
    You have Lion, so you need AirPort Utility 5.6 for Mac OS X Lion

  • Hi I have iPhone 4 with iOS 6 and a week ago I stop ressiv or send SMS. I tried everything but I still can't send.. I erase the version and all the data on the iPhone and now I can send SMS. But when I'm downloading my buck up the problem happened againI'

    Hi I have iPhone 4 with iOS 6 and a week ago I stop ressiv or send SMS. I tried everything but I still can't send.. I erase the version and all the data on the iPhone and now I can send SMS. But when I'm downloading my buck up the problem happened again
    Please help me cuse I don't know what to do and my cellular company don't have an answer
    Thank u

    I have to ad that its not an easy problem I did all the action in the book.
    It's something with my back up

  • When updating to the latest OS X my wife's Mac Book Pro locked at a grey screen with an apple icon and status bar.  Is there any way to recover the data on the laptop and complete the OS install?

    When my wife's Mac Book Pro was being updated to the latest version of OS X the laptop locked up at a grey screen with the Apple icon and status bar.  Is there any way to recover the data and complete the install?  I have not tried anything yet because of the data issue.  I am not sure which OS X version as I did not install the software.

    Used Macs of every description are always available on Ebay and Craigslist and from a plethora of online used-Mac resellers. Apple sells refurbished late-model Macs at 10-20% discounts with a new-computer warranty and the opportunity to extend the warranty with AppleCare.
    http://store.apple.com/us/browse/home/specialdeals/mac

  • I recently tried to update my iPhone 3 software via my mothers Mac book comp - during the upgrade I lost all my music and calendar dates and now the iTunes on my phone has my mothers iTunes detail - how do I get all my info back on the phone?

    I recently tried to update my iPhone 3 software via my mothers Mac book comp - during the upgrade I lost all my music and calendar dates and now the iTunes on my phone has my mothers iTunes detail - how do I get all my info back on the phone?

    Restore it using the computer you normally sync with.

  • I wanted to restore my iphone beacause i've forgotten the passcode but it is asking me to update my software even though my iphone is up to date. and in the end , the update is showing error.

    hello. i am having hard time with my iphone 4s. actually, i did set my passcode using the tamil keyboard. my passcode was 'ka' and 'lai'. there's no such alphabet in the keyboard. in order to get "lai" we've to tap "la" and "i". so, it will transform into "lai". i did this in my settings. and when i locked the phone and tapped the word "ka', "la" and "i', this time the two alphabets are not transforming into "lai". it keep remains as two different alphabets. so, i couldn't unlock my iphone 4s. then, i decided to factory reset it via itunes. but, there's a problem again. when i tapped the restore button it is asking me to update iphone software even though it is up to date. and yet when i clicked the download button, it will start the downloading process but after sometime there will be an error in downloading. so, until now i couldn't unlock my iphone. i hope there will a reply as soon as possible.

    Hi Kalaivani Krish18,
    If you are having issues with your iPhone attempting to update, you may want to try the troubleshooting steps in this article -
    Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/TS1275
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Copy control for dates and disable the input

    Hi All,
    I have the following problem: I'm trying to copy dates in a follow-up order from the source order (which works fine by implementing the CRM_COPY_BADY method DATES) and disable the input of the copied dates in the follow-up order (which doesn't work).
    In the change-parameter CT_INPUT_FIELDS you can specify the fields which have to be copied and furthermore you can control the modifiability of the field in the follow-up order via the parameter CHANGEABLE (e.g. 'A' means field can not be changed). This technique is the same in all methods of the copy BADI.
    Unfortunately it doesn't work for the dates. As I said already, the date is copied but can be changed by the user in the follow-up order.
    Anybody an idea?
    Thanks and best regards, Lutz

    Dear John,
          Actually, I have tried with copy requirement 2.However, it works for copying a different customer with the same sales area as original. Yes, I may need to ask developer to solve my solution. But I would like to keep it to be the last choice. I tried to search "How to copy document between inter-company businees"; but the I still not get what my custome's want.  Anyways, thank you very much for sharing idea.

  • Java.sql.Date and java.util.Date - class loaded first in the classpath

    I had two jar files which has java.util.Date and java.sql.Date class file. i want to know whether which class is loaded first in the classpath...
    I like to change the order of loading the class at runtime...
    Is there is any way to change the order of loading of class...
    I may have different version of jar files for example xerces,xercesImpl. some of the code uses xerces ,some of the code uses xercesImpl..i had common classes.
    I like to load the class with the same name according to the order i need..
    Can we do all these in Run time ?????

    I had two jar files which has java.util.Date and
    java.sql.Date class file. i want to know whether
    which class is loaded first in the classpath...
    I like to change the order of loading the class at
    runtime...
    Is there is any way to change the order of loading of
    class...
    I may have different version of jar files for example
    xerces,xercesImpl. some of the code uses xerces ,some
    of the code uses xercesImpl..i had common classes.
    I like to load the class with the same name according
    to the order i need..
    Can we do all these in Run time ?????That is meaningless.
    The classes you are referring to are part of the Java API. Third party jars have no impact on that. And you can't change to the order because java.sql.Data is derived from java.util.Date. So the second must load before the first.
    And if you have two jar files with those classes in them (and not classes that use them) then you either should already know how to use them or you should stop trying to do whatever you are doing because it isn't going to work.

  • When attempting to format region and set date and time the busy icon appears and seems to stay like this?

    when attempting to format region and set date and time the busy icon appears and seems to stay like this?

    Click on DU's Partition tab when you have the raw drive name selected, then set it to one partition, Mac OS Extended. If it crashes or freezes, it is finding a bad block and can't write.
    In any event, if you want to use the drive, and have not zeroed it before, you should now.
    Click on Erase -> Security Options -> Zero out data. Still with the full drive selected and not any partition(s).
    Then repartition the drive if needed.
    Boot from the DVD if that doesn't work. And no, TTPro has never mapped out bad blocks let alone create partitions.
    Disk Utility in 10.4.8 is quite good, excellent in fact. No need for an alternative.
    Your eMac drive may need to touch of Disk Utility itself. FSCK from the command line, clear the caches with Applejack along with check for corrupt plists. Between Disk Utilty and Applejack (free/shareware) never had to use TechTool Pro - or at least there weren't any errors after those two got done. But if you want a good 3rd party, pick up Disk Warrior 4.

  • How to Read the one Source Column data and Display the Results

    Hi All,
         I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
    Ex:
    Pr_ProjectType
    AD,AM
    AD
    AM
    AD,AM,TS,CS.OT,TS
    AD,AM          
    like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
    4.AD,AM,TS,CS.OT,TS in this string we need AD,AM  only.
    this logic we need we have thousand of data in the table.Please help this is urgent issue
    vasu

    Hi Vasu,
    Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
    are two approaches for your reference:
    Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
    for the custom function is as follows:
    CREATE FUNCTION dbo.udf_GetNumeric
    (@strAlphaNumeric VARCHAR(256))
    RETURNS VARCHAR(256)
    AS
    BEGIN
    DECLARE @intAlpha INT
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
    BEGIN
    WHILE @intAlpha > 0
    BEGIN
    SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
    END
    END
    RETURN ISNULL(@strAlphaNumeric,0)
    END
    GO
    The SQL commands used in the OLE DB Source is like:
    SELECT
    ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
    FROM MyTable
    Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
    characters to the corresponding substring. The script is as follows:
    using System.Text.RegularExpressions;
    Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
    References:
    http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/ 
    http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • OFI_AP_4  Delete all data and REINIT the load to FIAP ODS and Cube

    Hi bw GURUS I need a quick help, I have requirement to Delete all data and REINIT the load to FIAP ODS and Cube  i have data source ofi_ap_4, please tell me what should i do as i know LO extraction but whats is the transaction code to run the set job for FIAP like for Purchasing I have OLI3BW now tell me what will be the steps to reinit the load to fiap ods and cube.
    i know this much as below
    Delete the data from cube and ODS
    Delete the Init in Cube AND ods NOW reinit i mean load the init, but now problem is before doing that i need to run the set up job or tell me what are the steps please
    its very important since i am doing in production
    thanks
    Soniya

    You are right by your approach to update from PSA to ODS as u have wrritten before. Just got to PSA tree select the PSA request and choose update Immediatly or scedule for update.
    (and if u have 0FI_GL_4 but u r not using it ..it is fine. I  was telling that in case u have that and you are trying to use somethin with 0FI_AP_4)

  • Encrypt the data and make the model unusable

    hi, having to distribute the 3d animations made ​​with sap, I would like to be sure that the data contained in the CAD models exported (. rh. vds pdf 3d) can not be used to reconstruct the model. How can I encrypt the data and make the model unusable?
    thanks

    Max,
    There are other forms of file-based protection offered for mobile devices (SAP Afaria) and by other software vendors to secure the end deliverable (e.g. Adobe for 3D PDFs).   In addition, SAP's partner NextLabs offers a very comprehensive solution to automate the security of your sensitive information and even provide expiration dating.
    In addition to file protection, 3D Visual Enterprise includes a function to obfuscate the geometry itself thereby making reverse engineering almost impossible.   The "Randomize Objects" function can be used to randomly skew the vertices of the model by small amounts.  It keeps the normals correct, however, so that the object still looks smooth. This in turn makes precise measurements extremely difficult.
    Regards,
    Ken

  • Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.

    Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.
    Is there any way to re-number them in the order I have chosen so that they can then be sorted by number? The scans are all from pre-digital images that I wish to move to a photobook and I don't want to have to organise them twice!
    Thanks for any suggestions.

    I was a bit short, Chris, sorry. It is limited, what can be posted, when typing on an iPad.
    Now I am back on my Mac. I meant the following:  Batch Change the date for a large range of photos, that should have a date stepped in increments.
    Select all Photos at once and use the command "Photos > Batch Change".
    Then set the date for the first photo and select an increment, e.g. one minute.
    Now all photos will get a new date assigned, incremented by one minute, in the sequence you have selected. So you will be able to sort them by date.  This way it will be unnecessary to change the titles or filenames.

  • How to get the Full and final settelment date from PC_payresults

    Hi Experts..sairam.
    We are preparing Functional specification  for a report on Full and final settelement.
    We need to extract the  full and final settelement date from  payresults.
    Full and final settelement would be an offcycle run.
    How can we identify the particular Offcycle is meant for full and final settelment.
    Full and final settelement can be done after date of relieving.
    Please share your ideas to get the field names and logic to fetch.
    Thanks in advance.
    Regards,
    Sairam.

    Hi Praveen,
    I found it from HRPY_RGDIR through SE11.
    But im in confusion in thinking on Logic to find the Full and final settelment processed date.
    First of all..Report has to check WPBP table weather Employment status is Zero.
    Later..It has to read the HRPY_RGDIR table.
    Here what the system to check.What conditions to be validated to fetch the Full and final settelment processed date.Will it be FPPER and INPER as 00000000 or shall we do it from offcycle reason.
    Please share your ideas.Thanks in advance.
    Regards,Sairam.

  • Intel iMac running 10.5.8. Belonged to a relative who has passed away. I want to wipe all data and give the iMac to my grandson. I have no install discs. How do I proceed?

    Intel iMac running 10.5.8. Belonged to a relative who has passed away. I want to wipe all data and give the iMac to my grandson. I have no install discs. How do I proceed?

    Contact Apple (call AppleCare) and for a nominal fee the discs will be replaced.  You can do that or purchase Snow Leopard (still availble from Apple for $20) and do an erase and install of OS X making the machine like a new machine.

Maybe you are looking for

  • Purchase reqistion Release workflow issue

    Dear experts, My PR release procedure works well for releasing useing ME54N. All configs are correct & works well. Now while trying to activate workflow for just the Director & VP level I have followed the configuration steps under SAP help. But it d

  • BUG: Large floating point numbers convert to the wrong integer

    Hi, When using the conversion "bullets" to convert SGL, DBL and EXT to integers there are some values which convert wrong. One example is the integer 9223370937343148030, which can be represented exactly as a SGL (and thus exactly as DBL and EXT as w

  • Unload parent movie after onloadInit of child movie

    Hi, I am loading external swf's into a main load.swf, using a Moviecliploader object. What I basically want to do is that, after an external movie, say home.swf, loads another external swf, say about.swf, home.swf should be unloaded. home.swf is load

  • App Store is "Damaged or Incomplete"? Running on v.10.8.2

    I cannot open App Store because it is "damaged or incomplete". I've tried a few of the combo updates, but they say I need an earlier version to run... help?

  • Macbook pro on yosemite slow

    i have the same problem if someone could please help Problem description: macbook very slow after installing yosemite EtreCheck version: 2.1.8 (121) Report generated 12 March 2015 at 1:56:10 PM SAST Download EtreCheck from http://etresoft.com/etreche