Need FM for setting user status of sales transaction

Hello experts,
I need a fm for setting the user status of a sales transaction.
I want to select some sales orders and for this I want to set the user status via a FM.
Can anybody help me ?
THANKS
Gerd

Hi,
Try this if you want to execute a process
        "Set Status for Header
        CALL FUNCTION 'CRM_STATUS_CHANGE_FOR_ACTIV_OW'
          EXPORTING
            objnr                  = lv_guid_h "guid Header
            vrgng                 = gc_process-cf_approved "Process
            iv_ref_kind         = 'A'
          EXCEPTIONS
            status_not_allowed = 6
            OTHERS             = 7.
If it is just the Status that you want to set:
crm_status_maintain_ow
You need to call CRM_ORDER_SAVE after any of this call
Thanks!
Amrut Tadas

Similar Messages

  • How to Set User Status of Sales Order at item level.

    How to Set User Status of Sales Order at item level by default to 'Purchase Req Not Created' (example)while creating order. Please tell EXIT Name to be triggered & Internal table to be populated.
    Thanx,
    Srini
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Feb 21, 2011 11:19 AM

    Mathew,
    Here is a document that should help you get started on enhancing 2LIS_11*
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09d5356-d8c4-2d10-8b84-d24723fc1f0a?QuickLink=index&overridelayout=true
    Good luck!

  • Need FM for reading user status at run time in CRMD_ORDER txn.

    hello all,
    i need to know the FM for finding the user status on the screen.
    i know there are FM's for finding the values on subject and external reference fields. similarly i want it for user status .please help me in this regard....
    Thanks,
    Sreekanth.

    Hey Shiva,
    The FM for finding user status is CRM_STATUS_READ_OW
    Please Reward for usefull usefull post..
    Regards,
    Anand..

  • Function module to set user status during QA11 transaction

    Hi ,
    Anyone knows the function module to set the user status during QA11/QA12  transaction?
    I received the user status 'e.g CFA1' from an idoc data and would like to set the user set based on this idoc value during QA11/QA12 transaction.
    Any function module for this action? BDC seems impossible..
    Thanks.
    Regards,
    Clarice.

    oh i realised this function module can be used
    STATUS_CHANGE_EXTERN
    with a commit statement..

  • Set User-status for PP order

    Hi All,
    How can I set the user-status for a PP order, also let me know which user exit suits this requirement, as I know I have to make use of a FM or a BAPI which sets the user-status in the user-exit somewhere.
    Thanks
    Mark

    Hi,
    Try the following enhancements/exits for setting the status for PP order.
    STATTEXT
    CCOWB001
    COIB0001
    Regards,
    Anji

  • User exit to set user status for quote

    Hi,
    I need to update the user status in the header of quotation (using VA22) based on some conditions. I checked the user exit's under 'MV45AFZZ' but no use.
    Could any one please provide me where I can write the code to put the conditions before upating user status in header
    Thanks
    Thang Tran

    Hi,
    Is there anyone can give me some suggestions?
    Thanks in advanced
    Regards,
    Thang

  • Setting user status using actions in business activity

    Hi
    I have defined a new action profile. In that I have defined a new action using which I want to set user status to overdue. I have also defined a new user status "overdue".
    Now I want to set user status to overdue. For that we have defined new badi implementation also, but it is not able to change the status.
    Please tell me what all steps I need to do, to make it work.
    Thanx in advance.
    Cheers
    Hitesh

    Hi Hitesh,
    Check whether processing parameters are given correctly
    It should be given as below
    Element  : PROCESS
    Name     : PROCESS
    Type Name : CRM_J_STATUS
    Initial value  : OPEN      (here you can give the one you want )
    Let me know if you have any issues.
    Reward points if it helps.
    Regards,
    Madhu

  • BAPI_BUS2173_SET_STATUS should be able to set user status profile.

    Hi,
    I need use a workflow to setup user status profile for PHASE and TASK, but I found that the unique easy way to setup the user status profile for PHASE or TASK is manual operation.  I have created a user status profile of the BUS2173 and BUS2175. I can't use BAPI_BUS2173_SET_STATUS function to setup user status profile, but it can be used to setup a user status after the user status profiel has been setup by manuay.
    Why?
    Best regards,
    Arrow Yang.

    Hi,
    Try calling BAPI_BUS2173_SET_STATUS first time for setting the status profile by passing the status profile in iv_status_profile parameter and the phase guid but not passing the user status to the bapi.
    Now after this again call the same bapi, this time just passing the user status and phase guid and not passing anything in the status profile.
    We have used this bapi to set the status profile.
    Regards,
    Simmi

  • LSMW for changing user status on work order(IW32)

    Hi All,
    I have created a LSMW for changing user status on work order using transaction IW32. It does not change the status when i run the LSMW. In the recording for the LSMW, i select the radio button on the user status i want to select.
    When i run the LSMW in the foreground, it does everything except select the correct status.
    Is there a way to fix this or is it a problem with LSMW. I'm using ECC6
    Kind Regards
    Emanuel

    Hi ,
    I am not sure whether it would work with LSMW but if your on ECC 6.00 ,Enhacement Pack 3 then you have BADIs which allow you to make collective status changes in IW38 .The below are those BADIs :-
    BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
    BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
    Else if your on lower version then write up a batch programme which checks the PM Order types with specific status and sets user status using FM STATUS_CHANGE_EXTERN[This is used to set or delete User Status] in SE37 ..
    regrds
    pushpa

  • Can we set user status in tj30 ?

    Hi all,
    can we set user status in tj30 ?
    i've created a new status profile and it seems SAP automaticaly generate all of status in my status profile to table tj30.
    but the data in column estat of table tj30 that created is started from E0001.
    can we set the data start from certain number ( for example : from E0060 ) not from E0001 ?
    or can we update it from E0001 to E-something ( for example : to E0056 ) ?
    please advice or breif me.
    many thanks in advance

    Hi Eddhie,
    You must perform the following steps manually:
    1. Transaction SPPFCADM
    2. Select the application
                  "CRM_ORDER"
    1. Click 'Define action profiles and actions'
    2. Select the action profile (if you are using the standard action profile)
                  "SMSD_SERVICE_ORDER_DNO"
    1. Double-click 'Action definition'
    2. Select the action
                  "SMSD_SRVC_ORDER_DNO_SAP_UPDATE"
    1. Double-click 'Processing types'
    2. Go to the change mode using the 'Display/change' button
    3. Press the "Change" button in the screen area "Method call settings" in the line "Define processing parameters".
    4. Click the 'Create' pushbutton in the dialog box that is then displayed.
    5. Enter the following data:
    a) Element: USER_STATUS
    b) Name: USER_STATUS
    c) Short description: USER_STATUS
    d) Data type tab, ABAP dictionary reference
                             Structure TJ30
                             Field ESTAT
    e) "Initial value" tab page, entry "E0060" in the field USER_STATUS (or another allowed user status from the status profile used if desired).
    f) Copy the entries.
    6. Save
    Check OSS Note (663970) for more detail.
    Please award points if the solution is helpful.
    Thanks
    Sumi

  • Set User status collectively in PM order

    Hi,
    I want to set user status collectively in PM orders. Is there any standard T Code.
    Regards
    Rakesh Ganpat

    Hi,
      As mentioned above there are no standard transaction for this and the BADI are available from ECC 6.0 EHP3 only. Either way you will have to do some development.
    You could use the FM STATUS_CHANGE_EXTERN to make the user status change one by one. You can incorporate this FM within the above user exit or within you customer Program.
    Regards
    Narasimhan

  • IDOC for changing user status to 'HIST' on Functional Location

    Hi.
    Can anyone please support me with an inbound IDOC for changing status on existing Functional Location?
    Thanks.

    Hi ,
    I am not sure whether it would work with LSMW but if your on ECC 6.00 ,Enhacement Pack 3 then you have BADIs which allow you to make collective status changes in IW38 .The below are those BADIs :-
    BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
    BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
    Else if your on lower version then write up a batch programme which checks the PM Order types with specific status and sets user status using FM STATUS_CHANGE_EXTERN[This is used to set or delete User Status] in SE37 ..
    regrds
    pushpa

  • No authorization for activating user status PLIM

    Dear Gurus,
    I'm a newbie to SAP. Currently i'm facing the problem with Tcode KO01 while i'mtrying to create Internal Order. I can initialize the program but after i entered the Order type and pressed enter. Error msg "No authorization for activationg user status PLIM" pop-up. Pls help on this urgently.
    Thanks.

    Dear Payal,
    I checked /nSU53 just after i got the error msg. It said authorization check failed. Authorizaton object B_USERST_T status management: Set/Delete User Status using Transaction.
    Activity:01
    Authorization key: <Dummy>
    Object Catagory: ORC
    Status Profile: 00000002
    What should i do after this???

  • 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

  • Remove the user status in Sales order

    how to remove the user status in sales order header? could you give the function module or BAPI to get this?

    Hi,
    You Can try this-
    BAPI_SALESORDER_CHANGE,
    FM 'I_CHANGE_STATUS'
    Regards,
    Sujit

Maybe you are looking for