![]() |
|
|||||||
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! |
|
|
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Sponsors |
|
#2
|
|||
|
|||
|
Hi Ramma,
You say, you got some errors when using IPcdContext.getWhereUsedList . What exactly is the problem, what are the errors? Regards, Golfi |
|
#3
|
|||
|
|||
|
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); } }
Ramma |
| Entre a los Links relacionados |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|