Status Profile - Sales Order Change

Hi,
I have a issue regarding Status Profile in Sales Order.
I have a sales order with two status - 
Awaiting Approval ( Initial at the time of creation of Sales Order )
Approved ( Approval by HOD after creation )
No changes has to be done in Sales Order once approved, if any changes to be done then, needs resetting of the status to initial.
How to control the same.
I have checked the transactional control in user status but change sales order control is not there.
Can be controlled through user exit then how can it be be done.... User Exit name and brief logic of possible.
Regards
SD Consultant.

Hi
You can use MV45AFZZ include to find appropriate User exit for your requirement with the help of your ABAPer.
USEREXIT_SAVE_DOCUMENT would be suitable to you.
User status are maintained at JEST table, so you can write code to activate status 1 and deactivate status 2 if sales order changed.

Similar Messages

  • Chance user status in sales order VA02

    hi all,
    have any FM or BAPI is available to change (block / release) the user status in sales order change,
    pls note me about this,
    Regards
    Usman

    Hi Aditya,
    thanks,,
    which table and which field need to import in this FM "BAPI_SALESORDER_CHANGE" to change User status (Release / Block) in Sales order.
    Regards
    Usman

  • Credit status change through Sales order - change log

    Hi Friends,
      I'm currently facing a scenario were it was reported by the client that
      credit release is happening automatically.
      Brief details : 
       Order was created on 4th Of Oct and it was blocked (reaches the VKM1 bucket )
       since the customer reaches the credit limit.The same order on 5th Oct was not in VKM1
       bucket were the status of order in Sales document header states that it's  released.
      Initial check : (Sales order change log)
      1, I've checked the change log on 5th Oct were the  field VBUK - CMGST  "Overall status of credit checks changed"  from  B to A.
       ((  Status and details below
          A - Credit check was executed and document is OK.
          B - Credit check was exectued and Document is not OK (credit block).
          C - Credit check was executed document not OK, Partial release.
          D-  Document released by Sales representative. ))
    2, I tried to replicate the order status for block and release, But when I release through  VKM1 / VKM3
         the change logs are getting updated with Status - D .(ie from B to D) .
      I'm  wondering that  what could be the reason that causes the system to update in the table - VBUK  - CMGST from A to B
      or because of what change from the client in the sales document header level could impact this changes.
      Note - There is no payment which received from customer on that day.
      Please let me know in case if you are getting the clue...
      Thanks in Advance..
      - Pugal stalin

    Hi
    A simple credit check, as the name suggests, is very simple in nature. The functionality is limited and considers only open A/R items and open items from special G/L and sales orders for performing the credit checks. When you create/change a sales order that is relevant for a simple credit check, SAP calculates the payer/customeru2019s credit exposure by adding the open A/R balance for the customer, open item balances from the special G/L, and the net sales order value. This credit exposure is then compared against the customer credit limit maintained in the customeru2019s credit master. If the credit exposure is greater than the credit limit, the system sets the credit check status as u201Cfailu201D and shows a warning, generates an error message, or performs a delivery block
    Regards from Pakistan

  • Open status of Sales Order in 3-trd party proces

    Hello
    In finished process of third party processing, and I have still status of Sales Order as open.
    There is no delivery in the process, but "delivery status" is 'not delivered.' There is only copy control between Sales Order --> Invoice. Item category is not relevant for delivery. What can I check more?
    I know that normally on Item Category I have to change the completion rule on B or C.
    Normally You have to also change copy control, for the relevant Item category, Update document flow field has the X value, but there is no copy control for sales order, only for invoice.
    Edited by: Malgorzata Paraficz on Feb 9, 2011 11:04 AM
    Edited by: Malgorzata Paraficz on Feb 9, 2011 11:05 AM

    There waa already created Invoice! 'Invoice quantities' field change (in copy control), also didn't help.
    But I have noticed that Sales Order for 3-rd party have assigned scheduling line which is relevant for delivery. Is it correctly?
    It must be something with 'delivery' because, the status is 'not delivered'. But in this process shouldn't be any delivery!
    Edited by: Malgorzata Paraficz on Feb 15, 2011 11:59 AM
    Edited by: Malgorzata Paraficz on Feb 15, 2011 12:01 PM

  • BAPI_SALESORDER_SIMULATE can be used in case of Sales Order Change?

    Hi All,
    I'm using FM 'BAPI_SALESORDER_CHANGE' to update sales order.
    It's working fine even multiful item (delete, add, changing item).
    But I need to give simulated information to SAP portal before changing Sales order.
    This 'BAPI_SALESORDER_SIMULATE' FM looks like for creating new Sales Order.
    Is there any other simulation BAPI FM for Sales order change?
    Thanks.

    Hi,
    You can use
    BAPI_ORDER_CHANGE_STATUS_GET   Change status for order                                                  
    BAPI_SALESORDER_CHANGE         Sales Order: Change Sales Order                                          
    Thanks
    Sarada

  • Order and item status in sales order

    We had multiple items in the sales order
    for one of the item, the quantity was 5, but user cretaed a delivery of 8. but she only post goods issue for 5.
    the delivery and order was open
    at this stage the archival of delivery took place.
    we changed the status in tables vbuk and vbup to complete.
    but in the display of status in sales order, it still shows being processed.
    What can we do now to set the order status and item status to COMPLETE.
    Thank you for your reply

    Hi,
    This order status will not be complete unless the delivered quantity is equal to the order quantity. You have 2 options. 1. Change the order quantity to 8 and delliver the rest 3 and the order status will be set to COMPLETE. 2. Otherwise, reverse the PGI in VL09n and delete the delivery and create the delivery again for 5 qty. This will set the order status as COMPLETE.
    Regards,
    Raghav

  • EDI Outbound sales order change

    Hello,
        I am triggering an EDI outbond sales order change.
    I am useing ORDCHG and ORDERS05.
    While setting up the Outband Partner profile,In the Message conterol tab
    what is the Application,message function and process code.
    Thanks in advance...

    I am triggering an EDI outbond sales order change.
    I am useing ORDCHG and ORDERS05.
    While setting up the Outband Partner profile,In the Message conterol tab
    what is the Application,message function and process code.
    -The application is V1.
    -You should enter in the Messagetype the Outputtype as used in NACE and the Sales Order Output creation. That can be BA00.
    Make sure you make 2 entries in the partner profile: one where in the messagecontrol tab the change message Tab is ticked (in case the order changes) and one where it is not ticked (initial change).
    -Message functionion can be used optionally, to differentiate to make it unique.
    -The Processcode can be SD10 (or ME02 for PO change). You can use the dropdownbox if there is something configred yet.

  • Sales Order changes via change history (transaction logs)

    Hi guys,
    If I happen to change delivery date to a new date, as we see from the change history of the previous commit dates, I wish I could see the various date
    changes from any table?
    I did tried VBEP, CDHDR, CDPOS & program RVSCD100. But it says “No records found”, when I did change the dates in my SO (item level).
    What is the table VBUK & VBUP for?  I cannot retrieve from them too.
    I just want to know if there is a way I could retireve the changes via the change history field in SO.
    Rgds,
    Ann

    Hello Ann,
    In the VBUK table and give the delivery doc number, The various status indicators for the table will be there by which you can get the delivery status.
    Goods movement status could be got from VBUP table.
    Overall delivery status of an item could be got from this table
    The status for sales order are stored in VBUK header level status and VBUP for item level. U can check if the statuses are not C than the sales order is open. There are different status available in VBUK/P tables like delivery status/goods movement status/invoice status etc
    <b>**reward if this helps**</b>
    Regards
    AK

  • Report for Sales Order Change History   CDPOS and CDHDR

    How to take a report of the data for the Sales Order Change history for a particular period of time. It is required to take a report of all the Sales Orders for which the basic price has been changed. Please let me know the procedure. I could not get the data from the table CDPOS and CDHDR
    Helpful answer would be rewarded.
    Regards
    Praveen

    Dear Praveen Kumar
    Have you tried with VBAP where sale order details at item level would be stored.
    Moreover, to my knowledge, there won't be any changes as for as pricing is concerned at sale order level but there is at billing level.  Normally, any price increase / decrease would reflect in billing.  So why dont you to table join through SQVI VBAP (for sale order details) and VBRP (for billing details) so that you can compare the selling price in sale order with billing. 
    Thanks
    G. Lakshmipathi

  • Sale Order changes View

    Dear Guru's
    Is there any T-Code for verifying Sale Order changes (Step wise), as in my company Invoices are generated with lot of changes which not matching with Sale Order conditions. So I would like to moniter the Sale Order conditions changes. Kindly help me out.
    Thanks in advance

    Hi
    Sales order changes can be seen in the report only if the changes are made by any user(userid). If your problem is with changes in pricing conditons...then before comparing the sales orders and invoices, I advise you to check the copy controls and the price type used in the copy controls. If the price type selected is to redetermine the pricing, then you should check the validity of the conditon records. Sometimes, the conditon records may be different during sales order creation and invoice creation.
    Thanks,
    Ravi

  • Sale Order change BAPI - Storage loc not updated

    Hi Everybody,
    Iam using "BAPI_SALESORDER_CHANGE", to change the sale order items.
    First iam calling above bapi with switch B, for new pricing & then second time for material change.
    When i change any material number, it is getting updated correctly.
    But the storage location, even though iam passing in the bapi it is not updated, & is blank - updation flag is also passed.
    When i execute sale order change again it is updated - ie, for any material change for first bapi call, storage loc is not updated - for 2nd bapi call storage loc is updation - for same input in both the cases.
    Is there any way to update the storage loc is first call of sales order change bapi.
    Below is the parameters iam passing in bapi :
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT      = LS_SALESDOCUMENT
          ORDER_HEADER_IN    = LT_HEADER_IN
          ORDER_HEADER_INX   = LT_HEADER_X
        TABLES
          RETURN                            = LT_RETURN
          ORDER_ITEM_IN               = LT_ITEMS
          ORDER_ITEM_INX             = LT_ITEM_X
          ORDER_CFGS_REF          = LT_CFGS_REF
          ORDER_CFGS_INST         =  LT_PARTS
          ORDER_CFGS_VALUE     = LT_VALUES
          ORDER_CFGS_BLOB        = LT_CUBLOB
          ORDER_CFGS_VK            = LT_CUVK
          ORDER_CFGS_REFINST   = LT_CUREF
          SCHEDULE_LINES            = LT_SCHEDULE_L
          SCHEDULE_LINESX         = LT_SCHEDULE_X
          ORDER_TEXT                   = LT_TEXT
          CONDITIONS_IN                = LT_CONDITION_L
          CONDITIONS_INX              = LT_CONDITION_X.
    Any help is appreciated.
    Regards,
    Nagarajan.J

    Hi,
    Storage location is updated only when same sale order bapi is called another time with required details.
    rgs,
    Nagarajan J

  • Sales Orders Change Log question

    Hi All,
    I am currently working on a project that involves querying SAP Database to get custom reports via web browser, I've made a lot of advances and most of the site is ready but I'm missing just one item that I hope you could help me.
    Thing is I am working with the Sales Order change log and the problem comes one a user deletes a row. If I go to the change log inside SAP and see the differences a new record will be shown saying that row X was deleted and
    if I go to the database (ADOC and ADO1 tables) I don't have a way to see wich row was deleted.
    My way of doing this is to check for the number of rows on the current state of the sales order and check the same on the previous instance of the SO and see if a line was deleted. Then I would have to check row by row between instances what rows are there and what row is missing and store that info. I think this kind of approach will definitively kill the server.
    I was wondering if some one can give me a hint about how to approach this problem. Does any body know how SAP works on this area?
    I'm working with SAP2005A and SQL Server 2005 Standard Edition.
    Any help is greatly appreciated.
    Thanks!
    Alejandro.-

    Hola Alejandro,
    Thanks for your answer, as I see it I'm doing exactly what you proposed but the problem comes with the following scenarios:
    a.- If I post a new SO with two lines I will have on the ADO1 table two records with the values 0 and 1 for each line respectively but if I delete the item on LineNum = 1 and then I add a new item, this last item will be also created with LineNum value = 1. This is not a complicated thing to do but the problem comes when the user is used to work with SOs with several items at detail level and is used to add and erase lines once in a while and as I see it it's very difficult for me to track those specific changes. There's also the fact that on the Log table a new instance is created every time the user hits the update button regardless if a modification was actually made or not. I mean I would know that a line was deleted or added but I would have to start comparing each field on each line of a sales order with it's previous instance to check what was actually added/deleted and I'm afraid that this may affect the server performance. I know that SAP does this without affecting to much the system resources and that is what I'm trying to find.
    I forgot the other scenario I was considering he he I will post again as soon as I remember it but I hope I'm explaining this ok (I'm not very good at explaining...) If not let me know and I'll try to explain again.
    I'm also working on trying to get another approach to see what comes up...
    Thanks for checking this thread, your answers are helpful.
    Regards.

  • The status of sales order is being in processed

    Dear All,
    The delivery quantity is fully delivered and it is order related billing, this is a Sales Bom, the header is delivered and the line items are billed, the status of sales order is being in processed after the completion of the subsequent documents,
    In the document flow the system is showing that the order is being processed, we have checked the copy control and the relevant assignments. As we are facing the problem while creating sales order system giving an error message that there are open items for the customer. Please tell me if there is any customization is there or is there any other way to achieve.
    The other requirement is, if the customer credit limit get exceeds then the system should not save the sales order, if the credit lies within the limit and if the stock is not available in that particular plant, it is a dynamic credit limit.
    Thanking you in advance for your valuable time and efforts,
    Thanks & Regards,
    Mani

    HI ,
    1. For your first issue u201Cstatus of sales order is being in processedu201D
    Please check the below settings:
    Copy control From Sales order (OR) to Delivery (LF) u2013 T.code: VTLA.
    In Item level (TAN)  whether u201CUpdate document flowu201D is activated or not.
    You should also check in the Item category (VOV7):
    Completion Rule: Which one did you maintain?
    2. Error message: Open items:
    This is related with Credit management. Check whether you maintain any open item days or percentage, please check in OVA8. If you maintain you should get the payment from your customer . This is related with FI ( T.code : F-28 )
    Dynamic credit check :
    The setting is available in OVA8. Choose your credit control area, Risk category and Credit groups ( Should be Sales order group ). Then select the indicator u201C Dynamic u201C In Reaction you should give B ( Error ). Then the system will not allow to save the sales order if credit limit is exceeded .
    3. If the stock is not available in that particular plant, it is a dynamic credit limit.
    I think it is not possible . You may use the User exit in OVA8.
    Hope this can help you .
    Regards
    M. Lakshmi Narasimhan

  • Status of sales order and delivery notes

    Hello,
    what is the status of sales orders that permit to create delivery notes for this sales orders.
    And what is the status that block us to create delivery Notes.
    Regards.
    Zied.

    Hi..
    1. The over all status of the sales order in header shuld be Being processed...Rejection status shud be  nothing rejected..Delivery status shuld be Not delivered....Credit status shuld be Approved/released
    2. Status will be Blocked if any block is assing to the sales order or else it wud be Not blocked
    Reg,
    JJ
    Edited by: Jagsap on Nov 25, 2009 11:03 AM

  • Calling a Sales Order Change BAPI in a Sales Order Exit

    Functional Requirement:
    While creating a Sales Order with Reference to another Sales Order, on saving the new sales order, change something in the referenced sales order.
    I am trying to achieve the same by doing the following:
    In the standard SAP user exit called during saving the new sales order USEREXIT_SAVE_DOCUMENT I am calling the BAPI BAPI_SALESORDER_CHANGE on the referenced Sales Order.
    However the BAPI is unable to change the other sales order giving an error Enter the document number. I am specifying the Document Number while calling the BAPI, so I know that is not the error.
    I just wish to know whether it is technically possible to call a BAPI to update another Sales Order while we are currently saving one Sales Order.

    Hi Girish,
    If it works correctly when run seperately and you are sure the data passed into the BAPI is exactly the same then it may be something like table locks or similar causing your original problems...
    What about packaging up your working Z program into a custom function module and calling that from within USEREXIT_SAVE_DOCUMENT as a seperate task (IN NEW TASK) and building in a slight delay of say 5 seconds at the start of your code?
    I'll be honest, this isn't an ideal solution but might be sufficient to resolve your issues.  I'd be inclined to see if you could just run your Z program as a background process every 5 minutes or so to capture any changes and perform updates but if this is a no no from your functional people I'm not sure what else to suggest sorry.  I've never personally had to update a document from within the save routine of another document so can't give any advice based on my own experiences sorry.
    Gareth.

Maybe you are looking for

  • Signature field failed in Reader 8

    I have created a form in LiveCycle Designer 8 and I have used the Digital Signature feature, but when the end user opens it up in Reader 8 they are unable to sign the document. I have read that i must enable signature in Acrobat. Could somebody descr

  • How do you delete your icloud account online?

    kk

  • A bug is loose!

    I'm not sure what the problem is exactly, but since a recent update to the software in my iMac running Snow Leopard 10.6.5 (10H574); Time Machine has been going kind of nuts. I have been getting error messages: Time Machine (apparently isn't running

  • "Erase before burning"  option in iPhoto 6

    I see the option and a "Leave disk appendable" option but neither are ever avaliable. Is there a way to have the iPhoto erase the disk then burn or do I have to always have to erase using Disk Utility first then burn in iPhoto? Thanks

  • My iPad's internal keyboard keeps freezing and not responding.

    I'll type on the screen keyboard and nothing happens for a few minutes.  The whole device just freezes.  After a while the keys will slowly and limpingly highlight and appear in whatever I'm trying to type.  This occurs in all apps, from the device's