Userexit to update purchase docs like sales orders

Hi,
For sales documents, there is a user exit MV45AFZZ which has lot of form routines, that get invoked before saving the sales document. Similarly for purchase orders which is the user exit include which will have such form routines. I want to modify a single field in a purchase order before saving it based on some criteria. How do I achieve that. Thanks for the help in advance,
Regards,
Vijay

In my previous report I have already mentioned the enhancement name "MM06E005"
Goto T-code SMOD Enter enhancement name "MM06E005"
Click on components, you will get all the FMS.
Message was edited by: Amandeep  Singh

Similar Messages

  • Update Purchase Requisition from Sales Order

    Hi,
    My requirement is to Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    I have used Userexit         :- MV45AFZB
                     Customerexit :- EXIT_SAPFV45E_002
                     BADI             :- ME_REQ_OI_EXT, ME_REQ_POSTED
    for my requirement, but in vain.
    Of these Userexit  MV45AFZB, Customerexit EXIT_SAPFV45E_002, BADI ME_REQ_OI_EXT are getting triggered in Sales order creation but, Purchase requisition is not yet triggered and we dont have the VENDOR value with which i need to do perform some checks and update the Purchase requisition.
    After I SAVE sales order, BADI ME_REQ_POSTED is getting triggered.Here, the purchase requisition is created ( not yet inserted into the database ) .I also have required VENDOR value, but in the given
    BADI ME_REQ_POSTED I can make checks according to my requirement but not able to update the new values into purchase requisition.
    Literally speaking, Iam struck up..Dont know what to do.....
    Please let me know any Userexit/BADI/BTE where I can  Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    Thanks,
    Shivaa..

    Hi Max,
    It just struck to me...
    As suggested by you, I thought of calling BAPI BAPI_REQUISITION_CHANGE  from user exit USEREXIT_SAVE_DOCUMENT in MV45AFZZ .
    I f I give PReq no. , BAPI BAPI_REQUISITION_CHANGE  will take the particular PReq no., from database and then change it according to our requirements...
    But, in our scenario I am calling the BAPI BAPI_REQUISITION_CHANGE  and passing a PReq no..which doesnt exist in the d/b itself.....
    Anyways, let me try......
    Meanwhile ,please suggest any other options for resolving the issue in question......

  • Credit exposure updating even when the sales order is blocked

    Hi,
    We are using FSCM credit management. We observed that the credit exposure is updated even when the sales order is blocked. When we investigated it is found out that SD has removed the requirement 101 in the subsequent functions. The reason is they want the confirmed quantity to be updated even though the order is blocked. This will allow the Material Planning to go ahead and purchase the goods. Is there a way around it where we can have MM see the confirmed quantity in the order and it will not updated the credit exposure?
    Thanks and Regards
    Madhu Vutukuri

    Hi Sravan,
    Please let us know, whether the document is really getting reflected in the blocked documents list for a particular kind of block and you are releasing that particular block in the specified area as we have different areas for releasing blocks. Chances are that in the mean time, the concerned block might have been removed in the system and not updated as it might have been. It will be of great help, if you can provide us with the screenshots of the process followed.
    Regards,
    Aman

  • Automatic creation of Purchase req form sales order

    What are all the  settings required for automatic creation of purchase requisition  from sales order( from master data and spro)
    Can any one please help me out. Iam new to this topic

    Material master data: purchasing view must be updated with puchasing group and so on.
    sales data: the item categotu group is BANC
    Sales order: the standard customizing determine the TAB item category, in the related schedule line type there is the purchase requisition document.
    have a look to this link
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm">http://help.sap.com/saphelp_47x200/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm</a>
    Roberto

  • Purchase Requisition and Sales Order Linkage (Order Costing)

    Dear, Gurus
    I have a scenario where in the Purchase Requisition you can assign acct cat C for Sales Order to item 010 for example. What exactly is this used for I mean is it used to transfer the price of the purchase into the Sales Order? Or its just a linking for reporting purpose? User would like if the purchase order or its requisition price come into the conditions of my Sales Order. Is this possible if yes how or thru which condition type? I was told this is order costing and I have no idea how to configure my sales order in terms of order costing to pull the price of the purchase requisition or purchase order.
    Recap
    1)     What is the purpose of the linkage to the Sales order?
    2)     Can the price be linked into the sales order this way?
    3)     Any other valuable information I should know please feel free.
    Thanks and hope to hear from you geniuses.

    Aroop thanks for your reply.
    My scenario is not the same as in 3rd party processing. In fact my scenario is make to order and even repairs of other companies machinery. Now what we are trying to achieve is lets say in the repair or in production of the customers machinery or service, MM needs to make a purchase for a part or tool etc. That in itself has a price. Meaning our purchase mm dept has to pay the vendor for the purchase made and in return we need to charge our customer for that purchase. So we would like for the price of the purchase order come in our sales order condition type as a surcharge.
    We were able to fetch the price of the production order automatically thru condition type EK02.
    We would like to do the same from purchase order.

  • Self Updating Report of Open Sales Orders (Maybe Crystal )

    I want a self updating report of Open Sales Order. I want it to refresh constantly. I know that it could be an alarm but it would be executed every # minutes and dont want to. Any ideas ? I dont know Crystal Reports enough but is it posible ?

    Hi ,
    If I were you , I will not be crazy looking at my sales order in every 1 minutes ..I would train my users to check at least 15 minutes.
    I understand what u are trying to do;you  want that customer will see the latest open SO created ..but 15 minutes is good enough time .
    I think you have to check if database size grows up big time ..so far no report has come to me from my clients for this set up .
    make sure you  are not saving an alert into database
    If you are using multiple alerts , I will atleast monitor my database for a while to see i encounter performance issue ..
    So far for one alert at every 15 minutes ..i think u should be fine ..
    Hope this helps
    Bishal

  • Update the cost in sale order

    dear sir
    i check with abaper ,he says the value is updated from sale order
    they get the consumption of sales using customized transaction
    actual cost is zero
    user create the material master withot pricing
    we ask to update the material master and they do the costing run
    in material master standard costing estimate found
    after they  run the consumption report ,once again actual cost is zero
    i chech\ked in  costing status using CK11N ,std cost estimate found
    is it  possible to update the cost in sales order
    (redetermine or recalculate the pricng in sale order)
    so that my consumpotion report will update
    thanks

    Hi,
    Check the following link
    http://help.sap.com/saphelp_46c/helpdata/en/90/ba6da4446711d189420000e829fbbd/content.htm
    Regards,
    Saju.S

  • Capture the purchase price during sales order creation

    Hi,
    User wanted to capture the item purchase price when a sales order is raised.
    Currently, the sales order capture the VPRS whcih is coming from the material valuation (MAP) price.
    Is there a standard condition type that will captured the purchase price in the PIR record or the PP condition?
    Thanks

    Hi
    As far as i know it is not possible to fetch the purchase price in sales order.
    May be you can define an another condition type asa statistical and maintain the condition records for that. But it will be a tedious job for maintaining all the things.
    regards
    Prashanth

  • Status is not updated from delivery to sales order item.

    Dear Folks,
    One user created sales order with 10 line items and he created delivery and later he deleted line item 30 in that delivery document and with remaining 9 line item he done the PGI & Billing.Here what is the problem is the deleted line item in sales order status showing as completed and delivered quatity showing as 10.Status is not updated from delivery to sales order item.Please let me know how to resolve this?
    Thanks & Regards,
    murali.

    Dear Murali,
    Please go to VTLA transaction then select your delivery and order types after that go in to the details of the item level settings here you check field called Update document flow under Control data tab.
    I hope it will help you,
    Regards,
    Murali.

  • Update pricing procedure in sales order

    hi gurus!
    in sales order item, the tax condition type MWST is determined as 17% by the indicator 1 in both customer and material master data. but after i change the material master data to 2, which should lead to 13% in MWST, i update the pricing in sales order item, no matter what options i choose, the 17% won't change!
    can i ask that why this is not changing?
    how the system control it?
    and what for?
    thank you so much guys!
    BR,

    Dear Michael,
    While Updating your Line-Item in Sales Order, What Pricing Type you are selecting?
    Is it Pricing Type: G - Copy pricing elements unchanged and redetermine taxes
    Alternatively, You may check with:
    Select your Line-Item in Sales Order and Double-Click.
    Go to, Tab: Conditions; and Click Tab: Analysis (at bottom of the screen).
    Now, on to next screen,  Select your Condition Type: MWST (from Left-hand of the screen) and Double Click.
    Read the "Overview" (from Right-hand of the screen).
    This will tell your the exact reason. Based up on, take corrective actions; else post the same for our understanding/ working.
    Best Regards,
    Amit

  • Create purchase requisition form  sales order

    What are all the settings required for autiomatic creation of Purchase requisition from sales order. I am new to this topic

    Hi,
    When the material is trading / externally procured, then the requirement in the Sale order generates PR. This is because the material is required in the sale order & seperate manual data entry for generating material requirement is avoided.
    Regards,
    Prashant Kolhatkar

  • Can u tell me any bapi to create the purchase req with sales order as refer

    can u tell me any bapi to create the purchase req with sales order as reference?

    Hi Mukesh,
    You can use 'BAPI_REQUISITION_CREATE' for the purchase requisition creation if through transaction, you use transaction ME51N for creating the purchase requisition.
    Cheers,
    Sujay

  • Creation of Purchase Requisition with Sale order

    Hi,
    I have a scenario where I need to create a Purchase requisiton for the requirement from the sale order (like the Third party sale order).
    I have done the required configurations to create the Purchase requisition.
    My Sale order has three line items and each line item has different Item category and schedule line category.
    I have configured different Purchase requisition document types for every schedule line.
    When sales order is saved, I need seperate Purchase requisition since the PR document type are different for every schedule line.
    But system creates only 1 PR with multiple lines. It picks the PR doucment type assigned to the schedule line category of 1st line item in the sale order.
    How can I get different PR for different doucment type in a single Sale order?
    Regards

    This can is happening b'coz at your sale order only one I cat is determining by default.
    So, determine diff I cat with diff desired the sch lines cat in the doc.
    Say,
    maintain, I Cat determination(VOV4)
    Sales Order(VOV8) - I Cat Group(material- MM02) - I Cat(VOV7)
    ZTPS - ZTA1 - ZTA1
    ZTPS - ZTA2 - ZTA2
    ZTPS - ZTA3 - ZTA3
    and also check.
    I Cat (VOV7) - Sch Line Cat (VOV6)
    ZTA1 - Z1
    ZTA2 - Z2
    ZTA3 - Z3
    Hope this can assist you in understanding.
    Thanks & Regards
    JP

  • Updating confirmed quantity in sales order

    Hello Experts,
    I have a question regarding ATP functionality. Suppose I have a stock of 50 units in my plant. If I create a sales order of 100 units then 50 units is confirmed and remaining 50 units is open. Now if I put additional stock of 50 units in plant then I want the open quantity of 50 in sales order to be automatically confirmed. But right now it's not happening like that and I have to manually go to the sales order and do ATP check to update confirmed quantity. Am I missing any configuration to update the schedule lines automatically in sales order?
    Thanks,
    Karan

    I want the open quantity of 50 in sales order to be automatically confirmed
    No automatic allocation will not happen in the above case.  Either you have to do availability check for that sale order or have to run V_V2. 
    Am I missing any configuration to update the schedule lines automatically in sales order?
    No configuration is available such that system to allocate stocks automatically as and when the stock is made available.
    G. Lakshmipathi

  • ADRC updation in Creation of Sales order ( VA01)

    Hi All,
    I would like to update the Transportation zone(TRANSPZONE) of table ADRC
    while creating Sales order.
    I need to change this programatically. (Validation & change as per requirment)
    Please let me know the user-exit and  internal table i should used for the same.
    I dont want to change any STD sap programs.
    Thanks in advance.

    Hi,
    I'm not sure if you need to update ADRC table - the address number is usually the the customer's address and is picked automatically.
    Also the transport zone is picked automatically based on the customers address or on the shipping conditions in the Sales Order.
    Transportation Zone (LZONE) also exists in the partner function (VBPA) and the shipping partner (VTPA) - in case you need to suggest a different route for shipping other than the one determined automatically.
    To change this - change both the internal tables table xvbpa and xvtpa (after reading with sales order and item from structures vbak and xvbap) in USER_SAVE_DOCUMENT_PREPARE in the include MV45AFZZ.
    But, I'm not sure if the Address Number (determining the shipping point) would be independent of the Transp Zone, though it's changed in the exit.
    Regards,
    Anil.

