Query with two filter prompts(phase and document)

Hi All,
I am new to sap sourcing.
I am trying to customize a query for (Sourcing Report for all supplier registrations showing the cycle times for each
approval phase of the process)which I have added two filter prompts(phase and document name).
When I try to execute the query, I don't get the required output for the phase filter prompt.
Also phase is a value list and when I select the phase from the drop down, the report doesn't give any value.
Please find the query as mentioned.
SELECT <%RESULTS%>
FROM <%SCHEMA%>.FCI_WORK_ITEM
T1
INNER JOIN <%SCHEMA%>.FCI_WORK_PROCESS T2 ON T1.PARENT_OBJECT_ID =
T2.OBJECTID INNER JOIN (
SELECT
OBJECTID,
10002203 AS
CLASSID,
CREATED_BY_USER_OBJECT_ID,
CREATED_BY_USER_CLASS_ID,
CREATED_BY_USER_OBJECT_NAME,
CREATED_AT,
EDIT_AT_DATETIME, MODIFIED_AT
FROM
<%SCHEMA%>.ODP_ODP_VEN_MODIFICATION_WF
WHERE
CONTEXTID=<%CONTEXT(odp.vendormgmt.wf_vendor_modification)%>
UNION
ALL
SELECT
OBJECTID,
10002213 AS
CLASSID,
CREATED_BY_USER_OBJECT_ID,
CREATED_BY_USER_CLASS_ID,
CREATED_BY_USER_OBJECT_NAME,
CREATED_AT,
EDIT_AT_DATETIME, MODIFIED_AT
FROM
<%SCHEMA%>.ODP_ODP_VEN_REGISTRATION_WF
WHERE
CONTEXTID=<%CONTEXT(odp.vendormgmt.wf_vendor_registration)%>
T3 ON
T3.OBJECTID = <%COALESCE%>(T1.ROOT_PARENT_OBJECT_ID,
T1.BIZ_DOC_OBJECT_ID) AND
T3.CLASSID = CASE WHEN
T1.ROOT_PARENT_OBJECT_ID IS NULL THEN T1.BIZ_DOC_CLASS_ID ELSE
T1.ROOT_PARENT_CLASS_ID END
WHERE
T1.CONTEXTID=<%CONTEXT(workflow.process)%> AND
(T2.PHASE_SUB_REF_OBJECT_NAME like ?OR T2.BIZ_DOC_OBJECT_NAME like
<%ORDERBY%>
Please suggest how can I change the query accordingly.
Also , please suggest how can add the result fields for calculating the duration(created at - Action date).
Please do the needful.
Thanks and Regards
Ganga

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Hello Vignesh,
Thank you!!
I could find that only the supplier registration modifications are included in the query given by you, but we need to include the supplier registrations as well.
I tried modifying the query and it worked.
But, now the challenge is to include the workflow status(T1.APPROVAL_STAUS) in the filter prompt.
T1 table is FCI_WORK_ITEM.
T.APPROVAL_STAUS is an integer data type in the table.
I defined the T.APPROVAL_STAUS as string In Result fields and in the filter prompt.
But the query works for other filter prompts except workflow status.
I have included the filter prompts as mentioned below:
T1.CONTEXTID=<%CONTEXT(workflow.process)%> AND
UPPER(T2.BIZ_DOC_OBJECT_NAME) like ? AND
UPPER(T2.PHASE_SUB_REF_OBJECT_NAME) like ? AND
UPPER(T1.APPROVAL_STATUS) like ? AND
UPPER(T1.PERFORMER_OBJECT_NAME) like ?
<%ORDERBY%>
Please suggest on this.
Thanks and Regards
Ganga Durga

Similar Messages

  • What's the exact difference between "Query Def. Filter Value Selection" and

    Hi Gurus,
    what's the exact difference between "Query Def. Filter Value Selection" and "Query Execution Filter Val. Selectn" in info-object's "Business explorer" tab?
    I found out that if my info-object A has a input-ready variable in a query,after the query running,in  the selection screen,my info-object A's F4 value is follow the setting of "Query Execution Filter Val. Selectn",as the setting of "Query Def. Filter Value Selection" I tried every diff setting, it won't effect my query anyway.
    so:
    1.what's the exact difference between "Query Def. Filter Value Selection" and "Query Execution Filter Val. Selectn" in info-object's "Business explorer" tab?
    2.how they effect query's presentation?
    I searched forum,didn't find the answer what I want.
    Thanks everyone.

    Hi Denny,
    I will try to explain it again.
    Query Def. Filter Value Selection : Let say the value is set to "Only Values in Infoprovider"
    Lets take an example infoobject - 0MATERIAL (Material)
    Total material records in material Master = 1000 (master Data table /BI0/PMATERIAL)
    You create a query on top of an Infoprovider using Material.
    Total unique materials in Infoprovider= 500.
    Now when you are in design mode in Query Designer, and you try to restrict Material by few materials (for e.g. 1, 2, and 3), for this you right click on material and select Restrict, the pop-up opens with list of materials, this list is all those 500 materials which are in the infoprovider, because the setting is  "Only Values in Infoprovider". Which means then when you are trying to restrict a characterstic in query definition the list of values displayed for restricition is derived from Infoprovider.
    Query Execution Filter Value Selection  - I think you already know what it is , its the read mode for F4 help selection.
    I hope this helps.
    Thanks
    CK

  • Is it possible the current Mac Mini 2.7 Ghz i7 with two full-resolution displays and Thunderbolt operate?

    Hello,
    Is it possible the current Mac Mini 2.7 Ghz i7 with two full-resolution displays and Thunderbolt operate?
    Thanxs for your answers.
    Gerald

    On Second thoughts...
    I don't really know how well Logic Express 7 performs on the Mac Mini because I have not yet had the chance to experience the two together. Don't let that put you off the idea though! From my understanding of the system requirements printed on the Logic Express homepage, it states that a G4 or faster system is required, however Apple personally recommend a Dual G4 or G5 is recommended alongside a minimum of 512MB of Ram. This Does mean that Logic Express will run on the Mac Mini but you will most probably find it lags when moving samples in real time and rendering them onto your hard drive. If you really want to enjoy making "serious" music on the Mac then you really need to be looking at the iMac G5 or the iMac Core Duo (Intel) purely for your tempers sake. As for an Intel Mac Mini, there is no indication as to when we will be seeing one on the market and therefore you may find yourself on the fence between keeping your fixed budget and holding on a little or jumping in and getting on the right road to a digital musical life - mac style.
    Maybe this will inspire your decision:
    http://www.engadget.com/2005/02/08/how-to-turn-your-mac-mini-into-a-low-cost-rec ording-studio/
    Hope this helps
    -Pos

  • Is it possible to install Snow Leopard on a PC and to run it with two Nvidia Quadro Cards and 8 Screens?

    Is it possible to install Snow Leopard on a PC and to run it with two Nvidia Quadro Cards and 8 Screens?

    Furthermore, all new Macs since 2006 have been able to have Windows or Linux installed on them natively with virtualization engines*:
    http://www.macmaps.com/macosxnative.html#WINTEL
    You may even want to consider a used Mac Pro*:
    http://www.macmaps.com/usedrefurbished.html

  • Query with tables VEPVG, VBAK, VBAP AND KONV

    hi all,
    I have a requirement, that is Open Sale Orders which is having Special Discount. I am trying to write a Query, But KONV table is not coming into the joins. my execution plans is bellow
    VEPVG  -->  VBAK         vbak-knumv = konv-knumv and konv-kschl = Special Discount
                        VBAP
    Please explain me, how to design the query with conditions.
    Thanks & Regards,
    Srinivas

    Hi,
    Have you referred this help document.
    http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    Regards - Shree

  • Query with two spatial operators

    Hi,
    I need prepare query with sdo_any_interact and sdo_filter
    Following query doesn't work any ideas?
    SELECT ROWID, GEOMETRY, 'MVDEMO:L.MAJOR TOLL ROAD', null, 'null', -1, 'rule#0'
    FROM PARCELS P
    WHERE SDO_ANYINTERACT(P.GEOMETRY,
    (SELECT L.GEOMETRY
    FROM SHP_SIMPLYFIED L
    WHERE L.TASK = '4')) = 'TRUE'
    and MDSYS.SDO_FILTER(P.GEOMETRY
    , MDSYS.SDO_GEOMETRY(2003
    , 2180
    , NULL
    , MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3)
    , MDSYS.SDO_ORDINATE_ARRAY(482850, 236980, 510333, 248133))
    --, MDSYS.SDO_ORDINATE_ARRAY(:MVQBOXXL, :MVQBOXYL, :MVQBOXXH, :MVQBOXYH))
    , 'querytype=WINDOW') = 'TRUE'
    Kind regards,
    Tomek

    Hi Jack,
    Join - the same error:
    the error is
    ORA-00904: "MDSYS"."SDO_PQRY": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:
    *Action:
    Error at Line: 13 Column: 60
    TASK column - is not null, unique
    parcels are partitioned table (3 000 000 rows)
    i think this error is connected with partitoning
    in the first version i put any_interact into view with read only option
    select * from this view works fine but take a long time,
    next i build theme in MapBuider but preview return error (same), (MapBuilder buid query on view and add query_window filter to reduce number of objects)
    Thx,
    Tomek

  • Cl_rsr_chabit error while runing query with two new Nav attributes

    hi gurus,
    we mark two attributes as navigational and transport to production now the problem is when I run the query on those navigational attributes it is throwing me error as below:
    System error in programme CL_RSR_CHABIT and form SET_BITI-02(see long text)
    programme rror in class SAPMSSY1 method uncaughjt exception.
    and when I ran try to extract data on existing report from these attributes then it is showing me no data.Pls advice
    Thanks
    R

    Hello Michel,
    we faced exaclty the same problem today - re-activating the multiprovider solved the problem.
    Kind regards,
    Thomas

  • Query to check BP Payment terms and Document Payment terms

    Hi All,
    Can any one help me to create an approval query to check the BP payment terms and Document Payment terms are same or not?
    Normally we change our BP payment terms regularly as per the agreements between Customer and us.
    but when we copy any previous document into invoice it calculate the Due date as per previous payment terms. so we need an query to check wether the BP payment terms and document Payment terms are same or not? if it is different they it should ask for authorization from manager or else the document should be saved.
    Thanks in Advance,
    Prachi.

    Hi
    I will test this and will let you know if it works or not?
    Thank you very much.
    Prachi.

  • Adobe took early termination penalty   $ 764.30 from my account 10days ago insisting staff mistake but never returned  $ 764.30 back. I have chatted with two staffs for this and all I got was "please wait with patient"... 10 days already have passed since

    This is totally insane!! They took someone's money in a sec by 'MISTAKE' but haven't returned after 10days.
    I already have chatted with two staffs about this but different from what they promised, this still has not solved yet!
    My devoted time for this was totally wasted and I am still in suffering.
    I think this is theft!!!  What shall I do more?!

    I am really sorry to bring this issue to the forum but had no choice. Like I mentioned above, I already have contacted them but never returned me back. Sick of chatting with those staffs who act like answering machine and wasting my time because of their mistake. After I finally decided to post this last night, then they called me this morning that I have to wait 5days more.
    Sorry again, and thanks for your reply.
    J

  • Crystal report based on BW query with two structures

    Hi,
    I use a BW query with 2 structures. In the rows there is a structure of restricted characteristic 0material. I used this characteristics several times in different rows to restrict these rows to specific products.
    Cars
    motorcycles
    Others
    In the columns I have a structure of key figures. Every key figure is restricted to a specific time intervall.
    So in BW the executed query looks like this:
                           Key figure 1         Key figure 2        Key figure 3
      Cars                   10                     30                         100
      motorcycles        20                   100                          30
      Others                30                    40                           39
    If I use the same query in Crystal then I have access to the 3 keyfigures and to one structure element.
    How can I ensure that the query is displayed in CR like in BW? I tried to work with crosstabs but I was not able to get the same display like in BW.
    Thanks for any help.
    BR, Andreas

    Try posting your question to the BW / SAP forum.

  • Can a real Server be applied in two different server farms associated with two different VIP IP and TCP Port

    Good day everyone,
    I have a question in regard to real server operation with different server farms, and VIPs
    Can a Real Server be associated ( for simpliciy) with two different Server Farms that have a VIP associated with each, servicing the same TCP Port (443).
    Example:
    SF-A
    RSRV-1: 192.168.1.10 /24
    RSRV-2: 192.168.1.11 /24
    VIP-A: 192.168.1.20 /24
    VIP-A: https:web-A
    Protocol: HTTPS
    SF-B
    RSRV-2: 192.168.1.11 /24
    RSRV-3: 192.168.1.12 /24
    VIP-B: 192.168.1.30 /24
    VIP-b: https:web-B
    Protocol: HTTPS
    Client-A: 172.16.128.10
    Client-B: 172.16.128.15
    I have attached an sketch depicting the connectivity.
    As always any feedback/Suggestions will be greatly apprecaited.
    Cheers,
    Raman Azizian

    Raman,
    This type of config is no problem. What the server is doing is virtual web hosting. The server would have two different web services running for the same IP, but each listening for a unique host header.
    From an IP point of view both connections would be destined to the rserver address on port 80, but in the http header they would have two different Host headers.
    one for www.example1.com and the second for www.example2.com. If the web server is configured correct so each host name is tied to one web service it will not have any issues.
    The config you attached looks ok. The way you have the sticky group is ok doing source IP. If you use cookies for the sticky group I would suggest you create two sticky groups each with a different cookie name and add the same serverfarm to both groups. The client will only send a cookie for the domain it received it from so using the same cookie in two vips could cause problems if the same client hits both vips.
    Hope that helps
    Regards
    Jim

  • Query with two registers, when i use two taxcode

    Hi everybody, my question in this opportunity, it's about  this query:
    /*LIBRO DE COMPRAS CELULAR STRA S.A. DE C.V.*/
    SELECT T0.[TaxDate] Fecha,
           T0.[NumAtCard] 'DOCUMENTO',
           T1.[U_RegIva] 'NRC',
           T0.[CardCode] 'CODIGO DE PROVEEDOR',
           T1.[U_NIT] 'NIT',
           T0.[CardName] 'NOMBRE DE PROVEEDOR',
           SUM(CASE 
                  WHEN T2.[TaxCode] = 'IVAEXE' THEN T2.[LineTotal]
                  ELSE 0
               END) 'LOCALES EXENTAS',
           0.00 ImportacionesExentas,
            (SELECT sum(T12.[LineTotal]) FROM PCH1 T12 INNER JOIN OPCH T10 ON T12.[DOCENTRY] = T10.[DOCENTRY] WHERE T12.[AcctCode] != '11209' AND T12. [TaxCode]  = 'IVACCF' AND T12.[DOCENTRY] = T0.[DOCENTRY]  AND T10.[TaxDate] >= '[%0]' and T10.[TaxDate] <= '[%1]') 'LOCALES GRAVADAS',
            0.00 Importaciones,
            T0.[VatSumSy] 'CREDITO FISCAL',
                  T0.[DocTotal]+
    T0.[DocTotal] -(CASE
                         WHEN  T2.[ACCTCODE] = '11209'
                         THEN ((SELECT (T12.[LineTotal]*-1)
                         FOM PCH1 T12
              INNER JOIN OPCH T10 ON T12.[DOCENTRY] = T10.[DOCENTRY]
                    WHERE T12.[AcctCode] = '11209' AND
                    ---T12.[TaxCode]  = 'IVACCF' AND
                     (T12.[DOCENTRY] = T0.[DOCENTRY])  AND
                         T10.[TaxDate] >= '[%0]' and T10.[TaxDate] <= '[%1]'))
                           ELSE T0.[DOCTOTAL] END) 'TOTAL COMPRAS', --This statement, cause the error, or,  think so i
            (SELECT SUM(T13.[WTAMNT]) FROM PCH5 T13 WHERE (T13.[WTCode] = 'RET1' OR T13.[WTCode] = 'RET2') AND T13.[ABSENTRY] = T0.[DOCENTRY] )'RETENCION IVA',
           0.00 ComprasExcluidos
    FROM OPCH T0
       INNER JOIN OCRD T1 ON T0.[CardCode] = T1.[CardCode] INNER JOIN PCH1 T2 ON T0.[DocEntry] = T2.[DocEntry]
    WHERE T0.[TaxDate] >= '[%0]' and T0.[TaxDate] <= '[%1]' AND T1.[Country] = 'SV' AND T0.[Series] = 7 and
       t0.docnum not in (SELECT distinct T0.[DocNum] FROM [dbo].[OPCH] T0 INNER JOIN [dbo].[PCH1] T1 ON T0.DocEntry = T1.DocEntry
                                                                          inner join RPC1 T2 on t1.trgetEntry=t2.docentry INNER JOIN ORPC T3 ON T2.DocEntry = T3.DocEntry
                         WHERE T3.[TaxDate] >= '[%0]' and  T3.[TaxDate] <= '[%1]' and t3.series=9) AND
          T0.NumAtCard NOT LIKE '%F%' AND
          T0.NumAtCard NOT LIKE '%REDIGIT%'
    GROUP BY T0.[TaxDate],
             T0.[DocNum],
             T0.[CardName],
             T0.[CardCode],
             T1.[U_NIT],
             T0.[VatSumSy],
             T0.[DOCENTRY],
             T0.[DocDate],
             T0.[DOCTOTAL],
             T0.[NumAtCard],
             T1.[U_RegIva],
            T2.[AcctCode],
            T0.[DocTotal]
    the result shows two line with the information of one vendor invoice,
    example:
    numatcard     cardcode      tax exempt     local shopping   tax     total
    12345           0125             0.00             100         13      115
    12345           0125             2.00             100         13      115
    i think this be must to tax indicator, because in the document i use two diferent taxcode. i need help to avoid this error, if somebody know how resolved, me will great util

    Well Gordon,
    If you see in the statement, the register is in one line:
    (SELECT sum(T12.[LineTotal]) FROM PCH1 T12 INNER JOIN OPCH T10 ON T12.[DOCENTRY] = T10.[DOCENTRY] WHERE T12.[AcctCode] != '11209' AND T12. [TaxCode] = 'IVACCF' AND T12.[DOCENTRY] = T0.[DOCENTRY]  AND T10.[TaxDate] >= '[%0]' and T10.[TaxDate] <= '[%1]')
    to better expalin.
    i have this line  without tax, i only need a statement in the that be sum, the line of tax exempt + line without tax + tax total.
    if you see in the query, i've excluded the acctcode = '11209', really without this filter, only  i need select the doctotal to view the result. but if, i do a statement where only excluide the document line where appear this account, the quey returns a wrong

  • Column chart from Bex query with 2 characteristics in rows and column

    Hi,
    We're trying to represent the following column chart in Dashboard Design:
    Material/Month
    January
    February
    March
    Material 1
    100
    200
    300
    Material 2
    400
    500
    600
    Material 3
    700
    800
    900
    The BEX query has:
    Result objects: Material, Month/year; amount
    The problem is when i paste the Material dimension in the Excel, i'm getting the following result:
    Material/Month
    January
    February
    March
    Material 1
    100
    200
    300
    Material 1
    400
    500
    600
    Material 1
    700
    800
    900
    So, when i display the column chart, the material tag is incorrect:
    as the image attached shows.

    Hey Flora,
    Happy to hear that its working now.
    Answering your question, again its upto the connection and report format you are using. Based on your question i hope you your report output should be like this.
    You cannot map to two labels for the series, again this report format is possible only in cross tab through Webi. I would suggest you to concatenate the material and month in a dimension in webi like below.
    I have done the concatenation in excel level, i would suggest you to do that in webi. Try to reduce the formula as much in excel.
    or
    If you are using Query browser connection, then i would suggest you to create a separate report which will display the actual vs plan material wise, here you need to pass the material as a prompt.
    Hope this helps in clear, please revert me for any clarification.

  • Problems with two apple ID's and synching of contacts

    I have accidentally created two apple ID's: one without an email domain and my actual one linked to my accounts everywhere on my Mac, iCloud and iPhone.
    I am trying to sync my contacts from my iPhone that have synced with hotmail into iCloud and it won't do it. I have synced what I have in iCloud with the phone though. Also, how come you cant sync contacts from Google anymore when you add your google account mail?
    Secondly, I am trying to update aps and it gives me the other ID to sign in with instead of my actual account even though the account is entered into my iPhone correctly (in iCloud).
    My actual iCloud account from the iCloud website does not have all the tabs that I have into my iCloud account on my Mac. Any ideas how I can fix all this mess?
    Thank you in advance for the suggestions.

    Setup another user account on your Mac. You use your Apple ID on your account and the other person on theirs.
    Open System Preferences > Users & Groups then select the Password tab.
    Click the gold padlock icon bottom left corner of the window. You will be prompted for your admin password.
    Now click + to create a new acocunt.
    Select:  Show fast user switching menu as and make a selection.
    You should see an account name top right corner of your screen. From there you can switch accounts.

  • Problems with two new LCD monitors and my G5 Power Mac

    I bought two of these Westinghouse Digital LCD monitors:
    http://www.macaddict.com/issues/2005/11/reviews/lcm
    When I plugged in the first one, my Mac's power-on light was on, but the Power Mac G5 (1.6 ghz, 1.25 gb RAM) wouldn't boot and the light wouldn't go off. No problems once I unplugged the first LCD monitor. I plugged it into the second one and the Mac turned on once it was plugged in, but at least I had an image. But the computer was frozen; I unplugged and re-plugged it into the first LCD and had an image, but again, it was frozen.
    Any ideas why this is happening? I'm going VGA into the DVI via Apple's adaptor.
    Help and thanks,
    Heath McKnight
    Power Mac G5 1.6 ghz   Mac OS X (10.3.9)   Single processor, 1.25 gb RAM, 80 gb hard drive

    Okay, well this is interesting. If I take the brightness down too much, I see "ghosting" on EVERYTHING, including text. Also, when I shut down the Mac with monitor 2 plugged in, the one that when I plug in the LCD it turns the Mac on, it restarts the computer. I did this twice to insure I wasn't just hitting restart by accident. I'm calling tech support Monday (Westinghouse) and I think I'm taking these "good on paper" 16x9 LCDs back to Best Buy for a full refund. Then, I'll buy something different. I'm bummed out...
    heath

