Unlock object by lock object name

Hi all,
scenario:
We are locking some objects in ERP via RFC. (ENQUEUE_EVVBAKE)
Now i want to unlock the objects within a user exit but the fm DEQUEUE_EVVBAKE is not running successfully. I know why (different mode)!!!
Is there a possibility to delete a lock entry by object name??
How can i solve my problem??
regards

i think we have to cast it, can u help me how to cast
the obj to the classname that i get as inputThat's exactly the point why you shouldn't be doing this. You can't have a dynamic cast at compile time already. It doesn't make sense. Which is also the reason why class.forName().newInstance() is a very nice but also often very useless tool, unless the classes loaded all share a mutual interface.

Similar Messages

  • Fm or metod that retrieve the lock object name from the table name

    HI ALL,
    there is FM or method that retrieve the lock object name from the table name ?
    Best regards
    Nina

    CALL FUNCTION 'ENQUEUE_REPORT'            
    EXPORTING                                
    gclient                     = sy-mandt   
    gname                       = 'RCTMV'         "Table Name
      GTARG                       = ' '       
      GUNAME                      = SY-UNAME  
    IMPORTING                                 
      number                      =           
      SUBRC                       =           
      TABLES                                  
        enq                         =  lt_seqg3
    EXCEPTIONS                               
       communication_failure       = 1        
       system_failure              = 2        
       OTHERS                      = 3

  • HR OM  LOCK and UNLOCK object!

    hi!
    some one know HR OM object's LOCK and UNLOCK object ?
    thank you very much!

    Hi ,
    these can be used to lock/unlock  om objects..
    CALL FUNCTION 'HR_ENQUEUE_OBJECT'
           EXPORTING
                PLVAR            = ACT_ENQK-PLVAR
                OTYPE            = ACT_ENQK-OTYPE
                OBJID            =  ACT_ENQK-OBJID
                ENQUEUE_ONCE     = ' '
           IMPORTING
    call function HR_DEQUEUE_OBJECT
    These can be used to lock the OM objects..
    Br,
    Vijay.

  • Unlock Object Privilege

    Hi All,
    I want to give Unlock object (Say package) privilege to a user. I tired looking at the methods in the Security manager, but i couldnt find anything. Any help would be great.
    Thanks,
    Ashok

    I do think the same aswell. because these user parameters are stored in userpref.xml which is stored in the client directory and again runtime agents do not take into account the user parameter values specified in the userpref.xml file.
    Even you will modify the parametrs by using any other programs(java), still it is not going reflect in the odi studio unless you restart it.
    <Object class="com.sunopsis.dwg.dbobj.SnpUserParam">
              <Field name="Key" type="java.lang.String"><![CDATA[DEFAULT_LOCK_ON_OPENING]]></Field>
         <Field name="Value" type="java.lang.String"><![CDATA[ *0* ]]></Field>
         <Field name="Label" type="java.lang.String"><![CDATA[Lock object when opening]]></Field>
         <Field name="Type" type="java.lang.String"><![CDATA[com.sunopsis.graphical.userparam.SnpsTextFieldEditor]]></Field>
         <Field name="Help" type="java.lang.String"><![CDATA[Lock object when opening]]></Field>
         <Field name="Visible" type="boolean"><![CDATA[true]]></Field>
         <Field name="Updatable" type="boolean"><![CDATA[true]]></Field>
         <Field name="Position" type="int"><![CDATA[0]]></Field>
    </Object>
    So may be no workaround for this.
    Just wait for the suggestion from other experts.
    Bhabani
    http://dwteam.in

  • How to unlock objects in Transport Organizer?

    I found a program to unreleased the objects. And create new TR so it wont affect the logs on the old TR#s. Do you think I'm doing the safe way?
    Now, I need to delete and create another object(fmod, fgroup or table) to save it in a new transport request. My problem is the object I deleted is locked in the old TR # so it saves on the same TR. How will I unlock this object?
    Actually, I made a program where I can modify TLOCK table that changes the TR# where it is locked. Is it also safe to forced change the TR?
    Thanks guys!

    Hi Maui,
    To unlock a transport use goto se03 --> Request Task --> Unlock Objects
    Eneter your request and select unlock and execute. this will unlock the request.
    Cheers
    VJ

  • Changing object name of role is not reflected

    When I change the Current Object Name for a specific role this change is not reflected. The role still retains it original name in the PCD or when I assign the role to a user.
    This only happens for a specific role in our system. For all other roles the change of the Object Name works fine.
    What am I overlooking?

    Hi ,
    Please check that when you change property 'name' of the role and then click on save button you shud get a  'save successful ' kinda message.
    If not then may be your role is locked by some other portal user id and thus not allowing you to change it. Please note that this will also not allow to change any property of the role, so you can test this by trying changing the other properties of the role.
    If this is not the case, then compare the properties of two roles one whichis working fine and the one which is not.
    Thanks,
    Namrta Mahajan

  • Script logic error - Invalid object name 'tblStatus'

    Hi all,
    Running BPC 5.1 SP5 on SQL 2005.
    Has anyone ever seen this error message before? I only get the error message when choosing the run-time option in the package, to honor work status settings. This problem just appeared in the last few days, and I believe that a month or two ago, users were running the same logic (with the same yes-honor-work-status option selected).
    We did recently upgrade from 5.1 SP3 to 5.1 SP5, and I'm wondering if this may be a cause? That's just a hypothesis though.
    Invalid object name 'tblStatus'. in:
    select distinct d.VERSION,d.ENTITY,d.TIMEID
    from #RESULT_333729 d  where signeddata<>0
    and exists (select * from tblStatus s where [APP]='CONSOL' and d.VERSION=s.CATEGORY and d.ENTITY=s.ENTITY and d.TIMEID=s.TIME and [STATUS]>0)
    I understand what it means, and of course there is no table in the appset database tblStatus. Work status locks are kept in tblConsolLock (where Consol is my app name). And in that table, the field name is StatusCode, not Status. So it appears that this is some vestige of code from an earlier version of BPC / O'soft.
    This error occurs in a piece of script logic, that includes both basic SQL WHEN/IS/*REC's and also a *RUNALLOCATION. The error is thrown within the RUNALLOCATION code block. The complete run-up to the error message is shown below.
    -- Calculate difference
    insert into #DIFF_333729 ([ACCOUNT],[AFFILIATE],[CURRENCY],[DATASRC],[ENTITY],[PRODHIER],[TIMEID],[VERSION],signeddata)
    select [ACCOUNT],[AFFILIATE],[CURRENCY],[DATASRC],[ENTITY],[PRODHIER],[TIMEID],[VERSION],amtWHERE as signeddata
    from #WHERE2_333729
    select [ACCOUNT],[AFFILIATE],[CURRENCY],[DATASRC],[ENTITY],[PRODHIER],[TIMEID],[VERSION],sum(signeddata) as signeddata
    into #RESULT_333729 from #DIFF_333729
    group by [ACCOUNT],[AFFILIATE],[CURRENCY],[DATASRC],[ENTITY],[PRODHIER],[TIMEID],[VERSION]
    --Time to calculate and count differences (45459 found):2.5 sec.
    select distinct d.VERSION,d.ENTITY,d.TIMEID
    from #RESULT_333729 d  where signeddata<>0
    and exists (select * from tblStatus s where [APP]='CONSOL' and d.VERSION=s.CATEGORY and d.ENTITY=s.ENTITY and d.TIMEID=s.TIME and [STATUS]>0)
    call 1 completed and data posted in 23.6 sec.
    Run completed in 23.7 sec.
    End time --->11:01:05 AM  -  Date:1/16/2009
    Invalid object name 'tblStatus'. in:
    select distinct d.VERSION,d.ENTITY,d.TIMEID
    from #RESULT_333729 d  where signeddata<>0
    and exists (select * from tblStatus s where [APP]='CONSOL' and d.VERSION=s.CATEGORY and d.ENTITY=s.ENTITY and d.TIMEID=s.TIME and [STATUS]>0)
    Here is the original script logic (from the LGX file -- the LGF file has a whole bunch of variables in it that would only confuse the matter more). It works just fine when the
    *RUN_ALLOCATION @A_1||
    USING/TOTAL|
    ACCOUNT WHAT=659210,659310,659320,659410,659510,659610,659620,659630,659710,659810,659820,659910; WHERE=<<<; USING=PCAYTD510000; TOTAL=<<<|
    PRODHIER WHAT=PRODHIERL1A;WHERE=[PRODHIERLEVEL]='5'; USING=<<<; TOTAL=<<<|
    DATASRC WHAT=PCAASSESSSTAGE1,PCAASSESSSTAGE2; WHERE=PCAASSESSALLOC1; USING=INPUTCONSOL; TOTAL=<<<|
    ENTITY WHAT=[COMPANYCODE]='7470' AND [PCAASSESSDRIVERBP]='PCAYTD510000' AND
      ([PCAASSESSMETHODBP] = 'ALLOCAUTO' OR  [PCAASSESSMETHODBP] = 'ALLOCMANUAL');WHERE=<<<;USING=7470.BASE;TOTAL=<<<|
    Anyone experience this same error message? I searched for SAP support notes and found nothing to do with tblStatus or similar.
    Thanks for your help,
    Tim

    Hi Sorin,
    Thanks, you've confirmed what I suspected.
    Yes, we always process & save apps & dims on any upgrade.
    We've reproduced the problem in all 3 of the environments with the customer's appset. I haven't yet reproduced in ApShell, but will do so & report it as a bug.
    And just out of curiousity -- was the other message you saw here in this EPM forum? Before I posted my question, I searched both here, and in the support notes, for "tblStatus" and a few other terms about work status lock errors, etc., and came up with 0 results.
    Thanks again,
    Tim

  • How to unlock objects from a Released Task?

    Hi Group,
    I have a TR in which, there was a task added for my developments.
    Thing is, in the same TR one person has created a program and smartform objects and released the task.
    Now, I have to move these 2 objects into another TR.... I tried with various options like, tried to release the lock of the objects going thru the released task, Changing the package to Temp, Deleting the object from the released task and etc., but nothing is happening and a message is coming up(while Unlocking the objects - Request/Task XXXXXXXX already released(not modifiable).
    In summary, I want to release the locks(on the objects - under a Task that got released) and move these Unlocked objects into a separate new TR.
    Kindly let me know your inputs.
    Regards,
    Vishnu.

    Hello
    Though it may not be the right way, i generally follow this approach for similar case. I would change the status of the task (TRSTATUS) in debugging mode in table E070 from 'N' to 'D' and make the changes. It has so worked so far for me without any issues.
    Now the request will be modifiable and you can delete the objects from this request and move to a new one.
    But make sure you also delete the objects which will be transferred to the request from the task after you release the task in SE09/10.
    Regards
    Ranganath

  • How to unlock objects in EP

    Hi,
    I am new to EP any body know How to unlock objects in EP. thanks in Advance.
    Thanks,
    Vikas

    Go to system admin, Monitoring ,Portal , Object locking.
    You should be able to see all your locked objects.
    Select and unlock.

  • Unlock objects from transport requests

    Hi Gurus
        I was doing the SAP_Basis support pack upgrade, in netweaver 7.1 and many of the objects seems to be locked in transport requests. as my understanding, i have two options only,
    1. replease transport - but it can create issues to us, as that will automatically imported to the next system in teh landscape, so unwanted requests will move to QAs system
    2. unlock objects from transport request.
           So i did the second option, but it had a message that it can create inconsistencies in the system, do u know what all the meassures we need to take, if we unlock objects from the transport requests. Is it required to delete the transport requests,
    by mistake , if someone releases the that transport, whether it will release the old object or the new object.
    Please suggest what would be the best recomended approch by SAP
    Bijoy Babu

    Hi Bijoy,
    Its better to release the TR and then delete the same from the queue before it is imported into the following system. This will avoid any inconsistancy when the TR released after the SP application.
    Regards,
    Varadhu

  • Blank Object name field

    I have a question about blank field in the Enterprise Manager Console. The situation goes like this I go to the Instance -> Locks and I see the list of rows with fields User ame,SID,Lock Type, Mode Held, Mode Requested, Object Name ....
    My question is what is happening when i have a blank column Object Name for some rows, but all other fields have some value.
    Thanks.

    It is normal user with username dragana in my last test.I do not understand that line. What do you mean by "dragana in my last test" ?

  • Ld.so.1: process name :fatal: shared object name :mmap failed.

    Hi All
    ld.so.1: <process name>:fatal:<shared object name>:mmap failed. Resource temporarily unavailable.
    I get the above message when running my applications in zones. What does this mean. Your help will be greatly appreciated.
    Regards

    That message looks pretty much like the runtime linker tried to call mmap(2), got EAGAIN, and just gave up with a perror(). According to the mmap man page that means either "the pages could not be locked in memory" or "out of swap space". I don't think the linker would be locking pages in memory, so are you sure you have enough swap space? (I can imagine that booting a zone would eat up a good chunk.)

  • Query timeout expired and Invalid object name

    I have a program that processes data (dequeues) and polls about every 2.5 seconds - normally there are several records to process per second - it does this constantly 24/7.  The program runs fine at about 100 sites. At 2 sites the following error occurs
    about once per day. Typically the table has less than 10 records that get processed ie read then deleted. DataObjects are used ie the data is read, connection closed, processed, deleted using T-SQL from ADO - ie transactions are as short as possible.  
    Error#-2147217871 Query timeout expired. SQL:SELECT RealID, RxerID, PhoneID, Min(ServerDtTm), min(ID) FROM dbo.tblPreReceiver GROUP BY RealID, RxerID, PhoneID ORDER BY Min(ServerDtTm), min(ID)
    Inner exception Error No. -2147217865. Error Desc:Invalid object name 'dbo.tblPreReceiver'.. Native Error:208 Source:Microsoft OLE DB Provider for SQL Server SQL State:42S02.
    SQL Server 2008R2 (Express at one site and Standard another).
    The program then runs again 2.5 seconds later without error.
    Can anyone explain why? 
    I suspect it is a blocking error but the error message does not suggest this at all.  There is another application which writes to this queue, this does not report the error. 

    Yes, blocking can be the cause. The default command timeout is 30 sec and if the table is locked by an other process, the command waits until the table is accessable ... or the timeout raises. You could increase the timeout value or you could perform "dirty
    read" = ignoring lock, but I don't want to suggest to do it.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Duplicate Object Name Error When Publishing Crystal Reports from BW to BOE

    Hi,
    We recently upgraded our systems (all client and server) to SP2.7 in order to solve a problem with saving Crystal Reports to BW.  Now we are experiencing a new error when trying to publish a Crystal Report from BW to BOE (either all in one step from Crystal Reports application or directly from within BW).
    Upon trying to publish a Crystal Report from BW to BOE, we get the following error:
    "An error occurred while saving and / or publishing.  The return code 1 was returned from the server.  Logon to Crystal Enterprise failed.  Unable to commit the changes to Enterprise.  Reason: Failed to commit objects to server : Duplicate object name in the same folder."
    We have repeated this issue numerous time with different reports, users and logon credentials and have verified that there are NOT any duplicate object names.
    Additionally, in some cases, the report ultimately publishes to BOE, but with the above error interruption along the way.
    Any ideas?
    Thanks,
    Josh
    Edited by: Josh Crawford on May 10, 2010 9:46 AM

    Ingo,
    Apologies for the delayed response.  We've spent a few days poking around with this issue, and had even opened a customer message for it (13641).
    In the end, it seems that the problem was somehow associated with the "Prepare this report for translation." flag in the "Save to BW Options" dialog box of Crystal Reports.  If we try to Save & Publish with the Translation flag selected, we get the duplicate entry error.  If we Save & Publish without the Translation flag selected, everything is fine.
    There are still some details we need to look into, but for the time being it looks like we don't have an issue anymore(assuming we ever did) as we're not concerned with Translation capabilities.
    If we come across the problem again, I'll post again.
    Thanks,
    Josh

  • Create directory / object name must NOT be case sensitive

    SQL Dev. 2.1 - the wizard, chosen from the left side navigator, submits a wrong create statement in which the object name becomes case-sensitive. This should not be so! Even if you write the new object name in small letters , the object name must end up in the data dictionary with capitals. kind regards Inger ([email protected])

    Which wizard? If I use a create table wizard, for example, and enter the table in lower case, this is indeed stored in the DB as upper case, as you require.
    Please provide more detail for your problem.
    Sue

Maybe you are looking for

  • Why oracle spatial query execute so slow???

    hi all, I have two oracle spatial table CHI_2007r2 and CHI_2008r2, each table has it's own spatial index,and each table has 2000 row record, Now execute this query,I can get the result soon, select /*+ ORDERED */ a.link_id from chi_2007r2 a,chi_2008r

  • JCA Resource Adapter Deployment in OAS 10.1.2

    Hi, I have installed the Oracle Application Server 10g Release 2 (10.1.2) (j2ee & web cache) and I want to know how I can deploy a JCA Resource Adapter. Until now I have work with Oracle Application Server 10g Release 3 (10.1.3.1.0) and this version

  • Conditional Build Tags cause RH9 AIRHelp crash

    I have seen multiple posts about system crashes when using RoboHelp HTML and conditional build tags.  Is anyone having the same problem using build tags with RH9 and AIR Help output?  I have tried different combinations of build tags, a single build

  • Adobe Reader error in firefox response

    Hello I am submitting my PDF data to oracle database through java servlet. On submitting, i am writing confirmation in response object. response.setContentType("text/html" utf-8) Using IE, I do not have any problems printing response object after suc

  • Italic text in textarea?

    please tell me how can make textarea text in italic by clicking a appropriate button. is that possible by using javascript??