Approval Query for a specific customer group

Dear Experts,
             Following is the scenario, customer deals with whole sale and retail customers group. The client wishes to ensure that If the whole sales customer group account balance greater than zero then while making a sales order or invoice it should trigger approval.
Saravanan

Hi Saravnan......
Thy this Approval Query and just put the Group Code for your customer in this group code's inverted comma....
SELECT Distinct 'TRUE' From OCRD T0 Where T0.Balance>0 and GroupCode=' '
And T0.CardCode=$[ORDR.CardCode.0]
If above does not work then use below...
SELECT Distinct 'TRUE' From OCRD T0 Where T0.Balance>0 and GroupCode=' '
And T0.CardCode=$[$4.0.0]
Regards,
Rahul

Similar Messages

  • Partner functions for a specific customer not seen in XD03 but appears in XD02

    Hello SAP Gurus,
    I have a situation where a partner functions for a specific customer not seen in XD03 but appears in XD02, In XD03 only one partner function (Ship to) appears but in XD02 (Sold to, Ship to, Bill to and payer appears), from the customer master I can see that account group for this customer has been changes to Sold to (Z001) from Ship to (Z002).
    I checked in settings for OB20 transaction for display customer centrally, it is in Display mode as required and not suprresed would like your inputs as to why this is happening and what can be done to fix this.
    Thanks and Regards
    Mohammed Roshan

    Hi ROshan,
      Open customer master in XD02  sales view and save it then check in XD03 it should display the partner functions.
    As you said the account group has been changed I think the records needs to be saved again.

  • Query for non turn customer report in service module(Add-on)

    Hi,
    I want create  query for non turn customer report, that mean the customer who are not come for  last 6 months to our service workshop in service module(Add-on). this is a scenario. 
      SELECT T1.U_CardDate, T1.U_JCardNo,T1.U_TypeSrv,T2.U_VehReg,T2.U_PurchDt, T2.U_VehDesc, T2.U_VehModel, T1.U_KmsRead,   T1.U_BPCode, T0.CardName, T0.AddrType , T0.Building,T0.Block, T0.Address,T0.City,T0.ZipCode, T0.State1,T0.MailBuildi,T0.MailBlock, T0.MailAddres, T0.MailZipCod, T0.MailCity, T0.State2 ,T0.MailAddrTy,  T0.Phone1, T0.Phone2, T0.Cellular FROM [dbo].[OCRD]  T0 INNER JOIN [dbo].[@ALD_JOBCARD]  T1 ON T0.CardCode = T1.U_BPCode INNER JOIN  [dbo].[@ALD_VEHMAST]  T2 ON T1.U_BPCode = T2.U_BPCode WHERE T1.U_CardDate BETWEEN [%0] AND [%1] ORDER BY T1.U_CardDate.
    this query is get all  customer data who are not come to service workshop for last 6 month. i want to filter data who are not come last 6 months this year. kindly assist me
    thank you.

    Check this:
    SELECT Max(T1.U_CardDate) 'Lase Serve Date', T1.U_JCardNo,T1.U_TypeSrv,T2.U_VehReg,Max(T2.U_PurchDt) 'Last Purchase', T2.U_VehDesc, T2.U_VehModel, T1.U_KmsRead, T1.U_BPCode, T0.CardName, T0.AddrType, T0.Building,T0.Block, T0.Address,T0.City,T0.ZipCode, T0.State1,T0.MailBuildi,T0.MailBlock, T0.MailAddres, T0.MailZipCod, T0.MailCity, T0.State2 ,T0.MailAddrTy, T0.Phone1, T0.Phone2, T0.Cellular
    FROM [dbo].[OCRD] T0
    INNER JOIN [dbo].[@ALD_JOBCARD] T1 ON T0.CardCode = T1.U_BPCode
    INNER JOIN [dbo].[@ALD_VEHMAST] T2 ON T1.U_BPCode = T2.U_BPCode
    WHERE T1.U_BPCode NOT IN
    (SELECT DISTINCT U_BPCode FROM dbo.[@ALD_JOBCARD] WHERE DateDiff(DD,U_CardDate,GetDate()) < 183)
    Group By T1.U_JCardNo,T1.U_TypeSrv,T2.U_VehReg,T2.U_VehDesc, T2.U_VehModel, T1.U_KmsRead, T1.U_BPCode, T0.CardName, T0.AddrType, T0.Building,T0.Block, T0.Address,T0.City,T0.ZipCode, T0.State1,T0.MailBuildi,T0.MailBlock, T0.MailAddres, T0.MailZipCod, T0.MailCity, T0.State2 ,T0.MailAddrTy, T0.Phone1, T0.Phone2, T0.Cellular
    ORDER BY T1.U_CardDate

  • Duty calculation for import PO for a specific material group

    Hi All,
    As per company requirement, we need to do changes in duty calculation for import PO for a specific material group.
    Current scenario :  Currently  duty calculating on MRP with abatement  35% ( We have ABTT condition @ 35% of MRP).
    For example:
    Material: ABC , Basic Price = 1000, MRP = 2000 and duty is 10%
    Duty  Amt = 2000(MRP) - 700(35% ABTT) *10%(Duty) = 130
    Cess 2 % = 2.6
    Ecess 1 % = 1.3
    Total duty =  133.9
    This duty (133.9) paid to custom vendor and loads in material cost.
    New Requirement:  For vendor payment purpose duty should be calculate as above but  for material cost should be calculated on Basic price.
    For Example:    
    Material: ABC , Basic Price = 1000, MRP = 2000 and duty is 10%
    Duty  Amt = 1000(BP) *10%(Duty) = 100
    Cess 2 % = 2
    Ecess 1 % = 1
    Total duty =  103 ( It should load in Material cost)
    New Condition Diff Duty Amt = (1300-1000)*10% = 30
    Cess 2 % = .6
    Ecess 1 % = .3
    Diff Duty Amt = 30.9 ( It should not be added in material Cost)
    Paid to custom vendor = 103 + 30.9 = 133.9
    Kindly suggest how to achieve this.
    Regards
    Jitendra

    Hi,
       Please check whether the requirement is logical or not.  Did you check the requirement with your accounts team?
       If you have different duty calculation for MIGO and MIRO, how the GL accounts will get balanced? As of my understanding, the requirement is clearly not logical.
    Regards,
    AKPT

  • Change Customer Address format with specific customer group

    Dear all,
    May I ask is it possible to change customer address fomat for a specified customer group or Company code only.
    Normally, the format is Street, City and Country. for a special cusomer group, i wan to change the format to street , street 2, street 3 and street 4.
    Is it possible to change the format without affect other cusomer group and also not affect Vendor address format?
    I have seached in the format, some discussions provides method to change address format by country. But no discussion mention about change cusomer specified customer group only.
    Can anyone advise?
    Many thanks
    Sunny

    Hi,
    Did you try for
    1.By changing field status in it account groups through transaction code OBD2.
    2. In transaction code OB21 for company code.
    Regards,
    Tejas

  • US Unit of Measure (UOM) conversion to British UOM for a specific customer

    Hi SAP Guru’s,
    How can I convert the US Unit of Measure (UOM) for materials to British UOM for a specific customer? I want to keep the US UOM for all the other customers.
    Thanks,
    Best regards,
    Ketan

    Hi
    It should be available check for the field in customer info record for UOM & key in for requried UOM.
    If you get in touch with SD person they will help you to resolve this issue.
    Regards

  • SQL Query for members of dynamic group - Need to include Name, Path and Type

    Hello,
    I built a custom dynamic group that has all my SQL databases in it using SCOM 2012 SP1.  The group works fine as I can see the Name(ie, Database name), Health State, Path (ie, hostname/instance) and Types (ie; SQL 2005).  Now I'm trying to
    build a custom report based off this same information using a SQL query.   I'm no DBA and could use some help.  So far this is what i have
    use
    select
    SourceObjectDisplayName as
    'Group Name',
    TargetObjectDisplayName,TargetObjectPath
    from RelationshipGenericView
    where isDeleted=0
    AND SourceObjectDisplayName
    like
    'SQL_Databases_All'
    ORDERBY TargetObjectDisplayName
    This gets me the Group Name (which i really don't care about), database name, and hostname/instance. What I am missing is the Health State and most importantly the Type (ie, SQL Server 2005 DB, SQL Server 2008DB).
    If someone could assist me here I would appreciate it. I believe I need to do some type of INNER JOIN but have no idea where the SQL type info lives or the proper structure to use. Thanks
    OperationsManager

    Here's the updated Query for OpsMan 2012 R2:
    To find all members of a given group (change the group name below):
    select SourceObjectDisplayName as 'Group Name', TargetObjectDisplayName as 'Group Members' 
    from RelationshipGenericView 
    where isDeleted=0 
    AND SourceObjectDisplayName = 'Agent Managed Computer
    Group' 
    ORDER BY TargetObjectDisplayName

  • Marketing attribute valid for a specific customer only?

    Hi
    We have a requirement that a specific marketing attribute set should only be valid for a specific group of customers.
    Is this possible to define in customizing?
    Any other suggestions of how to solve this?
    BR
    Johan

    Hi
    Thanks for both answers!
    The territory solution is unfortunately not possible, cause we do not have a perfect match between the attribute sets and the customers belonging to a particular territory. Otherwise that would have been a great solution, I really appreciate your answer.
    Regarding ACE, I thought that the authorization concept would be based on the user? The user should have access to all marketing attributes, but for a particular customer only certain marketing attributes should be valid. Is that possible to set up with ACE?
    Could you further explain that approach?
    BR
    Johan

  • Authorization for FBL5n specific customer

    Hi all,
    I have a scenario where we want to restrict sales person to view specific customer. We maintain sales person and customer number relation in a Z table.
    Please advise how I can restrict?

    Hello Ravi
    You can restrict access to master records in order to prevent unauthorized changes from being made. Depending on how you organize your master data, you can assign authorizations for maintaining this data. For example, one user may have authorization to maintain all master data, while another may have authorization to maintain only accounting master data.
    You can also assign different authorizations for different types of processing. All users could have authorization to display master records, while only a limited group of users may be able to create and change master data.
    Authorizations are specified during system configuration and assigned to each user in his or her user master record. If you have any other questions on this subject, you should contact your system administrator. The Implementation Guide (IMG) for Financial Accounting explains how to set up authorizations.
    Suresh

  • Define a Disk destination for a specific Protection group DPM 2012 R2

    Hi,
    I currently have a DPM 2012 R2 Server with some protection groups created. Just recently added a new disk to the storage pool. I wanted to see if I can define a specific disk to a specific protection group? 
    I found this command:  Set-DPMDatasourceDiskAllocation and this parameter -DestinationDiskPool
    But I'm not sure if that can help me out and how to use it with and existing protection group.
    Can someone give me an example maybe or guide the correct way to do this? Do I need to create another disk pool and move the disk there? Is that even possible? I'm quite lost here, any ideas are appreciated.
    Thanks!
    Eduardo Rojas

    Hi,
    I don't really recommend this, but the only way to specify a physical disk (volume) to use when protecting a new data source is to use custom volumes.
    Defining Custom Volumes
    http://technet.microsoft.com/en-us/library/ff399012.aspx
    How to Assign a Custom Volume for a Protection Group 
    http://technet.microsoft.com/en-us/library/bb809021.aspx
    There are pros and cons to either approach, but some can be partially mitigated quite easily.
    1) Using existing disk configuration – 2-disks in a hardware raid-1 – no dedicated disk for DPM.
         Pro - build in data integrity for the DPM storage pool and operating system.
         Pro – No need to buy / install / maintain additional hardware.
         Con – Using DPM Custom volumes on basic disks needs planning to get the volume sizes correct based on the retention range and data churn.
         Con – miscalculating makes it difficult to correct later because you cannot grow volumes on basic disks unless you have adjacent free space.
         Con – DPM cannot auto-grow custom volumes, so you will need to grow them manually if needed.
         How to mitigate – convert the disk to Dynamic disk so the custom volumes can be manually grown (even in discontinuous space) if you miscalculate the sizes.
    2)  Adding an additional disk so DPM can have its own dedicated storage pool disk.
          Pro – DPM can make the volumes automatically when adding data sources to protection.
          Pro- DPM can autogrow if necessary, so it’s more hands off.
          Con – Additional cost of hardware, installation and upkeep.
          Con – No data integrity should the DPM storage pool disk fail. 
    This is easily recoverable to get new disk to be used by DPM, but you will lose all backups.      
    Hope this helps frame the debate.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Delivery unit / Rounding profile for a specific customer

    Dear Expert,
    A specific customer has to receive full case/box for specific products (for ex 1 case = 20 EA, if the customer orders 24 EA, he will receive 20 EA = 1full case). For other customers there is no restriction, they can order 1EA... The orders come via EDI and customer service is not able to control each order.
    Thank you very much for your help!
    Regards,
    Robert

    Hello Robert
    Csaba gave a good suggestion but it won't completely resolve your issue because it won't handle the Delivery Unit part of it.  It may take care of the rounding up/down business but won't change the units to Cases when Eaches are ordered.
    I tested with Material Determination, it may take care of Delivery Unit  angle but can't handle rounding up/down.
    So I think best option for you is to try one of these 3:
    1) Control at mapping software end to change the order quantity/units based on customer and material.
    2) Using customer functions in Function Module IDOC_INPUT_ORDERS
    See OSS note: 753153 - FAQ: Customer-functions in IDOC_INPUT_ORDERS
    For both of these 2 above, you need to work with your EDI specialist team.
    3) Use user exits during sales orders processing- Set up a custom table which specifies the delivery unit and rounding profile to be used for the set of customers and materials, preferably create a customer group and material group and use that in table rather than specific customers and materials. Probably you could use MV45AFZB-USEREXIT_CHECK_VBAK/USEREXIT_CHECK_VBAP.
    Hope this helps.

  • Query for Turnover per Customer / article and from wich agent in one file.

    Hello Experts -  basicly the subject tells it all, what I whant to see in the query is:
    Turnover Per Customer wich articles and wich agent is responsible for the customer.
    Many thanks in advance.

    Hi,
    Actually there are two field in the INV1 table
    1) Price = Net Price (after the adjustment of the Discount at row level)
    2) pricebefdi = Gross Price ( which does not include the discount at the row level)
    I have amended the query again based on the above fields :
    select distinct t0.CardName as 'Business Partner Name',
    CASE WHEN t1.discprcnt != 0 then ROUND(SUM((t1.Quantity*t1.PriceBefDi)*((100-t1.DiscPrcnt)/100)),2)
    WHEN t1.DiscPrcnt = 0 then ROUND(SUM((t1.Quantity*t1.PriceBefDi)*((100-t0.DiscPrcnt)/100)),2)
    WHEN t1.DiscPrcnt !=0 and t0.DiscPrcnt != 0 THEN
    ROUND(SUM((t1.Quantity*t1.price)*((100-t0.DiscPrcnt)/100)),2)
    END as [Total Turnover after Discount],
    t1.DiscPrcnt as 'Discount Percentage Rows',
    T0.Discprcnt as 'Header Discount',
    t1.VatSum as 'Vat Amount', t1.Dscription as 'Item Name',
    sum(t1.Quantity) as 'Qty Sold', t3.SlpName as 'Sales Employee Name'
    from OINV t0 inner join INV1 t1 on t0.DocEntry = t1.DocEntry
    inner join OSLP t3 on t3.SlpCode = t0.slpcode
    where t0.DocDate >= '2011.01.01' and t0.DocDate <= '2011.12.31'
    Group BY t3.SlpName, t0.Cardname,t0.slpcode, t1.Dscription,t1.DiscPrcnt,t1.vatsum,
    t1.DiscPrcnt,t0.discsum,t0.discprcnt
    order by t1.Dscription
    I have incorporated the one where discount is there both on header and rows.
    Kind Regards,
    Jitin
    SAP Business One Forum Team
    Edited by: Jitin Chawla on Oct 12, 2011 11:17 AM
    Edited by: Jitin Chawla on Oct 12, 2011 11:18 AM

  • Approval Query  for Sale Delivery Problem

    Hello,
    I have to set approval procedure of Sale Delivery in following condition
    If i add sale order for Specific item for 10 Qty for example C01 customer & after that i add sale order for same item qty 10 for another customer ie C02 & i have stock for that item 50 but user give delivery first to C02 in staid of C01 but C01 give me first order
    on this condition i have to set approval user can't deliver second sale order first he have to take approval from manager to do this & he deliver first order first then then don't have to need approval.
    Can any one help me?

    Hi,
    Row level approval is not possible in SBO.
    You may check this for your reference: http://www.beonesolutions.com/ip/Solutions/ap.html
    Thanks,
    Joseph

  • Approval Query for Prepaid customers

    Hi, I need help with a query. I want an approval screen to pop up when a user tries to add a delivery for a prepaid customer and the customer has not paid. The following query get me a "Could not commit transaction" error.
    In our system, customers with prepaid terms have -1 in the GroupNum field.
    SELECT Distinct 'TRUE' From OCRD T0 INNER JOIN ODLN T1 ON T0.CardCode = T1.CardCode WHERE $[OCRD.GroupNum] LIKE '-%' AND $[OCRD.Balance] + $[ODLN.DocTotal] <= 0
    Any help would be appreciated. Thanks

    Hi,
    Try this:
    SELECT Distinct 'TRUE'
    From OCRD T0
    WHERE T0.CardCode = $[ODLN.CardCode] AND T0.GroupNum <0
    AND T0.Balance + $[ODLN.DocTotal] <= 0
    Thanks,
    Gordon

  • Approval Query For A/R Delivery

    Hi
    I have made a query for Approval Procedure, only those Delivery documents will go for approval for which A/R Down payment Request has not been made. But it is not working properly Kindly Correct the query.
    SELECT Distinct 'True'  where dln1 t0 inner join odln t1 on t0.docentry = t1.docentry inner join ordr t2 on t0.baseentry = t2.docentry and t2.docentry not in (Select distinct t4.baseentry from dpi1 t4) and
    t2. docentry = $[DLN1.Baseentry]
    Thanks
    Rashid

    Hi Rashid,
    B1 does not support approval queries on document lines. you can query only document header.
    you can either try to workaround it with all sorts of aggregate UDFs in the header, or alternatively take a look at:
    [http://www.beonesolutions.com/ip/Solutions/ap.html|http://www.beonesolutions.com/ip/Solutions/ap.html]
    all details, including the ability to query all document tables, are in:
    [http://www.beonesolutions.com/files/Approval_Pro_Brochure.pdf|http://www.beonesolutions.com/files/Approval_Pro_Brochure.pdf]
    Gilan

Maybe you are looking for

  • Page breaks in main window

    hi when i am displaying the item data in main window, it is displaying half content of the item data in one page and half content in the second page how to protect the page breaks

  • Font size when printing from Safari to HP Photosmart 6520 printer

    I just bought a Macbook Pro 13 inch, running OSX 10.9.5.  When I try to print something from within a Safari web page to my HP PhotoSmart 6520 printer, the font is huge. Does anyone know how to adjust the font size for use with Safari. The font size

  • Final cut pro audio output through firewire

    Hi, At present I'm using my macbook pro for video playback in an in house broadcasting studio.  I'm sending my video and sound through firewire into a Canapus ADVC110 box and then I split the audio into my sound board, and my video into a video mixer

  • Remove one logo & some text in pdf page

    Hi, i want to remove one logo & some text in pdf page, so i have used stamp tool & done it. my problem is after saving output pdf file size is very high. so pls tell me after editing how to save in pdf format & less file size.(without loosing image q

  • Putting icon in the Jtable cell

    Can I put the Icon or image in the table cell.? I am Using Jtable and default model for that. Waht should be done to place the icon or image in particular cell which will be based on some condition check. thank you sumant