Getting a 0 to display instead of a blank space in query

Hi Experts
My colleague has been writing a query in SAP to show when a delivery was late or early etc, the problem we have is when the 2 dates match signalling that it was neither early or late, it displays a blank space, is there a way he can get it to display a 0 instead?
Edited by: Cunningham David on Aug 11, 2010 11:37 AM

SELECT T2.WhsCode, T2.BaseRef AS SONum, T2.ItemCode, T2.Dscription AS Description, T2.Quantity, T2.ShipDate AS ReqdDespatchDate, T2.ActDelDate AS ActDespatchDate,
((DATEDIFF(dd, T2.ShipDate, T2.ActDelDate))
  -(DATEDIFF(wk, T2.ShipDate, T2.ActDelDate) * 2)
  -(CASE WHEN DATENAME(dw, T2.ShipDate) = 'Sunday' THEN 1 ELSE 0 END)
  -(CASE WHEN DATENAME(dw, T2.ActDelDate) = 'Saturday' THEN 1 ELSE 0 END))
AS [Early/Late], T1.CardCode, T1.CardName
FROM   dbo.DLN1 T2 INNER JOIN  dbo.ODLN T1 ON T2.DocEntry = T1.DocEntry
WHERE T2.ActDelDate Between '[%0]' and '[%1]' and T1.DocType = 'I' and T2.[ItemCode]  Like '%.____.__' 
UNION
SELECT T2.WhsCode, T2.BaseRef AS SONum, T2.ItemCode, T2.Dscription AS Description, T2.Quantity, T2.ShipDate AS ReqdDespatchDate, T2.ActDelDate AS ActDespatchDate,
((DATEDIFF(dd, T2.ShipDate, T2.ActDelDate))
  -(DATEDIFF(wk, T2.ShipDate, T2.ActDelDate) * 2)
  -(CASE WHEN DATENAME(dw, T2.ShipDate) = 'Sunday' THEN 1 ELSE 0 END)
  -(CASE WHEN DATENAME(dw, T2.ActDelDate) = 'Saturday' THEN 1 ELSE 0 END))
AS [Early/Late], T1.CardCode, T1.CardName
FROM   dbo.INV1 T2 INNER JOIN  dbo.OINV T1 ON T2.DocEntry = T1.DocEntry
WHERE T2.BaseType = 17 AND T2.ActDelDate Between '[%0]' and '[%1]' and T1.DocType = 'I' and T2.[ItemCode]  Like '%.____.__'
Edited by: Cunningham David on Aug 11, 2010 5:16 PM

