Triggering workflow when ever sale order netvalue (vbak-netwr) changes .

Dear all
I want to trigger a work flow when ever a sale order net value ( vbak-netwr ) changes .how could i do this .
BOobject bus2032  T.CODE : VA02 .
Regards
Rakesh kumar singh

For this you have to define a field restrictions in SWEC...
You can have a look at the below link, second half of this link will exactly suffice your needs...
http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/d06b195f-0eac-2c10-509f-85441b9591f4&overridelayout=true

Similar Messages

  • 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.

  • 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.

  • Workflow for blocked sales orders

    HI all,
    I have a requirement in sales in service order .
    when a credit check is done for a customer ,sales order will get blocked  and
    in the service order for the corresponding sales order will get a status with Not OK. To release the block on this we need to manualy change the status in VKM3 and subsequently in service order (IW32).
    My requirement is to do automatic change in the service order status when ever we do release the flag in VKM3.
    I think with work flow we can achieve this.
    Any standard functionality is supported using workflow for this requirement?
    Please help me how to proceed.
    Thank you all..

    Hi Ravi,
    Yes this is possible using workflow!
    I just simulated your scenario and there are no events when you release the sales order but the other good news is that there is a change doucment that is written. The field CMGST in the table VBUK gets updated with the value D which is "released by credit representative". Using this you can configure your own event.
    However to do this following are the steps you would have to follow:
    1. Copy the business object BUS2032 to ZBUS2032 through transaction SWO1.
    2. Add an event called as "Released" to this.
    3. Generate this new copied version of the BO
    4. Delegate the copied Business Object to BUS2032. You can do this in the initial screen of SWO1 by going to the menu "Settings->Delegate". This is the inverse of inheritance through which you will be adding the properties of the subtype(ZBUS2032) to the main type(BUS2032) at runtime
    5. Use transaction SWED and SWEC to configure your own event and raise it when the change document is written. Do remember that you will have to put an entry in the "Field restrictions" table in the transaction SWEC to trigger your own event when the Sales Order is released.
    6. In transaction SWEC you can put in the change document object as "VERKBELEG" derived from CDHDR table. The business object as BUS2032 and the new event you created in the subtype. Since you have delegated the same it will be available for use for the main type.
    7. In the field restrictions put in the table as VBUK and the field CMGST and the old value is * and the new value as D.
    8. Once you do this the event will be raised once you release the sales order.
    9. You can check the same through the event trace SWEL(Remember to swtich on the event trace through SWELS if it is off)
    10. Now you will have to write a function module to change the status of the service order using the OBJNR of the service order and table JEST or use the standard function module STATUS_CHANGE_EXTERN. <b><b>Please remember that you can change a User status because system statuses are changed by the system. However you can change the system status by updating the table but I guess that is not like how the system changes it. When the system itself changes the status then there might be certain follow on documents that are created.</b></b>
    12. Now you will have to encaspulate this FM in a method of the business object.
    13. You will have to use the ZBUS2032 to add your own method which calls this function module. Hope you have the reference to the service order from the sales order.
    14. Now have a task or a workflow which has a single step which inturn calls this method and trigger the workflow or the task using the event.
    That might solve the problem you have
    Best regards,
    Sudhi

  • Multiple events created in R3 when creating sales order

    Hi all,
    We are having a problem when creating and changing a sales order in CRM.
    When a sales order is created and rapidly changed (or changed more than one time) from CRM, backend is receiving 2 events (from BO BUS2032, CREATED and CHANGED) but at the same time (not even a second of difference between them).
    So the WF that is linked to that event is triggered twice (we are checking if another WF instance is running, but as this 2 events are generated at the same time, the WF instances didn't notice the other instance).
    Do you know if there is a way to solve this problem?
    Thanks!

    Hello
    In everyworkflow there is a tab where you define if you want certain event to be triggered. I think it would be enough to de activate this triggering event.
    Go to transaction PFTC, enter your workflow ID and choose tab "triggering events". You should have a green light for both BUS2032 -CREATED and CHANGED. Click on the event you want to de activate.
    Regards
    Joaquin

  • Does MV45AFZZ user exit trigger when CRM sales order is replicated into ECC

    Hi All,
    When a Sales order is created in CRM, it is replicated automatically using BDOCS from CRM into ECC.
    I have requirement to code the logic during the process, when sales order is replicated into ECC.
    So I need to know the BAPI which is actually triggered to create sales order in ECC, while replication takes place.
    If I could atleast know, if USEREXITS in MV45AFZZ would trigger or not, when CRM order is replicated into ECC, then I could determine, If I could code my logic in those user exits.
    Please help me on this.

    please check this link
    keremgomi=wordpress=com
    Rgds
    Raj

  • Does MV45AFZZ trigger when CRM sales order is replicated into ECC

    Hi All,
    When a Sales order is created in CRM, it is replicated automatically using BDOCS from CRM into ECC.
    I have requirement to code the logic during the process, when sales order is replicated into ECC.
    So I need to know the BAPI which is actually triggered to create sales order in ECC, while replication takes place.
    If I could atleast know, if USEREXITS in MV45AFZZ would trigger or not, when CRM order is replicated into ECC, then I could determine, If I could code my logic in those user exits.
    Please help me on this.

    Hi,
    I guess it should. Just put external break point (RFC userid with debuger rights) and see.
    Thanks,
    Nilesh P.

  • Trigger an Idoc when a sale order is been opened in VA02 & saved

    Hi Experts
         I have a requirement to trigger an Idoc when a sale order is been opened in VA02 transaction and saved.
    Now that I have attained the same through Message Control Settings and Nace out put type settings with Multiple Issuing.
    Here in the Idoc will be triggered when the user makes any changes in the order based on the NAST table entry.
    Now my requirement is that the Idoc has to be processed even if there is no changes made to the document when the user opens the sale order and clicks save.
    This is the process been carried out to re-process the Idoc.
    Now that the Idoc is triggered using the path ---> menu - extras -output - header- edit & save.
    Now that the user need to process the Idoc by just opening the order  in VA02 and  click save.
    How can this be attained ? is there any configuration for it ?
    Or is it possible to handle the same in any of the user exit ?
    the problem is the user exit save gets triggered only when there is any change in the document else it throws a msg " No changes made"

    Hi Niraj
       Thanks for your Response.
    Now that the output control works fine when there is any change made to the document.
    Now that i need to configure such a way that the output control triggers even if there is no change to the document and save   button is clicked.
    Can U please elaborate how do i make settings in VOFM-> Output Control ?
    Thanks
    Sathish

  • Material Determination when creating Sales Order referencing Contract

    Hi Experts,
    Is ther any way to force material determination when creating a sales order with reference to a contract?
    When I create a sales order from scratch, the material determinations works fine, but when the sales order is created referencing a contract, the material is copied from the contract without material determination.
    I've checked control copy at item level, without sucess.
    Thanks in advance,
    Nuno.

    Hi Nuno,
    Material determination is triggered by the material entered in the line item of the sales order.
    You can carry out new Material determination/Product selection by copy cotrol configuration when creating with reference.
    For your scenario of creating SO with reference to Contract the "product selection field should be blank" at item level copy control.
    Blank --> Carry out new product selection
    A --> Copy result of product selection
    B --> like A, but the product selection is never cancelled afterwards
    C --> Reserve
    Hope this helps you.
    Thanks
    Arun

  • 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

  • Modifying NAST when a sales order is stored.

    Hello,
    How can I modify output messages (suffix2 field) when a sales order is saved (va01 or va02)? I have added a breakpoint at some sales user-exit but the xnast and ynast are always empty (and sales orders contains output messages).
    Thanks in advance,
    Ricard.

    Oscar,
    You may be better off logging this in the ABAP forum. I'm sure there would be plenty of code-cutters willing to offer you advice on this. I know there are a heap of function modules around spool requests and the NAST/NACH tables. There might be something in there.

  • Creating a PO when a sales order is created

    Hi,
    Can anyone guide how this requirement can be achieved. For  both scenarios there should be no manual intervention.
    This is not a third party scenario.
    When a sales order is created then a purchase order should be created in same server and                                                                               
    in different server.
    1) For different server scenario i think idoc can be used.  what should be my outbound and inbound message types and idoc types. because both po and so have same idoc types(ORDERS) and message types(ORDERS05). so when a sales order is created in 1 system how system knows that it needs to  convert to PO in other system. And there should be no Purchase Requisition created..
    2) Best way creating  PO in same server with sales order with out creating Purchase Requisition.
    please share your valuable suggestions.
    Edited by: abilash n on Jun 13, 2011 7:12 AM

    you need two output types for two scenarios, and there are different ways to do it from there,
    for PO creation in same server I would use a Output with Transmission Medium as 8 - special function and used BAPI to create the PO, this way you dont have to keep track of idocs but the once the order is created functin will get triggerd and PO will be generated.
    Check with the SD Consultant on how to create the Output type with TM 8(tcode NACE -> V1 - sales -> output types -> ).
    for the different server I believe you alredy have the RFC/ connecetions set up. You'll have to use an IDOC for this.
    Partner profiles and process codes in destination systems will determine the PO creation.
    regards,
    nipuna

  • User Exit/Badi to change the billing plan date when create sale order

    Experts,
    Please advise which user exit/badi can be used to change the billing plan date wen create sale order.
    My requriement is based on some rules to dynamically change the line item billing plan start date and end date when create sales order.
    I tried some user eixt in MV45AFZZ, but the date got revert to the orginal date from billing plan.

    Hi,
      check the include MV45AFZB.
    Thanks & Regards,
    Sateesh.

  • Error message when updating Sales Orders

    Hi Experts
    Following an issue over the weekend when I was forced to perform a  hard reset we are now experiencing error message when trying to update some sales orders. 
    This entry already exists in the following tables " ADO1 (ODBC - 2035) [Message 131 - 183]
    it is not happening on all orders - i think only ones which were on the system prior to the reset.
    We also use webtools and the B1SyncService seems to be causing the SAP B1 system to become unusable - following each attempt to sync there is an error in the event log:
    Event Type:     Error
    Event Source:     B1SynchService
    Event Category:     None
    Event ID:     0
    Date:          29/06/2009
    Time:          13:42:38
    User:          N/A
    Computer:     SQL01
    Description:
    A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
       at netpoint.api.data.DataFunctions.ExecuteScalar(String SQL, String connectionstring)
       at NetPoint.SynchSBO.SBOObjects.SBOUtility.SetCompany(Company TheCompany, SecurityTicket securityTicket)
       at NetPoint.SynchSBO.Synch.SetCompany()
       at NetPoint.SynchSBO.Synch..ctor(SecurityTicket ticket)
       at NetPoint.SynchSBO.Synch..ctor(SecurityTicket ticket, Int32 pricinginterval)
       at NetPoint.SynchService.NPSynchService.Synch(String profile, Mutex mutex)
       at NetPoint.SynchService.NPSynchService.Main(String[] args)
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    For now I have had to stop the SyncService to prevent B1 from becoming unusable (users are unable to start any AR module), but even after I have stopped the syncservice I still have the error when updating sales orders.
    Regards
    Jon

    Dear Johnny,
    the error reported sounds like a DB Corruption. I would advise you to log a message to SAP Support including all the details in order to obtain the error message. It is also a good idea and it will speed up the process if you include some print screens showing exactly the error message.
    Hope my reply helps you to solve the issue.
    Regards,
    Wesley Honorato

  • Partner Function "Vendor" missing when the sales order is replicated to ECC

    Hi Gurus,
    We are facing a problem on replication of functions partners between
    sales order of CRM and ECC.
    We have downloaded vendors (partners of table LFA1) from ECC to CRM
    following note 883162 and this replication was ok!
    We have mapped all partner functions from ECC to CRM and from  CRM to
    ECC for distribution of partners between systems.
    We must include a vendor using partner function '0000092 - Carrier' on
    our sales order, which is transferred to ECC. However, when the sales
    order is transfered to ECC, the vendor (which was included on CRM) is
    missing.
    When the sales order is created on ECC and the partner (type carrier)
    is included in,  the order arrives on CRM missing only the partner
    number, because the partner function is there.
    How to fix this problem?
    Best Regards,
    Nivea Faria

    Hi,
    See this Note : 975195
    Hope this helps.
    Best Regards
    Shiven

