Installation order is locked by user after status change

Hi Experts,
As we confirm the proof of delivery in R3, I am changing the status of CRM installation order as delivered thro badi for that I am using FM CRM_ORDER_MAINTAIN then FM CRM_ORDER_SAVE and then doing commit work. But after changing the status of installation order in CRM. when I tried to edit the installation order it is saying Installation order is locked by RFCUSER of R3. system dont allow me to edit order. so please guide how to remove lock of order
Thanks & Regards,
Abhiiesh.

Hi,
IF sy-subrc = 0.
                  CLEAR : l_input_field_names,l_input_fields_order, l_status, t_status.
                  REFRESH:t_status.
                  l_input_fields_order-ref_handle = '0000000000'.
                  l_input_fields_order-ref_guid = wa_orderadm_h-guid.
                  l_input_fields_order-ref_kind = 'A'.
                  l_input_fields_order-objectname = 'STATUS'.
                  l_input_field_names-fieldname = 'ACTIVATE'.
                  INSERT l_input_field_names
                    INTO TABLE l_input_fields_order-field_names.
                  l_input_field_names-fieldname = 'REF_HANDLE'.
                  INSERT l_input_field_names
                    INTO TABLE l_input_fields_order-field_names.
                  l_input_field_names-fieldname = 'REF_KIND'.
                  INSERT l_input_field_names
                    INTO TABLE l_input_fields_order-field_names.
                  l_input_field_names-fieldname = 'STATUS'.
                  INSERT l_input_field_names
                    INTO TABLE l_input_fields_order-field_names.
                  INSERT l_input_fields_order INTO TABLE t_input_fields_order.
                  l_status-ref_handle = '0000000000'.
                  l_status-ref_guid = wa_orderadm_h-guid.
                  l_status-ref_kind = 'A'.
                  l_status-status = 'E0021'.
                  l_status-activate = 'X'.
                  APPEND l_status TO t_status.
                  CALL FUNCTION 'CRM_ORDER_MAINTAIN'
                    EXPORTING
                      it_status         = t_status
                    IMPORTING
                      et_exception      = lt_exception
                    CHANGING
                      ct_input_fields   = t_input_fields_order
                    EXCEPTIONS
                      error_occurred    = 1
                      document_locked   = 2
                      no_change_allowed = 3
                      no_authority      = 4
                      OTHERS            = 5.
                  IF sy-subrc EQ '0'.
                    CLEAR:order_guid.
                    REFRESH:order_guid.
                    APPEND wa_orderadm_h-guid TO order_guid.
                    CLEAR ret_objects.
                    CALL FUNCTION 'CRM_ORDER_SAVE'
                      EXPORTING
                        it_objects_to_save   = order_guid
                      IMPORTING
                        et_saved_objects     = ret_objects
                        et_objects_not_saved = lt_objects_not_saved
                        et_exception         = lt_exception
                      EXCEPTIONS
                        document_not_saved   = 1
                        OTHERS               = 2.
*                    COMMIT WORK.
                    IF sy-subrc = 0.
                      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                        EXPORTING
                          wait = 'X'.
                    ENDIF.
                  ENDIF.
                ENDIF.

