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

Similar Messages

  • Approval for Inventory transfer

    Hai All,
    Here is my scenario : I have 3 warehouses named store1 , store2 and strore3.
    When store1 makes inventory transfer to store2 it should be approved by store2 only.
    When store1 makes inventory transfer to store3 it should be approved by store3 only.
    The above case applies to store2 and store3 also while making inventory transfer.
    Is there any solution or work around for this scenario ?
    Regards
    S.Rajaram

    Hi Raja Ram
    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.
    Edited by: venkata siva reddy pole on Jul 24, 2008 4:49 PM

  • Set approval for inventory transfer document

    hi
    i am using sap b1 with 2005
    i want to set approval to particular product manager  when transfer item from one warehouse to other  warehouse in inventory transfer document
    for that i write query in query generator like
    SELECT T0.DocNum, T1.ItemCode, T1.Dscription, T1.Quantity, T2.SWW FROM OWTR T0  INNER JOIN WTR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode WHERE T0.DocDate >=[%0] and
    T2.SWW ='chandan'
    {chandan is name of product manager}
    so please send query that will support for approval template.
    regards,
    sandip

    In the Approval templates > Document tab ..only the documents listed can have an Approval Procedure tied to them.
    If Inventory transfer is not listed there, you might not be able to create one
    Suda

  • 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.

  • RE:Approval Templates Terms Based on queries (Requires Urgently plzzz ..)

    Hi You All,
    As per requirement we developed the small Addon which is attached to sales quotation & for that AddOn I need a approval which is on based userdefind query.I done this much of portation BUT as per standard. in Approval Template-Setup we have to select Document from Document Tab.but I dont have these std Document I need appproval on that developed AddOn
    Rgs,
    -Dinesh

    Hi Dinesh,
    U cannot find ur user forms in the standard approval list.
    Regards,
    Vasu Natari.

  • 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 Query on Inventory Transfer

    Hi All,
    I want an Approval Procedure to be invoked when a Particular User post a Inventory Transfer. The Scenario is the user will transfer goods from his Warehouse to 2 different Warehouse. For Eg: Stores and Despatch.
    He will make a separate Inventory Transfer to transfer goods to Stores and another entry to transfer goods to Despatch.
    If he Transfer Goods to Stores, it has to be approved by Stores Department User.
    If he Transfer Goods to Despatch , it has to be approved by Despatch Department User.
    I tried using Query in Approval Procedure. Not able to get correct way it shoud work.
    Help Needed...
    Thanks in Advance....
    Marikannan

    Hi Thanks for the reply...  I have created the UDF for those. I used the Following Query.. But it doesnt work. Any issue with my query...
    DECLARE @whs AS NVARCHAR(20)
    SET @whs = (SELECT $[$18.1.0])
    DECLARE @reas AS NVARCHAR(20)
    SET @reas = (SELECT $[$u_po_ref.1.0])
    SELECT DISTINCT 'TRUE' FROM OWTR Z1 WHERE @reas = 'DSPT' AND @whs = 'QLTY'
    I Use @whs for Filler field in OWTR
    I User @reas for UDF in OWTR
    Thanks... Marikannan
    Edited by: Marikannan Balu on Apr 22, 2010 8:11 AM

  • Adding a query to the approval template

    Hello
    I'm trying to setup an approval template for AR Invoices based on a UDF.
    Basically I want to add a query to the approval template that will trigger an approval request based on the following query
    but i don't know how to set it properly.
    trigger an approval when:
    select * from OINV where u_ordertype = 'sub'
    any help would be appreciated it!
    Mike

    Hi Mike,
    Try this:
    select 'true' from OINV T0 where T0.u_ordertype = 'sub' and T0.DocNum = $[$8.0.0\]
    Thanks,
    Gordon

  • Query for terms in approval template of approval procedure

    dears
    i need to write  a user query for approval template terms that chek for any price zero in invoice items .
    i tried the true query
    select 'true' from inv1 where $[inv1.price]=0
    however the invoice executed without asking for approval procedurs.
    any help will be appreciated!!
    talal

    Hi,
    Its not possible on row level Price.
    Try to Document total procedure, it will work.
    SELECT Distinct 'True'  FROM OINV T0 WHERE $[OINV.DocTotal]='0.00'
    Thanks,
    Madhan.

  • Query to Lookup Ship To in a UDF for the Inventory Transfer

    Good Day Experts!
    I created a UDF for the Ship To Code in the Inventory Transfer Window.  The problem is I do not know how to create a query to be used in the Formatted Search for this UDF wherein it will lookup all the Ship To Codes in the table CRD1 of that particular  Customer selected in the Inventory Transfer window.  The objective is to choose a Ship to code just like in the sales document.
    My next problem would be how to display automatically the whole Ship To Address in another UDF based on the Ship To Code chosen in the UDF Ship To Code.
    Your inputs would be highly appreciated.
    Regards,
    Jen

    To get the Complete ShipTO Address, use the following Code
    SELECT T0.cardname+CHAR(13)+isnull(T0.Address,'')+CHAR(13)+
    cast(T0.Building as varchar(100))+CHAR(13)+isnull(T0.city,'')+CHAR(13)
    +isnull(T0.zipcode,'') as Address FROM CRD1 T0
    WHERE T0.CardCode =$[OWTR.CardCode] and  T0.cardtype='S' and
    T0.Address=$[OWTR.UDF1]
    Here Replace UDF1 with the Name of the UDF in which Shipto Address Names are shown as per my previous post.
    Hope you understand

  • Need Inventory transfer query with bIn location information

    Dear Team,
    Please help me to create the query for inventory transfers with bin location information.
    WTR19 field is empty so that i have checked with tables OINM,OILM,OBTL
    But how can i link this tables..?
    Regards
    Sanu.

    Dear AndakondaRamudu,
    In the mentioned link i had already checked .I need the item movement bin transactions report inventory transfer using a parameter with UDF..
    Regards
    Ajith

  • 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..

  • Approval procedure to check and pop up alert when Inventory transfer

    HI Experts,
    I want to do an approval procedure to check and pop up alert when Inventory transfer To warehouse 01 by Query.how to query for the following statement in Approval Procedure?
    Regards,

    Hi,
    This query is also used in the approval procedure of inventory transfer created:
    if (SELECT $[$5.1.0]) = '01'
    select 'true'
    it will gives alert after document approved or requesting approval.
    Rgds,

  • Re:Query For Inventory Transfer..!!!

    Dear Members,
    My Scenario is,
    I want to take a report for inventory transfer that contains
    1. Itemcode
    2.Item description
    3.quantity
    4.inventory quantity on the previous day.
    I have taken the tables owtr,wtr1,oitm and oitw.But the issue is if my document date is like 30.11.2010 i want the inventory quantity value as  on 29.11.2010.
    I need only query not SAP Reports.Plz suggest a suitable query for this issue.
    With Regards,
    Revathy

    Hi Revathy,
    You have to use OINM table to get your desired Stock on past dates.
    Have a look at these queries.
    1. Stock per itemwise
    select t1.ItemCode,max(t1.dscription) [Name],(sum(isnull(t1.InQty,0)) - sum(isnull(t1.OutQty,0)) ) [ClsStock],(sum(t1.transvalue)) [ClsValue]
    from OINM t1
    where  t1.DocDate <= '[%1]'
    group by
    t1.ItemCode
    2.Stock per item per warehouse wise
    select t1.ItemCode,max(t1.dscription) [Name],t1.warehouse [Warehouse],
    (select whsname from owhs o1 where ((o1.whscode) = (t1.warehouse))) [WarehouseName],
    (sum(isnull(t1.InQty,0)) - sum(isnull(t1.OutQty,0)) ) [ClsStock],(sum(t1.transvalue)) [ClsValue]
    from OINM t1
    where t1.DocDate <= '[%1]'
    group by
    t1.ItemCode,t1.warehouse
    Regards,
    Bala
    Edited by: Balakumar Viswanathan on Dec 10, 2010 5:22 PM

  • Approval Template Query

    Hi, Is it possible to setup a approval template where an approval is required for all AP invoices that include a GL account that has a budget set for it?
    Thanks,
    Jane

    Hi,
    Yes possible to set approval template by means of query which is to be assigned under "Terms tab". But following condition should be meet,
    1. Under general settings--->BP tab, you have to select "Warning" check box.
    Thanks & Regards,
    Nagarajan

