To restrict a filter to a single field

Hi
I need to create Service report where in i need to show the Closed SR number and the CLosed SR Number which has been closed within One hrs time. I have used the Case..when functionality to restrict the condition for the field which shows closed SR's within an hour. But the count is not coming proper.
Would like to know if anyone came across the same issue, If so kindly help me with the same
Thanks in advance

Hi,
To calculate the number of SR closed with 1 hour use the below
SUM(CASE WHEN (TimeStampAdd(SQL_TSI_MINUTE, -60, "Service Request"."Closed Date and Time") <= "Service Request"."Opened Date and Time" AND "Service Request".Status = 'Closed') THEN 1 ELSE 0 END)
To calculate the number of SR closed use the below
SUM(CASE WHEN ("Service Request".Status = 'Closed') THEN 1 ELSE 0 END)
Hope it works
-- Venky CRMIT

Similar Messages

  • Display values of a single field in a multiple rows in a table region

    Hi Tech-Gurus,
    I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
    xxxxxx
    yyyyyy
    Reg.No
    1234
    5678
    7654
    I need to display the values of REG.NO in different rows like,
    1234
    5678
    7654
    and also need to validate as well against Decimal values.
    Please help me with the code how i will iterate ?

    Hi,
    I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
    To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
    Regards
    Sumit

  • Restrict Select-Options for Logical Database field

    The way we restrict select options for custom defined select option fields on selection screen.. can we restrict select options for standard Logical Database fields?
    i.e. report uses PNPCE logical database and has field called PERNR. I want to restrict select options for this PERNR field so that it has options for 'Select single values' only.
    Thanks,
    Falguni
    Edited by: Falguni V on Nov 13, 2010 6:42 AM

    You can user AT SELECTION-SCREEN event, and check whether any record is having high value for PNPPERNR.

  • Map base64 attachment to single field

    Hello,
    in a proxy --> http scenario I receive a message with SOAP attachment (base64 encoded). The requirement on http receiver side is now, that the attachment is put in a single element, just like:
    <attachment> base64code </attachment>
    Is there a simple way to do this? I guess I have to use Java mapping, but I am still not sure how to handle this requirement.
    Thank you for your help.

    Hi,
    good blog thank you very much. Obviously there is an SAP API available that would do most of the work for me:
    com.sap.aii.utilxi.base64.api.Base64.encode(bs);
    However so far it is still not sure whether SAP Proxy sends the attachment as SOAP attachment or within a single field (depends on the technical restrictions, no final decision is taken yet).
    However if they are able to send the bytecode in a single field it might even be possible to convert the content using an UDF using the above mentioned API ?.
    However I am still not sure how to extract an attachment in case SAP cannot deliver the content in a single field.

  • How to export movies with Single Field option on with QuickTime Pro?

    Hi,
    I've got a rather problematic video file with MJPEG encoding in it. I've been able to save the original AVI into another QuickTime mov-file. Where I thought the deinterlace would help me to get rid of the horizontal lines in the picture, that option didn't work this time. Instead, if I use the Single Field option, I get at least a smooth picture.
    But when I try to export this to another mov-file or any other format for a smaller file size, I never get the smooth picture to stay. And in the resulting files the interlace "effect" can't be removed even with that single field on again!
    I'm using QuickTime Pro 7.6.6.
    Anybody with a solution?

    Where I thought the deinterlace would help me to get rid of the horizontal lines in the picture, that option didn't work this time. Instead, if I use the Single Field option, I get at least a smooth picture.
    It's my understanding that these QT 7 Pro options are "playback only" property settings utilized by the QT Player and do do not have any effect on the export/re-compression of interlaced content. Have you tried exporting directly to a progressive codec option/setting in QT 7 Pro, tried the motion adaptive deinterlacer in MPEG Streamclip (free) or the JES Deinterlacer (free), or used the "decomb" filter option in HandBrake (free) to see if any of these approaches are more suited to your needs?

  • Single-field DV processing... HD only?

    In getting ready to start a project in iMovie '09, I read up on all of the topics discussing poor performance of movies using DV footage. This has been attributed to "single-field processing", which has been discussed at great length. Having been scared stupid that my film would look like garbage, I ran a test.
    I imported 15 seconds of footage from a Canon Elura 100 mini-DV camera into iMovie '09, and exported to MPEG-4 for playback on a Playstation 3. I hooked up my camcorder directly to my TV to play back the same 15 seconds. (I did this experiment on 2 separate 15-second clips. One indoors, one outdoors.) After flipping back and forth between the MPEG-4 on the PS3 and the same footage playing from the orignal tape, analyzing darn-near every frame, I've concluded the following:
    The level of detail is indistinguishable between the two. Let me also say that this is being shown on a Samsung plasma television, and that the PS3 does not upscale video from the hard drive, only DVDs. So this is pretty much an even playing field aside from the fact that the PS3 is hooked up via HDMI, and the camcorder is hooked up using composite. (Since this is standard definition, it shouldn't matter)
    HOWEVER, there is a noticeable difference in color accuracy. The colors on the MPEG-4 from the PS3 are washed-out a bit. Colors just aren't as vibrant. The footage still looks GOOD though, and it won't deter me from continuing with my project. Also, there is an interesting benefit of the color difference: It helps brighten dark footage. The brights may not be as bright anymore, but it also means the darks aren't as dark. This would be bad news for a Blu-ray, but there are times that it would help me. Using a mini-DV camera I have learned that low-light isn't my friend, and this seems to alleviate that problem quite a bit.
    Having said all of this, (and typed WAY too much, sorry) I must ask a stupid question. Is all of this single-field processing talk restricted solely to those using HDV cameras? I realize that iMovie converts imported DV footage to 960x540 resolution. I also realize that this would strip HD footage of half it's resolution, resulting in poorer quality. But what about those of us using SD camcorders? My mini-DV's natural resolution is 853x480 (16:9), so in essence what iMovie is doing is enlarging the footage. This isn't a problem for movies watched on your computer, or on a PS3 as I do. I do see how this would produce ugly DVDs, since it's enlarging the resolution, only to later reduce it to DVD's resolution. This extra processing would hurt in the visuals department.
    I had never seen it mentioned that single-field processing was only a problem for HD resolutions on DV, but this is the conclusion that I have come to. (The 960x540 resolution being the culprit) I have a standard-def 16:9 mini-DV camcorder. And other than the color difference which I described above, the footage is just as sharp. I hope this helps anyone that was as worried about using your DV footage as I was. I apologize if this has been pointed out before, or if I am just dead wrong for some reason. I also apologize if this was common sense that went without saying.

    In regard to x264, this doesn't seem like something that can be used when exporting w/Quicktime. How would you go about utilizing it when exporting a finished iMovie project?
    And to address your "P.S.", I understand the difference between DV and HDV, I'm not an idiot. I just thought that perhaps the use of the term DV in discussions of single-field processing could have been used as a catch-all to include HDV. I make reference to this in my original post.
    Do you have anything to add in regard to visual quality comparison other than scoffing at my choice in cables? I don't think the jump to s-video in this case would produce any remarkable difference. Oh, and how old do you have to be to have s-video cables laying around? Kidding, kidding...
    Message was edited by: mike8813

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • F4 help for a single field in interactive form

    Hi Experts,
    I am working in HRAS process.I created a Form Scenario and an Adobe Form.  I linked my interactive form in portal using standard Start Processes iView . Now I have to create a value help(F4 help) for 'STATE' field based on 'COUNTRY' field value in adobe form.  I filled the Input value Help in the corresponding Form Scenario field. But in portal the adobe form shows the field as a single field only.
    How I can I attach the manual F4 help to 'COUNTRY' field?
    The how to  vary the F4 help values in 'STATE'  fied based on 'COUNTRY'  field?
    Do I need to code  in Java script for this?
    Please provide some inputs with code sample
    Thanks in advance,

    Lek,
    Check Nikhil's reply in this [thread|Re: Reg: value help from BADI is not displayed in the HCm form;. It should probably help you.
    Chintan

  • Deleting a single field from existing Layout - Update

    Hi,
    We need to amend our custom integrator's layout by removing a field from the layout.
    However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
    (Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
    Is there any option to remove a single field from integrator layout?
    Thanks much in advance,
    Rgds,
    Sumanth

    Duplicate post - Deleting a single field from existing Layout - Update
    Srini

  • Deleting a single field from existing WebADI Layout (Update)

    Hi,
    We need to amend our custom WebADI integrator's layout by removing a field from the layout.
    However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
    (Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
    Is there any option to remove a single field from integrator layout?
    Thanks much in advance,
    Rgds,
    Sumanth

    Duplicate post - Deleting a single field from existing Layout - Update
    Srini

  • How to update a single field in Word macro

    Hello,
    I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field.  There
    are other fields in the document, so I do not want to update all the fields.  Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
    Thank you

    Stefan's response is correct.
    Here is a macro that should update only filename fields.
    Sub FileNameFieldUpdateAllStory()
    ' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
    ' repaired by Jezebel
    ' All Story Field Updater - Filename fields
    Dim oField As Field
    Dim oStory As Range
    ' On Error Resume Next
    For Each oStory In ActiveDocument.StoryRanges
    ' This goes into headers and footers as well as the regular document
    Do
    For Each oField In oStory.Fields
    If oField.Type = wdFieldFileName Then
    oField.Update
    End If
    Next oField
    Set oStory = oStory.NextStoryRange
    Loop Until oStory Is Nothing
    Next oStory
    End Sub
    See Installing Macros for help in using this.
    Charles Kenyon Madison, WI

  • How to change the screen element of a single field in a table control

    Hi Gurus,
    I want to change the screen element of a single field (or the whole row) in a table control according to a condition.
    I have 2 columns in the table control. One is an input column and one output only. When user enters values into the input column, they need to be compared against the values in the other column, and if there is a discrepancy, the row where the discrepancy is needs to be highlighted.
    I have tried the following code which highlights the whole column ...
    CONTROLS: TC_ZVOYG_BINS TYPE TABLEVIEW USING SCREEN 0500.
    DATA: wa_tc_zvoyg_col LIKE LINE OF TC_ZVOYG_BINS-cols.
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              wa_tc_zvoyg_col-screen-intensified = 1.
              MODIFY tc_zvoyg_bins-cols FROM wa_tc_zvoyg_col TRANSPORTING
              screen-intensified WHERE screen-name = screen-name.
            endif.
          endloop.
        endif.
      endloop.
    And also the following code which makes no change ...
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              screen-intensified = '1'.
              modify screen.
            endif.
          endloop.
        endif.
      endloop.
    Thanks in advance.

    Hi,
    The modification of a screen element attribute (LOOP AT SCREEN...MODIFY SCREEN) must always be done in the PBO (for a dynpro, it will be in a PBO module, i.e. declared by MODULE ... OUTPUT)
    About the loop at the internal table, it is done automatically by the system, also during the PBO, you'll find something like LOOP [AT itab] ... WITH CONTROL ...  in the PBO part of the screen flow logic (note: you may have to complete with a supplementary READ TABLE if you don't use AT itab). So you don't need an additional loop.
    Best regards
    Sandra

  • How to prevent the logging of a single field in XI ?

    Hi Guys,
    we have developed the interfaces for payment card services using the Enterprise services and the major problem what we are facing is to prevent the logging of the 3 digit security code in XI.
    According to the payment card industry standards you should not store it as well as you should not encrypt this 3 digit CVV code.
    Is there any way we can prevent the logging of this single field in XI ?
    Is it possible if we develop our own custom adapters then we can acheive this ? Do we have full control over the DB in the custom adapters?
    any help or suggestions or other alternatives would be really appreciated. I want to hear some solution from the experts.
    Thanks in advance,
    Srini

    Hi Beena,
    You can encrypt the credit card no and SSN and that should not be a problem, but you should not store or encrypt the CVV no.
    as i said we have our own tools many customers are using with respect to RFCs where you can encrypt and decrypt the card numbers and also not storing the values of CVV.
    The above scenario works fine with no issues and it is according to the PCI standards. If you use PI 7.1 and use adaptive controlling the values are stored at a single place ie you can acheive single persistance and even this will not be our solution.
    Advanced Adapter Engine Configuration in PI 7.1
    with the single persistsnce, if there is a adapter module or custom adapter which takes the payload and prevents the stroage of the value of a single field then it would be our solution.
    Thanks,
    Srini
    Edited by: Srinivas Reddy on Aug 20, 2008 7:42 PM
    Edited by: Srinivas Reddy on Aug 20, 2008 7:57 PM

  • Changing the color of a single field in a row of a table

    Is it possible to change the color of text of a single field within a single column. If field 'C' in a row is negative number change the text color to red. Is this possible?

    Hi Champion,
    Please Do search before posting.. you get lots of threads here...
    Re: color for a particular column in table
    Re: Color a table row
    Please go through this..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5cf1?QuickLink=index&overridelayout=true

  • Displaying data from a list into a single field with comma separated values

    Hi,
    I have a requirement to change a report with an XML structure (simplified version) as below
    <Protocol>
    <ProtocolNumber>100</ProtocolNumber>
    <SiteName>Baxter Building</SiteName>
    <ListOfActivity>
    <Activity>
    <Description>Communication Memo Description.</Description>
    <Name>James</Name>
    </Activity>
    <Activity>
    <Description>Visit 4</Description>
    <Name>James</Name>
    </Activity>
    <ListOfActivity/>
    </Protocol>
    On the report I need to display all the 'Names' for each of the Child (Activities) in a single field at the Parent (Protocol) level, with each Name separated by a comma.
    How do I go about getting this to work?
    Thanks

    Take a look at this: http://blogs.oracle.com/xmlpublisher/entry/inline_grouping
    You could do this (ofcourse, you will need to add extra logic to ensure that there is no comma added after the last name..)
    <?for-each@inlines:Name?><?.?><?', '?><?end for-each?>
    Thanks,
    Bipuser

Maybe you are looking for

  • Need help/suggestion in performance tuning

    hi, I have the following OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS call     count       cpu    elapsed       disk      query    current        rows Parse      460   4700.00    5239.96          2          6          0           0 Execute  6234640362

  • Extended rights gets lost if user saves file w diffrent filename Why?

    I have a question related to extended rights. Background: I have a editable form field pdf file that I enable "extended rights" (acrobat 9 pro). So that my users can fill in the form fields and save it and update the file later and then return the fi

  • Podcast subscriptions on iPhone

    I subscribe to a number of podcasts through iTunes and invariably listen on my iPhone. Since I can sync the phone with only one of my computers, I often find myself on the road without the ability to access the iTunes data linked to the phone. This p

  • I movie won't import video from my sony xr150.  I can see the video in the window when I connect the camera but when I select import, I get the spinning circle of doom.

    my brand new mac pro wont download movies on imovie.  I connect my sony XR150 and I can see the clips in the imovie window but when I select import, I get the spinning circle of doom.  Very disappointing.  I just moved from a PC because Mac's were su

  • Loosing session

    I created 2 very simple files and trying to set session attribute in one of them and retrieve it in the next one. There is a link from the first to the second. I always get new session in the second JSP. Source of the 1st file : <%@ page import="java