If price change required approval in sales order

Hi All,
one of our client wants that in sales order the unit price will come automatically according to BP price list. but if any one changes that price manually that should required approval.
The problem is that i have made one query that only block when first row is change. but if i change from 2nd row where first row item price is remain same as price list, in that case  no approval is firing.
i'm giving the query below.  can anybody solve my problem.
select     'True'
from     ocrd a, ait1 b
where     a.ListNum=b.PriceList and b.loginstanc =(     
     select     Max(A.loginstanc) loginstanc
     from     Ait1 a
     where     a.Itemcode=b.itemcode and a.pricelist=b.pricelist)     and a.cardcode=$[$4.0.0] and b.itemcode = $[$38.1.0] and b.price<> $[$38.14.Number]

Hi,
I think you could use validation store procedure (SP_TN) for the row level validation, UDF approval  that its value is Y or N (yes or no) in the header and use this query approval :
select 'true' from ordr t0 where $[ordr.U_approval] = 'Y'
. How it work , for example, you create condition in the SP_TN that if the price change manually, then there is an error mesage or system message (means that validation SP_TN works) explains the UDF must be Y meanwhile set the default value N.
If the UDF is Y, then approval work. After it is approved, the user could add it.
if you still want to use row level approval, you could set a SOP that tells there is only one item per sales order can be created.
Rgds,

