Sales Order Workflow to trigger when there is change in PO date

Hi All
     I have a requirement, I have to  trigger a work flow when ever there is a change in a po date of Sales Order(VA02). I have created a workflow and added entry into events tab of header, and in SWEC I have added an entry as follows
Change doc. object        VERKBELEG
Object Category            BOR Object type
Object Type                  BUS2032
Event                            CHANGED
in field restriction I have added the follow entry for puchase order date
Table            VBKD
Field Name   BSTKD
Old Value     *
New Value    *
But when ever I change the sales order the workflow is triggering when ever there is a change in any field instead of PO Date Field.
Whats wrong in my Workflow can anybody please  help me.
Thanks in Advance

Hi Ranjith,
Find a user-exit/BADi that triggers when the Sales order is saved. Now in this user-exit or BADi check the values for PO date (old value & new value). If both are same set a flag to Y and or else set it to X.
Now if the flag is X, use the Function module SAP_WAPI_CREATE_EVENT or SWE_EVENT_CREATE to trigger the workflow.
Regards,
Raj

Similar Messages

  • Out of stock Sales Order Item to trigger a BDC to create a PO

    Dear ABAPers,
    I have a couple of questions:
    1. In the sales order program code, how do you find out if an item being ordered is out of stock? Which tables and fields do you check?
    2. when an item is determined to be out of stock,  we want to trigger a BDC to create a PO. How do you do that?
    I know these are big questions. You can give me either an overview or detail solution, it's up to you.
    Thanks!

    Hi,
    Assuming all the basic settings are configured
    Step1: Run T Code VA01 and input the u201Cdocument typeu201D as OR along with your sales area. Then enter your business partner number along with the material number and quantity. Save the order.
    Step2: T Code VA03 input the order number which you have created. Select the line item and (menu bar) Goto u2013 Items u2013 Schedule lines. You will find the u201Cpurchase requisitionu201D for that item just copy the number.
    Note: If you unable to see the u201Cpurchase requ201D in the sales order then make sure you need to change the Item category group of a material in MM02 as BANC in Sales: sales org 2 tab.
    Step3: Run T Code ME21N under the item paste the u201Cpurchase requisitionu201D number generated at sales order level and hit enter that will automatically give all the details, save. You can save the Purchase order.
    This scenario will only help to create purchase order until I know why you want to create a purchase order I canu2019t proceed further.

  • SAP report showing sales orders on which pricing conditions have been chang

    Is there a SAP report that shows a list of sales orders on which pricing conditions have been changed.
    My knowledge is:
    Review pricing condition transaction data table (‘KONV’) helps is some way.

    Hi Ashish,
    I don't know any such a report, but I guess you can play arround with table CDPOS.
    Change doc. object = VERKBELEG
    Table Name = KONVC.
    Actually this will take lot of time.
    Thanks,
    Mandar

  • Reject of sales order position, but the confirmed quantity doesnu00B4t change

    Hi gurus,
    when I reject a sales order position, the confirmed quantity doesn´t change in the schedule line. Internally, after the position is rejected, the available quantity of the material increases in the position quantity, but the schedule lines of the position doesn´t change.
    Regards

    HI,
       Check the sales order entry in Tcode MD04 before and after putting reason for rejection u can definately get the inpact
    Regards,
    kishore.

  • Sales order should not be abled to be changed

    Sales order should not be abled to be changed after creating and confirming to the customer. What needs to be done?

    Hi kishore
    1) after creating the sales order   we are gong to send  confirmation through output determinatin output type (BA00) .
    2) once the customer confirms the  order based on thet we do the delivery. right----
    3) see exmple : a person who creates the order he does'nt have rights to change in big industry lot of departments (so many managers) has to see the order because  the order canbe  one item it can be 1000 items.
    4) every body will be having certain limitations like authorisations if you take my company i don't have authorisations to do FI settings or MM settings.
    5) what means to say is if  that order has to be changed ababrs might have written the code the moment the order confirms from the customers it's goes to respective department or managers through work flow if it goes any manager , a person who created the order he can't do any changes on that. that's why business works. that is  what SAP
    i hope you have under stood
    thanks
    surya

  • Duplicate Sales Order - Workflow

    Hi,
    I have a requirement like this..
    When duplicate sales order is received through EDI , I need to notify to Customer service team.
    If purchase order and ship-to is same and PO date is within 30 days, need to notify that it is a duplicate sales order. Do we have any user-exits or BADI'S for this requirement?
    Thanks
    Ashu
    Edited by: Ashu on Jun 22, 2009 11:12 PM

    HI,
    You have posted it in the wrong forum. Try posting this in ABAP--> Enhancement & modifications forum.
    Anyways, you can try the below mentioned BOs to trigger your workflow and send notification.
    IDOCORDCHG
    IDOCORDERS
    Hope it helps.
    Regards,
    Raj

  • Sale Order, workflow error

    Hello,
    when i try to book sale order a message raised (Order is not eligible for booking. Check workflow status for this order.)
    I checked the workflow status (Order Flow - Generic) i found it 'Error',
    the error (OM Standard Error Process with Retry), i could not find why this error and how to solve it.
    Note: the used workflow (Line Flow - Generic, Bill Only with Inventory Interface).
    Thanks for you help,
    Tarik.

    It is seeded functionality. The retry will be raised if line is added without booking the order for this line type. You can check if any note is available in MOS ( Metalink). I'll forward, if I get one.
    If you want to avoid the error for this line type then you can think about adding processing constaint to prevent line creation/ addition unless the order is booked for this transaction type. Validation template can help you in identifying the specific transaction type.

  • Sales Order is not saved when defining a Print output and without Print output it will saved the SO.

    Hello,
    In VA01 when we create SO and define output type then Sales order is not saved,The error msg will display like " Order is not in the database or is been archived ".
    But without defining output type SO will be saved.
    So is there any ABAP Developement or enhancement?
    Kindly Suggest.
    Regards,
    Abhishek K.

    Hi,
    Its something like SD_PARTNER_UPDATE...
    Kindly see below screenshot for your reference.
    Regards,
    Abhishek .K

  • Sales order going to dump when we enter product in the transcation

    Hello Gurus,
    I am facing a problem in the sales order, when i enter a product in the transcation(TA) it going to dump........It is showing the message like this.........,
    What happened?......
        Error in the ABAP Application Program
        The current ABAP program "SAPLCRM_MKTTG_PF_SEL_INFOSET" had to b
         because it has come across a statement that unfortunately cannot be      
         executed.
    Error analysis......
        An error occurred when executing a Remote Function Call.
        "CPIC-CALL: 'ThSAPOCMINIT'#Unable to determine host address: 
          NiHostToAddr failed "
        Status of connection.... "CODE=CM_PRODUCT_SPECIFIC_ERROR -1 -1  
        SAPCODE=497
         CONV= " Internal error code.... "RFC_IO5"
        There is an error in the communication system. To clarify
        and resolve the error, contact your system administrator.
        Last error logged in SAP kernel
        Component............ "NI (network interface)"
        Place................ "SAP-Gateway on host IGINXMIEP / sapgw00"
        Version.............. 38
        Error code........... "-2"
        Error text........... "hostname 'iwdf7yte.wdf.sap.corp' unknown"
        Description.......... "NiHsLGetNodeAddr: hostname cached as unknown"
        System call.......... " "
        Module............... "nixxhsl.cpp"
        Line................. 223
        The error reported by the operating system is:
        Error number..... " "
        Error text....... " "
        Please provide me the solution...........its very urgent
    Thanks and Regards
    Chandramohan
    I dont Mind to reward full points............

    Hi julius,
    Thanks for the reply,
    The settings in the SAP Note, which you have given....they are in already in place.
    Regards
    Chandramohan

  • Sales order workflow

    hi,
    had a requirement which when saleas order had created, email can send to certain user. is it available?
    thanks

    yes it's possible by creating a custom workflow.
    Roberto

  • Customize Internal Sales Order workflow to interface to AR

    Hi,
    I would like to generate AR transactions for our internal sales orders created from internal requisitions. I tried by adding a ship-bill-workflow, but the interface-to-AR activity does not get started. This gives me the impression that the internal order ignores the workflow that I have defined for this transaction type, and uses something else instead.
    I am wondering now how could I customize the internal order workflow? Has anyone ever done that? Which workflow shall we customize to get what we need? Or has anyone any other ideas?
    Thanks in advance,
    David.

    Hi David,
    Assuming you are using Order Organizer did you check which work is being invoked at the Order Line Level from Tools -> Workflow Status at Line level.
    Thanks.

  • Sales order - No Credit block - When credit limit = 0 & Exposure = 0

    Hello,
    I have a scenario where, i try to create a sales order for 1000 EUR. I have Credit management activated for the concerned BP. In the main segment, the limit defined is = 0 and credit exposure = 0.
    Now when I try to create a SO, it is not going for credit blocked. The 'Overall status of credit limit checks' directly getting to 'D' (=Approved) Status. Please help me to understand what went wrong. Any issue with Credit group or Risk category?
    BR,
    D'nesh

    I have Credit management activated for the concerned BP.
    Usually we assign the credit limit to Payer customer master.Please check once again.
    And please check all your required credit management settings once again.
    For example:
    1. Check whether credit group is assigned to the order type or not? (VOV8)
    2. Check whether credit active field is active or not in respective item category(VOV7)
    3. Check whether Subtotal field A is assigned or not in V/08 for the relevant pricing procedure
    4. Check whether you have assigned the Risk category is assigned or not in FD32 for the payer customer.
    thanks,
    Srinu.

  • Sales Order header still booked when lines are already closed

    Hello all,
    Well, im having problems to close a couple of Sales Orders...the lines are already closed but the headers reminds as 'Booked'....I checked the Workflow and one of the SO shows me this error message:
    Error Message ORA-00376: file 354 cannot be read at this time ORA-01110: data file 354: '+LIVE_DG/liveclrvenus2/datafile/undotbs1a.801.702318343' ORA-00376: file 354 cannot be read at this time ORA-01110: data file 354: '+LIVE_DG/liveclrvenus2/datafile/undotbs1a.801.702318343'
    Error Stack Wf_Event.Dispatch(oracle.apps.wf.notification.send) Wf_Notification.SendSingle(SYSADMIN, OMERROR, OMERROR_MSG, 26-JAN-11, WF_ENGINE.CB) Wf_Notification.Send(SYSADMIN, OMERROR, OMERROR_MSG, 26-JAN-11, WF_ENGINE.CB) Wf_Engine_Util.Notification_Send(OMERROR, WF2835788, 143218, OMERROR:OMERROR_MSG) Wf_Standard.Notify(OMERROR, WF2835788, 143218, RUN) Wf_Engine_Util.Function_Call(WF_STANDARD.NOTIFY, OMERROR, WF2835788, 143218, RUN)
    Anyone knows how to fix this......
    Regards
    Edited by: 843193 on Mar 11, 2011 2:59 PM

    See docs "Close Sales Order Headers With No Associated Open Lines, Order Header Workflows Or Order Line Workflows [ID 397565.1]" and "Order Management Suite - Some Datafix Patches and Scripts [ID 398822.1]". They might help. I currently have an SR in on the same situation, although I do not get the same error message you get.
    Hope this helps,
    Dana-B
    Edited by: user9971618 on May 2, 2011 12:21 PM
    Edited by: Dana-B on May 2, 2011 12:22 PM

  • Sales order line item status when packed is complete

    Hi ,
    When a line item is packed even though its not invoiced sales order item status is as completed,
    Is this the standard behaviour? cn we change it to be being processed until its invoiced?
    thanks
    Keshi

    Yes,of course, this is the standard behaviour only.
    If ur delivery has completed and PGI is done completely, the sales order status becomes completed,
    u need not wait till the time of  invoicing
    Hope it useful..
    Reward points if useful..

  • Process the sales order without credit check when net amount is 0$

    Hi..
    Currently for the standard sales order, when the net amount is 0$, it's being in the queue for approval.
    When ever the net amount is 0$ we want it to be processed without any credit check.
    Any suggestion on how to approach is appreciated, like what changes need to be done on the credit check routine etc.. or any other approach.. will reward the points for the help..
    Thanks.

    If you are a developer, your role will be to write the code for this routine. The actual configuration of this OVA8 screen has to be done by your functional consultant as I will not be in a position to tell you what values to use for all those fields. These are always driven by your entire credit management configuration. That will be part which will be done by the functional consultant. As a developer, I will be only concerned with writing a couple of lines in this routine. I will not recommend changing anything else unless you know exactly what you are doing. The only reason we should go here as a developer is to enter that number in that field. But before you come here, you have to do the following.
    To create the routine and its associated code, go to VOFM and then in the menu "Requirements-->Credit Checks". Enter your routine number 9xx, give a description, click on the source code button and write the code. Once this is saved, you need to give the routine number to the functional consultant who will then use it to configure so that it is executed for the right order types.

