All servicerequests containing specific iobjects

Hello,
i have an internal table of iobject-ids.
And i want to know all service requests in a specific timeframe created for this iobjects.
I loop at the moment over my internal table and for each iobject_id i call:
query = CL_CRM_BOL_DQUERY_SERVICE=>get_instance( 'BTQSrvReq' ).
  query->add_selection_param( iv_attr_name = 'REFOBJ_IOBJECT_ID'
                              iv_sign = 'I'
                              iv_option = 'EQ'
                              iv_low = lv_prodid ).
  query->add_selection_param( iv_attr_name = 'OBJECT_TYPE'
                                iv_sign = 'I'
                                iv_option = 'EQ'
                                iv_low = 'BUS2000223' ).
    query->add_selection_param( iv_attr_name = 'DATE_RANGE'
                                iv_sign = 'I'
                                iv_option = 'EQ'
                                iv_low = lv_datlo iv_high = lv_dathig ).
* execute query
  result ?= query->get_query_result( ).
I know this is not a good coding to call the query service for each entry in the table.
Could one of you experts maybe share a better way to get all the servicerequests (guids) for a list of iobject id´s.
Thank you
Kind regards
Manfred

Hi Mani,
Can you please share how you solved this. I also have a similar requirement and was wondering how you solved this.
Thanks in advance
VIshal

