Query for SAP-eSourcing

Hello Experts,
I am looking for an option where i need to extract the following details from DB.
My requirement is to fetch the Agreement Profile ID, Name of the Stakeholder, Stakeholder Role Name from the Agreement Profile.
The filter of the query is the given user name. So with a given query if i use the user name as filter the query should return all the AP IDs, Name of user (stakeholder), stakeholder role name for a Agreement Profile table.
I tried to run the below query but it is not giving the expected results, it is also displaying the AP IDs in result to whom this user is not a stakeholder at all. not even in the Groups also. Below query i am running for user whose name is XYZ
SELECT DECODE(T2.COLLABORATOR_TYPE, 1, T2.USER_NAME_OBJECT_NAME, 2, T2.USER_GROUP_OBJECT_NAME, 5, T2.COMPANY_OBJECT_NAME ), T2.COLLABORATOR_TYPE, T1.UNIQUE_DOC_NAME, T2.COLLABORATOR_ROLE_OBJECT_NAME FROM FCI_CONTRACT T1 JOIN FCI_DOC_COLLABORATOR T2 ON T1.OBJECTID = T2.PARENT_OBJECT_ID WHERE T2.DISPLAY_NAME='XYZ' AND T1.INACTIVE = 0
Any help is greatly appreciated.
Regards,
Jagjit Singh

Hello Tayi,
Thanks for your reply. I tried but still it is all the same. No improvement.
Regards,
Jagjit Singh

