Quantcast
Channel: SCN : Discussion List - SAP Sourcing
Viewing all 1416 articles
Browse latest View live

Delete attachment via script not working after upgrade

$
0
0

Hi All,

 

Recently we have upgraded our sourcing system to version 10. We have written script to delete attachment via script. It was working fine but after upgrade we are getting below error:

 

target exception : at Line: 474 : in file: inline evaluation of: ``import java.util.Calendar; import com.sap.odp.api.common.types.TypeFactory; im . . . '' : .delete ( docLinks .get ( i ) )

 

Target exception: java.lang.ClassCastException: Cannot cast class com.sap.odp.common.db.ObjectReference to class java.lang.String

 

Piece of code for attachment deletion:

docLinks = newMA1.getDocumentLinkList();

for(int i=0;i<docLinks.size();i++) {

docLinkLine = docLinks.get(i);

name = docLinkLine.getLinkDocId();

relationship = docLinkLine.getLinkDefinitionObjRef().getDisplayName();

 

if(name.equalsIgnoreCase("102_OLA_102") && relationship.equalsIgnoreCase("Master Agreement Template")) {

newMA1.getDocumentLinkList().delete(docLinks.get(i));

}

}

 

Please help us to resolve this issue


Deleting Document link via Script

$
0
0

Hi Experts

 

I am trying to delete a Document Link. The script deletes the document link, but gives the below error as well.

 

Target exception: java.lang.ClassCastException: Cannot cast class com.sap.odp.common.db.ObjectReference to class java.lang.String

 

Below is my script. Please assist as to where I can fix it

 

docLinkList = doc.getDocumentLinkList();

 

if (docLinkList.size() > 0)

{

   docIter = docLinkList.iterator();

   while(docIter.hasNext())

   {

       linkmember = docIter.next();

       Relationship = linkmember.getLinkDefinitionObjRef().getDisplayName().toString();

         

       if (Relationship.equals("Related Project"))  

       {

         docLinkList.delete(linkmember);

       }

   }

}

How to delete document links via script?

$
0
0

Hi,

 

I am trying to write an import lifecycle script to delete all document links for a document say: project. 

I've tried the following code, but it keeps throwing me Indexoutofbound exception, can some one help on why this error happens?

 

docLinks = doc.getDocumentLinkList();

docLinksSize = docLinks.size();

if(docLinksSize > 0){
for (int i=docLinksSize; i>0; i--){

 

docLinks.delete(docLinks.get(i-1));

 

 

}

}

 

Thanks.

How to track custom mails in sourcing

$
0
0

Hi Experts,

 

As per our requirement we have implemented the explicitly called script to send mails to the MA/SA collaborators on agreement expire date.

We have not used SAP provided custom mail template for this, we have used send mail function in script.

Mails are going out without an issue, but for our internal tracking purpose we are printing the log message saying that "custom mail sent to"+username.

But it is so difficult for us to check the log messages every day because every time we need to ask our basis team for logs and need lot of approvals for that.

 

So we are looking for an alternative to track the custom mail sent from explicitly called script.

 

Please help us, if anyone have an idea on this.

 

 

Regards,

Lava

SAP CLM Master Data and Contract Document Integration

$
0
0

Hello experts,

we have the requirement that during our migration process related to master agreements and contract documents we have to import some relevant master data like the ”Business Partner Contract Number” for our customer. We have tried to do it with “Contract Data and Document Importer”. The field “Business Partner Contract Number” shall be reflected in SAP CLM (see screenshot) after the import.

 

Screenshot_001.PNG

 

This field is a SAP CLM standard field and its ID is VENDOR_ACCT_NUM. If we generate a master agreement template with all fields which can be used for the master agreement and contract document import this field does not exist. Maybe we can use the “Import Data” which provides a bigger choice for master data import (see screenshot).

Screenshot_002.PNG

But which options can be finally used for it?

 

Thank you in advance,
Heiko

CLM Contract Version Management

$
0
0

Hi,

 

We have implemented ECC Contract Version management and we are using CLM Contract management too. In ECC generating Contracts ( with ME31K) are working good for version management. But any changes to CLM generated contacts in ECC are not going through Versions.

Anyone know why this is for ? Is this standard design? I just thought to write & check  before opening OSS message with SAP.

Thanks in advance, Let  me know.

 

Rahul

