I need to filter the Service Id

Hi All,
Here with i copied one query that returns some resultset based on Organise Id. But I need only one service id.
Pls suggest me...
SELECT DISTINCT(A.SERVICE_ID),
B.SERVICE_CODING_ID,
C.RGS_ID,
D.CODED_TIME_REF_DOMAIN_ID,
E.ORGANISE_ID,
F.RESOURCE_GROUP_DESC
FROM SERVICE_MASTER A,
SERVICE_CODING_DETAIL B,
SERVICE_RESOURCE_DETAIL C,
SERVICE_CODED_TIME_DETAIL D,
ORG_REFERAL_CONTROL E,
RESOURCE_GROUP_MASTER F,
RESOURCE_ORG_MASTER G
WHERE A.SERVICE_ID = B.SERVICE_ID
AND A.SERVICE_ID = C.SERVICE_ID
AND A.SERVICE_ID = D.SERVICE_ID
AND B.SERVICE_ID = C.SERVICE_ID
AND B.SERVICE_ID = D.SERVICE_ID
AND C.SERVICE_ID = D.SERVICE_ID
AND C.RGS_ID = F.RGS_ID
AND A.SERVICE_ID(+) = E.REFER_ID
AND B.SERVICE_ID(+) = E.REFER_ID
AND C.SERVICE_ID(+) = E.REFER_ID
AND E.ORGANISE_ID = 'ORG000001';
Cheers
Moorthy.GS

Hi Moorthy,
Which one row do you need? Any single row? The first row according to some ordering? or a specific row?
If you want any random row, add the line "AND ROWNUM = 1" at the end of the query. Or if you're running the query in PL/SQL or a similar language you can run the query as is and only fetch the first row.
If you want the first row from some ordering, add "AND ROWNUM = 1" and an ORDER BY clause at the end.
I suspect you want a specific row, in which case you need to add a line to your WHERE clause that specifies which row you want. I suspect you want a line that reads " AND SERVICE_ID = ???"
I hope this helps,
Steven

