Status profile in sales order

Dear All,
I have a requirement  as below
In status profile  maintained 5 statuses in the sales order when the user  releases 4th status system should not allow to change the sales order .

Hi
Your requirement can be fulfilled through a User exit.
You write the logic as below, All the data related to statuses are stored in JCDS and JEST tables.
So you can pass the OBJNR from VBAK to JCDS table there you have to get the status for the fourth profile and look for the fields
INACT and CHIND,  if for the fouth status if the CHIND is U then there should not be nay modifications
regards
Prashanth

Similar Messages

  • To change user status profile on sales order at run time.

    Hi Experts,
    We have defined status profile for Sales returns ( Doc type RE) which blocks the  return order on creation. There are two statuses here which are to remove the delivery block and to remove the billing block by authorised users.
    The requirement is now to have a three level block ( three statuses ) on the same document. We can create a new status profile and assign it to a new return sales order tpye  but we want to avoid creating new document types. Since this document type is used across various companies in the group we can not assign a new profile on the existing RE document as well.
    My question to all experts is
    Is it possible to dynamically change the status profile assigned to the document type based on characterstics like sales org or company code etc? If any body has done this please let me know the user exit , function module, BADI etc where the necessary coding has been done.
    Helpful answers will be rewarded with points.
    I look forward to your co operation.
    Regards,
    Kartik Shah

    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 to restrict status profile for sales order.

    Dear Friends,
    Pl suggest me for follwoing scenario
    ►     As per business process for tender/ institutional sales and exports, the order is complete once the complete delivery and invoicing for the same has been performed.
    ►     It was also observed that a sales order may be modified (material, quantity, price etc) even after complete invoicing of the same has been performed in SAP.
         The requirement is  Possibility to enable a control to restrict any amendments to the sales order after complete delivery and invoicing will be explored as per business requirements.
    Is there any solution above scenario without writing any code.
    Regards,
    Atul
    Edited by: atul thakur on Oct 28, 2009 5:09 AM

    Mr Atul,
    My understanding is, you don't want your user to be able to change the pricing and order quantity once the order is complete, i.e Delivered and Shipped.
    The status profile will not help you in the above scenario, Price/Quantity changes will not come up as Business transactions that can be controlled at Status profile.
    Standard SAP restricts the price changes to a completed item of the order, so no need to worry about this.
    But order quantity can be increased any time.
    So to restrict the user to increase the order quantity you need to use the User-Exits that SAP provided.
    Use the MV45AFZB user-exit program and form  FORM userexit_check_vbap to code this.
    Hope this helps you.
    Regards,
    Aj.

  • Status profiles for sales order

    Dear all:
      I use  status profiles to do sales order approve(BS02)
    who can tell me which business transaction can settle Sales Order can or not make to MD04?
    the standard business transcation:
    Acct. assignment order/project
    Activate final billing doc.
    Actual activity allocation
    Actual overhead (periodic)
    Actual settlement
    Automat. WIP/results analysis
    Change configuration data
    Complete
    Confirm order
    Create billing document
    Create changeable copy
    Create delivery
    Create inquiry
    Thanks a lot .

    hi,Imran  and rohit rathi
    thank you very much for you help,
    maybe I have't depict the problem,
    I use user status profiles to do sales order approve, i have defined a status profiles and assigned it to sales document type ,  i have defined two statuses  A00 and B00 in the  status profiles .
    I hope if the sales order in status A00,it'can make to MD04,when the sales order approved to status B00,It can make to MD04.
    but I don't know which business transaction  shoud I choose when defining the profiles' status A00 by t-code BS02.
    thanks and Best wishes.
    zeng
    Edited by: zeng zeng on May 31, 2008 11:37 AM

  • Status profile in sales order  Re Release

    Hi Experts,
    Scenario is like this
    Iam using status profile ZETO1 in T.Code [BS02] for releasing sales order once Sales team person creates a sales order VA01. After this Fiance person will release through sales order  status in header (i have created status profile and authorisation key
    which will be with Finance person)
    I have status profile  like this step 10 and 20 in T.Code [BS02]
    10. created (initail status)
    20. released by finance
    once finace person release this delivery can happen.(i have used user exit for this)
    the problem is if sales team member again make changes in sales order then status of sales order again should go to step 10 then it should be again released by finance person.
    whether it is possible to re realese in status profile concept in SD???
    please help
    Thanks and Regards,
    kedar

    Hi
    Your requirement can be fulfilled through a User exit.
    You write the logic as below, All the data related to statuses are stored in JCDS and JEST tables.
    So you can pass the OBJNR from VBAK to JCDS table there you have to get the status for the fourth profile and look for the fields
    INACT and CHIND,  if for the fouth status if the CHIND is U then there should not be nay modifications
    regards
    Prashanth

  • Status Profile for Sales Order

    Can anyone send step by step process for configuring Status Profile?

    Dear Anupa
    Being a senior member, dont you aware of the forum rules.  I am sorry to say that the informations you exchanged personally is definitely condemnable and we as a Moderator can ask the concerned panel to delete all your points.  But since I come across as a first instance, I dont want to do this.
    Please try to maintain the forum rules and also advise newbies to go in line with the guidelines.  Dont spoon feed them.
    thanks
    G. Lakshmipathi

  • User status transfer for sales orders from ECC to CRM

    Hi,
    We use business process with CRM sales orders that are transfer to ERP.
    Users can change user status in the sales orders in ERP.
    How we can replicate custom user status from ECC Sales Order to CRM Sales Order?
    What is the steps to do this for CRM 7.0?
    Denis

    Hi,
    We are creating quotation ZPQT in CRM which is then get replicated to ECC on saving it on “Accepted” status. In ECC we then create sales order of type ZPOR. Sales order gets replicated in CRM and also updates document flow. This sales order is called as “Project Sales Order”. PS team assigns WBS element to this order and does billing later on. Upon billing document is created sales order status in ECC changes to “Completed”. This is system status. But the issue is status of order ZPOR is CRM remains in status “Inprocess”. We want it to change to “Completed”.
    We have similar scenario with order type ZOR. In this order after delivery and billing ECC assigns status “Completed” to sale order and same gets replicated to CRM.
    In CRM for user status Completed we have assigned system status as FINI. Both ZPOR and ZOR has same status profile assigned at header and item level.
    Our concern is if status is changing back in CRM for ZOR then why not for ZPOR. What is stopping system to do so?

  • Change User Status in the sales Order

    Hello Experts,
    I hope that somebody can help me.
    I search to change the field User Status in the sales Order in the transaction VA02 before that the order be displayed.
    I have searched in the UE MV45AFZZ, but i didn't found any form that i can use for my issue.
    I found one form 'USEREXIT_FIELD_MODIFICATION '  by what the program pass when i press enter in the transaction VA02.  but the problem that the status is changed in the data base only and not in the screen. In the screen i have always the same status as what was before, to have the new statut i must leave the transaction and execute it another time.
    I don't want use forms for saving.  What I want is the new status will be set when i press enter in the transaction VA02.
    If doesn't exit one form that can resolve my problem, Can i use the Profile Parameters? In this case How use them?
    Thank you very much.

    Hi,
    U can choose ur status in change status profile. Go to IMG-CRMTransactionsBasic SettingsStatus ManagementChange Status Profile for User Status.
    Here u hv to define ur new status for the transacxtion and assign it to ur transactio. If u r not clear tell.
    Reward points.
    Thanx
    Chinmaya

  • Read status in a sales order

    hi
    can any one tell me any function to read the lowest to highest status in a sales order corresponding to a given profile.
    for reference you can refer to transaction BS02 and table tj30.
    thanks in advance.

    Hi,
    Use table TJ30 or TJ30T(with text) which contains all the status relevant to the status profile.
    Cheers,
    Sasi

  • Status of the Sale order

    Hi Experts
        In which tabe we will get the status of the sale order.But in the screen it shows VBSTT-GBSTA_BEZ.
         VBSTT is astructure
    Regards
    Mano

    HI
    For header status VBUK
    ITem status VBUP
    in these 2 fileds u can billing status , delivery status confirmation status ....

  • Rounding Profile on Sales Orders

    Hi  Guys, I am trying to set up a rounding profile on sales order. I did a config and is working fine for PO but not for sales order. I have rounding permit option selected in item category in sales order too, I have rounding profile defined in sales and MRP 1 view in material master but its just not rounding up to the value i defined when i save the sales order, Does any body know why?? Can you help please! Thanks

    create your static rounding profile and plant  in OWD1
    like:
    Threshold value    Round Value
    1                            5
    6                            10
    11                           20
    21                           30
    31                           40
    assign the profile in the Sales Org data 1 in material master
    enable rounding permitted in VOV7
    Regards
    Sidi

  • Complete MRP status according to Sales order schedule line data

    Dear All,
    Please help me to get technical configuration releted to
    "complete MRP status according to Sales order schedule line data"
    or MRP w.r.t. Schedule line
    Please send fields and table and logic specification .
    Thanks & Regards,
    Ashish Gautam

    You can use following Fm for change sales order
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = p_vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
        schedule_lines    = i_sched
        schedule_linesx   = i_schedx.

  • Find status of a sales order created using EDI IDOC

    Hello everyone,
       I have IDOC created for incoming sales order using FM 'IDOC_INPUT_ORDERS'.
    When a sales order is created manually iva VA01, it prevents the order from being saved when a specific error is hit unless user resolved it first.   However, when the order is created via EDI IDOC, the error is hit and it cannot be created.  In the sapmv45a program, i will to say that if it is an EDI IDoc transacion for the order, let it bypass the error and create the order.  
         Can anyone pls tell me how to check the status of a sales order being created using EDI IDOC ?
    Sy-batch does not work.
    Thank you in advance.
    Joyce

    Joyce,
    If you pay attention the code in FM it is exporting value of da_edi_sign to memory id "SD_EDI_ACTIVE" stored in constant "da_memory_id". ('CONSTANTS: da_memory_id(13) VALUE 'SD_EDI_ACTIVE'.)
    In your program you have two you have two options.
    1. Declare a constant as in the FM and use that as mentioned below:  
    CONSTANTS: da_memory_id(13) VALUE 'SD_EDI_ACTIVE'.
    IMPORT v_memid FROM MEMORY ID da_memory_id.
    2. Hardcode memory id as below:
    IMPORT v_memid FROM MEMORY ID 'SD_EDI_ACTIVE'.
    Hope this resolves your problem.
    Gajendra

  • How to use the selection profile and status profile for production order?

    Hi expert,
       I want to know how to use the selection profile and status profile for production order. what's the usage for these two selection profile and status profile ?
      Please help me.
      thanks in advance.
      george.shi

    Hi George,
    There are are two types of statuses.One is system status and second one is user status.These statuses will tell us current situation of an order.
    We can't change system statuses.But we can create our own statuses through status profile.With this profile we can control user statuses.
    In this status profile,
    1.We define the sequence in which user statuses can be activated,
    2.We define initial statuses
    3. Allow or prohibit certain business transactions.
    Selection profiles are used to select the objects (say production orders) with different status combinations.We assign status profiles to selection profiles in BS42 T-Code.
    Regards,
    Raja.
    Edited by: Rajarao on Oct 30, 2008 6:21 AM
    Edited by: Rajarao on Oct 30, 2008 6:22 AM

  • Changing the status of the sales order item based on reason for rejection

    Hi All,
    When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
    I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
    Regards,
    S.Subasree

    Hi subburamaiah
    If you want the report you can create a separate SIS report . In that take the input field  as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
    Regards
    Srinath

Maybe you are looking for

  • PB won't start up please help

    Hi everyone, I cant seem to get my computer to start up and I'd really appreciate some help. When I try and start my g4 PB running 10.4, instead of the normal start up chime, I get a beeping sound and the screen stays black. The status light on the f

  • HP Officejet Pro 8600 Plus - no wireless connection

    Hi, I am now onto my second HP Officejet Pro 8600 Plus. The previous one froze entirely. This one switches on ok, but is unable to connect to my wireless router (even when it is inches away from the router). The blue wireless indicator is constantly

  • Numeric overflow error in proc

    hi guys while executing below proc i am getting error numeric overflow at lineno 36.. please help me. ORA-01426: numeric overflow Thanks & Regards ************************************Proc Code****************************************************** cre

  • Locked mac files on external HD veiwable on Windows 7 netbook.

    Long question sorry. I have a large external HD. Its partitioned into 2, one for a complete back up of my mac hard drive. The other for all my other files I share between computers. My problem is the back up section is locked to system and admin grou

  • MFBF GR to Blocked stock

    Hi Guru's I want MFBF GR to blocked stock atomatic , with out using a Edit--> change detail settings-Blocked stock setting, i tried with assigning  103 Mov tye in Rep mfg profile for GR but it is giving Below error, Update control of movement type is