Change phase of all system contracts to "executed"

Hi
We are working on SAP e sourcing 5.1/ CLM 2.0. Here we are doing a clean up exercise wherein we want to move all the existing contracts to "executed" state. PS we have defined 6 phases of the contracts i.e
Internal Draft Preparation
Internal Review
Vendor Draft
Final Contract Draft Review
Final Contract Approval
Executed
Also we do not have any workflow configured in any of the phases. Is it possible to move all the contracts existing in the system to executed phase from their current respective phases.
Mudit Saini

Hi Rob
I couldn't find   IAPIs to get the "valid next phase(s)". Can you plz let me know what is the method available for this.
Lets say  for  "valid next phase(s)", we have nextValidPhase() available would the following script be able to achieve my objective:
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat formatter= new SimpleDateFormat("dd-MM-yyyy");
String dateNow = formatter.format(currentDate.getTime());
contractHome = IBeanHomeLocator.lookup(session,com.frictionless.api.contracts.ContractIBeanHomeIfc.sHOME_NAME);
contractList = contractHome.findWhere("DISPLAY_NAME LIKE 'A%' ");
for(Iterator iterator1 = contractList.iterator(); iterator1.hasNext();)
ContractIBeanIfc masterAgreement = (ContractIBeanIfc)iterator1.next();
contractHome.upgradeToEdit(masterAgreement);
contractDocumentList = masterAgreement.getContractDocuments();
for(Iterator iterator2 = contractDocumentList.iterator(); iterator2.hasNext();)
ContractDocumentIBeanIfc contractDocument = (ContractDocumentIBeanIfc)iterator2.next();
ContractDocumentHome = contractDocument.getIBeanHomeIfc();
ContractDocumentHome.upgradeToEdit(contractDocument);
while (! (contractDocument.getCurrentPhase().getDisplayName(session).equals("executed"))
ContractDocumentHome.changePhase(contractDocument, ContractDocumentHome.nextValidPhase());
Plz suggest
Regards
Mudit Saini

Similar Messages

  • All Information regarding Change and Transport management System in SAP

    Hello Experts,
    Iam into Basis . I need all information ,fundamentals and concepts over Change and Transport management system in SAP .Its fundamentals,the way it works ,how requests r transporteded etc.  I want more of this information in regards to practical scenario. Plz dont provide help link as iam aware of that. I need good explanatory content ,in your own words shall be appreciated more. If any body has any self prepared good explanatory and procedural matter , tat will be of help.requested to revert at earliest as this is a bit urgent. My Email Id is [email protected]
    Useful answers shall be rewarded points.
    Thanks and Regards,
    Somya

    check this link
    http://help.sap.com/saphelp_47x200/helpdata/en/d7/8eb9361a75ea43e10000009b38f839/frameset.htm

  • Error phase Install Common system files SAP NW 7.1

    Hello  
    I have a problem  in my  installation of SAP NW 7.1 for PI
    I was installating the  SAP NW but I stopped it  and  deleled this system (SID=TPI), then  I  started again  the installation (SID=PI1) but in the phase Install Common System Files i got this message:
    sapint_dev.log
               CJSlibModule::writeInfo_impl()
    File system node C:/WINDOWS/TEMP exists already. Nothing to do.
    INFO       2010-07-09 17:30:13.765
               CJSlibModule::writeInfo_impl()
    File system node D:/usr/sap exists already. Nothing to do.
    INFO       2010-07-09 17:30:13.765
               CJSlibModule::writeInfo_impl()
    Creating SAP system shares for PI1...
    WARNING[E] 2010-07-09 17:30:13.921 [ianxbservi.hpp:244]
               CServiceHandle::Open(ClusSvc)
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (267), with parameter (ClusSvc).
    WARNING[E] 2010-07-09 17:30:14.109
               CJSlibModule::writeError_impl()
    CJS-30129  Creating node $(DIR_CCMS) with type DIRECTORY failed. Original exception text was: syslib.filesystem.nodeCreationFailed:
    Unable to create node
    pgspi\saploc\ with type DIRECTORY: can't create parent node...
    WARNING[E] 2010-07-09 17:30:14.171
               CJSlibModule::writeError_impl()
    CJS-30129  Creating node $(DIR_CCMS) with type DIRECTORY failed. Original exception text was: syslib.filesystem.nodeCreationFailed:
    Unable to create node
    pgspi\saploc\ with type DIRECTORY: can't create parent node...
    ERROR      2010-07-09 17:30:14.234 [sixxcstepexecute.cpp:984]
    FCO-00011  The step createFirstSystemDirectories with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_System|ind|ind|ind|ind|5|0|createFirstSystemDirectories was executed with status ERROR .
    WARNING    2010-07-09 17:30:14.437 [iaxxejshlp.cpp:150]
    Could not get property IDs of the JavaScript object.
    ERROR      2010-07-09 17:30:14.437 [iaxxejsctl.cpp:492]
    FJS-00010  Could not get value for property .
    INFO       2010-07-09 17:30:45.921 [sixxcstepexecute.cpp:1072]
    An error occured and the user decided to stop.\n Current step "|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_System|ind|ind|ind|ind|5|0|createFirstSystemDirectories".
    INFO       2010-07-09 17:30:48.640 [synxccuren.cpp:1016]
               CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(const CSyPath & C:/Program Files/sapinst_instdir/NW71/INSTALL/SYSTEM/MSS/STD/AS)
               lib=syslib module=syslib
    Working directory changed to C:/Program Files/sapinst_instdir/NW71/INSTALL/SYSTEM/MSS/STD/AS.
       LOG sapint.log
    INFO 2010-07-09 17:30:13.296
    Execute step createFirstSystemDirectories of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_System|ind|ind|ind|ind|5|0
    INFO 2010-07-09 17:30:13.750
    File system node C:/WINDOWS/TEMP exists already. Nothing to do.
    INFO 2010-07-09 17:30:13.765
    File system node D:/usr/sap exists already. Nothing to do.
    INFO 2010-07-09 17:30:13.765
    Creating SAP system shares for PI1...
    WARNING[E] 2010-07-09 17:30:13.921
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (267), with parameter (ClusSvc).
    WARNING[E] 2010-07-09 17:30:14.109
    CJS-30129  Creating node $(DIR_CCMS) with type DIRECTORY failed. Original exception text was: syslib.filesystem.nodeCreationFailed:
    Unable to create node
    pgspi\saploc\ with type DIRECTORY: can't create parent node...
    WARNING[E] 2010-07-09 17:30:14.171
    CJS-30129  Creating node $(DIR_CCMS) with type DIRECTORY failed. Original exception text was: syslib.filesystem.nodeCreationFailed:
    Unable to create node
    pgspi\saploc\ with type DIRECTORY: can't create parent node...
    ERROR 2010-07-09 17:30:14.234
    FCO-00011  The step createFirstSystemDirectories with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_System|ind|ind|ind|ind|5|0|createFirstSystemDirectories was executed with status ERROR .
    WARNING 2010-07-09 17:30:14.437
    Could not get property IDs of the JavaScript object.
    ERROR 2010-07-09 17:30:14.437
    FJS-00010  Could not get value for property
    I had found information about saploc  however  still I got the same 
    The installation is on Windows 2003 + Sql 2005
    Any suggestion    for this problem
    Thanks
    Danny

    Hello
    I deleted the system  with the wizard on sapinst
    NetWeaver Process Integration 7.1 Software Life-Cycle Options Uninstall Uninstall ‒ SAP systems or
    single instances .
    Danny
    Edited by: Danny Sanchez on Jul 12, 2010 4:17 PM

  • Hierarchy R3PRODHIER may only be changed in the original system

    Hi Experts
    I have created a new Product Hierarchy in R/3 when i try to replicated them into CRM by using initial replication of DNL_CUST_PROD1.system throwing an error saying :  Hierarchy R3PRODHIER may only be changed in the original system R3LNT200. ....in the SMQ2 before doing initial replication of  DNL_CUST_PROD1 status was green.
    And again i try to replicated the DNL_CUST_PROD1 by  reguest load which has run successfully and 3 blocks are generated then  i run the initial replication of Material but status of initial replication status in waiting. which is not run i mean to say.
    then i again  created a Request load for Object Material and which is run success fully
    but my problem is i did not see the  new hierarchy and products too in Table COMM_PRODUCT
    .and when i see status of the in DNL_CUST_PROD1in R3am1. which is in ABORT .
    Hence i request you could you please help me inorder to make green status of the DNL_CUST_PROD1 in r3am1 so that i can able to nun material successfully
    i would appreciate you help
    thanking you
    Regards
    Swathi

    Hi Swathi,
      I'm assuming this development is copied from your production.
    For example: Go to COMM_PRODUCT table and check the log sys field. Now it will show the Production Logical System. So you need to convert this value.
      After the client copy, basis needs to execute BDLS transaction.  This transaction is used to convert the logical systems in all the Database Tables.
         Perform this conversion only for Client Dependent Tables.
         Execute below conversion in CRM Development Box
                       CRMOLDLOGICAL SYSTEM to CRMNEWLOGICALSYSTEM
                       ECCOLDLOGICALSYSTEM to ECCNEWLOGICALSYSTEM
          In ECC Development Box
                       CRMOLDLOGICAL SYSTEM to CRMNEWLOGICALSYSTEM
                       ECCOLDLOGICALSYSTEM to ECCNEWLOGICALSYSTEM
    Regards,
    Bhanu

  • Have changed Apple-id. System wants some kind of confirmation concerning credit card. Doesn't accept card number etc. What to do?

    Have changed Apple-id. System asks for some kind of confirmation concerning credit card. Doesn't accept actual card data. What to do?

    Thank you everyone for the replies. It defiantly helped point me in the right direction. With any luck, I will have my replacement phone sometime tomorrow.
    I was able to call the iPhone support line this morning. The Apple rep stayed on the line with me for about an hour until he was sure the new phone would ship out. For $199 plus $29 for expedited handling I was able to get the replacement ordered with overnight shipping. Since the replacement doesn’t involve ATT&T I have no reason to suspect any further delays. Kudos to the Apple rep that helped me straighten out this mess.
    It’s a shame that AT&T cares so little for their existing customers. Not only did they try to sell me the same phone for $499, they outright refused to help me. They also lied to me on numerous occasions and strung me along for close to three weeks for something that only took an hour to complete with the Apple rep.
    I filed a formal complaint against AT&T through the Better Business Burrow as well as requested a review of our cooperate contract with AT&T. Our company currently has over 3000 phones with AT&T and there contract comes up for bid the end of our fiscal year (this October). We will be giving it heavy consideration before we consider renewing their contract.
    I doubt that any of that will matter to a company that cares so little about their customers, but you never know.
    Thanks again for all your help. I would probably still be trying to get my replacement for the next few months if it wasn’t for your suggestions.
    -Niel

  • Mass change of pricing date in contract VA41

    Mass change of pricing date in contract VA41
    In VK11 - we have updated a new pricing date.
    In contract the same needs to be updated. Can this be done through VA45 -( List of contracts) Edit - Mass change - new price - which price type should i give to change the pricing date. Where should i mention the new pricing date?
    or is there any other way to get the latest pricing date from vk11 to contract va42.
    Thanks,
    Mahe

    Hi,
    As i understood from your question, You have changed the Validity periods in your VK11 records.
    Since your contract Line Item Pricing date is already set (Line Item Sales A tab), you will not be able to pick the relevant pricing by UPDATE PRICE option in condition tab. (Because price is picked based on the pricing date in the line item)
    Try this method;
    Use transaction MASS, to update all Pricing Dates in contract line items to a particular date within new validity period.
    Once you update your pricing date in the contract line item, system will automatically carry's the new pricing, resulting new pricing in the line item.
    Hope this is useful to you !
    Best regards,
    Anupa

  • "Attribute Change Run" process has to follow process "Execute InfoPack

    Hi All,
             i created process chain for M.D SD area. here i created start varient, then execute info package process created and when i am checking that it showing some warning message like ....
    A type "Attribute Change Run" process has to follow process "Execute InfoPackage" var.ZPAK_4B9B5FH2BTQJOBTBAWHVM5ZY2 in the chain.
    Here i can't understand what i have to do....
    Any inputs for this...........
    Thanx in Advance
    Subbu.

    hi,
    Check master data objects in both process types "Excute info package" after start varianet and in attribut echange run process type.
    Both should match or system will throw error message.
    The concept is like Attribute change run has to run when ever new data is loaded to master data attributes.
    Regards,
    Arun Thangaraj

  • Changing Info Rec Prices when Contract Exists....no warning?

    Hi all,
    Quest1:
    Does anyone know a way to initiate a warning (or hard stop) in ME12 (Change Info Record) when a user is changing a price when a Contract exist for that material and vendor in the info record?
    The Superuser's goal: Stop other users from changing the Info record price when a Contract already in the system exists with a agreed price. How to put a hard stop? I know for a fact, there's a msg that compare's Material Std Cost with the Purchase Price and gives warning, but that doesn't service this purpose as Superuser want to block the Info Rec being changed if a Cotract Exists.
    Quest 2:
    Also, when a Contract's Price is changed (in ME32K) it will NOT change the Info Rec (created earlier may be manually or as a result of RFQ price selection) Price, eventhog the Contract "Info Update" indicator is set.
    Why is thi? Do you guys know?

    hi Duke,
    Asnwer 1 . you can make the message an error message, by this your problem will be solved and no one enter the same again....
    Answer 2. In the std sap system, PO price doesn't get updated in the inforecord, but the PO price history gets updated....
    This may be because, if you make the one PO and change it....and after this if you wanna make the other po with the last ie. ORIGINAL price...then we you use the inforecord to see the original price...while on the other hand you can also see the PO price history from ME1P for the same...
    Hope it helps...
    Regards
    Priyanka.P

  • The environment has changed; the layout can no longer be executed

    Hi guys,
      I`m getting the below mentioned error message when I attempted to "Enter Plan Data" on my Layout
      " The environment has changed; the layout can no longer be executed "
      All I did was to create a Variable in Planning Area and then made adjustments to my Data Column in my Planning Function to include the Variable.
      Please advice soonest possible

    Hi Anurag,
      I have a question of Variable.
      I created a variable CURRMTH on Characteristic Fiscal Year/Period in my PLANNING AREA.
      This variable CURRMTH has the following properties
      Text Replacement : Medium text
      Replacement Type : Fixed Value
      Selection : Fiscal Year/Period is set to 001.2005
      Now, I created a Layout
      Fiscal Year Period in Data Column and Key Figure in Lead Column.
      In my Layout: Data Column tab , I put the following
      Heading : CURRMTH
      Key Figure : NEWLISTKF
      Variable
      Fiscal Year/Period: CURRMTH
      Do you forsee any inconsistencies here ?
      One more question, do I also have to set my Planning Level / Package to have characteristic Fiscal Year/Period to Variable ?
      Please help, mate!

  • How to change the type of a contract

    Hello Gurus
    Our customer has defined 3 contract types (C01, C02 and C03).
    He want to create new type from the original, by example C01 is cloned to C11 and C12. The problem is he want to change the contract type of all the contracts in database. By example, contract 46000001 is type of C01, he want to modify this contract to C12 type. How to do that? What is the better way to do?
    Thanks a lot
    Gregory

    I see some risks (e.g. with archiving, number range conflicts),
    but I see no reason for this change.
    Copiing the contract types and then moving all existing contracts from the old type to the new type .....is just adding a lot work for no change.
    You have the same situation for less money  if you keep the existing situation.
    Copy the contract type to new ones and use the new ones for new process.
    And change just the description of the old types.

  • Ho to change the old Logical System in the new Client?

    Hi All,
    after a Client copy, I've to change the old Logical System in all the relevant SAP tables in the new client.
    In the Co tables too, such as CSKS.
    Could anyone tell me hoq to do it?
    Thanks
    G.Rossi

    Hi,
    So the only solution would be to rename the SID of one portal.-> Yes,Rename the SID of on portal
    Can this be done ? -> Yes,It can be done
    How is it done ? -> Use Export/Import method.Export the database of one SID. Import the same with different SID.
    Thanks and Regards,

  • MacBook Pro 10.6.8  My @me account has been wiped of all mail, will not send or receive and iCal will not recognise user name or password even though i haven't changed it.  All this after a scheduled software update. Any ideas??

    MacBook Pro 10.6.8  My @me account has been wiped of all mail, will not send or receive and iCal will not recognise user name or password even though i haven't changed it.  All this after a scheduled software update. Any ideas??

    kwmlr439 wrote:
    CSOUND Read the title please:
    Re: Macbook Pro 10.6.8 RAM Upgarde to 8 GB
    The amount of RAM is not dependant on the operating system. It is all about the model of you Mac.
    10.6.8 is the version of OS X that is installed on your system. It has no real baring on the amount of RAM that CAN be installed.
    Personally I have never had good luck with Corsair RAM. I have always had good luck with Crucial and Kingston.
    Message was edited by: Shootist007
    Message was edited by: Shootist007

  • Is it possible to change settings in "Help System info"?

    Is it possible to change Photoshop settings by clicking on Help and then System info? Since there is the possibility to type and the OK-button, I just started wondering.

    All Help > System Info does is to report your system specifications so you can copy and paste them in the forums for troubleshooting purposes.
    You can choose what to highlight and copy, but it does not change anything in your system like editing a configuration file would.

  • None of the changes I make to system preference or the dock will hold after restart. I've cleared the RAM, run disk repair and reinstalled the OS. Now what?

    None of the changes I make to system preference or the dock will hold after restart. I've cleared the RAM, run disk repair and reinstalled the OS. Now what?

    MobileMe closed on July 31, 2012.
    It is true that the only way to sync your Mac with iCloud is to upgrad.  You need to be running OS X Lion 10.7.2 or higher in order to sync your Mac with iCloud.  At this point, you can upgrade directly to OS X Mountain Lion from the version of OS X you are now running (10.6.8).   You can purchase and download the Mountain Lion upgrade from the Mac App Store for $19.99.  After upgrading you will see iCloud in System Preferences.  This guide explains how to sync your Mac with iCloud after upgrading: http://www.apple.com/icloud/setup/mac.html.
    Once all your devices are signed into the same iCloud account and you have turned on your iCloud data syncing, you will be able to keep them all in sync using iCloud.  You will still have to sync with iTunes to manage your iTunes media such as music, movies, podcasts, etc.  You will have the option to either continue backing up automatically with your computer when you sync with iTunes, or to back up your iOS devices automatically to iCloud every 24 hours (as long as they are connected to wifi and your chargers).

  • Change colors to all components in a consistent way

    Is there a way to change color to all components of an application (or of a JFrame), such as all JButtons backgrounds, JFrame backgrounds etc.?
    I suppose i've to deal with UIManager defaults, but is there some facility, or some check-list to help achieve this task?.
    Thanks in advance
    Agostino

    Check out my ComponentMapper class. You could do it with this by running the mapper on the contentpane (and potentially the JMenuBar too if you like)
    You are welcome to use and modify this code but please don't change the package or take credit for it as your own work
    tjacobs.util.ComponentMapper
    ======================
    package tjacobs.util;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.TextComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.text.JTextComponent;
    public class ComponentMapper {
         public static interface MappedFunc {
              public void func(Component c);
         public static void map(Component c, MappedFunc func) {
              func.func(c);
              if (c instanceof Container) {
                   Container con = (Container)c;
                   int count = con.getComponentCount();
                   for (int i = 0; i < count; i++) {
                        map(con.getComponent(i), func);
         public static void main(String[] args) {
              JFileChooser fc = new JFileChooser();
              MappedFunc mf = new MappedFunc() {
                   public void func(Component c) {
                        if (c instanceof JTextComponent) {
                             System.out.println("found");
                             final JTextField tf = ((JTextField)c);
                             tf.setEditable(false);
                             tf.getDocument().addDocumentListener(new DocumentListener() {
                                  public void insertUpdate(DocumentEvent de) {
                                       Runnable r = new Runnable() {
                                            public void run() {
                                                 tf.setText("");
                                       SwingUtilities.invokeLater(r);
                                  public void removeUpdate(DocumentEvent de) {
                                  public void changedUpdate(DocumentEvent de) {
                             while (c != null) {
                                  System.out.println(c.getClass());
                                  c = c.getParent();
                             //disable the textfield
              map(fc, mf);
              fc.showSaveDialog(null);
    }

Maybe you are looking for