Maybe you are looking for

  • How can I update an outdated itunes on a really old and outdated computer??

    My desktop computer (a dell with windows) is extremely old and nothing has been updated on it in years. I can't even get on the Internet because Java is so old. The problem is, I want to transfer music from the itunes on that computer to the one on m

  • Ipod Classic Firmware

    I have been trying to restore my 80gb ipod classic for a while and I end up with the same results. If the ipod isnt plugged in It works fine not screen messages although It's not saying I have no music on there, plug it into itunes and It says I have

  • Firefox 6 Gives me error "Protocol Javascript isn't associated"

    I have never had this issue before. I have just upgraded to Firefox 6, and now, almost all links, clinking on any link prompts me with: "Firefox doesn't know how to open this link because protocol (javascript) is not associated with any program" This

  • Color of a titled border

    - I created a panel with a titled border. - I have a background image. - There is a gray rectangle around the title in the border that I don't want to have because I want to see the background image. How can I handle this?? With panel I used setOpaqu

  • Select * shows 1 record - select count(*) shows 2232 records

    Using SQL 2008 R2 and SS Import Wizard Imported Excel file into SQL Table.  No errors reported during import. Command:  Select * From XLImport returns 1 record Command: Select Count(*) From XLImport returns 2232 What could be causing this ?? Many tha