Maybe you are looking for

  • HT1329 Can I reformat a video ipod from a mac format to a windows format?

    I am wanting to give my old video ipod to my mother. The problem is that I use a mac and she uses a PC. Am I able to reformat this ipod to a PC for her?

  • AIM account on Messages keep going offline

    Hello, I recently installed Mountain Lion on my iMac (iMac10,1) and added my AIM account to Messages. When I am using Messages, my AIM account frequently goes offline by itself (and sometimes reconnects again). I was wondering if this has happened to

  • 8 Hours Making a Book and it's GONE

    Spent all night last night making a travel book with new "improved" iPhoto 7.0.1 and the whole project just DISAPPEARED on me. Talking to Apple product expert on the phone lead nowhere. The brilliant new architecture which stores everything (raw data

  • Plug-in failed to load successfully - QuickTime Plug-In 7.2

    When I try to open Steve Jobs' Quicktime presentation, I get the following error message: *The page "Apple - QuickTime - September 2007 Keynote Address" attempted* *to load an Internet plug-in named "QuickTime Plug-In 7.2", but the plug-in* *failed t

  • Auto-detect DIsplayPort or MiniDVi?

    Hi there I am just about to hook up my Mac - and I am going to use the DisplayPort to HDMI adapter offered by Monoprice. The question is - If I only hook-up the DisplayPort (and not the MiniDVI port) will the display work - will it auto-detect that t