CLM Company-Organization Unit in Master Agreement

Hi guys
In a CLM Master Agreement, after I select a company, I am able to select any organizational unit, even if it does not belong to that company. The system does not issue any error message. Is it standard behavior?
Shouldnt the system validate that only the organizational units which are belonging to a particular company be displayed?
Thanks and regards
Ajay

Hi,
It looks it is standard behaviour.
We have put in script to validate and added a query to query group so that user can search ORG UNIT by company code.
//........................Gets company code
getChildFieldByFieldId(parentFieldId,childFieldId){
        value=doc.getExtensionField(parentFieldId).get();
     if(hasValue(value)){
          parenthome=IBeanHomeLocator.lookup(session,value);
          parentbean=parenthome.find(value);
          childField=parentbean.getExtensionField(childFieldId).get();
          return childField;
     return null;
validateCompanyCodes(parentfieldId,childFieldId){
        flag=false;
     maCompanyCode=doc.getExtensionField("SAPCCODE").get();
        companyCode=getChildFieldByFieldId(parentfieldId,childFieldId);
     if(companyCode==null @or !hasValue(maCompanyCode)){
          flag=false;
     }else if(maCompanyCode.equals(companyCode)){
          flag=true;
     return flag;
purchasingOrgCompanyCodeMatch=validateCompanyCodes("SAPPORG","sapccode");

Similar Messages

  • New Organizational Unit Code

    Dear Folks,
    I want to create a new Organizational Unit code for a rollout project.
    For Example, the current company organization unit say 500000000 - Pepsi Corporation Limited and now I need to create a new company code and for that company code I need the Organizational Unit as 6000000 - India Beverages.
    I hope you have understood, what I wanted to create.
    Can anyone suggest me, how to make the above configuration changes.
    Regards,
    Somu Sekar. P

    Hello,
    First check whether u are maintaining number ranges if yes then create new no. ranges for org unit and proceed with creating.
    ask fi/co people to create company code and then you can assign credentials as per your requirement.
    thanks
    rafi

  • How to get Organizational Unit of a Master Agreement?

    HI,
    I am trying to retrieve value of Organization Unit of a Master Agreement but I am getting some code: name.
    ownerObj=doc.getDocumentOwnerUserReference();
    ownerHome=IBeanHomeLocator.lookup(session,ownerObj);
    ownerBean=ownerHome.find(ownerObj);
    throw doc.createApplicationException("VENDOR_VISIBLE", "Supplier name is "+
    ownerBean.getOrganization());
    Please suggest.
    Thanks,
    Saloni

    Hi Solani,
    You were getting the error beacuse we don't have any field like org unit in the Contract Document and the method you used is not there in the API's.If you want to access the Master Agreement Org unit in Contract document then you have to get the MA bean and then you can fetch Org unit in your contract document.
    Code as follows:-
    masterBean = doc.getParentIBean();// to get the MA bean
    orgunit = masterBean.getOrganizationalUnitRef(); //this wil give the orunit of the MA
    businessUnitHome=IBeanHomeLocator.lookup(session,orgunit);
    businessUnitBean=businessUnitHome.find(orgunit);
    Hope this will work for you.
    Thanks,
    Ankur Goyal
    Edited by: ankur_goyal03 on Oct 15, 2011 8:23 AM

  • CLM Importing Master Agreement: Is it possible to import custom collection

    Hello,
    We are looking to migrate some legacy data into CLM using the import master agreement (setup->Import and Export Tools).  This approach works fine for all standard data as well as extensions that are single entry fields (not collections).  We would like to load some data into extension field that are collections and are wondering what is the best, most efficient way to accomplish this.
    I can only think of the following method:
    Import all master agreement data standard fields and extension fields (not collections).  Once all are entered, we go into the master agreement and add the collection data manually or by importing csv files at that time.
    This method will be time consuming.  Is there a better way to accomplish this?
    Thanks in advance,
    Kyle

    Hi Kyle & Venkat,
    I am trying to import the contract through 'contract import workbook' present in RG.
    I have made & verified changes in field data values of the three worksheets in contracts.
    Now when i try importing, it gets failed giving me the error  - An error was encountered in column CONTACT/LOCATION.
    However, the same values do exist in Master Data.
    Can you please let me know if the same error occured with you folks & possible troubleshooting.
    Any pointers would be highly appreciated.
    Thanks,
    Tripti

  • 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.

  • Transfering Between CLM Master Agreement Folder Types

    Hello,
    How do I transfer a CLM master agreement to another CLM master agreement folder type?  For example, an existing CLM Legal master agreement will need to be transferred to a CLM HR master agreement (using the new HR master agreement type numbering table).
    Thanks,
    Adrian

    Hi Adrian,
    If I understand your requirement correct, you would like to convert Master Agreement created from Legal Master Agreement type to a new HR Master Agreement.
    CLM does not allow to change the Master Agreement Type i.e. the Document type, once the MA is created.
    You will need to create a new MA using the HR Master Agreement type, if it has been already defined/configured in the MA Types.
    I hope this helps.
    Regards,
    Parankush

  • Importing Attachments for Master Agreements in CLM

    I am attempting to load contract files (.doc/PDF) using the import tool and I am having issues.  What needs to be populated in the 'Attachment Order Code' field in the load file.
    Can someone outline the steps to load an existing contract created outside of CLM to a master agreement?
    I am using E-Sourcing 5.1/CLM 2.0.
    Thanks in Advance,
    Kyle

    Jeff,
    It does make sense to me what you are trying but it does not make sense in the logic of SAP Sourcing.  You don't want the suppliers to see the button to not confuse them but in the logic if you activate it on one side the possibility you are sharing a document is real so it should be visible on both sides or you will have confusion on the buyer side if someone chooses internal and external view while the supplier doesn't see even the attachment section.
    On the buyer side the default is internal only so if this is not changed by the master agreement owner on the buyer side the attachment section will always be empty for the supplier causing no unnecessary confusion.
    There is no way at present to hide this only on the supplier side as far as I see it.
    Regards,
    Erik

  • Master Agreement Import Failed

    Hi experts,
    An error was encountered during Data Import of Master Agreement in CLM system.  Logs shown below.  
    Details of the errors:
    Failed: object 1: metadata exception
    Exception: method not found
    MessageId: exception.common.db.metadata.reflection
    Info: target method = getObjectId [STANDARD_ATTRIBUTE_ID].
    found in fpa logs:
    metadata exception, Exception: method not found, AttributeId: SAPPORG_OBJECT_ID, MessageId: exception.common.db.metadata.reflection
    When checking in Setup --> Extension Definition List --> Master Agreement Extensions, SAPPORG is existing in the Attributes tab
    Regards,
    Lester

    Hi Lester,
    In setup>extension defnition, you can define different extensions for an object type (e.g. MA) for different contexts. In case of MA, you can define different set of extensions in enterpirse context and in subcontext(s).
    e.g. for enterprise context you can have EXT1 for MA
          for subcontext1 you can have EXT2 for MA
          for subcontext2 you can have EXT3 for MA
    When a user logs-in he will be associated with a context based on his company. Say with subcontext 2. In that case the user can see only extension EXT2.
    I was suspecting extensions are defined in a different context than from the user is importing... Please check.
    1. Check 1: user used for importing, the associated company & determine the respective context
    2. go to setup>ext def and look for this MA under this context and see the extension.
    Thanks,
    Baski

  • Organization Units Authorization on user level

    Hello experts,
    Is there a way to add authorization for an organization unit (i.e. Company Code) on a user (SU01) level and not on a authorization objects (PFCG) level?
    For example,
    I would like to create the following Role (profile):
    ZFI_AP_REPORT_DISPLAY
    This role should be able to display AP report from the Financial module.
    However our problem is, we would like to create authorization levels with organizational units for each user:
    For example:
    User Anson has ZFI_AP_REPORT_DISPLAY assigned but can only display Report from Company Code 3202.
    We know we can create this authorization creating several roles, like:
    ZFI_AP_REPORT_DISPLAY_3201
    ZFI_AP_REPORT_DISPLAY _3202
    ZFI_AP_REPORT_DISPLAY_3203
    but our idea is not create several roles, but to assign the Company Code authorization on a user level and leave just one role so we would only need ZFI_AP_REPORT_DISPLAY.
    Is there a way to do this?
    Thank you in advanced for your replies.
    Christine Tseng

    I agree with Jurjen.  There is no point creating a "new" authorisation concept for a few transactions.  If you use standard authorisation objects for the check in your custom tcodes then you will likely have very little work to do if you assign those tcodes to existing roles.
    Even using a custom auth object & creating the variants will take up no more time than doing something like repeating the variable functionality in BI or messing about with PIDs in the UMR (which I definitely do not recommend).  By sticking with the standard concept you ensure consistency, making it much easier to support and/or handover if you move on from the role.

  • How to inherit roles between root organization unit and sub units

    Hi all,
    I have root organization unit and sub units:
    ->Company
    >Department 1
    >Department 2
    >Department 3
    >Department 4
    >Department 5
    I would like it to work like this that all people from all departments would have access to transaction ZTEST. Most obvious way would be for me to assign appropriate role to unit Company. Unfortunately it looks like roles are not inherit between units like this. So question is how it should be done? Do I have to assign this role to all departments to make it work?
    Best regards
    Marcin Cholewczuk

    Hi,
    To activate inheritance of roles between root org and sub org units, you need to set switch HR_ORG_ACTIVE to Yes in table PRGN_CUST. Also proper evaluation path has to be used so that user comparison (via PFUD)  creates the indirect role assignment to user master records.
    You can modify evaluation path US_ACTGR in table T77AW/ tcode OOAW to include root org and its subunits (add entry for relationship O B002 O) and connect the role assigned to root org to the users belonging to sub org units. Then run PFUD which will use this evaluation path to create indirect role assigment.
    Thanks
    Sandipan

  • Unable to capture field values in Master agreement  Line Items

    I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
    agreementBean = doc.getRootParentIBean();
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    for(i=0;i<collectionsize;i++){
         collectionbean = lineItemCollection.get(i);
         partNum = ""+collectionbean.getPartNumber() ;
         Quantity = ""+collectionbean.getQuantity();     
         throw doc.createApplicationException(null,partNum + " , " + Quantity );
    Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
    1. Price Unit
    2. Unit Price
    3. Product Category
    4. Plant
    Please help me to find the values.
    Thankx in Advance.
    Su
    Edited by: subrataindra on Aug 10, 2010 11:11 AM

    This will return the name of the plant.
    .getExtensionField("PLANT").get().getDisplayName(session);
    Check if this returns the product category
    collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
    This will Return the Price
    collectionbean.getExtensionField("PRICE").get().getPrice();
    (return type :BigDecimal)
    This will return the currency
    collectionbean.getExtensionField("PRICE").get().getCurrency;
    (Return type:String)
    Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
    Hope this helps
    Regards,
    Immanuel

  • 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

  • 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

  • Can we hide filter in Search Master agreements standard top level query?

    Hi Experts, 
    I have a requirement to hide flter in standard Search Master Agreements top level query.  See below screen shot
    I have an idea how to delete filter in query but when i have added that query to top level navigation i don't have any idea.
    So i want to hide Business Unit & Region filter in Search Master Agreement query when it is in top level navigation.
    If anyone have idea please share with me how to hide.
    Thanks,
    Lava

    Hi Lava,
    It is not a filter but this a Standard field which is coming from the Master Agreement.
    So, you cannot hide or even delete any field.
    But if it is a custom field you can hide it by inactivating the respective field in Extension Defination.
    Please let me know if you need any assistance.
    Thanks,
    Raj.

  • Getting the organization unit of a responsibility used ...

    Hi,
    Are there any manners to get the organization unit according to the responsility the user selected...????
    For example...
    Assume that the user has the following responsibility:
    inventory employee <-----------role as a single inv. employee(access only to view)
    admin of inventory N234 <-----------role as an admin to this particular inventory(access to view, edit, check, ...)
    admin of inventory N239 <-----------role as an admin to this particular inventory(access to view, edit, check, ...)
    e.t.c..
    How is it possible to correlate the responsibilities 2,3 (of the above list) to the organization units(units of a company) coded as 234, 239 respectively..???
    I assume that this can be done using a profile (at responsibility level and/or user level)...In this case is there any profile name i can use..or i should create a new one...??? ----{I use the MO:Organization Unit to get the business group id/company}.
    Is it possible to acheive the above through the use of a form parameter...(but the question is how to correlate the specific to an organization unit responsibility to a code representing this unit (inventory N234) without the use of a profile - as a second manner)...???
    Note: I use 11.5.10 EBS
    Many thanks,
    Sim

    Hi Sim,
    One thing you need to be carefull about is in what context you need the ID of a certain organizational unit. There are different types of orgs that are in play at different times.
    e.g. Operating Unit is the securing attribute for many subledgers such as Order Management, Accounts Receivables/Payables, Purchasing.
    Inventory Unit is relevant when you look at Inventory Transactions, Costing, Planning etc.
    If we assume that you are only interested in INV orgs then whenever you enter a form that deals with inventory related issue the user is prompted to choose an organization and the choice results in setting the context variable MFG_ORGANIZATION for the session.
    If you want to control which Inventory Organization a user or responsibility has access to you go to Inventory > Setup > Organizations > Organization Access. Here you can restrict access by Responsibility. Take a carefull look into the help text to understand implications - I have copied the first couple of paragraphs:
    +You can specify which organizations a responsibility can access by mapping responsibilities to organizations. Once this mapping is set up, a user logging into an Oracle Manufacturing product is restricted to the organizations mapped to the responsibility chosen. The Change Organization window is restricted as well.
    Attention: Until you assign an organization to a responsibility in this window, all responsibilities have access to all organizations. Once you have restricted any responsibility to an organization, you must then explicitly define the organizations which all responsibilities can access.
    Attention: This feature does not restrict access once the user is in the product. Users with access to functions that cross multiple organizations (such as ATP, Inter-organization Transfers, Item Search, Multi-organization Quantity Report, and so on) can still specify any valid organization when running these functions.+
    /Niels LM

Maybe you are looking for

  • I can't find the Signature option in the Annotations menu in Preview

    I am trying to add a digital signature that I have already created to a PDF file but there is no Signature option showing up in the Annotations menu in Preview. The document I am trying to add the signature to is definitely a PDF but there is still n

  • Access Denied Error Message in KM for the report published from BI

    Hi, Whenever we publish a Report from Bex Report Designer using Bex Broadcaster the report is getting published in the right KM Folder we choose, but when we click that link with in KM and choose Details we get a message saying "Access Denied". Due t

  • How to make my addon appear on the menuitem list on sap b1 startup?

    Hi, I developed a sample "ui addon" that is supposed to create a new menuitem and display a form when clicked. I was able to install it using the b1de installation wizard and everything appears to be working... The problem: After installing the addon

  • Thank you (again) Apple!

    I've been using an aluminum G4 Powerbook for the last 4 years, and just received my new 24" (3.06 Ghz. iMac. Wow! What pleased me most on day one was the setup process. Knowing that I'd want to transfer a lot of files from the laptop to the new iMac,

  • HT4968 Changes to calendars being overwritten via iCloud

    How do I get my calendars to keep the changes I make instead of overwrite/revert them?  I made a bunce of changes to my iCloud calendars on my Mac - such as changing the color, renaming a calendar - and iCloud/iPhone overwrote all the changes and set