Changes in the material, the order should be blocked while saving the order

Hi,
A sales order is already there and delivery is not yet done. The requirement is, If I make any changes in the material, the order should be blocked while saving the order.
Is there any indicators or some fields which tells material is changed in the order. How this can be realised.
I thought of table CDPOS, but this can be used only after Order is saved.
Please provide your inputs.

Use user-exit MV45AFZZ, form-routine USEREXIT_SAVE_DOCUMENT_PREPARE.  Compare the values in XVBAP-MATNR(New Values) and YVBAP-MATNR(Old values).  If the values are different, update the value VBAK-LIFSK to block the order.

Similar Messages

  • SPD "The server could not complete your request" while "Saving the XOML file"

    Greetz!
    I'm trying to resolve an issue where a SharePoint Designer Approval workflow on a list fails while "Saving the XOML file". The workflow has been reduced to a single step for tests and it still fails.The more details dialog is empty.
    The Event Viewer does not record the event and no unexpected events show up in the logs.
    Any ideas on what might be causing this?
    Thanks!
    Love them all...regardless. - Buddha

    Hello Kansas,
      Did you ever get a solution for your publishing issue. I have been seeing the same problem and I am reading blogs that is pointing to a Feburary 2011 CU as the possible solution. http://support.microsoft.com/kb/2557533

  • To Put a Schedule line block while saving Sales Order

    Hi Experts,
    I have a requirement of putting an 'AH' block at schedule line. In the User exit USEREXIT_SAVE_DOCUMENT_PREPARE  i have coded it in the following manner.
         loop at xvbep where posnr = xvbap-posnr.
           xvbep-lifsp = 'AH'.
           modify xvbep index sy-tabix.
          endloop.
    However it is not putting the block when the Sales order gets saved.
    Please help me out.
    Regards,
    Anjali
    Edited by: Anjali Steeve on Oct 7, 2009 1:26 PM

    HI anjali,
    Try doin the same in this Form Routine: FORM USEREXIT_MOVE_FIELD_TO_VBEP  
    Guess it should work.
    Best Regards,
    Navin Fernandes.

  • While saving the sales order through Va01 and Va02 and email has to send

    Hi Experts,
    My requirement is to send an email with PDF formatted display of the Sales order to the sold to party's email id while saving the Salesorder through Va01 and Va02.
    I need the following .
    How to send an email with PDF formatted attachment of Salesorder display ? (we have done the formatting of display through SMARTFORMS )
    I think we can do it by userexits program name is MV45AFZZ while saving the document.
    Please suggest me the best possible way.
    Thanks ,
    Saritha

    Hi, there is no need for a customer devlopment on this. A standard smartform output will do with output medium '5' (external send). Then the smartform output will be send as PDF to the e-mail address in the output partner. Have a look at transaction NACE.
    Regards Jack

  • Communication exception occured while saving the thresholds data to the emd

    Hi All,
    I have a 2 node installation of R12 running on HP-UX whereby one node is the application tier and the second node is the database tier....
    I have configured Enterprise Manager Database console on the db tier.
    Am trying to edit the metrics but i keep getting the error below.I have enough disk space and my permissions are setup correctly but am still getting the same error.
    I have tried editing on different browsers but still i have failed.Could anyone please help me out.]
    Error occurred while editing the metric thresholds.
    Communication exception occured while saving the thresholds data to the emd.

    2008-10-20 17:43:35,075 [SeverityLoad http://erpdb.zantel.com:3938/emd/main] WARN jdbc.ConnectionCache _getConnection.303 - Got a fatal exeption when getting a connection; Error code = 17002; Cleaning up cache and retrying
    2008-10-20 17:43:35,075 [SeverityLoad http://erpdb.zantel.com:3938/emd/main] WARN jdbc.ConnectionCache _getConnection.306 - Io exception: Got minus one from a read call
    java.sql.SQLException: Io exception: Got minus one from a read call
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:518)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:767)
         at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:324)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:114)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:694)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:540)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:346)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:324)
         at oracle.sysman.util.jdbc.ConnectionCache._getConnection(ConnectionCache.java:296)
         at oracle.sysman.util.jdbc.ConnectionCache.getUnwrappedConnection(ConnectionCache.java:423)
         at oracle.sysman.emSDK.svc.conn.FGAConnectionCache.getFGAConnection(FGAConnectionCache.java:156)
         at oracle.sysman.emSDK.svc.conn.ConnectionService.getPrivateConnectionNoWait(ConnectionService.java:659)
         at oracle.sysman.emdrep.receiver.FxferRecv.markFileAsError(FxferRecv.java:1083)
         at oracle.sysman.emdrep.receiver.FxferRecv.loadSeverities(FxferRecv.java:1216)
         at oracle.sysman.emdrep.receiver.FxferRecv.receiveFile(FxferRecv.java:1509)
         at oracle.sysman.emdrep.receiver.FxferRecv.doPost(FxferRecv.java:820)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:282)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    2008-10-20 17:43:35,192 [HttpRequestHandler-9114403] ERROR eml.FxferRecv doPost.828 - Upload repsonse header :-ERROR-400|Io exception: Got minus one from a read call-

  • To set an error while saving the order when the item categor changed in CRM

    Hello SAP Gurus,
    As per our current system set up, whenever the order created in CRM once replicated to ERP should not change the item category in CRM .If the item category is changed( allows the system) and saved, it gives an error as u201CItem category should not be changedu201D. We have been encountering  this type of issue since long back
    To avoid this type of issue, an error should through while saving the order when the user changes the item category in CRM.
    Can someone help me to achieve this.
    Thanks in advance.
    Cheers
    Sreedhar

    Sreedhar,
    Can't you control it by Item Category determination?
    JD

  • Process order date changes automatically while saving the order

    Hi All,
    While creating a process order in COR1, system proposes the scheduled start date and finish date as current date (today's date), but while saving the order, the dates automatically changes to previous day's date (one day before). Can any one help in what config change needs to stop this auatomatic date change..?  Thanks in advance.
    Regards,
    DS.

    Dear,
    I would suggest you to carrout Master reciepe scheduling and update the Inhouse production time to the material master, this would enable the basic start dates and sheduled start dates to be same.
    If you dont want to carrout scheduling of order, then in OPUZ transaction for the plant/order type combination deactivate the check box for automatic scheduling.
    Regards,
    Prasobh

  • In Va22, the Ordered quantity is doubled when saving the quotation

    Hi Experts,
    When I am creating/changing a quotation, i am adding a new line item with the Article/Material with No of quantities.
    After saving, the quantity is doubled. As it should not happen.
    Please help me to resolve this issue.
    Thanks
    Lahiri

    Check the material master....one thought is that you must be having some rounding profile that is rounding off the quantities automatically.
    Also, check in User exit MV45AFZZ if there is any custom code or not.
    Check if there is any inclusive free goods procedure assigned to your order type.

  • What is the BADI  while SAVING purchase order using me22n?

    what is the BADI  while SAVING purchase order using me22n?
    while i will save purchase order through me22n, badi should be fire what is badi for that?
    regards,
    dushyant.

    Dushyant,
    Hopefully you know how to implement the BADI ME_PROCESS_PO_CUST now.
    The following are the codes that you can put in the method "Post".
      DATA: LW_HEADER        TYPE MEPOHEADER,
            LW_POSTED_HEADER TYPE MEPOHEADER,
            LW_VALID         TYPE MMPUR_BOOL,
            ITAB_ITEM        TYPE PURCHASE_ORDER_ITEMS,
            LW_ITEM          TYPE MEPOITEM,
            ITEM_INTERFACE   TYPE PURCHASE_ORDER_ITEM,
            ITAB_ACCT        TYPE PURCHASE_ORDER_ACCOUNTINGS,
            ACCT_INTERFACE   TYPE PURCHASE_ORDER_ACCOUNTING,
            LW_ACCT          TYPE MEPOACCOUNTING,
            LW_POSTED_ACCT   TYPE MEPOACCOUNTING,
            W_ACCT_CHANGED  TYPE C,
            W_GRANT_AMT      TYPE EKPO-NETWR,
            W_FINANCE_AMT    TYPE EKPO-NETWR,
            W_FLAG           TYPE C.
    Check if PO header data is valid
      CLEAR LW_VALID.
      CALL METHOD IM_HEADER->IS_VALID
        RECEIVING
          RE_VALID = LW_VALID.
      CHECK LW_VALID = 'X'.
    PO header data is valid
    Get the newly updated PO header data
      CLEAR LW_HEADER.
      CALL METHOD IM_HEADER->GET_DATA
        RECEIVING
          RE_DATA = LW_HEADER.
    Get the posted PO header data
      CLEAR LW_POSTED_HEADER.
      CALL METHOD IM_HEADER->GET_PERSISTENT_DATA
        IMPORTING
          EX_DATA = LW_POSTED_HEADER
        EXCEPTIONS
          NO_DATA = 1.
      IF SY-SUBRC <> 0.
        CLEAR LW_POSTED_HEADER.
      ENDIF.
    Get PO line items
      REFRESH ITAB_ITEM.
      CALL METHOD IM_HEADER->GET_ITEMS
        RECEIVING
          RE_ITEMS = ITAB_ITEM.
      LOOP AT ITAB_ITEM INTO ITEM_INTERFACE.
    Check if PO line item is valid
        CLEAR LW_VALID.
        CALL METHOD ITEM_INTERFACE-ITEM->IS_VALID
          RECEIVING
            RE_VALID = LW_VALID.
        IF LW_VALID <> 'X'.
    This PO line item is not valid
          CLEAR W_ACCT_CHANGED.
          EXIT.
        ENDIF.
        CLEAR LW_ITEM.
        CALL METHOD ITEM_INTERFACE-ITEM->GET_DATA
          RECEIVING
            RE_DATA = LW_ITEM.
    Get the account interface
        REFRESH ITAB_ACCT.
        CALL METHOD ITEM_INTERFACE-ITEM->GET_ACCOUNTINGS
          RECEIVING
            RE_ACCOUNTINGS = ITAB_ACCT.
        LOOP AT ITAB_ACCT INTO ACCT_INTERFACE.
          CLEAR LW_ACCT.
    Get the newly updated PO item data
          CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_DATA
            RECEIVING
              RE_DATA = LW_ACCT.
          CLEAR LW_POSTED_ACCT.
    Get the posted PO item data
          CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_PERSISTENT_DATA
            IMPORTING
              EX_DATA = LW_POSTED_ACCT
            EXCEPTIONS
              NO_DATA = 1.
          IF SY-SUBRC > 0.
            CLEAR LW_POSTED_ACCT.
          ENDIF.
          IF LW_ACCT-LOEKZ <> LW_POSTED_ACCT-LOEKZ OR
             LW_ACCT-KOSTL <> LW_POSTED_ACCT-KOSTL OR
             LW_ACCT-PRCTR <> LW_POSTED_ACCT-PRCTR OR
             LW_ACCT-PS_PSP_PNR <> LW_POSTED_ACCT-PS_PSP_PNR.
    Account assignment was changed
    We will force this PO to go through workflow
            W_ACCT_CHANGED = 'Y'.
          ENDIF.
        ENDLOOP.
      ENDLOOP.

  • How to identify the material's status within GR blocked stock

    Hi Experts:
       We have the goods receive for purchase order process is that all the goods from supplier reference to PO should be move to GR blocked stock first(103), and release to un-restricted stock after goods quality inspection(105).
      Those quality is not accepted goods should be remained in the GR blocked stock for a long time and some of them will be returned to supplier and some of them will be finial accecpted to un-resticted stock after repair. My question is how can we seperate the material's status from normal goods receive within the GR blocked stock becasue our client want to analysis the GR blocked stock. or if possible those quantites can be move to our no-valued stock? or we can active the vendor batch to seperate?  Would you please give me some advice on that?
    thanks and best regards
    Xincheng

    HI Jin
    GR blocked stock is treated as non valuated stock in the system because while posting the material doc with movement type 103 system does not create any accounting entries so those are non valuated stocks till you dont do 105.
    As far as report is concerned you can pull the material documents created with movement type 103 in the system for an particular plant and date range this will solve your purpose using trasaction MB51.
    As you are planning to go for vendor batch management I belive it will give further split up quantity within the GR block stock, Yes u should go for it.
    Award if usefull
    Regards
    Sujoy
    Edited by: SUJOY on Sep 23, 2008 6:16 AM

  • Error message while saving the sales order

    hi all,
    i have maintained a material material master, sold to  etc  pr00 conditions maintained, schedule line is determined correctly  but i am still getting this message while saving the order
    "Product 234345 does not have schedules assigned. Contact system administrator
    Message no. ZV276"
    can anybody help?
    Sa

    Suman,
    i would suggest you please sit with your abaper he can might be solved your issue.
    because Message no. ZV276 seems to be comes from user-exit which you implement for VA01/VA02 Tx.
    Amit.

  • Address details while saving the order

    hello experts
    i am having the requirement where i wanted to fetch the Ship-to Address details that is changed by the user while saving the order.
    I tried using different FMs like BAPI_BUPA_ADDRESS_GETDETAIL but these fetch the address from master data. What i want is the new address entered by the user.
    In CRM_ORDER_READ i am getting a new ADRNR for the newly entered address (itab_partner-addr_nr)but not able to find any FM to get the details out of it.
    did anyone know how to get the same?
    Thanks in advance.
    regards
    rajeev

    Hi,
    I tried FM BUA_BUPA_ADRC_GET. This one returns address details from memory but doesn't have partner relation in it.
    basically it populates partner's name into NAME1 field of ADRC.
    regards
    rajeev

  • I dropped my Macbook Pro and now the battery is swollen, should I bring it to the genius bar?

    My Macbook Pro fell off my bed (approx. 3ft) and dented the left side of the front left corner on the battery meter. Besides the damage everything seemed okay for a little while until I kept getting a erratic curser track pad. I kept cleaning it thinking some dirty or oil may of got on it or in the edges, but long story short I found out my battery is swollen and thats the reason for the erratic curser. The drop and dent impacted the battery causing it to swell. I feel that I just need a new battery. I purchased my macbook from the apple store and still have applecare. However I've researched online a bit and saw some people posted that if you drop your macbook, Apple will void my coverage. I also read that when people have had a swollen battery and applecare, they just brought it into the Genius bar and they went to the back and brought them a new battery. I've been super nervous to go see them as I've spent the extra bucks on Applecare and did not get any use of it. If anyone has had this issue or knows about it, please let me know!!
    MacBook Pro 13" 2012, Mac OS X (10.9.3)

    I dropped my Macbook Pro and now the battery is swollen, should I bring it to the genius bar?
    Yes !
    I would take it in before it gets worse and breaks something.
    Genius reservation http://www.apple.com/retail/geniusbar/
    on-line https://getsupport.apple.com/GetproductgroupList.action
    check warranty https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • Report for the material having any kind of block

    Dear All
    I would like to have a report for the material having any kind of block i.e.(X-plant matl status OR Plant-sp.matl status).
    Pl suggest any standard report or through table.
    Rregards
    Manoj

    Hi
    Trnx. SE16  Table MARA 
    fields
       MSTAE                           X-plant matl status
       MSTAV                           X-distr.chain status
    Vishal...

  • Error While saving the Production Order

    Dear Experts
    Pls let me know why am getting the below error while saving the production order after release..
    PSFC_STD_LAYOUT does not exist
    Message no. SSFCOMPOSER004

    Dear,
    Please check have you assigned the scheduling profile in work scheduling view of materail master?
    Then go to OPKP check the same scheduling profile where you have activited the On realese execute printing remove this tick mark and then try with new order.
    Or you can do the configuration in Tocde :OPK8 here assign the PSFC_STD_LAYOUT in forum.
    Regards,
    R.Brahmankar

Maybe you are looking for

  • Why aren't all incoming messages going to Gmail- Inbox, but they're in All Mail?

    Sorry if this has been answered, I haven't seen a suitable answer anywhere. I have lots of incoming emails I can only view in the All Mail folder nested under Gmail, but they never showed up in Inbox. Is there a reason or setting new emails are only

  • Problem clearing Vendor items through F-44

    Hi Experts, While I am trying to clear the vendor open items ( via transaction code F-44) I get the error message which says "The entry EN 3  is missing in table 021T", with message # F5100. I tried to look up the Table 021T. It then prompts the erro

  • [archppc] How stable is it ?

    I have a MacMini (G4 processor) currently running Debian. I use it as a home server (http, ftp, svn). The thing is... I can't stand Debian anymore. I really love Arch but I don't know if the ppc version is stable enough to be installed on a little se

  • Add radio button when a radio button is selected (pop up)

    How do you Add a 2 radio buttons when (pop up when d1 is selected) For example d1a and d1b When d1 is selected. <cfoutput> <cfif isdefined("url.msg")> #urldecode(url.msg)# <BR /> </cfif> </cfoutput> <table border="0" cellpadding="5"> <form id="form1"

  • Safari shuts down on itself!

    Safari shuts down all the time in my ipad2 after installing ios 5.0.1, what can i do??? <Edited by Host>