Lock the delete function (Trash) for contract documents

Dear Experts,
I have Query in SAP CLM :
I am in need to lock the delete function (Trash) for contract documents after they have been executed. After a user sets the contract document phase at "Executed," they should not be able to click the trash icon and delete that contract document record.
Thanks in advance.
Best Regards,
Iqbal

Hi Mudit,
we  have already  script  for Contract Document and Post Phase Change.
I am not java expert, where to put the code for delete or inactive the trash icon in this programe, Pls Help
// Author: ABCD
// Class: Contract Document
// Context: Document Lifecycle Event
// Target: Post Phase Change
// Imports
import com.frictionless.api.doc.IapiDocumentLockManager;
import com.frictionless.api.common.types.ObjectReferenceIfc;
import com.frictionless.api.common.types.TypeFactory;
import com.frictionless.api.contracts.ContractIBeanIfc;
import com.frictionless.common.db.PersistentBo;
import com.frictionless.api.doc.collaboration.*;
import com.frictionless.api.common.log.Logger;
import java.math.BigDecimal;
import java.util.*;
import com.frictionless.api.doccommon.masterdata.*;
import com.frictionless.api.common.exception.*;
import com.frictionless.api.ibean.IBeanIfc;
import com.frictionless.api.ibean.IBeanHomeIfc;
import com.frictionless.api.contracts;
import com.frictionless.api.usermgmt.masterdata.*;
import com.frictionless.api.common.exception.*;
import com.frictionless.api.common.types.*;
import com.frictionless.api.ibean.*;
ApplicationException ae = new ApplicationException(session);
// Logger
logMsg = Logger.createLogMessage(session);
// Agreement Bean
agreeBean = doc.getParentIBean();
if (hasValue(current_phase))
// Lock the legal approval and workflow fields after draft phase
if (current_phase.equals("Draft"))
IapiDocumentLockManager.unlockField(session, doc, "CLAUSE_CHANGE");
IapiDocumentLockManager.unlockField(session, doc, "LEGAL_APPROVER");
if (!(current_phase.equals("Draft")))
IapiDocumentLockManager.lockField(session, doc, "CLAUSE_CHANGE");
IapiDocumentLockManager.lockField(session, doc, "LEGAL_APPROVER");
// If contract document phase is not Internal Approval
if ((current_phase.equals("Executed")))
agreeBean.getIBeanHomeIfc().upgradeToEdit(agreeBean);
collaboratorList = agreeBean.getCollaborators();
for (collabIter = collaboratorList.size(); collabIter > 0; collabIter--)
// Get the collaborator
collab = collaboratorList.get(collabIter-1);
name = collab.getDisplayName();
if (!collab.getCollaboratorRole().getDisplayName().equals("Owner") @and !collab.getRepresenting().getDisplayName().equals("Legal"))
collaboratorList.delete(collab);
agreeBean.getIBeanHomeIfc().save(agreeBean);
if ((current_phase.equals("Internal Approval")) @or current_phase.equals("Legal Approval"))
agreeBean.getIBeanHomeIfc().save(agreeBean);
agreeBean.getIBeanHomeIfc().downgradeToView(agreeBean);