Similar Messages

  • Flash player 11 - blank space instead of the content

    Hello,
    Adobe Flash Player 11 is not working for me !
    Here's some information about my laptop: HP G60 AMD Sempron 2.00 GHz Memory (RAM) 3,00 GB 32-bit operating system WINDOWS VISTA
    My current browser: Mozilla Firefox 5, but pretty much the same thing happens with IE.
    Adobe Flash Player 10 seems to be working for me, only there are some websites that require to update my version to view their content. When I do so (it says my installation is successful), I can't access flash content at all (instead I see blank space), nor can I see the picture that's saying which flash version I run (instead - blank space).
    Can you please help me with this issue ? Thanks !

    Did you mean Firefox 15 or 5?  15.01 is the latest release version.
    When you install 11.4 (http://get.adobe.com/flashplayer) what do you see when you visit this page: http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
    If you just get white space, check Firefox's Add-ons page and click the Plugins tab.  Do you see a listing for Shockwave Flash?  If so, is it disabled or enabled?  What version is reported?
    Thanks,
    Chris

  • Instead of showing 0 in report its getting blank space

    Hi Sap Gurus.
    I am running the query in rsrt, in my report i am getting instead of 0 values it is showing Blank space. But in my source data there is value is 0. But when i execute the query its getting blank space. How to over come this problem.
    could u please let me know.
    Best Regards,
    venkat.

    Hi,
    Check out this.. it might solve your issue.
    in Query Properties
    Tab: value display >> Zero value Display >> Select "zero as Default Text"  under Display Zeros
    And Tab:  Rows/Columns >> Supress Zeros Option  >> "Do not Supress"  is selected.
    Thanks
    Jitu
    Edited by: Jitenderkumar Danduvia on Feb 23, 2010 12:45 PM

  • Any way to get Illustrator CS5 to display full screen mode like Photoshop?

    Is there any way to get Illustrator's screen modes to behave like Photoshop's screen modes?
    One of the things I like most about Photoshop is the way it toggles from standard screen mode to "full screen with menu bar" to just "full screen".
    For example, in Photoshop's standard mode, the window is no bigger than the size of the canvas. Why can't Illustrator do that?
    And, is there anyway to get Illustrator CS5 to display the full screen mode where the background outside the artboard or canvas is black instead of white. Working in Illustrator for long hours, it would much easier on my eyes if the surrounding background could be black like in Photoshop.
    Thanks very much in advance for any help,
    - Nick

    At the bottom of the Tool bar is a toggle button (F) which will change the Screen Mode.

  • How to get LOV column's DISPLAY value in IR report?

    Hi,
    I would like to get LOV column's DISPLAY value to trigger another javascript function. Could you please provide any hint?
    For example, there is one IR report with 2 column, DEPT_NAME & SHOW.
    The DEPT_NAME type is LOV .
    The SHOW column is one link image, when clicking it , I would like to fire a javascript to get DEPT_NAME 's display value.
    I know I can use #DEPT_NAME# to get the return value of LOV. However, how to get current row's DEPT_NAME's display value?
    Thanks in advance.
    Ray
    Edited by: 最爱用中文 on 2013-4-11 下午4:14

    Is there any way you can create a table join, instead of using LOV as your display type?
    That way you can select the name of the department in your IR query, display it as text, and then easily reference it as #DEPARTMENT_NAME#, for example.

  • Get the ipad to display my photos in file name sequence

    How can I get the ipad to display my photos in file name sequence instead of by time/date stamp? I want to display them in a particular sequence controlled by the filename I gave them. 

    Hey Tex,
    Good idea.  I've found a question that indicates that the ipad sorts by name (https://discussions.apple.com/message/9116248#9116248).  Mine are all sorted by date/time.  How did they do that?
    The app you suggested looks promising, but it sounds like i have to manually rearrange my pictures, and since i have hundreds in each folder, this would be tedious.  Is there an app that will allow me to display them by filename w/o me having to rearrange them myself??
    Thanks.
    WSC

  • Flash gallery - filename on thumbnail and get rid of sequence display next to slideshow controls

    Hello. Thanks in advance for you help. I'm wondering two things as I'm trying to tweak my use of flash web galleries for client image selection.
    First, is there any way to get the filename to display on the thumbnails in the gallery? Used to have this with html galleries from bridge/pshop. Clients are complaining about this - especially when picking images for compositing, and it makes it difficult if not impossible to compare images within a big gallery.
    Next, I've had one client (IQ challenged), that told me to process file number 10. Instead of filename # ABC001_010, what they were referring to was the 10/250 that's next to the slideshow controls. Stupid, but true. Anyway, I have no use for the sequence number so I'm wondering if there's a way to get rid of it on the gallery without having to do a custom edit to the code or whatever.
    Thank you!
    John Linn
    http://www.adventurecreative.com

    John,
    I totally agree with you: also my clients start to complain that they miss the filenames on the thumbnails (I use an edited version of the Lightroom HTML Template). Seems that clients don't take (have) the time nowadays to go through the full versions...
    As a convinced convert from Iview Media Pro this is about the only thing I really miss. Would be very nice if someone (G. Jardine?) would throw in some code here!
    Thanks in advance!
    Roy Beusker

  • How can I get typekit fonts to display in edge code live preview?

    I'm wondering how I can get typekit fonts to display when using adobe code cc live preview? I'm aware that it's an issue with my local base url, but I'm confused as to how to fix the issue.
    Right now my site is stored locally in a folder on my desktop. I'm not sure what to put in the typekit settings under "domain" and what URL to put in the project settings in edge code.
    A little help please?

    Hello,
    I'm sorry that you ran into trouble with this. In order for the Typekit fonts to load, you need to add the IP address that you are using for Live Preview to the domain listing on the kit. 
    By default, Edge Code uses the IP address "http://127.0.0.1/"; you should see that listed in the web browser when previewing your site.  If you've changed the preview URL in Edge Code, it might be something like butterville.local instead.
    In either case, copy the URL where you are previewing the site, and add it to your domains: go to http://typekit.com and launch your Kit Editor. Click Kit Settings in the upper right corner and add your domain to the domains field, then save your settings.
    Make sure you republish your kit after saving the changes.
    I hope that this helps! If you still have trouble with the font loading, please send me the preview URL you are using along with your Typekit kit ID.  You may post those here or email us at [email protected]
    Best,
    -- liz

  • If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    OUtlook was already set as the mail client for FF, and is my operating system (XP)'s default mail programme. therefore problem not solved at all. what I get whenever I follow a link in a webpage to send an e-mail is a little pop up window asking me to sign in to gmail or open an account. any other suggestions?

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • How to get report in excel format instead of pdf from oracle forms.

    Hi,
    How to get report in excel format instead of pdf from oracle forms.
    Form & Report developer 10g
    report format .rdf

    create a report using report builder.
    call the report from form using the following procedure
    DECLARE
         RO_Report_ID REPORT_OBJECT;
         Str_Report_Server_Job VARCHAR2(100);
         Str_Job_ID VARCHAR2(100);
         Str_URL VARCHAR2(100);
         PL_ID PARAMLIST ;
    BEGIN
    PL_ID := GET_PARAMETER_LIST('TEMPDATA');
         IF NOT ID_NULL(PL_ID) THEN
    DESTROY_PARAMETER_LIST(PL_ID);
         END IF;
         PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
         RO_Report_ID := FIND_REPORT_OBJECT('RP2RRO');
         Add_Parameter(pl_id,'P_SUPCODE',TEXT_PARAMETER,:CONTROL.S_CODE);
    Add_Parameter(pl_id,'P_INVOICE_NO',TEXT_PARAMETER,:CONTROL.IN_NO);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'INVOICE_REG_DETAILS.rep');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'SPREADSHEET');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_dbserver_frhome1');
         Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
         Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_dbserver_frhome1') + 2, LENGTH(Str_Report_Server_Job));
         Str_URL      := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=rep_dbserver_frhome1';
         WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
         DESTROY_PARAMETER_LIST(PL_ID);
    END;

  • STO and delivery is getting created in the foreground instead of background

    Hi experts,
    In return document (with reference to Work Order), When user is selecting recommended action u2018YAu2019 and clicking the u2018returnu2019 button, an STO and delivery is getting created in the foreground instead of generating them in background.
    T-code - o3o_RT02
    Test case
    Create Work Order (IW31)
    Create return document w.r.t Work Order (o3o_RT01)
    Select recommended action u2018YAu2019, save and select u2018returnu2019 button.

    Hi,
    Could you checkthe foll cust link in SPRO:
    Define Objects in Backend System (Purch. Reqs, Reservations, Purch. Orders).
    PO is created if you set the "*" for EITHER the purchasing group OR the product category.
    SRM is creating PR or PO depending on:
    - SRM customizing (ex: always external proc + PR if incomplete, PO if complete)
    - the interpretation of SC data by R/3.
    IF your SC is considered complete by SRM (but with a fixed vendor and not a preferred vendor) the system will check if it can create a PO in R/3.
    For this, each item will request a META_INTERPRETE_DATA to R/3, asking if it can create a PO. If R/3 considers this data as incomplete, it will reply to create a PR.
    Usual cases of R/3 PR creation instead of PO:
    - prefered vendor in SRM (and not a fixed one)
    - custom checks in user exits in R/3
    - error messages in R/3 (ex: O6 334 In the case of a fixed vendor, please enter info record)
    To debug without debuging into R/3, you can also try the following:
    - use BADI DETERMINE_TARGET_OBJECT and force PO creation
    - so the system will always try to create a PO
    - R/3 won't create the PO (for the same reason as in META_INTERPRETE_DATA), and will raise an error in SRM
    - finally you get the real error in application monitor (SC --> backend application errors
    Related thread:
    Re: PO not create from SC with source of supply in classic sena
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • HT5219 How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    You may need to set the slider at the upper-right corner of the Control window to something other than the extreme left-most position:
    Hope this helps.

  • I have an ipod touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    I have an Ipod Touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    It sounds like you essentially have a new computer and unless you restored from a backup your iTunes library would be empty.  You can transfer your iTunes purchases from your iPod to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    SInce you changed syncing computers. after you move the stuff you need to restore the iPod to factory defaults and sync the stuff back to your iPod.  If you had the iPod backup file you could restore from backup.
    If you have non-iTunes pruchases you can copy them to your computer by using one of the third-party programs discussed in this previous discussion:
    Best iPod to PC

  • How do I get a 0 to display when a count = 0 (zero)? (The cell is blank)...

    (Running Business Objects Release 2 (Web-I), No other reporting modules)
    How do I get a 0 to display when a count = 0 (zero)? (The cell is blank)...
    In my reports, I count the number of tests of one of our products and another count on the number of failures.  I then use a simple formula to give me the defect rate percentage (DR%)
    The universe objects used in the calculation are:
    Assembly Number (dimension)
    Human Sn (dimension)
    Test Code Description (dimension)
    I created a variable (called [Count Assys]) that counts the number of Assemblies Tested:
    Formula: =Count([Assembly Number];All)
    Another variable (called [Failed Count]) counts the number of failed tests:
    Formula: =Count([Test Code Description];All) Where ([Test Code Description] <> "FUNCTIONAL TESTS PASSED")
    NOTE: There is a "not equal to sign" between [Test Code Description] and "FUNCTIONAL..." above, but the forum is blanking it when I preview the message.  Not a big deal, but it may be important for someone looking to help...
    I then have a third variable called [DR%] that divides [Failed Count] into the number of [Count Assys], which yields a number formatted as a percentage.
    Formula: =[Failed Count]/[Count Assys]
    The above works great! 
    The problem is: when I have a zero defect count (everything passes), the cell is blank, so the percentage variable remains blank.  I want a zero (0) to appear if nothing failed so the percentage appears as 0%
    I've searched this forum completely and have tried several Properties changes and different variable strings (like =If([Failed Count]<1,0) and the cell stays blank and cannot come up with an answer.
    This one seems simple to me, but everything I've tried has yielded zero <smile> results.
    Thanks,
    Charles
    Edited by: Charles Norman on Dec 9, 2008 12:44 PM
    Edited by: Charles Norman on Dec 9, 2008 12:47 PM

    Hi Charles,
    Use [Dr%] Variable formula as =if(IsNull([Dr%]);0;[DR%])
    Here IsNull returns the Boolean value of variable [Dr%] if its true then inserts 0 else the percentage values of failed tests based on the  total number of assembly tests performed.
    I Hope this is what you want to achieve....
    Thanks....
    Pratik

Maybe you are looking for

  • SplashID Desktop will not open

    I am having a problem with SplashID desktop. I have installed it per the instructions at SplashData Version 4.6.1 which says it is compatable with Tiger (OS 10.4.11) but it will not open. It bounces a few times and then gives me this error "The appli

  • Watch an HD recording on my SD tv and HD box.

    So I have a Multi Room DVR in my living room with a variety of HD recordings.  I was under the impression that I could watch a HD recording on the HD box I have on my SD TV in my bedroom.  I understand it would not be actual HD picture, but was hopin

  • Cannot (re-)install itunes (64) for windows 8. get error 7 (Windows error 193)

    I've used itunes for itunes for quite some time before making some hardware change (cpu and motherboard).  The OS, like before, is Windows 8. But now each time that I try it seems to install up to and including the final "finish" in the process.  Aft

  • "Responsible Purchase Organization and Purchase Group" not appearing in Bid

    Hi, We are implementing SRM 5.0.--> Bidding Process. Steps. 1) Creating PR in R/3 and transfered to SRM 2) Carry out sourcing and select one PR with line items and --> Add to Work Area --> Create Bid Invitation --> Process Bid Invitation --> Change a

  • Do I have to use Time Capsule wirelessly?

    Or can I just hook it up via ethernet, firewire, or usb? The reason I ask is that my stock Mac Pro did not come with an Air Port card...at least as far as I can tell. Also, what is the difference between the two time capsules currently shown on amazo