Automatic update of UDF Row field in a sales order

I have recently added a UDF field to the rows of a sales order which I would like to display an items MOQ. I have written a query which I have embedded into this field by way of the User Defined Values Setup. When checking this I can see that the field can be populated with the  correct value by pressing shirt + F2 however, I would like this to happen automatically. I have tried setting the auto fresh on exiting altered column by Item Code and by Confirmed Del Date respectively but neither seem to work.
Any ideas?

Sorry i forget to remove OITM
SELECT A.MinOrdrQty from OITM A INNER JOIN RDR1 B ON A.ItemCode=B.ItemCode WHERE A.ItemCode=$[RDR1.ITEMCODE]
Now try
--Manish

Similar Messages

  • I want the system automatic update my UDFs when the OnHand was changed.

    I added two UDFs in table OITW to count the warehouse OnHand by CASES and Bottles. I want the system automatic update my UDFs when the OnHand was changed.  Is there any way I can do it in database level instead in the application (too much places involved).

    There is few ways how to do this:
    - triger as David said, but I dont recomend it through SAP policy
    - in stored procedure transaction notification  by adding or updating document update your user field
    - create job in SQL server which in specific interval recalculate the changes of onhand and update your user defined field
    - create addon which will be over functiuonalities which may change the onhand value
    I think that from SAP is possible only Addon, but the easist way is trigger and if you dont need it just in time but for example every 10 seccond, the better is job which cannot fail the standard SBO transaction (triger may and may be unsafe).
    Hope it helps
    Petr

  • How to make tax classification field mandatory in sales order ?

    Hi,
    while creating sales order, " how to make tax classification field mandatory ".
    Please tell me the procedure.
    In tcode OVA2. what are the entries for fields,table.
    Regards,
    sapsduser

    Dear ,
    Could you please share why you want to make tax Classification field mandatory in sales order.
    Maintain Tax classification field for customer in Customer Master Data = (Sales Area Data - Billing document Tab page)
    Tax Classification field for Material in Material Master Data = Sales Org. 1 View.
    While creating sales order and enter customer and material system automatically fetch the tax classification related data into sales order.
    Tax is calculated based on the ship to party.
    Hope this will help you.....
    Regards,
    Manoranjan.

  • Need Profit centre field as mandatory field in the sales order

    Dear All,
    Normally Profit center data maintained in the material master, same data will get coipied to the sales order while creating sales order in VA01 transaction.
    My requirement is if profit center data is not maintained/available in the sales order system should give the error message
    For this I need Profit center field as mandatory field in the sales order(VA01).
    Can you please give possibilities ASAP.
    Give the SHD0 maintenance step by step.
    Regards,
    Murali.

    Hi Murali
    I beleive that you are talking about the Profit centre field not maintined in sales order hence not picked in delivery and billing and there is an FI posting error  (GL account error) because of that
    Profit centre is maintained in MMR and the same flows thro the sales cycle and i am quite sure if maintained in MMR it will be picked automatically and no need to make it mandatory in sales order( as the purpose is already solved)
    But there is no standard option in SAP like (even if Account assignment category of the material is not maintained in MMR it can be given in VF02 and the document can be released for accounting) to give the Profit centre in the billing and release the same
    Profit centre field field is picked from masters and flows in the entire flow and that field is greyed out (like no option of inserting it inbetween)
    As told by others incompletion log in sales doc type will take care for future orders and for the already created orders the standard option is cancel billing, reverse delivery and open the sales order and give   Profit centre field and process it (if only a few orders are there)
    But if the already created orders are many then from the FI Area  you need to go for development ( we also faced this issue as profit center not maintained in MMRs and hence accounting got hit and there were tons of billing docs and our FI consultant made some development to open it and solve it) FI consultant should be able to do this for already created orders
    Instead of making Profit centre field as mandatory field in the sales order better make it a mandatory entry in MMR
    Regards
    Raja

  • Update a Customise status massage/Qty in Sales Order line at PGI

    Dear Gurus,
    We are new to SD and we are willing to implement a status update or the PGI Qty in the Sales order line level, at a PGI by using a Out bound Delivary or shipment document. We are willing to customise  condition group field  (VBKD-KDKG1) in addtional data A. is there a posibility of doing this or any other solution we can do for this. Your kind replies will be highly appriciated at this time.
    Thank.....
    Pubudu & Jeewana.

    Hi,
    It is possible through user-exit/Badi.
    To update PGI Status you can use user-exit "MB_CF001-Customer Function Exit in the Case of Updating a Mat. Doc." Or you can use BAdi "MB_DOCUMENT_UPDATE".
    To update Shipment document status you can use BAdi "BADI_LE_SHIPMENT-BadI: Shipment Processing".
    But how will you handle the partial delivery cases?

  • Update Means-Of-Transport Type in a sales order

    I want to Update Means-Of-Transport Type in a sales order. You can find this field (VBKD-TRATY) in Sales Order->Header->Shipping.
    I couldnt find this field in BAPI_SALESORDER_CHANGE.
    Is there any function module which wud update it?

    Means of transport will be decided at the time of shipping in delivery .
    So LIKP-Traty will be the means of transport .
    i dont think there is a Fm to handle this .
    Let us check if someone has a solution.
    regards,
    vijay

  • Free Good Qty as non modifiable field in the Sales Order Level

    Dear Friends,
    I have successfully done the config change for the Free Goods, But now i want make the free good line item qty as a non modifiable field in the Sales Order Level.
    How can i do this.. Please advice.
    Thank U,
    Uwanthi

    Hi
    This is a standard behaviour in the system
    kindly use the below program and user exitexit
    MV45AFZZ and use "Userexit_filed_modification"
    Regfards
    Damu

  • 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 make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

  • Add field 'asset' in sales order line item account assignment tab

    Hi,
    I would like to add the following field: 'asset' in sales order line item account assignment tab.
    I can enter order, or wbs, but not Asset.
    How can I make this field visable?
    Anybody?
    thanks,
    klundert
    Edited by: Eric Van Zundert on Oct 30, 2010 8:43 AM

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Additional field in the sales order screen

    I need some additional field in the sales order screen. There is
      also no screen exit available for VA01. Can I use this
      additional data B tab in header details by creating additional
      field in it. Please tell me how to use this tab or how to get
      different field in the sales order (header or item level).

    Hi,
       Yes. You can use this screen. For this either can modify the table VBAP with additional fields and put them on this screen.
      You have to code your logic to save these values in the include MV45AFZZ. The subscreens you have to use for this are 4462 or 8459.
    refer Screen exits - Urgent.
    with regards,
    Vamsi

  • Query Alert for a change in value of the Quantity field of the sales order

    Hi Experts,
    A query alert has been set up to alert the warehouse employee when a new sales order is created by a sales employee. Our client wants the warehouse employee alerted when the sales employee edits the quantity field of an already added sales order.
    Kindly assist in designing a query to notify of this change in the Quantity field of the sales order.
    David

    Try this one:
    SELECT T0.DocNum, T0.CardCode, T1.ItemCode, T3.Quantity 'Old Qty', T0.Quantity 'New Qty', MAX(T2.LogInstanc) 'Times Changed'
    FROM dbo.ORDR T0
    INNER JOIN dbo.RDR1 T1 ON T1.DocEntry = T0.DocEntry
    INNER JOIN dbo.ADOC T2 ON T2.DocNum = T0.DocNum AND T2.ObjType = '17'
    INNER JOIN dbo.ADO1 T3 ON T3.DocEntry = T2.DocEntry AND T3.ItemCode = T1.ItemCode
    WHERE T0.DocStatus = 'O' and T0.DocType = 'I' AND T1.Quantity != T3.Quantity
    GROUP BY T0.DocNum, T0.CardCode, T1.ItemCode, T1.Quantity, T3.quantity

  • Sales district field in Quotation/Sales order

    Hi Gurus,
                  on which screen i can see the "Sales district" field in Quotation/Sales order/Inquiry?
    Thank you
    ANil

    Hi,
    In Inquiry :
    Menu Bar : Go To: Header : Sales : Below u can see under Pricing and statistics
    Same in Quotation and Sales Order.
    Thanks,
    Raja

  • To Populate the profit center field in the sales order by user Exit.

    Hi All,
    Please let me know :
    How the user exit is used to populate the Profit center field in the Sales order?
    Please gurus answer  as quickly as possible as I require this urgently.

    If you want to overwrite the profit center in sale order (determined from the materail master) with a different profit center based some other criterion you can use profit center substitution rules. Check the wiki:
    [Profit Center Substitution in Sales Orders|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/profitCenterSubstitutioninSales+Orders]
    Regards,
    GSL.

  • Editing the conversion field in the sales order

    Can any one tell me how to use the user exit USEREXIT_FIELD_MODIFICATION in order to make the conversion field in the sales order enabled so that i can edit it in the sales order
    Regards,
    SD Consultant

    Hi Serry,
    As per my understanding you are talking about currency conversation in sales order which is in grayed out at sale header level,the values are coming from VBKD - KURSK so through the user exit ask your abaper make that filed in editable mode.
    Regars
    Ram

