New master agreement via sourcing IAPI

Hi!
I'm new to sourcing, just doing my trainings. I'm running E-Sourcing 5.11, and need to create new master agreement via eso iapi (fciesoapi.jar and fciodpapi.jar). But most of that classes' methods marked as "Do not use", or "For internal use only". So is it possible to create master agreement from this API? Does anybody have examples, or maybe you can reccomend me some materials (all i have is generated javadocs).
Regards,
Siarhei

see if this helps:
A link to create master agreement in a user defined object
Regards,
Immanuel

Similar Messages

  • Expired Master Agreements in E-Sourcing

    Hi,
    Is there a way to change the status of a Master Agreement to 'Terminated'(for example) when a Contract has expired without having to check all Expired contracts manually?
    Regards,
    Reshma

    E-Sourcing out of the box provides something called OML's which are queries or objects that can be bundled together and saved a .oma files. OML (Object Migrartion List) or .oma files needs to be created in the source system first. This can be done using the Export feature in the Set Up section.
    First check in the Query Defination section if there are objects available for migration...for instance Query Definitions always have OML's. Then create a .oma file using Export feature. Save that file and import it into the target system. Make sure the source and target are running the same version and patch of the software.
    Hope this helps. Let me know if there are any other questions.
    Parankush

  • Copy line items from Master Agreement to SubAgreement

    Dear all,
    As a requirement, we need to create a dummy line item at master agreement and subagreement level to be able to publish them to ERP without need
    to complete line items (they are completed in ERP via a development).
    We have created master agreement templates with a dummy line item but at subagreement level, templates are not available.
    What we are trying to develop is a script on post_create at agreement level to copy line items from Master Agreement to SubAgreement. We are able to get Master Agreement line items and copy them to the SubAgreement, but the subagreement is not created. This is the code we are using:
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanIfc;
    import com.sap.eso.api.contracts.ContractIBeanHomeIfc;
    Mst_agreementBean = doc.getParentIBean();
    lineItemCollectionSub = doc.getLineItems();
    lineItemCollection = Mst_agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    colln = Mst_agreementBean.getCollectionMetadata("MA_LINEITEMS").get(Mst_agreementBean);
    colln2 = doc.getCollectionMetadata("MA_LINEITEMS").get(doc)
    newProject = Mst_agreementBean.getIBeanHomeIfc().createFromAnother(Mst_agreementBean);
    newMember = colln.get(1);
    //  Get Values Line Item
    assCat = newMember.getAcctAssignCategory();
    actLimP         = newMember.getActualLimitPercent();
    delAdCity       = newMember.getDeliveryAddressCity();
    delAdCount    = newMember.getDeliveryAddressCountryRef();
    delAdDist       = newMember.getDeliveryAddressDistrict();
    //... (all fields included in the script)
    // Create Line
    newMember2 = newMember;
    AgreementHome = IBeanHomeLocator.lookup(session, doc.getObjectReference());
    AgreementHome.upgradeToEdit(doc);
    // Set Values
    newMember2.setAcctAssignCategory(assCat);
    newMember2.setActualLimitPercent(actLimP);
    newMember2.setDeliveryAddressCity(delAdCity);
    newMember2.setDeliveryAddressCountryRef(delAdCount);
    newMember2.setDeliveryAddressDistrict(delAdDist);
    //... (all fields included in the script)
    try{
    colln2.add(newMember2);
    AgreementHome.save(doc);
    AgreementHome.downgradeToView(doc);
    collectionbean = colln2.get(0);
    logInfo("Value of  collectionbeanSub " + collectionbean );
    }catch (ApplicationException e){
    logInfo("Error " + e.getClass() + ". " + e.getMessage());
    When we try to create an Agreement under a Master Agreement (clicking Add on Agreement tab), following error message is shown related to the line in blue:
    Facility=local4;sessionid=4e73bb8e73304d6284816f93f4e04522a7c387b; tenantid=#tenant.ecb#;username=LUGUELL; exception=Sourced file: inline evaluation of: ``// **   import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// **    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    ;stacktrace=Sourced file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    Any ideas what is causing the error? What are we missing on our code to copy line items?
    Many thanks,
    Marc Romagosa
    Message was edited by: Marc Romagosa de Riba

    We managed to create a line item at VALIDATE script, but not at POST_CREATE. Either it is a bug or it is not possible at POST_CREATE script.

  • How to change the standard query "Create a Master Agreement" by a custom one

    Hello Sourcing CLM experts,
    I would need to replace the standard query displayed when the user tries to create a Master Agreement by a custom query to filter the MA types according to some criteria:
    According to this post: Re: Create security profile for a document template in SAP Sourcing, I've tried to achieve it by doing the following steps:
    Create a new query as a copy of exsiting query FCI-ContractTypes
    Modify query group FCI-ContractTypesBP to include my custom query instead of the standard one to only list the MAType "Standard Master Agreement"
    Following you can see the change done into the query group FCI-ContractTypesBP:
    However, standard query has not been replaced and same set of MA Types are listed.
    Therefore, I would like to ask you:
    Is it possible to do this kind of modifications? If so, which query group need to be modified?
    If it is not possible, is there any other way to achieve that requirement?
    Thanks in advance for your time and support!
    Best regards,
    Isaac

    Hello again experts,
    If this query cannot be modified, is there any option to disable button below? Or at lease, to disable the query group to avoid the listing of MA Types when it is pressed?
    The reason is because we are going to set up the system in the way that only it will be possible to create Master Agreements from Template. However, if user keep on using that button he will be able to create MA from document types.
    Any ideas?
    Thanks again and best regards,
    Isaac

  • Disabling the default search when searching for master Agreements

    Hello Experts
    I am relatively new to SAP e sourcing ,we are working on 5.1 system.
    We have a query , Contract management->Agreements->Search master agreements and Sub agreements.
    This query takes a lot of time for execution.
    When user selects this option , it runs this query and then displays a screen with all the filters and search results at the bottom.
    I want to ensure that this query is not run by default, so that when user selects this option , the page only displays the selection criteria , users can specify the filter values and hit on search.
    Can anyone please help me on how can we disable the default execution of query everytime "Search master agreements and Sub agreements " is selected from the dropdown.
    is there any option within the query itself or do we need any script for doing this.
    Regards
    Vikas

    Hello Vikas,
    This should be the general approach.
    1) Write a new query that has the functionality you desire. In your case you can duplicate the existing query and make one of the filters mandatory. This will ensure that the query does not get executed by default. Save this new query in the system.
    2) Identify the corresponding query group. In your case it is FCI-ContractBuyList.
    3) In this query group, find the entry for 'Search Master Agreements and Agreements' query and check 'Remove Query from Selection List'.
    4)Add your new query in this query group and check the 'Include in SRM Navigation' checkbox. Click Save.
    Let us know if this works.
    Thanks
    Devesh

  • How to change Master Agreements search channel in Workbench

    Hi All,
    When we search in Master Agreements search channel in workbench then it displays a report just below that search, and when we click on that then it displays Master Agreement Search Agreement Detail.
    In this details sub-agreement payment terms are not coming because Class id is different, but when I look into standard report  : Master Agreement Search Agreement Detail, there query is having class id 1003.
    Is it possible to replace this standard query in report or if we can replace this report in Master Agreements search channel in workbench.
    Please advise.
    Regards,
    Prabhat Pandey

    I see. I think SAP does not allow the standard FCI queries to be linked to Custom ones from the Setup --> Reports section.
    In this case, you will first need to create a CUSTOM version of FCI-ConSearchMore and then link the custom version of FCI-ConSearchAgrDetail to this via the Setup--> Report section.
    Then in the Setup--> Desktop Channel, you would need to go into the Master Agreement Search link and update the Parameter Definitions section with the new custom queries. This will ensure that in the Workbench page of the user, the desired results will be displayed.
    Hope this helps,
    Thanks,
    Vikram Shukla

  • How to make extended field mandatory in Master Agreement

    Hello All,
    I am new to SAP CLM, and I have requirement where one extended field in master agreement needs to be made as mandatory field.
    I tried in extension definition but check box to make it required is disabled and I am unable to find other way to do it.
    Can some one help me and Please let me know how make extended fields mandatory in CLM.
    Regards,
    Prabhat

    Hi
    This could be achieved using Page Customization.Go to Setup-> User Interface-> Page Customization, open master agreement object (create new with UI ID:contracts.contract.ui.buyside.default if doesn't exist ) and add a new customization for extended field with Property set to Required.
    Regards
    Mudit Saini

  • Urgent: Relevant Master Data Data Sources for FI-GL  & FI-AP

    Hi BW Guru's
    We have install the Standard Data Targets from Business Content.  Now i want to do the same for Master Data can any one help me in selecting the relevant master data data sources for the following Data Targets.
    Your help will be appreciated.
    FI-GL
    INFOCUBE    0FIGL_C01    General Ledger: Transaction Figures   
    INFOCUBE    0FIGL_C02    Cost of Sales Ledger: Transaction Figures   
    INFOCUBE    0FIGL_VC1    General Ledger: Financial Statements   
    INFOCUBE    0FIGL_VC2    Cost of Sales Ledger:Financial Statements   
    INFOCUBE    0FIGL_C10    General Ledger (New): Transaction Figures   
    INFOCUBE    0FIGL_R10    General Ledger (New): Transaction Figures Remote   
    INFOCUBE    0FIGL_V10    G/L (New): Balance Sheet and Profit and Loss   
    INFOCUBE    0FIGL_V11    G/L (New): Balance Sheet and Profit and Loss Remote   
    FI-AP
    INFOCUBE    0FIAP_C02    FIAP: Transaction Data   
    INFOCUBE    0FIAP_C03    FIAP: Line Item   
    Thanks in Advance,
    Ganni

    AC --> AC-IO -
                                        All DataSources
    FI -->  FI-IO -
                                        All DataSources
    FI -->  FI-AR --> FI-AR-I0 -
                        All DataSources
    FI --> FI-AR -
                                         0FI_AR_4, 0FI_AR_10,0FI_AR_6
    FI --> FI-AP --> FI-AP-I0 -
                         All DataSources
    FI --> FI-AP -
                                         0FI_AP_4, 0FI_AP_6
    FI --> FI-GL --> FI-GL-I0 -
                         All DataSources
    FI --> FI-GL -
                                         0FI_GL_10
    LO--> LO-IO -
                                   All DataSources
    SD--> SD-IO -
                                         All DataSources
    SAP-R/3-IO -
                                         All DataSources
    PI-BASIS--> 0CA_GD --> 0CA_GD-IO ---     All DataSources

  • A link to create master agreement in a user defined object

    Hi guys,
    We have a requirement wherein we need to put a toolbar link in a UDO to create a master agreement. Certain fields from the UDO needs to be carried over to the master agreement.
    Any pointers would be extremely helpful..

    hi reshma,
    Here is the code for contract creation. Please Note: Other mandatory fields, depending on your MAster agreement document type has to be set before you save the Contract.
    contractHome =IBeanHomeLocator.lookup(session, ContractIBeanHomeIfc.sHOME_NAME);
    //Creates a contract bean. The input parameter is an Master Agreement type
    contractBean = contractHome.create("master agreement typet");
    /Set the Required fields in the contract/
    //example to set few fields
    valueTypeHome=IBeanHomeLocator.lookup(session,ValueListTypeIBeanHomeIfc.sHOME_NAME);
    valueTypeBean=valueTypeHome.findByExternalId("master_agreement_status");
    valueBean=valueTypeBean.getCollnValueListValue().get(0);
    contractBean.setStatusRef(valueBean.getLocalizedObjectReference());
    //set display name
    contractBean.setDisplayName("Test"+doc.getDisplayName());
    //Set currency
    contractBean.setCurrency(doc.getCurrency());
    //set effective date
    contractBean.setEffectiveDate(TypeFactory.createSysDate(new java.util.Date()));
    //set base date
    contractBean.setBaseDate(doc.getBaseDate());
    //set contact info
    vendorCollection = doc.getCollnVendors();
    vendorRef=vendorCollection.get(0);
    contact=vendorRef.getContactObjRef();
    contractBean.dbSetContactRef(contact);
    contractBean.dbSetVendorRef(vendorRef.getVendorObjRef());
    /Set other necessary information in the contract bean/
    //Save the Contract
    contractHome.save(contractBean);

  • It's not possible upgrade master data via DTW in SBO 2007.

    Hi to everybody,
    I was trying to upgrade de BP master data via DTW, but its not possible.    I cheched the chechbox "Update" but I got an error saying "This entry already exists in the following tables (ODBC - 2035)".
    The change I try to do is in the address contact.
    Thanks.
    Daniel
    Edited by: Philip Eller on Jun 20, 2008 10:32 AM

    Hi Daniel Rivas,
    Regarding this issue, please kindly check the following
    -> Whether there are duplicated records in the import file. If there are two rows for the same name, please remove one of them and this file can then be imported successfully.
    -> LineNum should be filled correctly. It should be sequential number which begins from the quantity of existing contact persons. For example if there are 10 contact persons for a specific BP, and you want to add another 10 new contact persons, the LineNumber should start from 10 to 19.
    -> In DTW Wizard step 3, select the checkbox 'Add all Items into Schema if can't find corresponding item when updating' under Target Data tab. You can refer to Note 789315 for information on the functionality of this checkbox.
    Hope this helps.
    Regards, Summer
    SAP Business One Forums Team

  • Script for setting Inco-terms in Master Agreement Setup

    Hi All,
    We have a requirement to create a follow-on child Master Agreement from a Parent MA. So we are writting a toolbar script to craete this follow-on Master Agreement. The problem we are facing is , we are not able to populate inco-terms (delivery terms) from the setup of Parent to Child Master Agreement.
    Although Master Agreement Setup has APIs but it seems there is no method which can allow us to get and set the values of inco-term in the collection (DEL_TERM_COLLN ) which is present in the setup of Master Agreement.
    Can you please throw some light on this issue, if it would be possible to set incoterms values in Master Agreement Setup.
    Thanks in Advance!
    Regards,

    Hello,
    If the IAPI doesnu2019t have the getter and setter, I would suggest raising a OSS message with SAP.
    Regards,
    Vikram

  • Master Agreement- Line Item- Plant- Org Unit

    Hi ,
    Trying to get OrganisalUnit object associated with a plant using below code (Master Agreement-Line Item Tab)
    lineItems=doc.getLineItems();
              for(int i=0;i<lineItems.size();i++){
                   lineItem=lineItems.get(i);
                   material=lineItem.getMaterialObjRef();
                   materialHome=IBeanHomeLocator.lookup(session,material);
                   materialBean=materialHome.find(material);
                   plant=materialBean.getPlantObjRef();
                   plantHome=IBeanHomeLocator.lookup(session,plant);
                   plantBean=plantHome.find(plant);
                            businessUnitCollection=plantBean.getCollectionMetadata("COLLN:3:647").get(plantBean);
                   for(int i=0;i<businessUnitCollection.size();i++){
                        businessUnitRow=businessUnitCollection.get(i);
    businessUnitCollection object size is 1. But the object is null.
    Please help!
    Goverdhan Totawar

    Got response from e-sourcing tech team. getCollectionMetadata can not be used for getting collection table.
    Since the ORG Unit is standard object provided by esourcing, if an API method is not exposed we need to log a ticke, and SAP will provide a standard method.

  • Uploading two contract documents to the same master agreement

    Hi:
    I am uploading contracts into the SAP Sourcing 7.0 using the 'Contract Agreement and Document Uploader' in the Document Setup of the Setup.
    For a particular scenario when I try to upload two different contract documents to the same master agreement I get this error.
    I am using exactly the same row in the CSV file except for the field FILE_NAME.
    The error that I get is-
    The attempted phase change failed. Return to your document to see errors. [PHASE_ERROR].....Import failed for object number 3. The Master Agreement has been changed by Jon Stewart, and your changes cannot be saved. You must discard these changes and reload the document. [STANDARD_ATTRIBUTE_ID].
    Thanks in advance
    Raghav

    Hi Raghav,
    I am sorry, i could not understand your problem properly. but the error with  STANDARD ATTRIBUTE ID is something i hope i can help you with.
    I had got the same error while uploading RFP Questions (STANDARD ATTRIBUTE ID) for Group Name. The reason i found for this error was that the group name had exceeded the maximum number of allowed characters i.e 40. Could you please check whether your data in certain field has exceeded the maximum number of characters.
    Can you please throw some light on other problem,  would be more than happy to help.
    Regards,
    Anshuman

  • Workflow for Master Agreement (Publish to ERP)

    What is the best practice for approval workflow before publishing a master agreement from eSource to ECC?
    In the interest in keeping the source-of-truth within a single application we do not want to keep approval workflow of Outline Agreements in ECC as it is currently when moving the creation of the master agreement functionality to eSource.  There is no inherent workflow functionality for master agreements in eSource.  Are there customizations and/or best practices for having workflow of master agreements such that the Publish to ERP would not be possible until approval has been done within the eSource application?

    Hi,
    As you rightly said, Work flow support is not available in MA and more specifically before sending it to ERP
    Here are some options you may want to consider:
    - Try to use ACL/Security rights to control who can publish to ERP. For instance only the "document owner" can publish and the document owners are responsible. You can put a message or ask the publisher to enter some values on extension fields on who all approved this document.
    - Try using approval functionality in ERP if that works. that may be the simplest..
    The following options require heavy customization & scripting:
    Leverage workflow support from other docs
    - Tie an User defined business document (UDO that supports workflow) with MA. Provide a custom action, which will create a UDO biz doc instance and trigger a workflow behind the scenes.  MA will have a reference to UDO and vice versa. Users will approve the UDO.  In your Pre Publish to ERP script check for the approval conditions of UDO and work with that.
    - if MA is created from Projects try using project workflow for the business process..
    Good luck!
    Thanks, Baski

  • Multiple currencies in master agreement

    All,
    Any ideas on how a master agreement can handle multiple currencies?
    Even the subagreement carries over the master agreement currency and a script would not change it.
    Regards,
    Subhasini

    Hi Subhasini,
    Master agreement doesn't support multiple currencies in CLM till date. Only RFx does. You may have model your scenarios working around this limitation. One solution could be to use MA instead of subagreements and tie them with document links...
    Guess In newer releses (wave 8) contract heirarchies are supported, where you can have multiple MAs linked and each of them can have their own currencies.
    Thanks,
    Baski

Maybe you are looking for

  • Readonly primary key field

    Forms 6i Database 10g When I access a simple data record in an oracle form that consists of a CODE and DESCRIPTION where the CODE is part of the primary key, the CODE field is typically read-only and this is evident by the shade of the item. The item

  • Delete key function reset required

    The delete key in Safari always returned to the previous page browsed. Now, for some reason, it only functions as a regular delete key and no longer moves back a page. This happened for, seemingly, no reason, I didn't reset anything. Any ideas how to

  • Ok buttong on OAPageDialog does not contiue processing

    Hi, I have a requirement to issue a warning on the debrief page for Field Service if the #of Install Lines does not match # of Return Lines when the assignment status is set to closed. I have extended the controller and followed the example on the us

  • CALL_FUNCTION_SEND_ERROR in transaction VL10X

    Hi All, I am getting CALL_FUNCTION_SEND_ERROR dump while creating delivery through transaction VL10X. Dump is coming in function module SHP_VL10_DELIVERY_CREATE_PARA. Any pointers to why this dump is coming. Thanks in advance. Regards Luv

  • KO01 Internal order number range Pru00E4fix+internal number

    Dear all, we have one worldwide controlling area. We would like to set up as less as possible internal order types. As you know you can assign behind each internal oder type the number range. We would like to have a number range with the company-code