Similar Messages

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • BEx Query for SAP BO WebI issue

    Hello Experts,
    I am facing a problem in BEx query which is feeding SAP BO WebI 4.0 (SP5) via BICS.
    BEx query designed on top of a Multiprovider consists of two standard InfoCubes namely ZBW1 and ZBW2.
    We need "ZPRCTR" from InfoCube ZBW1 and the Key Figures (Calculated Key Figures based Restricted Key Figures) are from InfoCube ZBW2.
    Now, the problem is we are not getting the data for this combination.  Any suggestion will be appreciated.
    Thanks in advance
    Indra

    Is ZPRCTR available in ZBW2 also? If not, then it will not give the desired result.
    Check the below url:
    https://help.sap.com/saphelp_nw73/helpdata/en/4c/2226c805e65792e10000000a15822b/content.htm?frameset=/en/4a/40bf3597ea1d0fe10000000a42189c/frameset.htm&current_toc=/en/a3/fe1140d72dc442e10000000a1550b0/plain.htm&node_id=251
    Regards,
    Suchitra

  • Query for SAP NW 7.0 and ECC

    Dear ALL ,
    We  have purchased SAP NW 7.0  License .We have installed it with 2 components WAS ABAP and WAS as JAVA.
    Now my question is: this SAP NW 7.0 installation does not contain any functional module like SAP HR.MM,FI  etc...
    for this requirement do we need to take a separate license of SAP  ECC or do we need to install some contentson this SAP NW 7.0 server  so that we can run  functional code on this server????
    Please suggest....
    Thanks
    sandeep

    Hi Sandeep.
    The problem is not only the license, but also the application itself. If you have installed NW, your system don't have the tables and programs needed to execute business modules like FI, SD, MM, etc.
    If you need those modules, you have to install an ERP 6.0 from scratch.
    Regards
    Francisco

  • Issue in transaction code creation for sap query report .

    Hi  Gurus,
    I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
    1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
    2) By using parameter transaction options in start object of se93
    What are the difference between creation of these two ways. Please specify  the advantages and disadvantages of both methods.
    Regards,
    Suneel Kumar Uggina.

    Hi Jogeswara Rao,
    But I am getting problem while transporting form development system to  the production system. After transporting to Production system  I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And  I would like to know  on what conditions should I have to  use the First one  and as well as a second one in sap query reports.
    Thank You,
    Suneel Kumar Uggina.

  • Transaction code for SAP query reports

    Hi All,
    I am trying to create transaction code for sap query report but couldn't go further.
    1) Created User group in SQ03
    2) Created infoset in SQ03 and assigned that to the user group
    3) Created query in SQ01 using the infoset.
    I executed the report in SQ01 and it is working fine.
    Now I try to create a transaction code in SE93 using the steps mentioned in the following link:
    Assign transaction code to SAP Query (created via SQ01)
    But when try to execute the report using the transaction code, it is giving error message 'User group xxxxxx is not yet created'
    Could any one advice me if I miss something? Or please help me to create this transaction code and transport to production?
    Thanks in advance

    HI,
    based on the thread you've already mentioned:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-EXTDREPORT = Name of the Query
    D_SREPOVARI-REPORT = User Group
    So check if the user group is typed correct in SE93 and check also if the user group exits in the system where you are trying to run the transaction.
    best regards, Christian

  • Require TCode used by user for sap query created through SQ01

    Hi All,
    I have number of SAP Query in production that currently are used by different-2 user & created through SQ01
    My question is how to know the TCode that used by user for SAP Query.
    Thanks In Advance
    Regards
    San

    Charlie
    You did not get the question.
    I knew the TCode of the query which I had created using tcode SQ01. user is using this query to see the report
    Like I created query named 'order_line_details'. This query is basically to see the order & other details. To use this by user one TCode'zncv_ord_item'  has been created.
    So in the system lots of query are available. So i want to know the Tcode for those query that are using by user.
    Thanks in advance
    San

  • We are interested to know how/where to check query runtimes for any Query in SAP BW?

    We are interested to know how/where to check query runtimes for any Query in SAP BW?
    Is there any table or program to get the query run time details per query for a particular day.

    Hello Sravan,
    Bex statics tables would be 'RSDDSTATHEADER','RSDDSTATINFO' & 'RSDDSTATEVDATA'. all these can found in one view 'RSDDSTAT_OLAP'.
    above can give historical statistic.
    For current Query statics : T-code RSRT, and select debug mode select display statistics and then execute.
    Once you get the output press F3(one step back), there you can see statics of the query for that particular execution.
    Thanks,
    Mallikarjuna

  • Tcode for sap query

    hi experts,
                   Pls let me know how to create a tcode for a SAP query .I am using infoset query for combining two tables.I have created a query and the report is working properly .now i need to create a tcode for end users to work on it .when they enter the tcode it has to go to the selection screen ie variant part of my report.

    Hi,
       Go to se93 and select the create button.  You will then be asked to writed down the tcode of your choice then create a short text for that tcode. Select the 2nd option button w/c is the "Program and Selection Screen (report transaction)."  Press enter.  Then key in the program name and the variant you saved in the program.  When transporting to Prod, Save the variant there as well.  If you placed "DEFAULT" in the creation of tcode, you should also save "DEFAULT" variant in production.  Hope this helps.

  • Transport request for SAP Query - SQ01, SQ02, SQ03

    Hi Experts,
      I have a doubt, Whether we can have request for SAP Query which have created from Transaction SQ01.If Yes then How to do that....?
    Thanks in Advance,
    Chetan Joshi

    Hi,
    Use the program RSAQR3TR
    Thanks
    Naren

  • SAP Query for the report

    Hi,
    Can you all help me?
    Is there any area or a table or query in SAP, which can create a list with the purchase order number (Field name EBELN),supplier(Field name SUPERFIELD) and header text(Field name EDITOR).
    Please tell the table name that fetches all values from the same table.
    Regards,
    Smitha

    Hi,
    Try to Combine EKKO, EKPO & T166P tables and take common fields like:
    EKKO:
    EKKO-BSTYP
    EKKO-BSART
    EKKO-EBELN
    EKKO-LIFNR
    EKPO:
    EKPO-EBELN
    T166K
    BSTYP
    ESART
    TDID = F01
    You can use this for your customization.
    regards,
    Maia
    Edited by: Maia on Jul 23, 2008 5:22 PM

  • Default value for SAP Query - SQ01

    Hi Expert,
    I made a query for GL master data, and I have a selection criteria on chart of account, but since the chart of account for all company codes are same; therefore I would like to default the chart of account selection criteria to my COA.
    I read through question/answer in the following thread: SQ01 - restriction on Infoset but solution given by Lalitha Manda ... I cannot get the given selection path.
    Kindly advise, and I am using ECC6.0.
    Thanks,
    sbmel

    Hi,
    You need to go to the infoset of the query (transaction SQ02), or in SQ01, after input of the SAP Query, click on 'Infoset Query'.
    In the right frame You will get a list of fields for selection. There You can default the value of selection field GL Account in the column 'Value'.
    Regards,
    Birendra

  • OpenDocument URL for SAP BW query

    Hi,
    We have built universe on top of SAP BI query and created the variable for Fiscal Year. When I run any WebI report created from the same Universe it automaticaly pops up the window to pass the parameter for Fiscal Year.
    I have created two reports one Parent and other one is child. For the child report I am passing the Fiscal Period value as Period 05 2010. When I click on Parent report link to show child report it shows me the MDX error instead of report. (The report works fine without link)
    Prompt Name: Fiscal Year
    Values: Example Period 04 2010,Period 05 2010, Period 06 2010 etc
    URL is:
    ="<a href='../../opendoc/openDocument.jsp?sPath=[PublicFolder],[MSS],[MSSScorecards]&sDocName=Scorecard&sType=wid&sWindow=Same&sRefresh=Y&lsSFiscal+Year=Period 05 2010'>Click</a>"
    Please suggest me if I am missing anything in the URL and let me know how to format the URL for SAP Query based universe.
    Environment:
    BOE XI3.1 (Web Intelligence)
    SAP Integration Kit 3.1
    SAP BI 7.1
    Thanks,
    Moogi

    Hi,
    the product group is working on extending the functionality of the int.Kit and improving the integration between BOBJ and SAP in general. Stay tuned for future releases.
    Regards,
    Stratos

  • Need to find SAP query for corresponding ABAP program.

    Hello SAP Experts,
    I have an ABAP program "AQDESYSTQV000001ORDERDETAILS==" in ECC 4.7. We had a client copy recently from ECC 4.7 to ECC 6.0. Now in ECC 6.0 I am unable to find this program in SE38.
    Can you please tell me how to create this program in ECC 6.0 ? Also, by the name of this program it is clearly seen that this program is automatically created by using SAP query.
    I tried to generate the program using SQ01, but system asks me for the SAP query.
    Can you please tell me how to find the SAP Query for the corresponding abap program ? Also, the steps as in how to generate the program in ECC 6.0.
    Thanks.

    Hi Danish,
    In the program name, the query name is always attached.
    For example : The program name is , AQ10SD==========Z10SD_INVPRODL=
                           Here the query name is Z10SD_INVPRODL and if you go to transaction SQ01 and enter the query name
    then you can find the infoset.
    And also you can gernate the program with the help of query name.
    Please try the same and let me know if any details are required.
    Regards,
    Darshana

  • Basic SQL query scripts for SAP B1

    hi guys,
    do you have any documents, guides or reference links regarding basic SQL query scripts for SAP B1?
    thanks and have a nice day!
    blake p.

    Hi
    You can also check SBONotes.com.
    For sql understanding , you can search in websearch - tsql and it will pop up with informations you need.
    You can also refer to forum once you understand the basic techniques
    Hope this helps
    Bishal

Maybe you are looking for

  • Clicking on a link to open a new page or tab gives me a blank page.

    If I click on a link to open a new page or a new tab, the page that opens is always blank and no address is in the address bar. Also, occasionally, my refresh button is "grayed" out so I can't hit that either. I think this is some sort of security se

  • After downloading the latest Itunes software, I can't connect any device to Itunes!

    After downloading the latest Itunes software, I can't connect any device to Itunes. I am using windows 7!

  • Flash Builder 4 States.

    When you use States, is it doing more than a .visible = false/true type thing? If you have a event listener on a button from one state, and you go to another state, does that event listener stay with it, or does it dissappear, and you have to re-assi

  • Every Google News auto-refresh appears as a separate History entry

    I use Google News as my home page, and it's usually open in a tab. I notice that my History creates a new entry every time that GN auto-refreshes (every 15 minutes). I don't think this was the case before I upgraded to Ff4.0. Even though each History

  • Have to constantly render titles . . .

    Hello - Does anyone know why all of my subtitles would need to be rendered everytime I move something in a sequence? I'm thinking it has to do with their format not matching the sequence.  Am I right?  I tried futzing around with the aspect ratio, bu