Similar Messages

  • Locking a user after unsuccessful login attempts?!

    Does anybody know how to automatically lock a user after a given number of unsuccessful login attempts?
    I noticed that solaris does not offer any security feature concerning this item, although it is a good opportunity for hackers to scan a solaris machine.
    Please let me know
    Thanx in advance

    Hi,
    The Trusted Solaris version supports this feature. You can find the detail about configuring the same at http://docs.sun.com under Trusted Solaris 8 and Administration Procedures.
    The same can also be achieved by using Pluggable Authentication Modules(PAM) which has been incorporated since Solaris 2.6. For more info on PAM check out www.sun.com/solaris/pam. There some white papers and admin guide .Also refer to man pages on pam.conf ,pam and pam_unix.
    Regards
    Anshul

  • LOCK THE USER AFTER X ATTEMPTS --NOT WORKING?

    LOCK THE USER AFTER X ATTEMPTS --NOT WORKING
    OpenSSO -->Configuration-->Authentication -->Core -->Login Failure Lockout Count:( 3 ) --> Warn User After N Failures: ( 4)--> Email Address to Send Lockout Notification: --> [[email protected]|mailto:[email protected]]
    I tried above step but failed to achieve LOCKING the ACCOUNT...
    Could some one please help me...

    This only works if you use the LDAP auth module.

  • Order is locked by user while filling setup table

    Hi Experts,
    Yesterday while i am filling setup table for 2LIS_DM_VAITM (DBM Sales) data source it got cancelled.
    It showed that " Order xxxxxx is locked by user".
    Because we have DSO concept in our CUBE, we didn't lock users.
    But then the basis checked the users and removed from the system.
    But still after removing the users, when we do the setup filling it still gets cancelled showing the same error.
    Please help on this. Now i am stuck in filling setup section.
    Thanks,
    Thilini

    Hi,
    Thanks. I followed your instructions and removed * , last two check boxes and selected sales org.
    Now i am filling setup and its still running. I used a background job.
    In sm37 it shows as "active"
    But when I check in NPRT, It shows no logs were found.
    I want to know that, is everything fine?
    Setup table is filling right?
    expects a reply please...
    Thanks,
    Thilini

  • BAPI_GOODSMVT_CREATE giving error  purchase order is locked by user

    I am calling multiple times BAPI_GOODSMVT_CREATE for same Purchase order to post goods receipt.
    first goods receipt created successfully but second one has given the error the Purchase order is lockecd by USER 'XXXX' .
    i am calling 'BAPI_TRANSACTION_COMMIT after each BAPI BAPI_GOODSMVT_CREATE.
    i tried with passing parameter WAIT = 'X' in 'BAPI_TRANSACTION_COMMIT. then also getting same error message.
    please any one tell me the solution

    Hi
    1. Check all the call is handled the release function(JCO.releaseClient(client)) for each call.
    2. And check in finally
    finally {
         try {
         if (client != null) {
           JCO.removeClientPool(SID);
           JCO.releaseClient(client);
         if(client.isAlive()){
              client.disconnect();
           JCO.releaseClient(client);                    }
         } catch (JCO.Exception ex) { }
    Kind Regards
    Mukesh

  • Sharepoint 2010 locking out users after changing user login

    We have changed several users logon UPN to match our proactis.com domain in azure / office 365 in preparation for sync our active directory.
    But since doing so it would appear that users are no longer getting access to our sharepoint 2010 server randomly. It prompts the user for their username and password. When they then enter this, it rejects it and locks their accounts.
    Has anyone seen this behavior before?

    Hi Proactis,
    Based on your description, my understanding is that the users with changed UPN cannot access SharePoint Online in Office 365.
    If I misunderstood, please feel free to correct me.
    This issue may be due to that the changes aren't synced by the Azure Active Directory Sync tool after you change the UPN of a user account to use a different federated domain.
    I recommend to run the following command to see if the issue still occurs:
    Set-MsolUserPrincipalName -UserPrincipalName [email protected] -NewUserPrincipalName
    [email protected]
    You can refer to the link below for detailed steps:
    http://support.microsoft.com/kb/2669550
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Badi/User Exit for IE02 and IP02 after status changed to deleted/deactivate

    Hi all,
    I need to change the status of the Plan Maintenance(IP42) when the Functional Location(IP02) or the Equipment(IE02) status is change to deactivated/deleted.
    I cant find any related badi or userexit that can be used to achieve the above purpose.
    Is there any suggestion available to achieve that? Please advise. Thanks.
    Regards,
    lsemun

    Hi,
      You will either have to use the user exit on save or use the change documents functionality through transaction SWEC to trigger a  custom process to accomplish your needs.
    Regards
    Narasimhan

  • User Resource Status Change through Database

    hi,
    i need to know which table stores the status of the recource instance assigned to user.
    i tried querying upa_resource table based on oiu_key but oiu_key corresponding to usr_key in oiu table do not match.
    please help wth your inputs.
    thanks

    2. Updating Resource Status to Revoked for a given resource:
    ==========================================================
    update oiu set ost_key = (select ost_key from ost where obj_key in ( select obj_key from obj where obj_name like 'RESOURCENAME' ) and ost_status like 'Revoked') where ORC_KEY = 'Process Instance Key'
    update orc set orc_status='X' where orc_key = 'Process Instance Key'
    Source: http://rajnishbhatia19.blogspot.com/2008/10/oim-backdoor-queries.html
    Although you can do it directly, I agree 100% with Kevin.
    Renato.
    Edited by: Renato.Guimaraes on 27/08/2009 06:00

  • Restricting User from Status Change

    Dear All,
    I have the below requirement in support ticket :-
    1. End User can confirm only the calls pertaining to them.
    2. End User is allowed to change the status "In Process" and "Confirmed".
    3. Message processor is allowed to change the status "Customer Action" and " Proposed Solution"
    Regards,
    Raj

    Hi
    If standard roles as per the guide not helping you thn
    you can customize them more...for e.g A user "X" can set status but User "Y" cannot ..to do this use this authorization object
    authorization object B_USERSTAT  and authorization key can be created and assigned to ur each status in the status profile
    So for e.g...for same status profile -
    X & Y are processors but X cannot set certain status which Y can
    Hope it answer ur query
    Regards
    Prakhar

  • DTR lock my NWDI_CMSADM after password changing !

    Hello,
    All my problem is in the Subject title. I don't know where should I change the hard coded password in the DTR configuration ?
    Kind Regards.
    Joseph

    Hi Joseph,
    Please try this link. Area "Administration of  Design time repository>Setting up DTR Server>DTR configuration areas" might give you some information.
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/79/6c9f3f12e1eb0ce10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/79/6c9f3f12e1eb0ce10000000a114084/frameset.htm</a>
    Akshatha

  • E-Recruiting:Status change Activities on screen

    Dear Experts,
    I need to understand a few things about performing activities on candidacies(Object NE) . Please help me out in the following queries :
    We are implementing eRecruiting 603,specifically succession planning.
    I have created some custom activities (of type status change) & assigned them to some cutom created processes.
    In the BSP page, the list of candidacies NE for each NB is shown.
    The various processes (custom as well as standard) are also shown on the screen as different tabs.
    I have one Z activity Assigned to object status "intended as successor" and another assigned to status " rejected".
    1) To begin with all the NEs are shown in the ALL tab.If i perform any status change activity(intended as successor or rejected), the NE completely disppears from the screen (even from tab ALL) . Is this the standard expected behaviour ? There is a Process called "Rejection".But the Rejected NE is not shown in this tab. Is there any way i can show the NE under the Rejection tab? The same happens for status "intended as successor".
    2)Is this how all the status-change activities behave on screen? The NE is not shown on the screen but the changed status is reflected in the table 5139
    3)At the end of the process,for a NB,how can a succession planner see the NEs with status "intended as successor" if the NEs disappear from screen on performing this activity.
    Any assistance and thoughts on this will be invaluable.
    Many thanks,
    Sowmya

    Hello Sowmya,
    I think the SAP customizing mght tricked you a bit. The status of the candidacy which you set with the status changing activity has nothing to do with the tabs in the screen you are talking of.
    The Tabs result from the processes (or process steps - wording is not very clear here). Either you see all processes that are assigned to recruiting or succ planning or if you have assigned a recruiting plan to the requisition you will have tabs for each process(step) for which are activities in the recruiting plan.
    The candidacy is counted on the tab in which its most recent activity is in. So the status change activity rejected and the process rejected have nothing to do with each other directly. Only if it is the most recent activity of the candidacy and it belongs to the process reject the candidacy will be counted on the tab.
    If the candidacy disappears at all this results from the filters you set in the upper area of the screen. In the recruiting candidacy list the default filter restricts the candidacies shown to "in process" that might be the reason why the candidacies disappear after status change.
    Best Regards
    Roman Weise

  • User Status change problem in Process Order

    Hi,
    We are in process of upgrading our system from 4.6C to ECC 6.0. I have a problem with User status change for process Orders.
    In 4.6C we are using the profile x with settings:
    10     ZNEW     Created process order     10     90     1     1     ZSTA
    20     ZLCK     Locked process order     20     90     1     1     ZREV
    30     ZOPN     Reopened process order     20     90     1     1     ZOPN
    40     ZMST     MES order started     20     90     1     1     ZMST
    50     ZMCL     MES order closed     20     90     1     1     ZMCL
    90     ZTEC     Technically completed      20     90     1     1     ZTEC
    In ECC 6.0 we also use the same profile settings as above.
    The problem is in ECC 6.0 when I do a goods receipt the User status changes to ZTEC . The process followed is ..Create process order, Release Order, Goods issue, Phase partuial confirmations, Goods receipt and then Finla confirmations of phases. Now in 4.6C if i do the above process the User status remains at ZMST and it only changes to ZTEC when i technically complete the order but in ECC 6.0 when I do a goods recipt from above steps the User status changes to ZTEC. THis should not happen.
    Any pointers will be very helpful.

    Hi,
    The log for production order preliminiary costing is not saved. Therefore, once the order is saved, there is no log available anymore (this is by the way a question of PP; none of the logs is saved).
    Hope that helps...
    Regards,
    Declan

  • Track production order ststes histry (Status change date, time, user)

    I want to track a production order status change history. Status change date, user name and status. Appreciate if somebody can give me a T Code, SAP report or a table.

    HI,
    You can see the the date, time and user for the status changes by following the menu path given by Mr. Mangalraj.
    However if you cant see them, then check the T Code OPL8 (for PP and COR4 for PI), implementation tab. Tick the check boxes for for Status Change Documents as your choice (for header, operations etc).
    After checking these boxes you will be able to see the status change details.
    Hope that helps.
    Regards,
    Rohit.

  • Sale Order Status Change after delivery of materials from projects

    have ETO sccenario which consists of all modules such as SD,PS.PP etc. Materials will be procured from external vendors & manufactured inhouse through project systems. After delivery of materials from project systems, billing & invoicing will be done at sales level.
    On delivery of materials from projects, sale order status remain open. Request you to look into the matter & suggest about status change of sale order after delivery / billing.
    Regards,
    Ranjan

    Hi,
    In sale order, WBSE is assigned. Delivery of materials are through cns0. then subsequently picking / packing / billing will happen at sales level. Billing is of delivery related. Please suggest to fix the issue.
    Thanks & Regards,
    Biplab Ranjan

  • EXIT/ BADI/ Enhancement point for User Status change in Order

    Hi all,
    I am looking for an EXIT or a BADI or an enhancement point specifically for user status change in an order thru IW31/IW32.
    I have the exit names for Order PBO, PAI, 'SAVE' event etc. so m not looking for generic answers.
    I have to put some validations for the Order on USER STATUS CHANGE. Let me know if any of u have any pointers on that.
    Thanks and Regards,
    Sonal

    Hi,
    Use this Enhancement IWO10009 and call these function module to change the User Status
    STATUS_TEXT_EDIT --> To Read the existing status.
    STATUS_CHANGE_INTERN_VB --> to change the status.
    Regards,
    Satish

Maybe you are looking for

  • Month selector in ical?

    Hi folks On iPad if in month view you can use a slider to move along and select which month you want to view, same for week view. Is annoying to not have this on Mac. Except I had a conversation with someone once who thought you could. Anyone any ide

  • Differnce between null string and an empty string??

    what is the major difference between null string and an empty string?? I wrote the following simple program and I could see some different output. Other than that, any other differences that we should pay attention to??? C:\>java TestCode Hello nullH

  • XPath for root node in condition editor

    Hi, I have a HTTP to IDOC scenario. I have to accept any incoming document,(i will know only at runtime whether it is ORDERS or INVOICE or ASN etc) and post it to the respective receiver based on what is the name of the root node. But how do i specif

  • Unable to check for available downloads. the network connection was lost

    in my downloads window in iTunes it shows i have "28 iTunes downloads available". when i try to download them, i get the error "Unable to check for available downloads. the network connection was lost." my connection is fine though, as i can individu

  • Access Denied when report is opened

    Adobe Acrobat Reader v 10.0 release 1. We have an app that creates PDF reports. The PDF is throwing "Access Denied" message when the report is opened. Sometimes it works, other times the message is generated.  Any ideas?