Unable to connect to system context using user name system

$
0
0

Hi,

 

We are doing CLM migration from SAP Hosting to On-Permise. So far We have done

 

1) Installed SAP NW 7.31 SP08 on Oracle 11.2.0.4

2) Imported the export dump provided by SAP to separate CLM Oracle DB.

 

Now when I am trying the post steps "Define J2EE System Properties" I am unable to connect to system context with user name "system".It says authentication error.Is this user "system" the CLM Oracle Database user ? or We have to get the password from SAP CoE ?

 

I didn't do "The baseline database installation" as in our case We have already built the database from SAP provided export dump earlier.

 

Please suggest.

 

Sourcing Version :- Sourcing 10.0 SP06 on Oracle 11.2.0.4

 

Thanks,

Mofizur

CLM Link not opening after isntallation

$
0
0

Hi,

 

I have SAP NW JAVA (&31 SP08) installed as J03.I have deployed esoserver.sca on top of that.NowI can see in NWA-->E-Sourcing-Server is "Started".But If I try to access the link for CLM it is not opening.It says blank page..

 

I am using below link..as I have given "sourcing" as application context

 

http://hostname:50300/sourcing/fssystem/portal/login

 

Please suggest

 

Thanks,

Mofizur


Removing loaded data

$
0
0

Hi All,

 

Is there a way to delete / remove data / objects loaded with a sample workbook upload? Does deactivating a cluster remove this data from the database? Looking for a way to undo the sample data and config loaded with the downloaded workbooks.

 

Regards,

Subhasini

CLM Attachment Library

$
0
0

Hi Folks

 

We are working on CLM 10.0.

 

Can someone advice how the Attachment Library is uploaded in the system ??

 

I see that in the Document Setup > Attachment Library , we can create new entries but how can this be achieved for bulk data loading in the library.

 

Additionally in the Attachments tab at MA Header Level ,  the folder in which this data resides is 'Contract Attachments',

 

As per my understanding this folder sits somewhere in the Content Server.

 

Kindly advice how does this functionality exactly works and how can we access the content server in CLM.

 

Is this similar to the approach we follow while loading Clause Library - manually placing the files using 'winscp' in the directory structure.

 

Regards

Piyush

How to get Vendor External ID from ContactIBeanIfc as in this case doc.getParentIBean() == null when any User logged in to Supplier Portal

$
0
0

Hi All,

     I need to retrieve supplier handler for contact when user logged in to Supplier Portal, there doc.getParentIBean() comes null so we cant directly fetch supplier from doc.getParentIBean() as in case when user logged in to buyer portal. In order to achieve my requirement, I am unnecessary fetching all vendors from database then fetching each contact comparing with logged in contact and then getting supplier external id. Though this piece of code is working fine but its crashing when we have lots and lots of vendors in DB hence hindering performance.

 

     Is there any other way to retrieve supplier handler for contact(ContactIBeanIfc) when user logged in to Supplier Portal.

                                                                     

                                                                                                                                                 Thanks in Advance!!

 

I am using below piece of code:

 

if (doc.getParentIBean() == null) {

        //get id of current logged in user

        logIt("*** User logged in to Supplier Portal, checking the supplier id ***", 1);

        userId = session.getAccount().getUserName();

        logIt("*** Current logged in user has id " + userId + " ***", 1);

        contactsList = contactHome.findWhere("NAME ='" + userId + "'");

        if (contactsList.size() > 0 ) {

            contact = (ContactIBeanIfc) contactsList.get(0);

            contactDocUid = contact.getDocumentId();

            vendorHome = (VendorIBeanHomeIfc)IBeanHomeLocator.lookup(session, VendorIBeanHomeIfc.sHOME_NAME);

            vendorsList = vendorHome.findAll();

            vsize = vendorsList.size();

           for (int j = 0; j < vsize; j++) {

                vendor = (VendorIBeanIfc) vendorsList.get(j);

                conList = vendor.getCollnContact();

                for (int k = 0; k < conList.size(); k++ ) {

                    childContact = (ContactIBeanIfc) conList.get(k);

                    if (contactDocUid.equals(childContact.getFieldMetadata("UNIQUE_DOC_NAME").get(childContact))) {

                        //Check if external supplier id is present

                        extSuppId = "";

                        businessSystems = vendor.getCollnLogicalSys();

                        if (hasValue(businessSystems)) {

                            if (businessSystems.size() > 0 ) {

                                bsys = (VendorLogSysIBeanIfc)businessSystems.get(0);

                                extSuppId = bsys.getExternalSupplierId();

                            }

                        }

                        if (hasValue(extSuppId)) {

                            supplierId = extSuppId;

                            logIt("*** External supplier id for this contact is " + supplierId + "***", 1);

                            isExternalSupplier = true;

                        } else {

                            supplierId = vendor.getExternalId();

                            logIt("*** Internal supplier id for this contact is " + supplierId + "***", 1);

                            isExternalSupplier = false;

                        }

                        break;

                    }

                }

            }

        }

    }