Maybe you are looking for

  • Please can someone help with a problem syncing my iPhone 4 to Outlook

    Hi all, Since obtaining my iPod and my iPhone 4, they have been happily syncing with my Outllook profile on my home PC. I use outlook top organise my contacts, calendar and notes which is what is synced between devices. Earlier this year my hard driv

  • I need help with searching for an image inside another image

    I need to write a program that checks for a specific image (a jpg) inside another, larger, image (a jpg). If so, it returns a value of true. Can anyone help me? Winner takes all. First person to solve this gets 10 dukes. Please help.

  • Can't import cd into I-Tunes

    When I insert a CD, it will automatically import. But for some reason It will only import one or two songs and than it will stop.. I get a pop up stating that I-Tunes has encountered a problem and needs to close. I send it for diagnostics and it stat

  • XI error - Stack Trace class com.sap.rprof.dbprofiles.DBException

    Hello, We have installed XI 3.1 with master password of 10 characters so now when we go to access Exchange Profile page we get below error We tried to reset XI* users password to 8 digits via SAP R/3 logon - SU01, XILDUSER is geting locked again n ag

  • Mini player for iTunes in task bar - where's it gone?

    Hi, just upgraded some computer components and reloaded Windows and iTunes (XP Pro with Service pack 3, iTunes 8.0.2.20). Before, I used to be able to minimise iTunes and it would shrink to a handy little miniplayer on the taskbar which I used all th