Similar Messages

  • Changing requirement type in sales order

    Hello,
    I'm tryin' to change the position requirements type in an existing sales order (switching between make-to-order and make-to-stock). Both options are available to choose (KE and KSV).
    But after saving the order the field is grey and no longer accessable.
    What is wrong?
    Thanks,
    Sebastian

    Hello Sebastian;
    It can be the relationship between the "completion rule" in the item category and the "Pos./neg. quantity" field in the copy
    control of the sales documents. It is blocked one way (if you try to change the field in the copy control when the completion rule is blank you get an error message) but it lets you go through when you remove the completion rule with a value already in the field "Pos./neg. quantity".         
    The rules that I mentioned above can be interfering when you make a changes in Requirement type.
    Regards
    Ruy Castro

  • Change pricing UOM for sales order line

    Hi,
    I'm on release 12 and would like to have a sales order which is ordered in pieces and priced in meters.
    Therefore I want to have a sales order line with order quantity UOM in pieces and the pricing quantity UOM in meters.
    I'm however not able to change the pricing UOM in the sales order line form.
    Is there anyway in which I can change the pricing UOM in the sales order line form without changing the order quantity UOM?
    Or should the order quantity UOM always have the same value as the pricing quantity UOM ?
    Regards,
    Jan

    Hi Vinoth,
    Thanks for your reply.
    I'm able to create sales order with order quantity UOM in pieces and with price quantity UOM in meters.
    The issue I have is that I want to be able to change the price quantity UOM to another UOM just like I'm able to do with the order quantity UOM.
    This is required because we want to have pricing for European customers in meters and for US customers in feet. At the moment the vaue of the price quantity UOM defaults to meters for the sales order line but I want to change this manually to feet for US customers.
    What I would like is that I can change the price quantity UOM of a sales order line from meters to feet just like I can change the order quantity UOM from pieces to for example boxes.
    When I use the sales order line form or when I use the order API, I'm now not able to change the price quantity UOM.
    Is is possible to change the price quantity UOM from a sales order line to another UOM (and therefore overwrite the default price quantity UOM) ?
    Regards,
    Jan

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • Reports to track changes on Deliveries and Sales order

    Hi All
    Do you perhaps know of a specific report that could possibly track changes made to a Sales order and delivery at line item level.
    The problem is change log only logs the deletion of the line item but not the actual material number.
    Do we have to enhance existing reports to achieve visibility for deletion of line items.
    Regards
    KC

    Hi Lakshi
    Thank you very much for that feedback the thing is that you can search that on an order per order basis and even when you get to the change log you will not be able to see what material number was deleted.
    That is the problem.
    Has anyone experienced this wher the requirement was to have a report to run so see what changes have been made to orders or deliveries that they could view wholistically.
    Kind Regards
    Kasavan Aboo

  • How to change material discription at sales order item level ?

    Dear Gurus,
            We have some requirement need to change material description at sales order item level , but in system it is in disable mode how to change that  into change mode in sales order item level?
    Thanks in advance
    Regards
    Venkat

    Not possible in SAP Standard.
    Instead why not create a Customer Material Info Record in T-Code - VD51?
    Alternatively it the requirement to change the Description is only for few Sales Order then create a Text ID & Enter the Description in Text Feild. Then in Smartform program wrie a code which will check for Material Description in the Text first & if not found then take from normal material Description in Sales Order.
    But Customer Material info Record seems to be the best solution.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Changing the payer in sales order other then BDC, LSMW

    Hi Friends,
    We are working at BHEL,
    here we want to change the payer instead of old payer for all open sales orders is , is there any possibility to change the payer in sales order other then LSMW , BDC , those two are not helpful for us  because there is lot of incompleteness logs in my incomplete procedure,
    please suggest me to proceed further,
    regards,
    Gangi Reddy.

    Hi Gangi,
    I have explained the CATT procedure, step by step, on 31/03/2007 for another mass updation requirement in the same forum with subject as 'Regarding Customer Master'.
    Have a look and let me know if you have further doubts.
    Rewards if helps.
    Regards
    Nadarajah Pratheb

  • Changes carry forward from sales order to Purchase order in third partysale

    Hi,
    My requirement to carry forward the changes in sales order to Purchase order in third party sale and vice versa.
    As we know most of the changes we do in sales order,get refelected in purchase requestion because PR get created automatically from SO but PO we create manually in third party scenario.
    Now my requirement to refelect the changes (changes qty, request delivery dale,adding or delition item etc.) from SO to PO and text message from PO to sales order automatically.
    Please guide me.

    Hi,
    Thanks for reply.
    In third party PR gets created automatically but PO gets create manually.So changes get refelect in PR only not in PO.
    Can you give me the solution for completing this task.
    Thanks & Regards
    Jalaj garg

  • Change of customer in sales order

    Hi,
    We are facing problem when our customer is changed for a particular sale order.
    Suppose we've manufactured a transformer under sale order 680700500 for a customer suppose X
    Now due to any payment issue or change in requirement of customer it is not being sold to X
    Suppose another customer let's say Y comes for the same rating of product which  is same as manufactured for X.
    Since the product is lying in our workshop we will be happy to give them.
    Can u please explain me the complete procedure of this change over on SAP right from generating new production order number to consumption of material.
    Strategy: Planning with final assembly
    How to change the customer in sales order

    Hi,
    You can transfer the stock from one customer to another customer by using tcode MB1B. Check with 411 or 413 with special indicator ( sale order to sale order)
    System will ask existing sale order no & new sale order no. You can transfer the stock in same str location.
    Regards,
    Dharma

  • Where we can see requirement type in sales order.

    Hi
    Where we can see requirement type in sales order ?
    Can we change the requirement type in sales order.
    Thanks,
    KP

    Hi
    1.You can see requirement type in sales order in the Procurement tab.
    2.Yes you can change the requirement type in sales order in the same field.
    Regards
    Vamsi

  • View requirements for delivered sales orders in MD4C.

    MD4C shows requirements for open sales orders and other related data but if a delivery has been created for the order which covers complete sales order item quantity it is excluded in the report.
    I want to view such requirements too. Is there a possibility of the same and how?
    Or any other transaction where this can be seen?
    Regards,
    Sonal Murbade

    Hi,
    When a delivery is completed (e.g. bu PGI). the requirement is not needed any more and it's deleterd in table VBBE or VBBS, so, you can not see it in requirement list any more.
    You sill can see the order in table VBAP(sales order) or table LIPS (delivery).
    BR

  • Update the price related to condtions in Sales Order

    Hi all,
    I want to update the price related to condtions in Sales Order from input file. I am using bapi 'BAPI_SALESORDER_CHANGE' to for this.
    the code for this
        wa_conditions-itm_number = wa_itab-itm_number.
        wa_conditions-cond_value = wa_itab-kbetr.
        wa_conditions-cond_type  = 'ZPSV'.
        wa_conditions-cond_count = wa_itab-kwmeng.
        APPEND wa_conditions TO it_conditions.
        wa_conditionsx-itm_number =  wa_itab-itm_number.
        wa_conditionsx-cond_count = wa_itab-kwmeng.
        wa_conditionsx-cond_value = 'X'.
        wa_conditionsx-cond_type  = 'ZPSV'.
        wa_conditionsx-updateflag = 'U'.
        APPEND wa_conditionsx TO it_conditionsx.
    But this is creating a new line in conditions instead of updating the existing line, I want to update the exsting line with new condition rate instead of creating a new line.
    i have tried by   lv_logic-pricing = 'B'.
    But it works when values are maintained in vk11.
    Please help me if you have any soultion for this.

    hi siya,
    plz refer to the following threads
    Re: problem using Bapi_Salesorder_Change
    http://www.sapfans.com/forums/viewtopic.php?p=160339&sid=bf9e3219db318d89596f7e911462416f
    i hope it helps.
    arjun

  • How to prevent change payment term in sales order?

    Hi,
    My client not allow sales admin. to change payment term in sales order. How to do this? (by standard SAP functions or authorization)
    Thanks & Regards,
    Jr.SD

    Either you can run T.Code shd0 or apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP to achieve this.
    thanks
    G. Lakshmipathi

  • Change Item Category in Sales Order for KMAT materials

    Hi,
    How can I change item category in sales order/quote for KMAT materials?
    Currently in the sales order/quote, the item category field is grayed out for KMAT/configurable materials and I can change the item category.
    Please help me.
    Sincerely.
    Ketan

    Dear Ketan,
    I hav exactly the same problem.
    Did you finally succeed?
    Thanks.
    Ben.

  • Requirement type in sales order

    hi sap gurus,
    i want to know how requirement type is configured and how it conmtroll the scenario in MAKE TO ORDER scenario. previously i have seen that with requirement type in sales order Procurement tab, system determine the planning statergy and it determine the special stock type of material, e.g. E for sales order stock and Q is for project stock. but i want to know whether this is correct or not and how this is happenning i.e. what is the configuration and assignment.
    please help at earliest.
    biplab rout

    Hi,
    Check this thread
    Re: Requirement type
    Re: requirement type and requirement class
    Thanks,
    Raja

Maybe you are looking for

  • Cannot add a partition to my hard drive

    Hey everyone, first post here. I've searched in a lot of places, and I can't find the proper answer for this. I have two partitions currently - Macintosh HD and BootCamp. I have Windows 7 set up on the other partition. It's a 120GB MacBook hard drive

  • Please Help! click wheel doesn't respond at all!

    I was running with my brand stinking new ipod 60 gb color and then when i tried to use the clickwheel, it did not respond at all. The play and menu and all the other buttons including select won't work and i can't scroll using the clickwheel. I'm in

  • Change in Shipping Point

    Hi gurus, I have raised a sales Order and shipping point is determined in that order. But while creating Outbound delivery i decided to send it through different Shipping Point. Can anyone please let me know how to change the Shipping Point at creati

  • Using templates & blank pages

    I am using the resume template. I want to use the template for page one, but not have the graphics or same layout in page 2. How do I break from the template? I read in the manual all i have to do is go to pages menu and 'insert > blank page' but the

  • Problem while generating hindi pdfs

    Hi, This is Dasaradh. I have one problem while generating pdfs in HIndi. Here i have used two properties files, one is English and another one is Hindhi. If the user selects English PDF is generates Suceesfully. But if the user selects hindhi then pd