Similar Messages

  • Is there a way to password protect the delete function for pics/videos??

    My 2yr old toddler is randomly deleting my pics and videos on my iphone. Yes he knows how to navigate to the pics and videos on his own. I think its that shiny red delete button that catches his eye when he's bopping around form screen to screen.  I just want to disable the delete function function so that he doesnt do that anymore. I know there is the backup but that relies on me knowing when and what he deletes as I dont back up all the time.I heard Android has this feature but wasnt sure if the iPhone did. Any help would be appreciated.

    The real way to fix this problem is to obvioulsy not allow a 2 yr old to play with your $600 phone.
    Get that kid an iPod touch to play with ! 

  • Late Archiving for Contract Documents via OAWD.

    Hi experts,
    I am now configuring Late Archiving for Contract Documents but it seems that the document attachment cannot be viewed via J6NP/J6NY. My question is concerning the Business Object. When I use standard Business Object "BUS2095", documents are stored succesfully and documents can be viewed in J6NP/J6NY. But I cannot use BUS2095 because it only has Sales Document No as input. My users require fields - Sales Document No, Contract Start Date,Sales Organisation and Distribution Channel. Therefore I created a customized Business Object with those fields.These fields were taken from a new Customised Joint table between VBAK,VEDA and VBAP.
    At OAWD, I am able to archive for the Document Type I created. It says that Document stored succesfully. But the problem is when I want to view the archive document at J6NP/J6NY, there is no attachments. I tested the J6NP configuration with BUS2095 and attachment can be viewed. But with my Customised Business Object, there are no attachments.
    What must I look into and what do I need to check? I really need help here. Please..

    Hello,
    Can you check the configuration of OAC3?
    Hope you have deleted the configuration of BUS2095 assignment to document type.
    Instead, creation of new archivelink configuration for custom business object and assign to document type you have used earlier.
    -Thank,
    Ajay

  • CLM - Maximum File Size for Contract Documents

    We did a search but did not find an answer for this.  For the CLM system does anybody know SAP's recommendation on the maximum file size that the application can reliably handle for contract documents?  We recently increased the maximum file size from 10MB to 50MB to accommodate a larger than allowed file size.  Now the business has requested the capacity to add files (pdf files) up to 115MB.  Would increasing our file limit to approximately 150MB be within the recommended parameters?

    There is no specific recommendation for maximum file sizes as this depends on how your time-out parameters are set, your server resources and network (also tunneling policies).  The fact is the higher the filesize the more risk you run in unreliable uploads.  Compressing files before uploading is a good practise for larger files.
    These are the same issues which you would run into if you for example upload to a sharepoint site or even a copy on a shared drive, it all depends on the same parameters. 
    Tunneling policies could also affect your performance as it will limit the upload speeds according the priority set on certain network activities and if it limits your bandwidth you run in the risk of time-out so as you see there is no straight answer to your question.  I know customers who can without no problem upload 150Mb files and others who already have issues with 50Mb.
    Unfortunate, as I do not know your architecture and infrastructure I can only advice to stresstest the conditions of 150 Mb uploades with several user ids and see if you get time-outs or if it degrades the network performance. One of the questions you should ask your business is how frequent are the occurences of 150Mb+ uploads and if it is the appropiate way.  It could be that these are very rare and in that case you could ask them to do this outside the busy hours of the network which will provides you less risk in problems.

  • HT1171 I have the apple wireless key board.  There is only one delete key and it deletes all data to the  left side of the cursor.  Where is the delete function for deleting letters that are on the RIGHT side of the cursor?

    I have a new wireless apple keyboard. I can only delete items that are to the left of the cursor using the delete key.  What key do I use to delete items that are to the right side of the cursor?  I have only one delete key.
    My old apple wired keyboard has 2 delete keys that enabled me to easly delete data on either side of the cursor.
    Thanks

    Fn + Delete

  • How to get the Billing plan number for Contract Item?

    HI Friends
    I have been stuck up with the billing plan number to fetch perticular item in sales contract.
    When I go to the table FPLA, I can all the billing plan numbers for a contract or sales order and I am not able to locate for a perticular line item.
    Is there any way to fetch the exact billing plan number for a line item of a contract?
    Please help me
    Thanks
    Praveen

    U need to use the table vbfa or fololow thw link
    [http://www.erpgenie.com/sap-functional/sd/read-sales-document-flow-using-a-function-module]

  • The Delete Speed Test for Pages 2

    Hello Pages fans,
    “Speed” is a subjective term, so I wonder what people will find if they do this test:
    Paste a phrase such as “The quick brown fox jumped over the lazy dog’s back. ” ten times to make a dummy paragraph. Put the cursor at the end of the paragraph and press and hold the delete key and count the seconds it takes to delete back through the the entire paragraph, letter by letter. (This will depend on the key repeat rate you set in System Preferences.)
    If I delete a particular paragraph this way using Pages 2, when viewing the document in narrow format (i.e. viewing “fit page”) it takes about 22 seconds. If I view “fit width” and stretch the width across my 23-inch cinema display the same task takes about 101 seconds.
    Using Pages 1 it takes about 22 seconds (“fit page”) or about 27 seconds (“fit width”). Not as bad.
    I have tried every single fix proposed in this discussion forum to speed up Pages - to no avail. I am using a Mac Mini 1.42 GHz with 1GB RAM, a 23-inch display, 10.4.5 and the very latest updates. I have no other problems whatsoever in any other applications.
    Incidentally, In Word 2004 the same exact test takes about 17 seconds no matter what (whether viewed at 10%, 500% or anything in between).
    Trust me- I don’t actually sit around deleting paragraphs like this all day, but I do notice a very annoying typing lag. I’ve basically given up on Pages as a serious writing tool because of this typing lag / speed issue and gone back to Word. Pages 1 works fine and served my purposes for a year, but what future does the Pages application have if version 2 performs so poorly?
    Do those who report having blazing fast Pages 2 performance experience this problem with this test?
    Yes, this is a dreadfully boring test! But at least it’s not subjective and it’s not as iffy as watching the system monitor percentages jumping around.
    Thanks in advance for any responses.
    various macs...   Mac OS X (10.4.4)  

    True, MMINSO, I can just go use some other word processor. (Thanks for the tip.) I'm sorry to laugh at your suggestion but you entirely missed the point of my keyboard input test when you told me to just delete the whole paragraph at once.
    Ee gads... we could start a flame war over this! Can anyone think of a better, more reliable speed test to measure how Pages handles keyboard input?
    When I type text while viewing a document at full width across my screen, the typing is much slower than when I view the document tiny size. The typing lags. By "lags" I mean that the keyboard input is behind what I am typing. I devised a mind-numbingly simple little keyboard input test to replicate this problem perfectly. Again: This test directly replicates the type of keyboard input slowdown problem I encounter while doing normal typing. So it's certainly relevant, and it's also measurable and replicable.
    Naturally, it's not the actual number of seconds that counts, it's whether any given keyboard input task slows down when we do it viewing at different widths. The keyboard input rate changes, you see.
    I had hoped that someone would verify whether they experience the same lag in typing under the same conditions. In other postings, others have simply described the problem as "infuriating" and dropped Pages entirely. I don't think that's very useful. I was trying to be a bit more scientific about it in the hopes that it might actually be helpful.
    Maybe there's a better way to accurately demonstrate keyboard input lags in Pages?
    Maybe my machine is the only one experiencing any slowness.

  • Function module for reversing documents

    Is there a function module for posting reversal documents like F08 transaction.....

    Hi,
    We have BAPI's to reverse the documents.
    Check with 'BAPIREVERSE in SE37.
    Right now iam not on the systemto go indepth.
    Thanks,
    Deepak.

  • Some question about the renegotiation function in SRM Contract (GOA)

    Hi All Expert,
    We are on SRM 5/4.6,  there is a question about the renegotiation function in SRM GOA.
    Can we renegotiate the price for some parts in the GOA items with this function ( e.g. Only renegotiate one item in the contract) ?
    Will the item price updated automatically after the renegotiation?
    Many thanks in advance!!!
        Wendrin

    Hi Sanjeev,
    Many thanks for your help.
    One more question, if I add a new item when we renegotiation, will it be transfered to contract and create a new item after that?
    Thanks and best regards
    Wendrin

  • Syncing the delete function

    My email account has changed from a POP account to an IMAP account. Now, whenever I delete a message on my iPhone, it is automatically deleted from my Mail program on my desktop. I want to be able to delete messages on my iPhone and have them remain on my desktop. How do I accomplish this?

    You can't which is the nature of an IMAP account.
    If you are accessing the account as an IMAP account with the Mail application on your Mac as well as with the iPhone's email client and you are storing the account's Trash mailbox on the server with both, when selecting a message for deletion with the iPhone's email client, the message will be moved to the account's Trash mailbox stored on the server which will also be available in the account's Trash mailbox with the Mail application on your Mac automatically.
    If you purge the account's Trash mailbox or delete a particular message from the account's Trash mailbox with the Mail application on your Mac or with the iPhone's email client, it will be removed from the server and will no longer be available with either.
    This is the nature of an IMAP account and a benefit when accessing the account with an email client on multiple computers or devices - all server stored mailboxes are kept synchronized with the server automatically so when viewing the account's Inbox mailbox with one will be identical when viewing the account's Inbox mailbox on the other. The same for sent messages. Send a message with the iPhone's email client and it will be stored on the server so the message will be available in the account's Sent mailbox automatically with the Mail application on your Mac and vice-versa.
    But remove a message from a server stored mailbox and it will no longer be available with either one.

  • Is there a way to create a password protected folder for pictures or lock the photos app? For Ipad Air and Iphone 5s.

    Is there a way to create a password protected folder for pictures or lock the photos app? I want to do this for Ipad air and Iphone 5s. I have other family members that use my Ipad and Iphone and do not want some pictures to be able to be viewed.
    Thanks

    Use 3rd party apps like Photo Manager Pro.

  • How to create the INBOUND Function Module for INBOUND IDOCs

    Hi Friends,
    Can any Suggest me How to proceed to Create an INBOUND Function Module for Processing the INBOUND IDOCS
    which are recieved from XI Server ?
    I am working in SAP-ISU
    Here i will recieve the INBOUND IDOCs for the Meter Reading Orders.
    We have a Standard INBOUND FUNCTION MODULE
    IDOC_INPUT_ISU_MR_UPLOAD
    which Uploads the Meter Reading Results.
    I copied the Same function Module into ZIDOC_INPUT_
    and working on it.
    Can any one suggest me, whether i am going in correct way or not.
    In IDOC_INPUT_ISU_MR_UPLOAD Inbound fun module,
    BAPI_MTRREADDOC_UPLOAD is used to Update or Insert the Meter Reading Results,
    My requirment is to Insert and Update the Meter Reading Orders which are Inbounded from XI.
    Can I Use the Same BAPI
    BAPI_MTRREADDOC_UPLOAD
    to Update the below fields,
    EABL-SERNR
    EABL-ZWNUMMER
    EABLG-ABLESGR
    EABL-V_ZWSTAND
    EABL-N_ZWSTAND
    EABL-ABLHINW
    EABL-ZSKIPC
    EABL-ADAT
    EABL-ATIMTATS
    EABL-ADATTATS
    EABL-ATIM
    EABL-ZMESSAGE
    EABL-ABLESER(Meter reader number)
    Kindly Suggest me,
    Thanks in Advance,
    Ganesh

    Hello Ganesh
    I think you are going completely astray with you z-function module for IDoc processing.
    If you look at TABLES parameter METERREADINGRESULTS (type BAPIEABLU ) of BAPI_MTRREADDOC_UPLOAD you will find many of the requested fields already:
    EABL-SERNR => BAPIEABLU-SERIALNO
    EABL-ZWNUMMER =>REGISTER
    EABLG-ABLESGR
    EABL-V_ZWSTAND
    EABL-N_ZWSTAND
    EABL-ABLHINW
    EABL-ZSKIPC
    EABL-ADAT
    EABL-ATIMTATS => ACTUALMRTIME
    EABL-ADATTATS => ACTUALMRDATE
    EABL-ATIM
    EABL-ZMESSAGE
    EABL-ABLESER(Meter reader number)
    Field EABL-ZMESSAGE appears to be custom field (at least I cannot find it on ECC 6.0). If this field was added using include CI_EABL then you probably can get these values into the BAPI using the EXTENSIONIN parameter.
    Check routine CHECK_UPLOADRECORDS in the BAPI which allows two extension structures:
    - BAPI_TE_EABL
    - BAPI_TE_EOSB
    Not surprisingly BAPI_TE_EABL contains the include CI_EABL.
    Regards
      Uwe

  • Function module for Change document for Business partner

    Hi Experts,
    Could any one send me the sample code of function module for CDHDR and CDPOS tables for extracting the change date along with role.
    Eg :
    BPRole Changd on crtd by crtd on Business partner
    ZCASH 30.11.2011 NHALLAL 24.11.2011 0001000237
    CRM000 03.12.2011 NHALLAL 24.11.2011 0001000237
    I wanted to catch up the changed date and changed role from CDHDR (base table) and CDPOS(cluster table - item level).
    Might be involved with creation of extract structure.
    Any sample codes are appreciated. Thanks.
    Regards,
    Janardhan

    resolved

  • Lock the entire computer, except for one program?

    I am having my 20th high school reunion this weekend and was wondering if there is a way to lock my entire MacBook except for a guestbook I would probably make in Filemaker Pro or something. Thanks in advance!

    create a normal user (no admin) , and censured all the program except filemaker. you can find this option in account setting.
    look at create user account:
    http://www.apple.com/support/mac101/work/1/

  • Is the Delete function a full delete?

    Hello ByD community,
    I developed a custom Delete action in order to delete my custom BO Backgroundmail.
    The delete seems to have work well as no more instance are present in my OWL.
    However, when I launch my Query on SalesOrder to populate my custom BO again, it returns two error messages.
    One saying this SalesOrderID is already existing and so it cannot create it. I do not understand, because if the delete was completed, it shouldn't be there anymore.
    And the second error message I do not get it at all what it means.
    If somebody could help me on this, it would be greatly appreciated.
    Thank you all for your attention.
    Best regards.
    Jacques-Antoine

    I implemented the RemoveRow operation and it works fine on a custom OWL. As I am quite new in the UI designer, I did not even know where it was.
    Thank you very much Horst!
    But now I keep having the second error being raised so I cannot save my instances. And so my OWL for this WC remains empty.
    This is a really disturbing error. And I do not understand why I get it.
    Does it means the Sales Order with ID 41 is missing from the Sales Order BO?
    Which is wrong because I can query him from the Sales Order BO and I can see it in the WC.
    If someone encountered this one before or knows what it means, it would be perfect!
    Thank you very much for you attention.
    Best regards.
    Jacques-Antoine

Maybe you are looking for

  • Windows Server 2008 backups failing

    I have a Windows Server 2008, fully patched that backups recently started to fail and now, we are unable to open the Windows Server Backup. Also unable to open Disk Management or any other applications requiring Virtual Disk. Attempts to start VDS fr

  • LOGICAL TREES in JAVA

    hi everyone. i'm doing a project that requires me to use a tree structure. there is of course jtree but i dont need the user interface, i just need the structure. may i ask a few minutes from your time to enlighten me regarding this problem. please t

  • Price variance workflow for blocked invoices in MM purchasing

    Hi Gurus, We are implementing price variance workflow for blocked invoices. We built a custom workflow to take care of the routing requirement of the customer. We also did necessary customization defining the tolerance limits for price variance. Befo

  • Oracle 11R2 remote login as sysdba fails

    Hello i cant connect remotely as sysdba from client to server - oracle version SQL*Plus: Release 11.2.0.2.0 the configuration is the following orapwd file=orapwdTESTDB entries=30 password=mypassword force=y on the init.ora i have the following remote

  • Migration of SAP Script to SmartFrom

    Hi Experts, I migrated an SAP Script to a Smartform. The SAP Script have a lot of PERFORM <...> IN PROGRAM <....> and these are written in a report porgram. I want to know, how to convert those calls and subroutines so that I can use them in Smartfor