Maybe you are looking for

  • Need to fatch the data from sqlserver to Oracle DATABASE ;not migration

    Hello, What is the easiest method to insert/refresh data into Oracle Tables from SQLSERVER 2005 table.Do I need ODBC connection and how it works in the PL/SQL to create the connection and fetch the data from sqlserver. Thanks, Sarabmann

  • Java.lang.UnsatisfiedLinkError: com/edifecs/xengine/xeobjects/XEHelper.cre

    Protocol Name : EDI_X12 Document Verison : V4010 Document Type : 850 Document Definition as : EDI_X12-V4010-850-850def Listening Channel : Protocol : Generic File 1.0 Tansport Protocol Parameter : Folder Name :/u01/ftp_root/Inbound (A folder on Serve

  • How to use VM server's disk space to store VM?

    Hi! I've installed Oracle VM Server on my Sun Server. The server has 4 hard drives, which are combined in RAID 10. The final disk space is approximately 600 gigabytes. This is df command's output: Filesystem Size  Used Avail Use% Mounted on /dev/sda2

  • Need code logic

    Hi I need help in interactive ALV Repot. When i executed the report, it is displaying the material Doc number ,material etc in grid layout. my requirement is , when i double click on material Document number , it has to show the sales order number, s

  • Bug in Camera Raw 8.4?

    I have Photoshop Elements 12, and have just updated to get the new version of Camera Raw for opening my files. What I've noticed is that if there are dark bits which are almost black they show up bright blue, as if it's some kind of warning like with