Approval Based on Query

Hi,
I want approval procedure for inventory transfer when my destination warehouse is 'ABM'
I tried folowing 2 queries but not working
SELECT 'TRUE' WHERE $[WRT1.WhsCode] = 'ABM'
or
SELECT DISTINCT 'TRUE' WHERE $[WRT1.WhsCode] = 'ABM'
Please help
thanks

Let us take we have three warehouses
According to this i have explained this
Create one UDF on Header Level as To Warehouse
SELECT 'TRUE' where $[$UDF]='warehouse1Code'
SELECT 'TRUE' where $[$UDF]='warehouse2Code'
SELECT 'TRUE' where $[$UDF]='warehouse3Code'
Save this three quires.
and select warehouse1 to warehouse1 user user defaults, same for 2 and 3.
Go to Approval Stage and Create New Select the user as Warehouse 1 user
Create same for 2 and 3
1. Create Approval template 1 with orginaters 2 and 3 warehouse users. and stages as approval stage1 where warehouse 1 user is selected.
Documents as Inventry transfer document.
Terms Click on when the following applies.
Quirey name Select the quirey name as  quirey with 1st warehouse
Create for second and third warehouse as same.
It will work fine for approval in inventory transfer.

Similar Messages

  • Approval Procedure based on query

    Dear All,
    I'd like to make approval procedure based on query.  The condition is when the AP Invoice document created based on GRPO and there's a different Amount (AP Amount <> GR Amount) then it should trigger the approval procedure.
    Do you have any idea about the query structure?
    Thanks

    shobah,
    try this below query like this
    Select TRUE From OPCH Where DocTotal > 25000
    Jeyakanthan

  • In R12 can we have approval based on rules like Cost Cente or Account?

    Hi All,
    -In R12 GL can we have approval based on rules like Cost Centers or Account. I know a rule based on Amount can be setup
    -In R12 GL can we use the PO hierarchy and its Rules
    Thanks.

    Dear Srinivasan Muthu,
    Assuming that Red,Blue and white are the values for the chracteristic say Colour and if this assigned to
    a class type say 023 batch,while uploading the stock,the system asks the chracteristic value.
    Say suppose if you are entering 561in MB1C or 101 movement in MIGO for that material and if you
    select for Blue,then in MMBE you can click on the stock quantity and right click-->batch classification.
    The system shows for Blue colour.
    check and revert back.
    Regards
    Mangalraj.S

  • Print layout designer for develop report based on query

    Dear Experts/Gurus,
    I am amazing about the manage previous reconciliation report. When I opened it using print layout designer, it looks like the report is not built using query, but I am not sure yet. This is very confusing. I created query similar with manage previous reconciliation (MPR), but when I link the query to print layout and try to make similar format/appearance with MPR report (reconciliation management (system)), it is not success.
    Isn't the MPR report built not based on query ? I appreciate your answer. TIA
    Rgds,

    Hi,
    I am not sure I understand what's the problem:
    Is it the layout that is different or the data?
    Regarding the data you can use SQL Profiler (maybe you did?) to find out what queries are fired, but please note that there are some stored procedures in the DB that are used for some specific functions - not sure whether the "MPR" uses any of these.
    Then you must include some non-default filter in SQL Profiler...
    ...but you can also use the logging functionality in B1 for that purpose:
    Just activate the logging (see the "log" folder in the B1 subdirectory) in the corresponding config file: choose the option to have the SQLs logged in conjunction with the logging being triggered in all cases (not just error).
    Thus you will get all the SQLs - just plain - from the B1 application, but note that it will obviously slow it down!
    HTH,
    Frank

  • Adding a custom meta data field which lists out content id based on query

    How can we add a custom meta data filed which lists out content id based on query like dDocType <matches> `AssociatedProduct`?
    Or other alternative would be to have a custom metadata field such that it allows selection of content id using link wizard which we typically use in site studio. It would be preferable to have this second option as it is user friendly. Can we do this on a check-in screen?
    -Pratap

    Thanks for the reply Deepak.
    We got it resolved. We did following changes in /ucm/custom/SiteStudio/resources/ss_custom_field_resources.htm file and it worked cleanly.
    Added following section at the end before body tag
    ===================================================================================================
    <@dynamichtml ss_parent_definition_field_entry@>
         <$include super.std_edit_entry$>
         <$if isQuery and isTrue(isQuery)$></td><td><$endif$>
         <$include ss_contributor_base_scripts$>
         <script type="text/javascript" src="<$HttpRelativeWebRoot$>resources/<$SSContributorSourceDir$>/sitestudio/wcm.contentserver.popup.js"></script>
         <script language="JavaScript">
         function OnSelectParentId()
              var selectParentIdOptions = {};
              selectParentIdOptions.httpCgiPath = '<$HttpCgiPath$>';
              selectParentIdOptions.queryText = 'dDocType <matches> `Country`';
              selectParentIdOptions.coreContentOnly = '<$if coreContentOnly and isTrue(coreContentOnly)$>1<$else$>0<$endif$>';
              selectParentIdOptions.callback = function( returnParams )
                   returnParams = returnParams || {};
                   if( returnParams && returnParams['dDocName'] && ( returnParams.dDocName.length > 0 ) )
                        // Set the actual metadata value
                        <$if isQuery AND isTrue(isQuery)$>
                             for (var i=0; i < document.<$formName$>.elements.length; i++)
                                  var elt=document.<$formName$>.elements;
                                  if (elt.name=="<$fieldName$>")
                                       elt.value = returnParams.dDocName;
                        <$else$>
                             document.<$formName$>.<$fieldName$>.value = returnParams.dDocName;
                        <$endif$>
              WCM.ContentServerPopup.ChooseManagedDocument(selectParentIdOptions);
         </script>
         <input type="button" value="<$lc("wwBrowse")$>..." onclick="OnSelectParentId();">
    <@end@>
    ======================================================================================
    Then modified the section which show xWebsiteSection, xRegionDefinition etc to include my custom meta data defitnion as well ('xParentContentType')
    ===================================================================
    <@dynamichtml std_edit_entry@>
         <$if fieldName and ( fieldName like "xWebsites|xDontShowInListsForWebsites" )$>
              <$include ss_website_query_text_field$>
         <$elseif fieldName and strEquals( fieldName, "xWebsiteSection" )$>
              <$include ss_website_section_field_entry$>
         <$elseif fieldName and strEquals( fieldName, "xRegionDefinition" )$>
              <$include ss_region_definition_field_entry$>
         <$elseif fieldName and strEquals( fieldName, "xParentContentType" )$>
              <$include ss_parent_definition_field_entry$>
         <$else$>
              <$include super.std_edit_entry$>
         <$endif$>
    <@end@>
    ====================================================================
    This worked fine.
    Regards,
    Pratap

  • GRC AC ARM/ARQ: Approver based on Business Unit / Company...

    Dear all.
    I am wondering if it is feasible to stablishn approver based on a Business Unit / Company.
    That is to say:
    At the Access Request Creation functionality the requestor could indicate the first name, last name, ....and also it could indicate an specific company, or business unit.
    The requestor also assign some roles for some system.
    The requestor Submits the request and it goes to the approver assigned to the company
    Regards and thank you.

    Hi Neraaj. Thanks for your reply, was great!
    So now i am moving to next level. My idea is as follow:
    have a user requestor who creates Access Request. They set the user id, the name, last name and the Organization (not the department, not the company,...)
    I want to create a BRF+ to send the request to an Organizational owner for the Organization set by the requestor.
    For that i don't want to create an agent rule because i have to maintain the relationship Organization-Owner into the decision table.
    I want to create a BRF+ rule to fecth the owner of the Organization. Where is this owner set? I want to upload a Organizational strcuture into the Access Control organization Master Data. For each Access Control Organization view you can set different tabs AC users, AC roles and Owners. Just like into the image below:
    For that i suppose i need a DB Look up just to search for the Owner set in that tab but i am not pretty sure about:
    Where is this relationship located?. I have check at HRP100X tables and i found the organizations objects and more data but nothing like the approver.
    Once i have found this relationship i don't know if it is possible to get the owner into a variable and set this variable as the result of the function.
    Any advise will be well come.
    Regards and thank you.

  • ADF dynamic ViewObject based on query. how to get attributes?

    hi.
    i have an read-only view object based on query like this:
    SELECT :func(:paramm) as EMP_SAL from dual
    and set :func & :paramm parameter by vo.setNamedWhereClauseParam(..) function.
    but i couldn`t get EMP_SAL attribute after executeQuery command.
    in another case i would set new whole Query by vo.setQuery(..) but the problem exists.
    please help me. how to get attribute in such vo objects!
    thanks!
    Morena!

    thanks to Quick reply!
    i seek into code and found a uninitialized Parameter in view object. error has gone after correct the problem!
    and now could get the attribute value.
    thanks so much!
    /\/\ o r e n a!

  • How to embed chart/grafic into bex report (workbook) based on query result?

    Hi friends,
    Since I have never embedded any Charts/Grafic based on query report, I am wondering if you could share your knowledge?
    Thanks for your help in advance!
    Regards,
    Sally

    Hi Sally,
    You can create chart into workbook based on the query data.
    Execute the query it will show result in excel sheet. In the tool bar of the sheet you find 'Chart wizard' icon . Select the icon, it will ask for the type of the graph. After select the ranges of the data from result. It will display the graph. Then you can save the workbook.
    Graphs can be embedded in different sheets.
    Hope it helps.
    Regards,
    Aditya

  • Approval Template based on Query

    Hi All,
    I want to wirte a query for defining approval templates.If any document (both on sales and Purchase side) is raised by a non-superuser,it should be sent for approval ,to the superusers ,before it is posted.
    we have set approval templates for this.
    But now,if the document contains the items with group code '101' ,then it should be sent for approvel to the superuser 'A' alone.(it is sure that in a single document items with different group codes will not be present).Others should be sent for approvel to superuser 'B'.
    I know that this can be done only by using "Terms based on Queries" in approval templates.
    I have never used this before.Can anyone help me with the query for this template?
    Thanks& Regards,
    V.M.Nivasini

    Hi
    The query is like this
    SELECT T2.[ItmsGrpCod],T1.[ItemCode] , T1.[Dscription] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode WHERE T2.[ItmsGrpCod] = 101
    Create different queries for different Groups in where clause, Assign the query to respective Approver.
    Hope this helps.
    Regards
    Reno

  • Approval Templates: Inventory Transfer - based on Query (help)

    This is a newbie question but I don't have time to read or dig thru forum sorry.
    We have an Approval Template setup to alert/approve Inventory Transfers but it is set to Always on the Terms tab.
    We would like to modify it for only transfers into a certain set of warehouses).  How do i create a query that will determine the Warehouse Code (if warehouse code is:'WHL','ITL','RTL','WEB','CTO-WHL','CTO-ITL') on transfer and send the alert/approval notification.
    I know this has been done 1000 times over but please enlighten me.
    SELECT whsecode FROM wtr1 in ('WHL','ITL','RTL','WEB','CTO-WHL','CTO-ITL')

    Hi David......
    There are few Threads discussed on Forum that Approval Procedure for Row level is not possible. Ther may be some work around in doing this.
    You may search this post in forum as it is readily available........
    Approval procedure
    Regards,
    Rahul

  • Approval Based Query

    Hi Experts,
    I am trying to make 1 approval for GRPO which is on condirtion i.e If the DElivery date of purchase order is 2months later than Posting date then when if the user makes the GIN before or after 10 days of the delivery date thenit should go for approval.What should be the query for these.Thanks in advance
    mona.

    Hi MOna,
    Please try thr following:
    SELECT top 1 'TRUE' FROM OPOR T0
    WHERE DATEDIFF(mm,T0.DocDate, getdate()) > 2 AND T0.Docnum = <docnum>
    where docnum u can pick by $[$ item.variable.1]
    rgds,
    Premraj
    Edited by: PremRaj kaushik on Feb 17, 2009 10:05 AM
    Edited by: PremRaj kaushik on Feb 17, 2009 10:07 AM

  • Approval Templates On Query Base Not working..

    hi.
    Plz have a look on uploaded image.
    here i had highlighted that no of approvals are required at approval stages form
    what is the meaning of 2 ,
    ->i think the  2 people approval we need compulsorily.  Am i currect.
    ->In approval Stages i added two persons but i given no of approval need 1
    what will happen . If any body one person will approve , will it approve the document am i currect.
    And one more thing In Approval template under terms i am using query based on this one
    the document should be approve if i give Doctotal total Greater than amount  working fine
    but i need query base approve..
    what i need while adding the sales quotation if project code is not empty
    it will take the approval
    select  t0.docentry from oqut t0 inner join qut1 t1 on t0.docentry=t1.docentry where t1.Project <>''
    the above scenarios i will check it..
    but i need your valuable suggestions...

    Thank u working fine..
    last Question plz reply to me.
    1)Is Approval Stages are unique means
    in approval template if i use one approval stage in another approval template can i use same approval stage  will it work...
    2) in approval stage
    Total authorization persons are 2
    The below scenarios i am able to add the document i can able to update it.
    no of approval 1
    no of reject 1
    what is the meaning
    if out of 2 persons if any body approve the document document will add
    if out of 2 if any one person reject then  the document will reject
    no of approval 2
    no of reject 2
    Two users should approve the document otherwise document should not be add
    Two users should reject the    document otherwise document should not be reject
    no of approval 2
    no of reject 1
    two users should approve the document otherwise document should not be add
    out of 2, one user should reject the document no need second users reject
    no of approval 1
    no of reject 2
    one user is enough
    two users need to approve the document
    Plz clarify my doubt.
    I am waiting for your reply..

  • Fields on single-row Form based on Query

    We are implementing a front-end for Oracle Reports using HTMLDB. We have all of our reports and their parameters set up in tables, along with the specification for where to obtain the values to display for the parameters. The tables also specify the display order for the params.
    In HTMLDB we need to have the "parameter screen" display when the user selects a report from the tree based on report_id. I created a report based on a query referencing the :p_rpt_id from the tree which lists the parameters for the selected report.
    So far no problem. Now, then next step is to implement conditional lists of values on the parameters based on the definitions in the parameters tables.
    Some parameters have an unconditional source for values, some have onchange requirement (ie, when you pick a region in p_region the values available in p_customer would include only those in p_region). Each parameter in our table also includes an attribute to specify the type of htmldb_item to render (select list, popup, checkbox etc).
    I can get the parameter "report" setup to render the lov's based on the correct sources, but I cannot see where to incorporate the onchange trigger for the "parent" parameters (p_region in the example), or how to get the value from p_region when rendering the lov for p_customer.
    Any tips on how to get around this problem?

    I think I've managed to work thru the previously stated issues except for one remaining stumbling block:
    Test Case:
    Report ID: 36
    Parameters:
    1 Year FISCAL_YR_V
    2 Month/Qtr MTH_QTR_V
    3 Month FISCAL_MONTH_V
    4 Chain ADDR_CHAIN_V
    etc.
    Params 1,2,4 are generated with htmldb_item.select_list_from_query and htmldb_item.popup_from_query depending on the LOV type specified for the parameter.
    Param 3 is also generated by htmldb_item.select_list_from query but its query parameter includes a WHERE clause referencing the value set by param 2 when the onchange event fired.
    The problem is the generated lov for param 3 returns no values. Depending on the selection of param 2 (M or Q) the values for param 3 would be 1-12 or 1-4 (respectively). I've tried both of the following in the query for the dependent lov:
    where reference_id = :P10_F02
    where reference_id = v('P10_F02')
    Neither returns any values. I've verified that the correct value for param 2 (M or Q) is being set in the session state by the onchange event on that parameter.
    Is there something I'm not setting to cause the query for the dependent lov to bind the new value of P10_F02 when the onchange event fires?

  • Diplaying of ordsys.ordimage field in a Report based on Query

    Hi,
    I have a table with a ordsys.ordimage field, where I am uploading images. I created a custom report based on that table but I just cant seem to find a way to show images in it. Could anyone please tell me how to do this.
    I tried using this
    "portal30.wwv_user_utilities.get_intermedia('CP_IMAGE01','CP_IMAGE01','IMAGE',rowid) the_picture " but this does not help at all
    Thanks!
    vimpi

    Hello Prajwal,
    It is definely possible !!
    If you have already created your query pls paste the same here so that I can help you otherwise. I will give you a general guidelines and you can take it from there..
    Using the CASE Statement inside your SELECT you can achieve this.
    SELECT T1.ItemCode AS 'Item No.', T1.ItemName AS 'Item Description',
    CASE WHEN  T1.QryGroup1 = 'N' THEN T0.Price ELSE 0 END 'List Price'
    FROM  [dbo].[ITM1] T0  INNER  JOIN [dbo].[OITM] T1  ON  T1.ItemCode = T0.ItemCode   WHERE T0.PriceList = 1

  • Add a form (based on query) to a form (based on table)

    I have a normal form based on a table. I want to put in a little form in a region of this first form that is based on a query. They have one field in common.
    How can I do this?
    Elsie

    Hi Elsie,
    Effectively, you want to end up with a single form and save the data back into two or more tables?
    If so, you could base the entire form on a SQL view and use an INSTEAD OF trigger to update the underlying tables.
    Regards
    Andy

Maybe you are looking for