SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP Portal

Similar Threads
Thread Thread Starter Forum Replies Last Post
New users are getting "cntl_error" whenever login into the portal Zumba SAP Portal 1 10-31-2010 10:50 PM
Exception condition "PROFILE_NOT_INITIALIZED" raised., error key: RFC_ERROR Pepa SAP Portal 3 10-31-2010 10:14 PM
R3trans table import returns "read only view" error Zoom SAP BASIS 2 08-17-2010 01:52 PM
Make "Reference Document" field as mandatory in Confirmation - by Siiva Kumar SAPSRM SAP SRM 0 07-12-2010 02:52 PM
Field "Open Quantity" is empty on ME23N Jhonny SAP ABAP 2 05-22-2010 04:20 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2010, 01:36 AM
Ramma Ramma is offline
Senior Member
 
Join Date: May 2010
Location: California
Posts: 287
Default How to get the "where used" of a portal object.

Hi gurus!

I'm coding a program to get the list of the portal objects where a specific portal object (an iView for example) is used. I found the method getWhereUsedList from IPcdContext but I'm getting some errors.

Is this the best/correct way to get a "where used list"?

Does anyone have an example of how to use this method correctly?

Thanks in advance.

Ramma
Reply With Quote
Sponsors
  #2  
Old 11-01-2010, 01:39 AM
Golfi Golfi is offline
Senior Member
 
Join Date: May 2010
Location: Delaware
Posts: 824
Default Re: How to get the "where used" of a portal object.

Hi Ramma,

You say, you got some errors when using IPcdContext.getWhereUsedList . What exactly is the problem, what are the errors?

Regards,
Golfi
Reply With Quote
  #3  
Old 11-01-2010, 01:40 AM
Ramma Ramma is offline
Senior Member
 
Join Date: May 2010
Location: California
Posts: 287
Default Re: How to get the "where used" of a portal object.

Hi Golfi,

I execute the method I wrote below an exception is being raised: Xfs Object not found: portal_content at ...
I think I'm not calling the method properly...
Code:
private void getWhereUsed(String id, String objectType, IPcdContext result, String breadCrumb, StringBuffer sb) { String objectId = null; String sName = null; try { sName = result.getNameInNamespace(); for (NamingEnumeration ne = result.getWhereUsedList(result.getNameInNamespace()); ne.hasMoreElements();) { objectId = (String) ne.nextElement(); if (objectId != null) { sb.append(SID + "|" + objectType + " Where Used|" + id + "|" + objectId + "|" + CR); } else { sb.append(SID + "|" + objectType + " Where Used|" + id + "| Object not used|" + CR); }  } } catch (Exception e) { sb.append(SID + "|" + objectType + " Where Used|" + id + "| Error getting where used list for:" + sName + "|" + e.getMessage() + CR); } }
Thanks again,

Ramma
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:40 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno