I need a Badi that is triggered when saving Sales order in both Va01 and Va

Hi
I need a Badi that is triggered when saving Sales order in both Va01 and Va02
I tried with the following BADI's
BADI : BADI_SD_SALES
Implementation : /BEV1/SR_SALES_ORD_1
Method SAVE_DOCUMENT
Now when i want to put my peice of code in this (SAVE_DOCUMENT) method.
It is asking for Access key. Which i do not have.
Should i create a implementation and then create a method and then put my code there?
Anybody plz help.

You will probably not find a BADI to suit your needs.  However if you look at include program MV45AFZZ you should find two subroutines:  USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT.  You can put the code you need directly into these subroutines.  If these have not been changed yet on your system, you will need an access key to make these changes.
Please read the documentation in the header of the subroutines for furtner information on when they are called.
Best Regards,
Chris H.

Similar Messages

  • Want a UserExit or a BAdi that gets triggered while saving a PO

    Hi Gurus,
      Can anybody help me by telling which UserExit or BAdi gets  triggered while saving a Purchase Order.
    My requirement is:
      While I create a PO using a Purchase Requisition that was created for a Process Order and save it, I want to update the Vendor Batch Number of the PO  to the  Vendor Batch Number that I created in the Customer screen of the Process Order.
    Hence for this I want a UserExit or a BAdi that gets triggered while saving the PO....

    Hi
    Use the BADI
    ME_PROCESS_PO_CUST and the method
    PROCESS_HEADER
    for your requirement
    Reward points if useful
    Regards
    Anji

  • Direct production order when saving sales order.

    Hi,
    How to create a production order from sales order.ie. When a sales order is saved production order automatically created.
    Thaks and regards
    Harish

    Hi
    For the product that you need to have the production order once the sales order is saved
    Maintain the planning strategy     82     Assembly processing w. production orders  in material master / mrp 3 view
    So once the sales order is created, system automatically do the bom explotion and availability check, routing in background and create the Prodcution order.
    so in Md04, you can see the production order for you sales order qty.

  • User exit not active when saving sales orders

    while creating a sales order (VA01)   i need  to update  the  storage location  based on  division . for this the badis  and user exits  are not triggering   while creating a sales order for the above requirement
    any solution........
    <removed by moderator>
    thanks in advance..
    <Subject edited. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]>
    Edited by: Mike Pokraka on Aug 7, 2008 8:38 AM

    JVP,
    MV45AFZZ this is the include which is trigger while creating SO.
    use  FORM USEREXIT_FIELD_MODIFICATION   to write code.
    your code look like if sy-tcode = 'VA01'.
    update field.
    endif.
    Amit.

  • Error:G/L account missing when saving Sales order

    Hi Guys,
    I will appreciate your input on this.
    Whenever I try to save a Standard order for a particular material I get the error"G/L account missing. I have checked all the Account assigment settings and they are correct.
    I faced this issue while creating an order for downpayments.This error occurs when we use the material of the kind "make to order".
    Regards

    Hi Pvarinder,
    First please check the customer account assignment group at your sales order header level and material account assignment group at your item level.
    If they are ok then go to Environment->Analysis->Account determination
    As you said the entries are ok in VKOA, so my guess is I think you have some condition type which is not getting the right G/L account.
    Please check and revert with your findings.
    Regards,
    MT

  • When saving sales order Error determining local currency: ER type 'M' date

    Hi experts
    we have created new sales area for intercompany billing process. we are doing testing for this.
    Update was terminated    
    after saviing sales order express document update was terminated received from author
    sales order Error Info...   M2 802: Error determining local currency: ER type 'M' date 02.08.2011.
    i need your input
    thanks

    Dear Manoj Verma,
    Check the pricing date of the sales order.
    Check the valid from date for the currency types/exchange rate type M in OB08
    Now check whether the pricing date in sales order is before the valid from date in OB08.
    If so , make the valid from date in OB08  as the pricing date in sales order in OB08 and then save.
    Thanks & Regards,
    Hegal K Charles

  • Update  Customer's Credit Exposure amount when saving sales order

    Hi All,
    My requirement is to update the Credit Exposure amount(KNKK-SKFOR) of the Payer based on the open items for the payer when saving a sales order.
    I checked the UserExit USER_CREDIT_CHECK2 however this is not working when I am trying to update the KNKK-SKFOR value in this userexit.
    Please help.
    Thanks.

    Dear Debashish
    As per my understanding, this is because the credit limit check is always applicable at 2 levels only i.e. Sales Order and Delivery.
    u r talking about Open Billing Doc and Open Items, but this is also covered within Open Sales Orders and Deliveries, isn't it?
    Hope this will help u.

  • When copying sales order, its coming as booked (Using custom workflow)

    Hi,
    While copying sales order using custom workflow, if the source sales order is booked, the new sales order is also coming as booked only.
    But in standard workflow, its coming as Entered. Any idea which parameter I need to check?

    Hi Asit Garg,
    Correct me if i am "X".
    You want to trigger the workflow for two different scenario that is 1. when the sales order is changed 2. when the sales order is created with delivery block.
    For the 1. As you said it is working fine.
    For the 2. sales order created with delivery block.
                 Make your workflow to work like this, Whenever the sales order is created trigger the workflow and at first step check for the condition weather the sales order have the delivery block or not if not terminate the workflow through terminating event if not proceed as you wish.
    Hope it will helps you,
    Regards
    Balaji E.

  • Creating a pop-up in Acrobat X that is triggered when the PDF is opened.

    Hello all,
    I am wanting to create  a pop-up that is triggered when the PDF is opened.
    The problem I am facing is that our customers are filling out the packet , but are not using the purple "Submit" button located at the top of the page to submit the form to us. They are instead printing out the form and faxing it to us, or scanning and emailing the packet, which defeats the whole purpose of it being a fillable, distributed pdf.
    The email invitation that they receive is a bit wordy so I have have pared that down as well. To be honest with the amount of "Read this first" pop ups that we are exposed to daily I think that our customers are simply not reading the instructions properly.
    There was a post here in the forums but the expanation was for Acrobat 7 or 8.
    Any help is appreciated.

    Thank you for the quick response George. I guess a better way communicate what I need to accomplish is "how"
    I went to the toolbar on the right, then "javascript", then "Document Java Scripts". That opened a window that had me name the script, then add it, then put in the scripting (see below). I do not know how to "place it in a document-level JavaScript (outside of a function definition) or in the initial page's Page Open event."
    This is the script I am attempting to use.
    var message = "When you have completed filling out the Tax Organizer, click on the purple "SUBMIT" button at the top of the page. This will automaticall submit your Tax Organizer for you. Be sure to print a copy for your files"
    app.alert(msg,3);
    If you could provide some step by steps that would be super.
    I am wanting this pop-up box to open and the client will have to then click on the "ok" button to make it dissapear so that they can then fill out the PDF.
    The "Submit" button is auto created for me when I choose to distribute the form, I am unaware of any way to move it.
    I feel that my issue is a elementary one, I am currently working through the Adobe Classroom in a Book lessons as all my acrobat skills have been self taught.

  • BADI  that is called when we create shopping cart

    Hi all,
    Can any one tell me the BADI that is called when we order a shopping cart.
    Thanks&Regards,
    Hari

    Hi
    For Business Object type - BUS2121, the SAVED event is triggered, once shopping cart is saved, using Standard SRM Workflow. 
    Refer to SAP transaction - SWETYPV (for Event linkages)
    When a user orders a shopping cart. This triggers the SAVED event, which starts the approval workflow. The system analyzes the start conditions in Customizing.
    There is information here on which workflow the system should start under which conditions. Each workflow represents an approval process (single-level or multi-level) or is defined in such a way that no approval is necessary.
    If approval is required, the system goes through the corresponding approval procedure. The user can meanwhile change or delete the shopping cart. The shopping cart can take on the following statuses:
    Not accepted
    Approved
    Deleted
    Changed
    You can further process a request via a subworkflow.
    If approval is not required, the system sets the status to Approved and immediately starts the subworkflow.
    Users receive a work item. Before the shopping cart can be further processed, they have to accept the rejection of items (or not, as the case may be).
    After the shopping cart is released, the system calls the spooler. This transfers the shopping cart to the backend system or creates a purchase order locally in the Enterprise Buyer system.
    This is how a workflow triggers.
    You want to start several Wf for one event ? Technically this is possible, but not recommended as you will loose some functionalities like the approval preview and maybe some related to the workflow restart: In SRM the system consider that only one workflow instance can be active at a time.
    For the approval preview, it get the last active version.
    For the worklow restart, the same.
    Select BOR object BUS2121 using SWO1 transaction.
    The whole list of shopping cart approval WF will be displayed.
    Please go through the related links as well ->
    Re: Activating workflow
    Re: Custom Workflow is not behave as like standard..
    How workflow is getting trigger when you click order
    can we have 'BUS2121' for multiple WF..
    Hope this will help. Do let me know.
    Regards
    - Atul

  • When i update apps on my iphone they need the ID that i used when i downloaded these app and i forgot this ID and a make a new ID how i used the new one to update these apps thanks

    Hello all,
    when i update apps on my iphone they need the ID that i used when i downloaded these apps and i forgot this ID and a make a new ID
    How i used the new one to update these apps?
    thanks

    Your device can hold apps from multiple IDs, but to update them you have to swicth identities which is time consuming. If possible use only the one ID. If you need to reset the password for your old ID visit My Apple ID.
    tt2

  • Print program is not getting triggered when saving the application

    Hi all,
    My requirement is when i save the invoice using VF01 the print program should get triggered.
    The print program is not getting triggered when saving the application even when i have configured the outtype and have attached the print program.
    The setting "send immediately (when saving application)" is also checked.
    I need to configure it for VF01 transaction.
    The error message displayed was " please maintain output device in master data".
    Regards,
    Umesh

    Hi Umesh
    Please check if you have missed any of the following:
    1. Defining Access Sequence(can use existing).
    2. Defining Output Condition Type(can use existing). - Assigning the Driver Program and Form in processing routine.
    3. Output Determination Procedure
    4. Assign Output Procedure to Billing Types
    Kind Regards
    Eswar

  • In VA02 transaction which exit is triggering when saving the data

    hi all sap gurus,
    In VA02 transaction which exit is triggering when saving the data

    Hi Reddy,
    The <b>user exit</b> and badi tried for this transactions are
    V60F0001                SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001     SD Customer functions for resource-related billing
    V45W0001     SD Service Management: Forward Contract Data to Item
    V45S0004     Effectivity type in sales order
    V45S0003     MRP-relevance for incomplete configuration
    V45S0001     Update sales document from configuration
    V45P0001     SD customer function for cross-company code sales
    V45L0001     SD component supplier processing (customer enhancements)
    V45E0002     Data transfer in procurement elements (PRreq., assembly)
    V45E0001     Update the purchase order from the sales order
    V45A0004     Copy packing proposal
    V45A0003     Collector for customer function modulpool MV45A
    V45A0002     Predefine sold-to party in sales document
    V45A0001     Determine alternative materials for product selection
    SDTRM001     Reschedule schedule lines without a new ATP check
    <b>Business Add-in</b>     
    BADI_SD_SCH_GETWAGFZ     Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001     SD Customer functions for resource-related billing
    <b>Reward pts if found usefull :)</b>
    Regards
    Sathish

  • All that comes up when I open Firefox are my toolbars and a place to enter a URL, but there is no window. I have to enter full screen mode to view websites.

    Something happened with Firefox where all that comes up when I open Firefox are my toolbars and a place to enter a URL, but there is no window. I have to enter full screen mode to view websites. How do I get back to a regular browsing window? I have no idea how this even happened.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. So, what are the parameters that I need to set in CRM system so that my quotation gets replicated?

    Dear Experts,
    I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. What are the parameters that I need to set in CRM system so that my quotation gets replicated without any error?
    Please help me in this regard. An early and in detail step by step guidance is highly appreciated.
    Thanks,
    SMTP

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

Maybe you are looking for

  • 2 iPhones each with there own Apple ID, can we share the same iCloud Keychain, how?

    Do we need to each use the same Apple ID in order to share the keychain? 

  • Mac mini and a 30 in display screen questions

    Hi everyone . I wanted to no if anyone out there knows if the Apple Mac mini will run a apple 30 inch screen . I want to run my dell 30 inch screen on it at full resolution of 2560 x 1600 . Thats what my display runs at like the apple one . But befor

  • Want to move 10.000 linked files to another HD!???

    Hi, i want to move my photos from an external HD to the internal imac HD. The photos are linked to the iPhoto library. After a simple drag an drop iPhoto is not able to find the Original file. Only one after another, and this is a boring job for 10.0

  • Grouping groups in Address Book

    Is there a way to create a folder in Address Book's groups? I have so many different groups in the left column that it becomes difficult to navigate. I was wondering if there is a way of "hiding" groups? Thank you,

  • Flashing monitor in my Macbook

    Hi there, My Macbook has a problem recently. The monitor flahsed several times these days when I was using it. Basically the monitor was blank for a few seconds and then return to normal afterwards and it happened several times already. Anyone got th