Maybe you are looking for

  • Part 1 entries for RG23A not printed in registers

    Dear Gurus, After capturing the excise invoice without refernce to the purchase order form transfer from stotage location to storage location excise Invoice we posted. RG23A PART1 and RG23A PART2 Resisters are extracted using J2I5 and Printed using Z

  • Add jar file to forms application standard java library

    Overall Problem I created a jar file using JDeveloper to be loaded as a bean in forms builder. But the jar file ended up being really large because I had to add some standard libraries that JDeveloper knew about but Forms didn't to this jar file, it

  • Firefox page stop refreshing(drawing) when the flash plugin exit full screen mode.

    While watching youtube video from youtube.com in full screen mode (this is flash player full screen mode, not browser full screen mode), if you exit the full screen mode, some times the original page when the full screen was started from would stop d

  • Weblogic Session Management in a Cluster

    As per web logic documentation here http://e-docs.bea.com/wls/docs81/cluster/failover.html There is best practice to "Control Frame Access to Session Data". Control Frame Access to Session Data If you are designing a Web application that utilizes mul

  • JavaFX drag events destroyed by window resize

    Hello, I've been having great success developing a drag-drop component for a JavaFX app, but I've run into an issue that has me completely stumped. Specifically, I create a component that can be dragged around inside an anchor pane.  That anchorpane