Similar Messages

  • Check if a cell contains specific text

    I am trying to do a check to see if a cell contains specific text (but may also include other text). I thought this might be accomplished with an 'if' statement. Is this possible in Numbers?

    I am assuming the word "carrot" can appear multiple times within the same cell so the COUNTIF function will not work for this case.
    Set up an auxiliary (second) table that is the same size as your "matrix". Each cell in this new table corresponds to a cell in your "matrix". Each of these cells will count how many times "carrot" appears in the corresponding cell of the "matrix". The formula below will count how many times the letters "carrot" appear in that exact order in a cell. In other words, "carrotstick" is also included in the count. Capitalization is not a factor. It assumes your "matrix" top left corner is cell B2 of Table 1.
    Table 2 cell B2=(LEN(UPPER(Table 1 :: B2))-LEN(SUBSTITUTE(UPPER(Table 1 :: B2),UPPER($A$1),"")))/LEN($A$1)
    Copy or fill that formula to the rest of the cells.
    Table 2 cell A1 = carrot (the word you are looking for)
    Somewhere else have a cell that sums the cells in Table 2.
    The formula works by removing all instances of the word "carrot" from the string then subtracting the length of the new string from the length of the original and dividing that by the length of the word "carrot". The result is the number of times "carrot" appears in that particular string.
    You could put a space before and/or after "carrot" in cell A1 to avoid counting words such as "carrotstick" but if "carrot" is the first and/or last word of the string, it will not get counted because that space will not be there in the string.
    Message was edited by: Badunit

  • All plants Under specific company code

    Hi,
    What is the Tcode for All plants under Specific company Code.
    I Know about EC01 Navigation..
    But is there any other tcode available or not?
    Is there any table for all plants under company code?

    Go to SE11.. Give table name T001K..Execute... Give the company code in the field BURKS.. the result will give u all the plants under it....(WERKS is the field name for Plant)..
    Karthick

  • Scripting: how to read all files in specific subfolders?

    Hello,
    via a Fireworks script (.jsf) I want to get all files in specific subfolders e.g. of "d:\images" to do something with these files (exporting as JPEGs).
    What are these commands?
    Thanks!
    carlos

    You would use Files.enumFiles:
    http://help.adobe.com/en_US/fireworks/cs/extend/WS5b3ccc516d4fbf351e63e3d1183c94988d-7ee8. html
    Aaron
    http://fireworks.abeall.com

  • Hi, I have accidently delete a keynote app, could someone tell me how to redownload the app and retrieve all the contained information

    Hi, I have accidently delete a keynote app, could someone tell me how to redownload the app and retrieve all the contained information? Thank you!

    You are most welcome

  • Send notification to all users of specific responsibility in 11i

    Hi All,
    Is there anyway to send notification to all users of specific responsibility in 11i ?
    I have a setup form for hierarchy level (e.g level 1 - 5) by which each level will be notified either by responsibility or user?
    If its setup by responsibility, notification will be sent to all users under that responsibility.
    Do i have to create role using WF_DIRECTORY.CreateAdHocRole and add all users for specific responsibility to the role?
    Also if the responsibility setup changed, how to maintain the existing notification with the old resp.
    eg. level 1 is set to resp X then later on set to resp Y.
    Regards,
    Fendy

    Use 'Expand Roles' to achieve this. Please check the WF Developers Guide to see how it works.
    Yes, you may use wf_directory.createadhocrole for this purpose too.
    What do you mean when you say the responsibility has changed? It it is end-dated no notification should be sent to any of its members. It depends on the assignments of the role/user. if the assignment is used then the user will get it. If the assignment is end-dated then the user will not get the notification.
    You can always use wf_local_synch.Propagate_user_role to change the assignment of a user/role. If you want to end-date it, you can use it. Or you can add another user to the role, etc.
    Hope this helps,
    Alejandro

  • Find all topics that contain specific content

    The Find feature in Robohelp for html seems to only be able
    to find topics that contain the find criteria in the title of the
    topic. Can I do a Find that will access all the topics that contain
    a character, like a quotation mark, within the body of the
    topic?

    Hi all
    Personally I think we need to clarify whether COHAN3 is
    talking about looking through source content or compiled/generated
    content. Certainly the utility you mentioned would work for the
    source files, but it would fail on compiled/generated content.
    Cheers... Rick

  • Recursively search folders, export to excel all sub-folders. All folders containing ReadMe.txt export contents.

    I have a bunch of VBScripts that I created using help from this forum and other forums.  These scripts are for fixing Windows problems, installing software and setting configuration settings. Each script is in a separate folder. Some of the script folders
    contain a file called ReadMe.txt that contains info about the script and what it does.  I am trying to document all my fixes so I can share them with coworkers, friends and anyone who needs help. I struggle with the "recursive" feature in VBScript.
    I found the Scripting Guy's article on recursive searching and found another article from another website that works really well for listing all folders and subfolders to a CSV file.  I'm having trouble adapting the script.  After it exports the
    folder list to the CSV, I need it to go back through the list and for every folder that contains the ReadMe.txt, export it's contents to the row for the specific folder that contains the file.
    I've tried several modifications of this script but all my attempts cause the script to Not export the file list.  I cannot get past this problem. Until I do that I cannot even focus on the exporting the contents of the ReadMe.txt file to the CSV file.
    Here is the code I have
    Dim objFSO
    Dim ObjOutFile
    'Creating File System Object
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'Create an output file
    Set ObjOutFile = objFSO.CreateTextFile("OutputFiles.csv")
    'Writing CSV headers
    ObjOutFile.WriteLine("Type,File Name,File Path")
    'Call the GetFile function to get all files
    GetFiles("H:\0-Fixes")
    'Close the output file
    ObjOutFile.Close
    WScript.Echo("Completed")
    Function GetFiles(FolderName)
    On Error Resume Next
    Dim ObjFolder
    Dim ObjSubFolders
    Dim ObjSubFolder
    Dim ObjFiles
    Dim ObjFile
    Set ObjFolder = objFSO.GetFolder(FolderName)
    Set ObjFiles = ObjFolder.Files
    'Write all files to output files
    For Each ObjFile In ObjFiles
    ObjOutFile.WriteLine("File," & ObjFile.Name & "," & ObjFile.Path)
    Next
    'Getting all subfolders
    Set ObjSubFolders = ObjFolder.SubFolders
    For Each ObjFolder In ObjSubFolders
    'Writing SubFolder Name and Path
    ObjOutFile.WriteLine("Folder," & ObjFolder.Name & "," & ObjFolder.Path)
    'Getting all Files from subfolder
    GetFiles(ObjFolder.Path)
    Next
    End Function
    Helpful nice guy

    Here is a fixed version of your script.  Run it and tell us what errors you are getting.
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objOutFile = objFSO.CreateTextFile("OutputFiles.csv")
    'Writing CSV headers
    objOutFile.WriteLine "Type,File Name,File Path"
    GetFiles "H:\0-Fixes"
    objOutFile.Close
    WScript.Echo("Completed")
    Function GetFiles(FolderName)
    Set objFolder = objFSO.GetFolder(FolderName)
    For Each ObjFile In ObjFolder.Files
    objOutFile.WriteLine "File," & ObjFile.Name & "," & ObjFile.Path
    Next
    'Getting all subfolders
    Set objSubFolders = ObjFolder.SubFolders
    For Each ObjFolder In ObjSubFolders
    'Writing SubFolder Name and Path
    objOutFile.WriteLine "Folder," & ObjFolder.Name & "," & ObjFolder.Path
    GetFiles ObjFolder.Path
    Next
    End Function
    ¯\_(ツ)_/¯

  • Re: Create Custom Group - All devices minus specific devices.

    Worked ... perfect thanks!

    Hi
    Please help ...I want to create a custom group with the following attributes.
    1) Contains all devices.
    2) I want to be able to exclude specific devices if required.
    3) I want all devices to be included automatically in the group upon being added to Spiceworks and to be able to remove them later.
    I know there is already an All devices group but I don't want to exclude devices from that because then it would then not contain all devices.
    I tried creating a custom group then adding adding the All devices Group to it but it didn't find any devices.
    What am I doing wrong? Any help much appreciated.
    Thanks
    Brett
    This topic first appeared in the Spiceworks Community

  • How to locate clip within timeline containing specific filter

    Hi,
    I would like to locate in my timeline all the clips that contain a specific filter (in this particular occasion, MERCALI filter). But my timeline contains hundreds of clips. How do I locate the ones I am looking for without having to click on each and everyone of the cut clips?
    Thank you.

    That just isn't something that anyone asked for. Or not enough people, in any case.
    We have asked for a way to eliminate all filters.
    After Effects has a hotkey to show all modified parameters, so Premiere Pro could certainly have it. Put in a feature request.

  • Search for  a big varchar2 field that contains specific string

    Hi to all,
    I've created a table with VARCHAR2 column and size of 4000 and a CONTEXT index for it. I use this SQL statement to search for a field that contains a specific word:
    SELECT text_body
    FROM my_table
    WHERE CONTAINS(text_body,'my_word')>0;
    this goes so well in SQL plus, so how can I implement this in my form?
    Thanks.

    Dear Craig,
    I installed forms 10g R2 ,besides I corrected a fault in the LOOP syntax.Thanks, The code now is correct with the function CONTAINS. but when I run my form and push the button, my form takes lots of time and return two errors:
    frm-41839 "Disc I/O error on temporary record buffer file%s".
    and frm-40900 "Unable to locate record buffer. Clear form to continue".
    the second error occurs due to memory low space I think.
    Dear Morgan,
    You are totally right with the function INSTR, but I use the function CONTAINS as it has large capabilities in my search. I even use CTXCAT index instead of CONTEXT index ,with function CATSEARCH but the problem still exists. All of the previous ways run better in SQL but not in forms(without cursor). Suppose I'm wrong with this technique. Is there another way to make such a search?!
    This is the new code:
    DECLARE
         CURSOR cc IS
    SELECT *
    FROM my_table
    WHERE CONTAINS(MY_TEXT_FIELD,'first_word AND second_word')>0;
    copy_cc my_table%rowtype;
    BEGIN
         OPEN cc;
         FETCH cc INTO copy_cc;
              LOOP
              :FORM_TEXT_FIELD:=copy_cc.my_text_field;
         EXIT WHEN cc%notfound;
              NEXT_RECORD;
              END LOOP;
              CLOSE cc;
    END;
    Regards.
    Waleed.

  • Querying roles containing specific Authorization Object

    Hello!
    We're using BI7 with new considerations about security. I want to get all roles that contains a specific Authorization Object, I've tried using TX SUIM, but had no success.
    Is there any report, transaction or something else where to find this info?
    I hope you can help!
    Regards!
    Bernardo

    Bernardo,
    If "new security model authorization objects" means analysis authorizations (SAP's official naming for objects mantained by RSECAUTH), those used in roles can be retrieved again using tcode SE16: just query AGR_1251 but this time providing S_RS_AUTH for field OBJECT. The result set shows roles that contain analysis authorizations. If you want only the roles which have specífic analysis authorization, just provide its name for field LOW. Be sure to fill in this field with all capital letters.
    On the other hand table RSECVAL keeps the values defined for analysis authorizations.
    Hope this helps.
    Regards,
    Fernando

  • IOS blocking incoming SMS containing specific URL's

    Does anyone know if a SMS can get blocked if it contains a specific URL? We sent a link to customers in an SMS so they can track an order. Now all iPhones have started to block these messages that contain our URL to track it. other devices receive the SMS with the URL OK, so it looks like Apple is blocking it.
    They are only blocking our domain used for tracking, and not our other domains e.g company homepage.
    Is there anywhere we can request it to be unblocked?
    We tested on 6 different iPhones:
    IOS 7.xx
    IOS 8.02
    IOS 8.13

    Started carrer with afaria 7. I used to wonder as to why this feature not their in afaria while it works superb in case of Airwatch. You provided a workaround... Nice to see this.
    Nice work Abdelaziz!!!
    Hope this comes as a default  feature of afaria

  • I want to receive all emails a specific user sends and receives

    Hello,
    I am a SysAdmin of a medium-sized company, and for different reasons, I would like to configure/implement what the title says.
    I would like to receive all the emails a specific user sends and receives without him noticing (even the ones he is CC'ed).
    Is this possible? If so, how can I do it?
    Note: we are running Exchange 2010.
    Thanks in advance.

    Note that the CAL requirement is stated clearly in the link I sent:
    Standard journaling   Standard journaling is configured on a mailbox database. It enables the Journaling agent to journal all messages sent to and from mailboxes located on a specific mailbox database. To journal all messages
    to and from all recipients and senders, you must configure journaling on all mailbox databases on all Mailbox servers in the organization.
    Premium journaling   Premium journaling enables the Journaling agent to perform more granular journaling by using journal rules. Instead of journaling all mailboxes residing on a mailbox database, you can configure journal
    rules to match your organization's needs by journaling individual recipients or members of distribution groups.
    You must have an Exchange Enterprise client access license (CAL) to use premium journaling.

  • 'All Photographs' contains more photos than in folders

    All photographs collection contains more photos than in folders - (Using LR 4) There are about 6k more photos that are in my catalog (All Photographs) than what is showing up in my folders below.  All of my photos are located on an external hard drive.  I have them organized by year. So for example, if in LR I click on 'All Photographs' in the library module, I can see hundreds of photos from 2009. I can also see all these photos on my external hard drive under the 2009 folder. However , these photos do not show up under the folders in LR.  I've tried 'synchronizing' my folder in LR, but it thinks all of the photos are duplicates, since they are indeed already in the catalog (just not the folder)

    To tell you the truth, this kind of thing is nearly impossible to diagnose across the internet, so I have only a few pieces of advice on how to fix this.
    If an entire folder has been copied to the internal drive, and that's where you did the editing, but you'd like to use the copies on the external drive, then right-click on the Folder name and select Update Folder Location and point to the corresponding folder on the external drive.
    The other piece of advice I have is kind of trivial ... don't create more duplicates! don't put photos on your internal drive! If you yourself are more organized, then Lightroom will reflect that!
    Good luck

Maybe you are looking for