Modifying the sales order status

Hi,
We would like to check the Customer master is in Restricted Party List or not, So after creation of order we would like to Hold the order until the check. So How to Control this? How to modify the order status?

Hi
Please check this for [Work Flow|PR Release Strategy + with Workflow;
Thanks
BVDV

Similar Messages

  • Restricting modifying the Sales Order

    Hi Expert,
    Hope you can help on this...
    I have to restrict specific user to modify the Sales Order where Series='SO-BOM', they can only modify this Sales Order with authorization from manager or from specific user....
    Can i do this on TransactionNotification from StoredProcedure?
    Thanks,
    Richard

    Hi Chard
    You can insert this piece of script in Gordon's query by little bit change :
    T0.DocEntry = T2.DocEntry inner join OUSR T1 on T0.UserSign = T1.USERID
         where T0.DocEntry = @list_of_cols_val_tab_del and T1.USER_CODE != N'manager')
    Giridharan V

  • Need to update the sales order status

    Hi Friends,
    I have one query.
    we are doing archiving of sales documents.during the preprocessing we have identified that there are some non-archivable documents due to status check.
    Example:As per Sales order schedule line category "CT" is relevant for delivery. Now we had a talk with business and removed the "item relevant for delivery indiacaotor" from schedule line category.
    This config changes will apply for newly created sales orders.
    Now the requirement is to update the status of old sales orders with this new config change to make these non archivable data to be ARCHIVED.
    can any one help me out by providing relevant SAP note or by sending me the program name which will update the old order status with the new config changes.
    Thanks & regards,
    Shaik Hussain

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • How do I get the Sales Orders Statuses? Is there any API for that?

    Hi!
    I'm trying to track all the statuses of a sales order. I want to get the header status, lines status, holds status, shipping status and the invoiced status.
    Does anyone knows if there is an API for that? Or I'll have to make lots of querys for that?
    I found out the following APIs, but it only returned me Y or N:
    -oe_header_status_pub.get_booked_status;
    -oe_header_status_pub.get_cancelled_status;
    -oe_header_status_pub.get_closed_status;
    -oe_holds_pub.check_holds;
    -oe_line_status_pub.get_pick_status;
    -oe_line_status_pub.get_ship_status;
    -oe_line_status_pub.get_invoiced_status;
    Thanks for the help!

    Hi,
    You can find the status of both SO Headers ahd Lines from the FLOW_STATUS_CODE column in oe_order_headers_all and oe_order_lines_all tables.
    Thanks
    Gowrishankar

  • How to modify the Sales Order Header Text

    Hi Experts,
    I have bulk of sales orders, for each sales order i have to modify the Header Text,( text id : 0005, text object = VBBK,)
    for this, is there any standard BAPI or Function Module is available. If so could you let me know what are the input parameteres i have to pass.
    Regards,
    Nag..

    hello,
    there is BAPI "BAPI_SALESORDER_CHANGE"
    there is a ORDER_TEXT in a table parameters in the BAPI.
    pass all the relevant inputs & use commit bapi
    Thanks,
    Manjunath MS

  • Userexit to Restrict the VIEW and MODIFY of the Sales Order

    Hello Everybody,
    I need to do the following task.
    I want to restrict to VIEW and MODIFY the sales order for particular sales office or sales group.
    I need  user exit for that.
    Please help me by providing brief information.
    Thanks
    M Rahman

    Hi Rahman
    Instead of changing the DISPLAY and CHANGE status of Sales Order,
    i think it would be better if u make a check at the time of SAVE.
    When the SO is being saved in VA02,check the sales office or sales group
    and then give a error message to the user, saying that he is not authorised to make changes to the
    SO for this particular sales office or sales group.
    For this you can use the inckude MV45AFZZ,and USER EXIT userexit_save_document.
    Sample Code:
    IF SALES_OFFICE EQ 'XYZ'.
    MESSAGE 'Change not possible for this Sales Office' type 'E'.
    ENDIF.
    Regards
    Hareesh Menon

  • Any batch process to release the sales order with status profile

    Hi,
    The sales manager need to release the sales order 1 by 1.
    This is very tedious.
    Is there a process for her to release selectively?
    For example,
    if the sales value of the order is visible and within the approval limit or too small,
    she could release, says, more than 10 sales order in a single click.
    Possible?????
    Bye

    Hi,
    I like to perform a mass release of multiple Sales order from the proposed custom report.
    I would like to built the releasing coding into the report.
    I need some references on how to set the release.
    Maybe, there is a standard function for me to pass it in and it would release the sales order status.
    if that the case, it is BONUS.
    Otherwise, there must be some steps that need to be built to set the release.
    what I am asking, is there any such routines that would define the steps to release the sales order in coding?
    I understand there would be a change in status aftef the released and it is also vital to enable the audit log for future investigation.
    Having a BAPI would result the audit issue as the system would have taken care of it.
    I hope it is clearer now as to why I am requesting a sample of the standard routine.
    If there is no such routine, do let me be aware of it.
    Thanks

  • Modifying Sales order in ECC does not modify the planned order in APO?

    Hello,
    I have the next situation, a MTO scenario, LPP material,:
    - users create a sales order, quantity 2000M, 2 individual lenghts by 1000M. In automatically, being a MTO scenario, APO generates a planned order to fulfill the requirement with 2000 M qty, individual lenght 1000.
    - users modify the sales order, the quantity 2000 M remains, but will change it in 1 individual lenght by 2000M. APO cancels the precendently created planned order and generates another one, with individual lenght 2000.This is OK.
    -users modify the sales order, the quantity remains 2000 M, but again 2 individual lenghts by 1000 M. In this case, the planned order is not cancelled, as expected, but remains with individual lenght 2000, which is not ok.
    Any idea how to fix this?
    Regards,
    Alex

    Hello again,
    while creating/changing sales order in crm,
    the user exit mv45 is called in R3.
    Problem solved.
    Thanks
    Gerd

  • Sales Order Status "Being Processed"  after completion for Free Goods Sales

    Hello All,
    This problem is related to Free Goods Sales which is as follows.
    The process-flow for free goods sales is first we raise a sales order, then we do outbound delivery for the sales order and then finally PGI of the goods.We don't raise any invoice and the Free Goods Challan is issued to the customers by running a report.
    The document flow at the end always show the Sales Order  status as " Being Processed" and Outbound Delivery & PGI as "Completed".I want the system to show the Sales Order status as " Completed" and not " Being Processed".How to do that?
    Please suggest some solutions.
    Thanks & Regards
    Priyanka Mitra

    Hi Raja,
    Thanks a lot for your prompt reply and suggestion.
    Now we are able to get the Completed status in Document Flow.
    Thanks & Regards
    Priyanka Mitra
    P.S. -  I would request you to go through another problem which we are facing in Shipment , please go through this and suggest some solution regarding it if possible.
    I have already posted this problem in a separate thread few days back but am yet to receive any fruitful suggestion.
    The problem is regarding Shipment Cost Calculation while doing STO which is as follows -
    In our scenario the Shipment cost calculation is done on two basis -
    1) Absolute Rate / Flat Rate Wise - For example for transporting of goods from Kolkata Depot to Delhi Depot is Rs. 20,000 fixed.
    2)) Gross Weight Wise - where the weight unit is kg and rate for example is Rs. 4 / Kg. So for 10 Kg the shipment cost will be Rs. 40.
    Now I want the system to calculate the shipment cost on Rate / Carton Wise i.e. How will I be able to calculate the shipment cost of 100 cartons if the rate is Rs. 100/ Carton.
    How to configure this ? Please help in this regard.

  • Problem binding a matrix in the Sales Order Form

    Hi everybody!
    I am working in an Add-On. What I do is modify the sales order form in runtime. I catch the event when the form is loading and then I add a new folder with some fields and a matrix.
    I've got a matrix in this form with the employees that participate in an order and when I go through all the orders by using the next and previous record buttons I have to rebind it to show the participants in a specific order. The code for the event is the following:
            If (pVal.ItemUID = "57") And pVal.Before_Action = False And pVal.EventType = et_ITEM_PRESSED Then
                BindParticipantGrid
                BubbleEvent = False
            End If
    After bind the grid, BO shows a System message indicating that the form has been changed and asking me if I want to save the changes to the order. Looks like, whenever the bind function finds rows to add to the matrix it changes the mode of the form by adding rows to the matrix. How can I prevent that when I'm in view mode?
    This is the code for the binding function
    Sub BindParticipantGrid()
        Dim myForm As SAPbouiCOM.Form
        Dim oMatrix As SAPbouiCOM.Matrix
        Dim rs As sapbobsCOM.Recordset
        Dim strSQL, OrdreNr As String
        Dim oText As SAPbouiCOM.EditText
        Set myForm = SBOApplication.Forms.GetFormByTypeAndCount(139, 1)
        Set oText = myForm.Items("8").Specific
        If oText.Value <> "" Then
            OrdreNr = oText.Value
        Else
            OrdreNr = "0"
        End If
        Set oMatrix = myForm.Items("matrix").Specific
        oMatrix.Clear
        Set rs = myCompany.GetBusinessObject(sapbobsCOM.BoObjectTypes.BoRecordset)
        strSQL = "SELECT [@HL_PART].Code as Code, [@HL_PART].U_DocNum as DocNum, [@HL_PART].U_EmpId as EmpId, [@HL_PART].U_EmpName as EmpName, [@HL_PART].U_Message as Message, [@HL_PART].U_MessRead as MessRead, [@HL_PART].U_MainPart as MainPart, [@HL_PART].U_StartDt as StartDt, [@HL_PART].U_StartHr as StartHr, [@HL_PART].U_FinishDt as FinishDt, [@HL_PART].U_FinishHr as FinishHr, [@HL_PART].U_Finished as Finished FROM [@HL_PART] WHERE [@HL_PART].U_DocNum = " & OrdreNr
        rs.DoQuery strSQL
        While Not rs.EOF
            myForm.DataSources.UserDataSources.Item("EmpId").Value = rs.fields("EmpId").Value
            myForm.DataSources.UserDataSources.Item("EmpName").Value = rs.fields("EmpName").Value
            myForm.DataSources.UserDataSources.Item("Message").Value = rs.fields("Message").Value
            myForm.DataSources.UserDataSources.Item("MessRead").Value = rs.fields("MessRead").Value
            myForm.DataSources.UserDataSources.Item("MainPart").Value = rs.fields("MainPart").Value
            myForm.DataSources.UserDataSources.Item("StartDt").Value = rs.fields("StartDt").Value
            myForm.DataSources.UserDataSources.Item("StartHr").Value = rs.fields("StartHr").Value
            myForm.DataSources.UserDataSources.Item("FinishDt").Value = rs.fields("FinishDt").Value
            myForm.DataSources.UserDataSources.Item("FinishHr").Value = rs.fields("FinishHr").Value
            myForm.DataSources.UserDataSources.Item("Finished").Value = rs.fields("Finished").Value
            oMatrix.AddRow
            rs.MoveNext
        Wend
        oMatrix.SelectionMode = ms_Auto
    End Sub
    I will apreciate all king of help
    Thanks in advance.

    You have a property of the form which allows you to change the mode
    myForm.Mode = fm_ADD_MODE
    myForm.Mode = fm_EDIT_MODE
    myForm.Mode = fm_VIEWMODE_MODE
    You may change it after you modify you matrix data to fm_VIEWMODE_MODE and I guess you won't have the system question again.
    Sebastien

  • Sales Order status still "Being processed" after invoice (3rd party sales)

    Dear SD gurus,
    Here's what is done so far:
    1. Create a sales order with one line (TAS item cat).
    2. Trigger PR to be created. Approved the PR.
    3. Create Purchase Order. Approve the PO.
    4. Perform MIRO.
    5. Create sales invoice based on sales order (billing based on supplier invoice).
    6. Invoice released to accounting
    Now, when I checked the sales order status, it's still showing "Being processed". However, invoice have already been created and released. I'm just wondering what else have I done wrongly. I believe the status should show "Completed" as well otherwise this order will keep showing up as outstanding in my sales order listing report.
    Anyone got any ideas?

    SAM
    I had a looked at both the SAP Notes provided. Doesn't really apply in my situation. The Sales order was for 10 qty. My PR for 10 qty and I have also done a MIRO for 10 qty. even my sales invoice was for 10 qty.
    I do not want to configure it to follow the PO quantity because I need a control where only vendor has delivered the products to the customer only then I should invoice the customer accordingly. If I allow the invoice to be created based on the PO quantity then the control factor will be lost.
    I have yet to try the program that you recommended... will try that shortly.
    And yes ... since I'm using the standard sap TAS item cat ... the "relevance for delivery" is already turned off and the billing is "F"

  • Sales order status with down payment requests.

    Due to our requeriments, all the invoices created from a sales order has down payment request as billing category.
    The problem is that the sales order status continues as "Being processed" instead of completed.
    Is there any customising that makes the sales order status as completed when the down payment request is created for all the sales order value?
    Thanks in advance.

    Hello,
      this is the correct behaviour of the system: you have an item of 100; in the billing plan if you want to manage downpayment you will have, let's say two items:
    10 for the downpayment 
    100 for the final invoice.
    The system proposes the amount you defined for the downpayment and the total amount for the final invoice.
    Then you will have to bill the downpayment invoice, release it into accounting and clear it. If you will do this steps correctly, when you create the final invoice the system will show you:
    invoice amount 100
    advance payment -10
    net value = 90.
    Hope to be useful..
    Best regards,
    Andrea

  • EDI 870  sales order status

    Hi All,
    We are implementing the sales order status using EDI 870. Does anybody implemented the same and if so please share IDOC/Message type name or process.
    Thanks & Regards,
    Harish

    VBUK-GBSTK Stores the overall status of the order. ' ' - Not relevant, 'A' - Not yet processed, 'B' - Partially processed , 'C' - Completely Processed.
    If you are looking the status based on Object status, then use the function module "STATUS_SHOW_CHANGE_DOCUMENTS"
    Regards
    Vinod
    Edited by: Vinod Kumar on Apr 8, 2010 1:47 PM

  • Sales order status showing Completed, after I do partial delivery

    Dear All, Good morning
    I'm Creating an order for 5 quantities and creating a delivery for 2 Qty',
    my problem here is the sales order status is showing complete and I'm unable to create a delivery for the remaining Qty.
    I've checked with the Copy controls for OR - LR(T.code: VTLA) , for your reference I'm showing it below,
    FOR HEADER
    Target delivery type    LF     Outbound Delivery
    From SalesDoc Type      OR     Standard Order
    Order requirements     001    Header
    Combination requirmt   051    Combination
    Header Data            001    Header
    Header Data Ext. Sys   0
    Handling Units         000
    Copy Item Number is not CHECKED
    FOR ITEM
    Target delivery type    LF     Outbound Delivery
    From SalesDoc Type      OR     Standard Order
    Order requirements     001    Header
    Combination requirmt   051    Combination
    Header Data            001    Header
    Header Data Ext. Sys   0
    Handling Units         000
    Update Document Flow is CHECKED & Positive/Negative Qty
    Please its urgent.
    Thanks & Regards

    hello, friend.
    in addition to what the others have said, please check your customer master, particularly in the Sales Area Data > Shipping tab.  look at the partial deliveries.  there may have been settings that tell the system if a delivery has been created with reference to the sales order, the order will be completed even if the quantity is only partially delivered.  if the entry in the 'partial delivery per item' field is 'B', then this will explain your situation.
    this can also be manually set in the sales order, so you have to take a look at the order as well, at item level.
    regards.

  • Compilation error in sales order status

    Dear All,
    I have tried to model the sales order status. when i compile the model, it shows "Required field "SALESDOCUMENT" is not assigned a value in call to "Sales order get status".
    can any one help me what could be the error? and how to resolve it?
    Thanks in advance.
    with Regards,
    Balachander.

    Dear Marcel,
    Thank you very much for your reply. Still i got the same problem. I will explain you my model in detail, I hope it will give you clear picture.
    1. I am having one sales form (contain one input field and one push button) having one input and output port (output connect to BAPI input)
    2. BAPI_SALESORDER_GETSTATUS (has one input and output port, output port connect to Sales table input field)
    2a. BAPI has one input port field (SALEDOCUMENT NO, required field)
    2b. output port field i have defined 9 field out of 38
    my expectation was, when user click on push button in sales form after giving salesdocument no, the table should get populated.
    could you give the answer how to get the output?
    Thanks in advance
    with regards,
    Balachander