Similar Messages

  • Need to filter the out put of iw38 reprort

    hello Experts,
    i have requirement like need to filter the out put of iw38 report and after that again i need to filter that output by using department and client code and oreder .ned to show out put with 3 push buttons .
    dertails:
    selection screen fields:
    region
    customer  code
    oreder
    date range
    from these 4 fields i need to pass two(order and date range)   fields to  iw38 report and then what ever output i am getting again that should filter by customer code and region which are there in my program
    , need to display the out put with 3 push buttons .
    plz suggest me  with appraoach and sample code .
    Note : i am using using submit and return export memory but its directly showing iw38 output and not coming back.

    Hi ananta,
    The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST.
    The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list.
    The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen.
    check the below program..
    REPORT  Z642_TEST2.
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT riaufk20 EXPORTING LIST TO MEMORY
                                    AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    write: ' This is calling program', sy-repid.
    Edited by: Rammohan Nagam on Apr 8, 2009 4:05 PM

  • I need to filter the field Compensation Review :iview Compensation Planning

    hello
    I need to filter the field Compensation Review (iview Compensation Planning), this value come from table : T71ADM08 Compensation Reviews
    i have many values, but i need show a range o one set the of values, any ideas ??  
    I can show only one filtering parameter from the parameter value of the iView, but it only one value, I need a filter a range
    please any ideas, ???

    Hello,
    having had this very same issue in the past - the option we went with was to enhance the RFC FM that returned the list of the reviews with some removed depending on the employee type.
    (I'm assuming that the list of avaliable reviews is dependent on the employee and that's why you want to filter).
    Chris

  • I need to get the service order number in the error message

    i need to display the error message with the service order number telling that
    "record does not exist for service order xxxxxxxxx"
    xxxxx-should be the service order number.

    you can define a error no. in message class se91.
    if the error is suppose 101.
       101 - Record does not exist for service &
    use & to concatenate ur variable with the message.
    if you want more than one just addon & to that
    like 4 varibles
       101 - Record does not exist for service & & & &
    in ur code, u can display the message like
    MESSAGE i(ZE)101 with variable
    ZE is ur message class

  • Need to filter the Master Column

    Hi Experts,
    I need to filter a master column in my wd table. I am not finding an option to get the filter text in VewController. Master column of the filter row is not enabled to enter filter text. Can some one suggest me how can I proceed to make filter enabled for master column?
    Thanks in advance.

    Hi,
    If you are using table UI element, you have to do some bit of coding to get the filter row.
    1. Define a context node with cardinality 1..1. This node should have the attribute(s) for which a filter is required, and the attribute should be that same data type as that of the column attribute.
    2. In the layout tab, for the specific table column for which filter is needed, bind the 'filterValue' property to the corresponding attribute created in step 1.
    3. Define and implement an event handler for the 'onFilter' event of the table. This event handler should programatically filter the table.
    Now, in the layout itself you should see the 'Filter row' for the table.
    Hope this helps,
    Regards,
    Wenonah

  • I need information about the services including in Pro category. I am thinking in change my category.

    In particular, the service to convert print forms into acrobat forms.
    Thnaks!

    Hi, carl wolf
    Thank you for your answer.
    You mean the below reason is hoax or incorrect or fake right?
    First (1), The reason is IPS or PSL Technology made the screen to be yellow tint color.
    Second (2), Someone told me, It is depend on production lot some lot don't have yellow tint screen but, some lot have yellow tint screen.
    Third (3), Someone told me, It is normally case of Macbook Pro Mid 2012. Yellow tint screen will be recovering when using it long time.
    Sorry for more question. I fear saleman lie me when I go to buy.
    Thank you very much. ^^

  • Wow how can i find myself out of this? Need to find the service provider of the phone !!

    So i bought a blackberry pearl 8100 and it is black and silver in color.
    I don't know what its service provider is.
    Its clearly not an AT&T since it gives the invalid simcard sign when its in it.
    The only way how i can get it to work is by unlocking it.
    But i can't unlock it witt not knowing the service provider or am i wrong with that assumption?
    So is there anyway i how could figure out the service provider of the phone

    You want to know the branded vendor of the device.
    On the keyboard on the homescreen, type E A C E (or with the Suretype keyboard, R A C E).
    There will not be a place to type these letters, just type them.
    Then, find the Vendor ID on that Help! page.
    and refer here:  http://www.blackberryfaq.com/index.php/RIM_Vendor_Codes
    http://www.blackberryfaq.com/index.php/How_do_I_determine_if_my_BlackBerry_is_%22unlocked%22%3F
    http://www.blackberryfaq.com/index.php/How_do_I_unlock_my_BlackBerry%3F
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I have a new service provider. How do I make sure Firefox knows where I am so I get local news updates etc. Do I need to contact the service provider or can I do something on my mac?

    Just switched to At&t u-verse now my home page Yahoo is not coming up with local news. I can't remember how to tell it where I am. Any help would be appreciated

    Actually you always use ethernet..
    MBA does not come with ethernet port.. but apple sells both a cheap usb to ethernet and a much more expensive and much faster thunderbolt to ethernet adapter. With ethernet to eliminite this silly situation of setting up wireless over wireless, so if you make any change you instantly drops you off the network. Like cartoons of people sawing off the branch they are sitting on.
    But you can reset.. no reset will do anything at all to the material on the hard disk. You must deliberately erase it.
    Read the info because you may only need to do a soft reset. That is hold the reset for 1sec (2-3sec is fine)  as long as you don't hold it for a full reset.
    http://support.apple.com/kb/ht3728
    Even a full factory reset will not harm your files in any way, (or any further!!)
    I am "concerned" that you have no backup to vital files on your TC. That is not wise. TC are no more immune to failure than any other hard disk.. (actually latest ones use the cheapest green WD drives money can buy) and keeping files in only one location is a receipe for disaster. An external drive is much more accessible.. cheaper and tend to be more reliable. There are too many things to break in the TC.. it is designed as a backup target for TM. Not a file store.

  • Adobe ExportPDF not viable for me, Need to cancel the service

    I had a PDF i wanted to convert to t a Word document and it has come up as complete Gibberish. This really makes it a Usless Purchase wich would have been nice to at least get a try without having to bill my card for a year of service then wait for a refund.
    Anyhow given all the documentation you have on how to cencel service and inability to do so it appears that a ton of people have had to revert to useing this forum to cencel service and refund money.
    Would someone please do so?

    Hi Stephen,
    Really sorry to see you go. But you are all set. You should be contacted in a week or two in regards to your cancellation and refund.
    Kindest regards, Stacy

  • Visual Composer - filter data service results

    Hi,
    I'm using a data service in the Visual Composer which returns serveral result tuples. I want to display just the first tuple in a form view so I need to filter the result. How does it work? I tried different operators (especially filter) but without success. Any ideas?
    Kevin

    Hi Micha,
    you are right, I had solved the problem like that. I was struggling with the columns that were (not) displayed after applying the filter. My solution is to include every column necessary in the filter values.
    Best regards, Kevin

  • How can I filter the LOV rows at the runtime

    I am working in oracle forms 6i.
    My lov is based on a view. If I selected one row from LOV, that row should not appear in list box.
    I would like to restrict rows before saving a form. How can i filer the LOV rows at the runtime?
    Please help me.

    Dear Mr.MH_BD,
    Thanks for your immediate response,
    My form is built based on master and detail link.  On the multi row detail section I am invoking this LOV.  The record group containing the following query:
    select fees_id,fees_name,term_fees from sk_fees_mst where fees_bal>0;
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    13
    Smart Class
    100
    14
    Admin Fees
    300
    If I selected the fees_id 13 for the first row of detail section, then the LOV should display only the following in the next row:
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    14
    Admin Fees
    300
    (ie.) Before commit form I need to filter the already selected fees ids from record group.
    Thanks in advance.

  • How to get the service name of a webservice using UDDI API

    Hi,
    Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
    Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
    Can any one help me to get the service names of the wsdl using UDDI APIs.
    Thanks,
    Ananth

    Hi sia,
    1. Table is APQI
    2. field name for session name is GROUPID
    regards,
    amit m.

  • How to Filter the List in Combo Box in JDeveloper?

    Hey guys, I really need your help regarding this matter. In JDeveloper, I need to filter the list in combobox in order for us to query faster especially when the list is very long. For example in a 'Country' combo box, when you type 'p' in the field, the list must filter simultaneously all countries that start with letter 'p' or when you place 'ph', all countries with 'ph' in the beginning. If you have sample codes, keywords needed, or sites recommended to solve this problem, it will be very much appreciated. Thnx.
    cy

    using this forum may be more efficient -> JDeveloper and ADF

  • FM for getting the Service Ticket Details

    Hi Group,
    I have a requirement wherein, I need to get the Service Ticket(s) for the system when I pass the Status of the Service Ticket.
    The query is like:
    <b>Import </b>-> Passing the <b>Status</b> of the Ticket (like : <b>Assigned/Closed/Resolved </b>).
    <b>Export-</b>> Get the details of all the <b>Service Tickets</b> whose status is mentioned in the
                 <b> Import</b> Parameter..
    So please let me know of the <b>FM/BAP</b>I to achieve this task.
    thanks in advance.
    Regards,
    Amit.

    Hi Amit,
    You can use FM
    'CRM_SERVICE_PROCESSES_SEARCH'
    Here in 'Export' Parameter:: STATUS specify the status required
    Parameter: FROM and TO for dates.
    and collect the result from Import parameter: BUSINESS_PROCESSES_LIST
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • How top filter the inbound idoc?

    Hi all,
    I need to filter the Idoc like only some data to some particular organization.
    Only some purchase organization i need to process.
    How to filter it?
    Regards,
    Rohith.

    HI rohit,
    if you need to mapp the values from "originalvalue" to > "new_value" ... then you could use the ALE IDoc Segment Conversion Rules
    1. Tcode: BD62 - Create a new Rule
    2. Tcode: BD79 - change the values for that rule
    3. Tcode: BD55 - assign the rule to a partner
    Regards,
    Gordon

Maybe you are looking for