User Exit to make changes in sales order line item data.

Hi All,
I need to know about user exit by whcih I can make changes in sales order line item details --> Account assignment tab --> Sales order no and line item no.
I want to make changes so as to bring the active maintenance contract no and line item no here instead of sales order no and line item no. So whenever ( Va02 or Va03) we go to sales order line item and se the account assignment tab I should see the contract no there.
Just let me know the USER EXIT to do the above changes.
Points will be awarded.
Regards,
Satish.

Hi,
Please have a look at the following user exits...
1. user exit_ save_document
2. user exit_save_document_prepare
Regards
sankar

Similar Messages

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • Quantuty on the Sale Order line item

    HI,
    Can anyone suggest how to control the Quantity on the sales order line item.
    Sale order line item should not be reduced below the delivered or invoiced quantity. For EX:Sale order line item 10 has 200kgs,delivery quantity created aganist that order is 100kgs, now the system should not allow us to change the sale order line item quantity below the delivery quantity i.e 100kgs.
    Thanks in Advance.

    In the transaction OVAH, for the message class V4 and message number 083, in the category column, change the entry from W to E. Then system will issue hard error when you change the order qty to below delivered qty.
    Regards
    Sai

  • Sales order line item user exit?

    Hi Folks,
    Can any one of you suggest me an user exit in sales order line item level?
    I want something which stops before/ or just after entering the quantity in the item level.
    We wanted to set up a issue which deals with rounding profile comming from CMIR record to take from Ship-to rather than standard Sold-to party functionality.
    Thanks a TON in advance.
    Praveen.

    Praveen,
    Check this post
    https://forums.sdn.sap.com/click.jspa?searchID=7098802&messageID=1674246
    Regards,
    Satish

  • Screen /user exit for additional screen on sales order header

    Hello sir's,
    can anybody help me for this query---
    Screen /user exit for additional screen on sales order header.
    exit name.
    Thanks in advance,
    Vikram

    Hi,
    SAP has provided screen modification. This you can do on "Additional data B" screen at both <b>header</b> and line iteam level.
    Additional <b>header data is on screen SAPMV45A 0309</b>, additional item data on screen SAPMV45A 0459. These screens contain the <b>Include screens SAPMV45A 8309 ( this is the screen exit at header  )</b> or SAPMV45A 8459 ( this is the screen exit at item ) as user exits. There few more exits you will have to code to get this screen works. The are,
    MV45AOZZ - PBO module of screen
    MV45AIZZ - PAI module of screen
    MV45ATZZ - Global data definition for user-exit.
    Check this link for more info regarding user-exit in sales docs.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    We have alredy implemented this solution at line item level. Let me know if you have any question.
    Regards,
    RS

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    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

  • Transaction VKM1 - Changes Sales Order Line Items Custom Fileds

    Hi,
    I have a challenge to indentify the impact of VKM1 on a Sales Order Line Item Customer Enhanced Fields. When credit hold for the customer is released in VKM1, I want to prevent some of the changes to the line items in the User Exit. The Problems I am not sure, How VKM1 is calling the Transaction VA02 or those Sales Order User Exits to modify certain customer enhanced fields. I tried Activation of Break Point in Update Task but did not stop at the Break points set up in the User Exit. How does Transaction VKM1 call the Sales Orders to execute changes? Is it through BAPI or Call Transaction VA02 or some thing else.
    Can any One please help me? Appreciate Your Help in advance.
    Thanks,
    Kannan

    VKM1 uses FM SD_ORDER_CREDIT_RELEASE to release orders on credit.

  • Revenue Recognition based on User Status of assigned Sales Order line item

    Dear Community members,
    We have requirement to recognize / de-recognize revenue posted to WBS for calculation of RA, based on the 'User status' of the assigned Sales Order line item.
    To elaborate requirement further -
    1) WBS Element - XXX - 10 ( with operative indicator - Plan/Bill/Account Assign)
    2) Sales Order(SO) Line Items assigned to the above WBS -
    - SO No -  123 Line Item 10 - Actual Rev - $ 300 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    - SO No -  124 Line Item 20 - Actual Rev - $ 400 - User Status - COMPL(Meaning this work is Complete , all payment received thus actual revenue for RA at WBS is $400
    - SO No -  125 Line Item 10 - Actual Rev - $ 800 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    As per WBS reports Actual Revenue posted to WBS XXX-10 is $ 1500 ( $300$400$800) , however since two SO line items ( SO 123 /line item 10 and SO 125 / line Item 10 ) are NOT having User status 'COMPLETE', the actual revenue posted by those line items $ 1100/- ($300 + 800)  should not be included as Actual Revenue for RA at WBS level.
    Thus Actual Revenue for RA at WBS XXX-10 should be $ 400 /- ( the revenue posted by SO 124/line item 20 which has user status as 'COMPLETE')
    How do above can be achieved?? Is there any standard solution for this?? Is any SAP Note available for this (I too am looking for one but not found any ) ?? do we need any enhancement , Customer exit etc
    Thanks in advance
    with regards

    Hi,
    Thanks. You are right that the 'Completed Contract Method' would defer revenue recognition. However, the status checked would be of the RA object (WBS Element in this case, as RA key is on WBS and RA is being calculated on the WBS).
    However, our requirement is to check the user status of the Sales Order Line items assigned to the WBS element and filter the revenues posted based on the active user status of individual Sales Order Line item.
    Please give you inputs.
    Thanks in advance
    With regards

  • Need to Split Sales Order Line Item in VA01

    Hi,
      I have a requirement in which i have to split an order line item for KMAT materail number. system popup configurable screen, here all the required characteristic values have to be selected as per the customer requirement.
    After entering all the required customer specific characteristic values, system determines batch automatically. If characteristic values of the Batch matches with the characteristic values of configurable screen selected in the sales order
    Here also we have to check the sales Order Quantity (VBAP u2013 KWMENG) and order Confirmed quantity (VBEP u2013 BMENG), if the both the quantities are not same, consider order has partially confirmed.
    If Order quantity is partially confirmed, check for the batches with the same characteristic values of the quotation configurable screen and if batch found, system has to create a one more line item and new batch has to be assigned to create line item.
    Reduce the order quantity equal to the confirmation quantity in the first line item.
    Create a new line item in the quotation, copy all the remaining unconfirmed quantity from the first line item and also copy all the characteristics and properties (item category, schedule line category, business data, item data, and requirement type) and assign the batch to the new line item. System does the availability check automatically and confirms.
    In another scenario system doesnu2019t find batch, in this case capable to promise has to trigger directly.
    Here we have to check the Order confirmed quantity, if confirmed quantity is equal to zero.
    Change the item category of the line item, due to which system determines different Requirement type and schedule line category.
    Based on the Requirement type system triggers the capable to promise.
    I would lke to know which is the suitable user eixt or BADI to split the line items and what all the tables or structures i need to populate in order to create a new line item successfully.
    I have seen many post in sdn but no body gives the right user exit name where i can add new line item.
    Regards,

    Hi Amit,
      Thanks for your reply. In this scenario configurable material is involved. And first Make to Stock scenario is executed to check any material with customer entered characteristics are avialable. If its so it will determine its batch and assigned the quantity.
    If zero quantity is assigned or no quantity is assigned then I have to trigger the Make to Order scenario for rest of unconfirmed quantities in order.
    I have check it in USEREXIT_MOVE_FIELD_TO_VBAP but it was of no use. I even tried in USEREXIT_CHECK_VBAP but still no result. I am not sure what all the tables and structures i need to populate there.
    Regards,

  • How to set Confrimed quantity as 0 in the sales order line item

    hi all
    i have a requirement that my user dont want to see confirmed quantity in the sales order line item.
    scenario is make to order.
    i have set strategy group is 20 -make to order
                                            MRP Type is PD
                                           Lot size -
    EX , still its showing confirmed quantity.
    could pls any one tell me how to set 0 quantity in the sales order line item
    thnx

    Dear Sateesh,
    If the availability check is carried out and stock is not there in our plant, then it will show the confirmed quantity as Zero.
    If you don't want to carry out the availability check,
    To achieve this,
    1. Remove the availability check in the transaction OVZG against your requirement class.
    You can find the requirement type assigned to the sale order in the procurement tab.
    In OVZH transaction, you can find the requirement class assigned to your requirement type.
    2. Remove the availability check for your schedule line category in VOV6.
    In the material master MRP3 view, you ll be having Availability check, there you need to specify the availability check..
    If you specify it as KP(No check), then it will confirm the qty, though the stock is not there in our plant..
    To meet your requirement, you have to prefer user exit.(Correct me if I am wrong)
    Thanks,
    Venkatesh.S.P

  • Sales Order Line item category not getting Re detemining Correctly

    Dear all,
                I need  help regarding the Sales order item category redetermination.
                we are having two item categories YNAE and YNAG and it contains schedule  line categories CP and CB ( i.e for item         category  YNAE schedule line category is CP and for item category YNAG schedule line category is CB),
    for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
    For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule line on SAVE and its delivary dates are also not getting determined properly. If i press the option ATP check at the schedule line level than very things will getting corrected.
       I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

    USEREXIT_PRICING_PREPARE_TKOMP is the wrong location - that exit is for pricing communication preparation only.  Your primary location for item category determination is USEREXIT_SOURCE_DETERMINATION (MV45AFZB).  In your simple scenario, you could consider making an availability check at this point with some assumptions and then assign the item category accordingly.  Otherwise, you can re-assign item category and schedule line category in USEREXIT_MOVE_FIELD_TO_VBEP.  The exit is called once before ATP (for ATP-relevant schedule line categories) and once afterwards.  The call is recursive if you re-assign another ATP-relevant category.

  • How to upload sales order line items?

    SAPGurus,
    For years my customer service department has been asking for a way to upload sales order line items into the VA01 sales order-entry screen.
    Many of our customers submit PO's with huge amount of line items, up to 1,000 lines. Our CS reps need to key in the data line by line (or copy/paste
    approx 17 lines at once from Excel into the VA01 screen), and we are looking for a way to make this process leaner. One idea we have is that user creates the order header, and then has a way to upload the material numbers and quantities in a separate (newly created Z-transaction) screen in one go.
    Obviously rules then need to be built that deal with the various pop-up messages related to e.g. ATP, material status, etc.
    Does anyone have any experience or thoughts on how we could achieve this? A way to make the sales order-entry process a bit less time-consuming? Any feedback would be greatly appreciated !
    Thank you,
    RVS

    Take the inputs from this Blog created by  SUNIL PILLAI                   
    Sales Documents upload  using Standard Direct Input Program in LSMW
    G. Lakshmipathi

  • Restrict deletion of sales order line items

    Hi,
    I need to restrict deleting of sales order line item, I think we can use the user exit, MV45AFZB, USEREXIT_CHECK_XVBAP_FOR_DELE.
    But when i set the flag to 'X', even though it does not delete at tht instance when the sales order save is clicked again the line item gets deleted.
    ANy idea , to prevent that?
    Thanks
    Keshi

    Hi Keshi,
    That is the correct exit, we are using the same without any problem. Just set US_EXIT  = CHARX.
    Regards,
    John.

  • No cost booking against sales order+line item once accontng release is done

    Dear all,
    I want to stop all cost bookings against a sales order + line item once the accounting release for that item has been done.
    By cost booking i mean, all such transactions that are done for a sales order + line item that involve cost booking. Like, MB1A should not allow any goods issue against that sales order + item once accounting release is done.
    Is it possible to that in sales order? Like by using any status at item level.
    Please guide.
    regards
    SAPshed

    Hi Ajay,
    We have not kept automatic cost estimate marking during saving of sales order as costing dept wants  to confirm whether costing for the SO is correct or not.
    Hence we have to use CK51N.
    Now the problem is for any change in any line item of a sales order is changing the costing status from "VO" to "KA" for all line items of the given sales order in table KEKO.
    This is causing measure problem as production people are facing problem while making any change in production order as already there is a check put in CO02 that if cost estimate does not exist for underlying sales order, then change in production order should not be allowed.
    Similarly production order creation (converting planned order to production order) is getting held up.
    Costing user has to repeated run CK51N for all line items of a single sales order if there is any change in any single line item of the sales order.
    Hence pl. help and suggest as to what is to be done now.
    Regards
    Ratna

  • Copying text from CMIR (KNMT) to the Sales Order Line Item

    We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function.  If doesn't exist, then look up by Sold to Partner Function.  Have setup a new text id (ZPRN), a new access seq (9011).  The access seq has one seq =5 for KNMT, ZPRN, all languages and that saves fine.  When I set the Partner Function to be SH.  I get the following error msg:
    "The Language does not come from the partner function AG for MVKE".
    Any ideas?  This access seq does not reference MVKE. It only references KNMT.
    Thanks!

    Hi Lisa,
    Just stumbled on this post, as I am searching for something similar.
    What you are attempting to do isn't possible in config.
    This is because as standard Customer Material Info Records are not even considered for ship-to party in the sales order.
    They work for sold-to only.
    Therefore, this funny error message is SAP's way of saying, "Why are you trying to enter a partner here, because the data is determined for sold to only?"
    You can change this with development for other fields (ie, to determine delivery plant, tolerances etc at ship-to) by using
    the exit MV45AFZB with the USEREXIT_CUST_MATERIAL_READ form.
    However, even if you do this, Text Determination is still sold-to only and still doesn't behave.
    I am currently looking myself for a solution for this problem and I will let you know what I find.
    Cheers
    Chris

Maybe you are looking for

  • How to internationalize Poll question

    Hello I am using Jdeveloper Studio Edition Version 11.1.1.4.0. Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 WebCenter Portal application. Currently I want to use poll services in my pages. and everything is ok when using one language, but my pol

  • Connection between a button in the GUI made in swings to a servlet

    Can anybody help me out in connecting a swing component say a button with an servlet? It can be done through the 'form tag' when it comes to HTML but how to do this in swings?

  • Black MacBook cursor/selection problems

    Having a few problems. When I hover the cursor over a link or application, the item will be selected very quickly before I actually click on it myself. Other times when I click on a tab or link the cursor will drag the item around as if I was holding

  • How to use local variables declared in b/t the methods in other views

    Hi i need to use the value of the local variables declared in b/w the views in one other view,as i have manipulated the value based on some condition & want to use it in 1 more view for my req.,but that variable is not global one just for once i need

  • How can I get Photoshop to run?

    I have a brand new MAC. I installed the latest Photoshop. It said I needed to install Java Runtime. I did. When Java was finished, it said it couldn't be installed. Does anyone know what I'm doing wrong?