Contract Document Download Restriction

$
0
0

Hi Experts,

 

We are in Sourcing 10.0.

 

We have a requirement, if contract document is checked out by a collaborator then other collaborators can't download the document.

 

As in Version History collection, users can download the document irrespective of the check out Action.

 

Is this requirement is feasible?

 

Any leads would be of great help!!

 

 

Regards,

Geetika

Issue with Manul Deleting the Master Agreement

$
0
0

Hi all,

 

I tried to delete a Master Agreement manually through tool bar (Document--> Delete the Document.). I am not able to delete the document.

 

Can any one suggest why it was happening and how to resolve the issue.

 

Currently we are using CLM 10.0.04.

SYSTEM COPY

$
0
0

Hello Experts.

I just want to know If a backup taken on a system with the configuration as the following netweaver 7.0, Oracle 11, RHEL, be restored on

netweaver 7.3, Oracle 11, RHEL. If yes what is the process.

Thank u

CLM: Additional Information to Master Agreement Header

$
0
0

Hello experts,

 

we have the requirement to indicate additional information to the Master Agreement Header. In this case we have to use the Master Agreement Object ID from FCI_CONTRACT which will be reflected next to the Master Agreement ID within the Master Agreement (see screenshot).

 

001.PNG

At the moment I have no idea how to realize it. I would appreciate it if anybody has an approach.

 

Best,
Heiko


ldap integration for user creation

$
0
0

HI Experts,

 

we are in sourcing 10.0.

 

currently for user creation we are using csv template Uploader.

 

Need help in Understanding the LDAP integration to maintain users.

 

Any leads would be of great help!!

 

 

Regards,

geetika

Access to collaborators

$
0
0

1.we have a business requirement where collaborators only have the read access to the master  agreement and contract document but they can check in and check out the document.

 

we have checked by modifying the security profile of collaboartors, but once i give read only access to business documents(MA) , users cant check in /out.

 

Is there any way we can achieve it.

 

2. Also, once  the document has been checker  out by any collaborator , can we restrict other collaboartors from downloading  the contract document?

 

 

 

Any leads would be of great help!!

 

Thanks in Advance!!

 

Regards,

Geetika

SAP Integration with Ariba using Ariba Integration ToolKit

$
0
0

Hello Experts,

 

We have Ariba Integration with SAP.

As per my understanding, we can extract the suppliers from SAP ECC and update the Ariba Network using Ariba Integration Toolkit.

SAP ECC will extract the suppliers and generate a file in a specific folder, the Ariba Integration Toolkit will pick the file from the relevant folder and update the suppliers on Ariba Network.

 

Can you please let me know if my understanding is correct?

 

I would also like to know What are the T-Codes in SAP by which I can extract the suppliers from SAP ECC.

 

Thanks a lot for your help.

Attachments/Documents Import on UDO's

$
0
0

Hi All,

 

Is there any possibility to import Attachments/Documents to the Records in User Defined Objects. I understood that  "Contract Data and Document Importer" is only limited to import Metadata and Documents for Contract Records (Under Contract Management) and "Import Data" tool is to import metadata only.

My current requirement is to import hundred of documents to the UDO1 and couldn't be able use Import Data or Contract Data and Document Importer. Is there any workaround to achieve this requirement.

 

Thanking you in advance.

 

Ashoka Ganji

Integration of SAP ERP and SAP Sourcing 10.0

$
0
0

Hi, I was wondering if anyone knows of a document on how to test the integration scenario's between ECC and CLM. We have everything configured from a ecc/pi/esourcing stand point but I would like to test the scenario's.

 

Thanks,

Katie

Viewing all 1416 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>