Maybe you are looking for

  • I want to pair my iPhone 3GS (OS 3.1) with my iMac via Bluetooth

    I am a bit disappointed that Bluetooth doesn't seem to be very mature in the iPhone. But maybe I'm just clueless as to how to get it working, and, once it's working, it will be good. My problem is that I can't even discover my iPhone (I have scanned

  • Call form in EBS with form personalization

    Hi all guru, i try to call a form (function in EBS) with the form personalization and pass it one parameter (P_PO_HEADER_ID) in new SPECIAL41 menu: 1) create new sequenze with condition "TRIGGER: special41" 2) create action Built-in, type "Launch a f

  • Issue Intalling I Tunes on Windows 7

    Gee Wiz, A lot of information out on this, My resolve was simple Save to Desktop Right Click Make Sure not blocked Then rename Icon to executable file,  add .exe to the end and wholla the icon change to install icon and works Just sayin

  • Aspire 6920 crashes after booting correctly - screeen zig zags and freezes - any ideas to help plse?

    My aspire 6920 crashes after booting correctly - screen zig zags and freezes - any ideas to help plse? This does not happen in safemode which I am working in now - I have seen a list of dowloadable drivers on the acer site but not at all sure if I sh

  • Newbie Question. Customizing headers for communities

    Hi We are running the demo version of aqaulogic userinteraction. My understanding of the easiest way to customize unique headers and footers for communities is with aqualogic publisher - without publisher is it a matter of developing seperate portlet