Maybe you are looking for

  • Oracle optimizer and heterogeneous services (Transparent Gateway for ODBC)

    Hi everyone! We have the following configuration: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production. Oracle Database Gateway for ODBC 11.2.0.2.0 on the same machine as Oracle DB. Non-Oracle DB installed on a different hardw

  • Opening stock with subcontractors

    Hello Experts, I am doing a report on Opening and closing stock with the subcontractors... My report's requirement is.. Mat. No.   -   ekpo-matnr Part No.   -    resb-matnr Opeining stock (for Resb-matnr)     -         ( movement type 541542543+544 f

  • Maximum FPS recording with built-in iSight on Macbook Pro

    Does anyone know if the built-in iSight on the Macbook Pro has a limit on the recording frames per second? I'm trying to make record some clips using iMovie, but it only records at 15 fps. I tried Quicktime Broadcaster with settings at 29.97 fps, but

  • Itunes keeps crashing with windows 7

    iTunes 7 keeps crashing on windows 7. please help.

  • Namespace declarations

    I have an XML file that declares some namespaces in its root element, like this: <config-ui xmlns='ocfgui.dtd' xmlns:cfg='ocfg.dtd'> | (innards deleted) | </config-ui> When I run this though the Oracle XMLParser v2.0.0 with validation on, I get "Ille