How to get a count of BPS objects?
Hi All,
While upgrading from BW 3.5 to BI 7.0., We need a count of BPS objects in the existing system.
Any pointers to how this can be done.?
Are there any system tables with which we can get this?
Thanks in advance
Hi,
UPC_AREA table gives how many planning areas are present in the system.
Some more tables
UPC_PLEVEL
UPC_PROFILE
UPC_VARIABLE etc.
Bindu
Similar Messages
-
How to get Date Format from Local Object.
Hi All,
I am new to Web Channel.
I need to know Date format From date of locale.
suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC.
Is there any way to get Date format from "Locale" object. I should get date format for local object
I get local object from "UserSessionData" object but how to get Date format from it.
I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format. I could not find example which show how to get date format from "Locale" object.
Any help will be appreciated with rewards.
Regards.
Web ChannelHi,
You can get it from "User" or "Shop" business object.
Try to get User or Shop Business Object as shown below.
BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
User user = bom.getUser();
char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
If you are seeing "1,234.00" then above code will return "."
I hope this information help you to resolve your issue.
eCommerce Developer. -
How to get the values of the objects inside an object??
Hi,
I am trying to write code to display name and memory usage of all session attributes, in a recursive way.
I suppose reflection is needed here, but I cant figure out how to get the values of the objects inside an object...
private void handleIt(String attributeName, Object attributeValue) {
boolean isPrimitiveOrNull = ((null == attributeValue) ||
(attributeValue.getClass().isPrimitive()));
if (isPrimitiveOrNull) {
sb.append("{" + attributeName + ":" + sizeOf(attributeValue) + "}");
} else {
sb.append("{" + attributeName + ":" + sizeOf(attributeValue) + "{");
Field[] fields = attributeValue.getClass().getDeclaredFields();
int lim = fields.length;
String name;
Object value = null;
for (int i = 0; i < lim; i++) {
name = fields.getName();
//LOOK AT THIS LINE: !!!!!!!!!!!!!!!!!!!!!!!!!!!
value = fields[i].get(obj); //I don´t know what 'obj' should be??
handleIt(name, value);
sb.append("}");
Any suggestions will be greatly appreciated...I realized that massive int objects called MAX_VALUE, MIN_VALUE and SIZE where causing the StackOverflow, so I removed them from the analysis.
This is the resultant code. But I think it isnt accurate in calculating the real size of objects being got using reflexion.
Do you or somebody have any more suggestions?
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.lang.reflect.Field;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class SessionMeasurer extends HttpServlet {
private static final long serialVersionUID = 1470488362727841992L;
private StringBuilder sb = new StringBuilder();
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
performTask(request, response);
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
performTask(request, response);
public void performTask(HttpServletRequest request, HttpServletResponse response) {
HttpSession session = request.getSession(false);
String attributeName = "";
Object attributeValue = null;
for (Enumeration<?> attributeNames = session.getAttributeNames(); attributeNames.hasMoreElements();) {
attributeName = (String)attributeNames.nextElement();
attributeValue = session.getAttribute(attributeName);
handleIt(attributeName, attributeValue);
System.out.println(sb.toString());
private void handleIt(String attributeName, Object attributeValue) {
if (attributeValue != null) {
boolean isPrimitive = attributeValue.getClass().isPrimitive();
if (isPrimitive) {
sb.append("{" + attributeName + ":" + sizeOf(attributeValue) + "}");
} else {
sb.append("{" + attributeName + ":" + sizeOf(attributeValue) + "{");
Field[] fields = attributeValue.getClass().getDeclaredFields();
String name;
Object value = null;
int lim = fields.length;
for (int i = 0; i < lim; i++) {
name = fields.getName();
if (!name.endsWith("_VALUE") && !name.equals("SIZE") && !name.equals("serialVersionUID")) {
try {
value = fields[i].get(attributeValue);
} catch(Exception e) {
//PENDIENTE: Tratamiento excepción
handleIt(name, value);
sb.append("}");
private int sizeOf(Object obj) {
//Valid only for Serializables
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = null;
byte[] bytes = null;
try {
oos = new ObjectOutputStream(baos);
oos.writeObject(obj);
bytes = baos.toByteArray();
} catch(Exception e) {
//PENDIENTE: Tratamiento excepción
} finally {
if (oos != null) {
try {
oos.close();
} catch(Exception e) {
//PENDIENTE: Tratamiento excepción
if (baos != null) {
try {
baos.close();
} catch(Exception e) {
//PENDIENTE: Tratamiento excepción
int size = -1;
if (bytes != null) {
size = bytes.length;
return size; -
How to get attendies count for a calendar list in sharepoint 2013?
Hi everybody,
I am using calendar list in SharePoint 2013 for my project.
Could please tell me how to get the count of attendees using SP Designer or OOTB calculated field.
Because I want to display the fields like
TOTAL SEATS =20
Attendees= Need count
Avail seats= total - Attendees count.
In that way I want to show information about availability seats for training session.
Regards,
DhayanandHi Dhaya
Please refer the links.Hope it helps :-)
http://social.msdn.microsoft.com/Forums/en-US/b8677dc5-3eb1-4bdc-92f2-f57201bfabb1/field-that-counts-attendees?forum=sharepointcustomizationprevious
http://sharepoint.stackexchange.com/questions/54253/use-count-related-column-value-as-int-in-a-sp-designer-workflow -
Multi Mapping : How to get Message count after splitting
Hi all,
I am following below blog.
/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
Can any body please tell me how to get the count of messages generated after splitting in the message mapping.. I have created the message data type but not aware what is needed to be done.
Thanks and best regards,
Kulwant SinghMulti mappings r done in order to split the messages to the number of messages required by the user. So for 1:N mapping, the details about "N" is based on ur requirement. So its not like - when u split, any number of message could get created. The count would be dependent on u.
Regards,
Prateek -
How to get file count in variable?
dear all,
how to get file count in variable?
regards
NaseerHi Nazeer ,
It wont take much time .. so simple :- )
Create one os comand step
( for unix) Use
wc -l filename.txt > someoutputfile.txt
Now the number of lines in your file will be there in the output file ( someoutputfile.txt )
Step2 :-
Now use Cezar's logic to fetch the variable value ( file count ) from the output file .. ( select value for a variable from a file )
This will not take eeven a second to finish the job.
Regards,
Rathish A M -
How to get Page Count of pdf in Document library in EventHandler
Hi,
How to get Page Count of pdf in Document library once uploaded has been done and i would like to update the page count value in document library column of the corresponding file.
I should achieve it in Event handler.
Which even should i use, either ItemAdded or "ItemUpdated "?
Thanks & Regards
Poomani Sankaran.Hello,
If you are looking for file download or view count then event handler will not work. You need to enable the analytic report to your site. Once you enable it then you can see the report within a browser or you can also create custom webpart to show count
of specific file.
http://blogs.msdn.com/b/ecm/archive/2010/05/03/web-analytics-in-sharepoint-2010-insights-into-reports-and-metrics.aspx
http://sharepoint.stackexchange.com/questions/34611/count-of-files-under-a-folder-in-a-document-library
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to get list of modified repository objects in SPAU
Hi,
While applying Support pack for HR (SAP ERP 6.0) I get SPAU prompt with message:
"The system detected that 10 of the repository objects in the Support Packages have been modified in
your system . Check whether you want to retain or restore these changes you have made. Fore more
info about performing modification adjustment see modification adjustment help..."
Now as I call SPAU i get the screen with following options:
Correction in SAP Note
With modification Assistant
Without modification Assistant
etc..
Can someone guide me How to get list of modified repository objects in SPAU.
Thanks & Regards
VishalHi,
In SPAU you will get with modification assistence. just expand the subtree, and follw standard process .
This is to retain the enhancement. If there are any data dictionary related correction go to SPDD.
Regards
Rahul -
How about get item count of table in formGroup.vm
JHeadstart Team:
I want change maxColumns=" 1" or" 2" by item count of table .but I do not know how about get item count of table .
#if (${JHS.current.group.columns} > 10)
#set ($majin = 2)
#else
#set ($majin = 1)
#end
<af:panelForm rows="1" maxColumns="$majin" width="${JHS.current.group.formWidth}" id="${JHS.current.group.shortName}FormItems">
majin
#FORM_ITEMS()
</af:panelForm>You can do this using the following syntax:
#if (${JHS.current.itemContainer.items.size()}>10)
maxColumns="2"
#else
maxColumns="1"
#end
Steven Davelaar,
Jheadstart Team -
How to get event when any library object added to indesign doc?
I want to do some operation when any library object is added to doc. So please tell me how to get event when any library object is added to the doc. better provide some code snippet.
Daves61,
I need to clarify what kind of event you're interested in.
1. When you click once on page/spead widget in the Pages panel and only widget becomes selected. The layout window remains unchanged. OR
2. When you doubleclick on page/spread widget the selected master spread appears in the layout window.
In the first case you work with Pages panel.
Have a look to file PageTransitionsPanelObserver.cpp from SDK.
PageTransitionsPanelObserver::LazyUpdate()
In the second case you work with Layout window. -
How to get attribute value from an object inside an object in Xpress
Does anyone know how to get an attribute value from an object in Xpress in a workflow? I have an object structured as follows:
<ResourceInfo accountId='mj628' tempId='3483372b787ce7dd:-5d99a0c5:130cb238483:-3600'>
<ObjectRef type='Resource' name='Google Apps'/>
</ResourceInfo>
I need if possible to get the name='Google Apps', which is inside the ObjectRef, so I guess its an attribute value of an object inside an object.If the ResourceInfo object is accessible in a variable, i.e. named "myResInfo", you just have to check the Java API and call the relevant method:
<invoke name='getResourceName'>
<ref>myResInfo</ref>
</invoke> -
How to get hold of the XPRequest object in the Login View
Hi all,
I need to customize the Login View to pre-populate the loginname field when a user hits the page. The difficult part is that the user is using PKI Cards, and I need to use the following server-side code fragment to retreive the Login Name.
String loginName = "";Object o = request.getAttribute("javax.servlet.request.X509Certificate");
// Got certificate => Windows XP PKI Card Userif (o != null) { String dnstring = ""; int startIndex = 0, endIndex = 0; java.security.cert.X509Certificate clientcert[] = (java.security.cert.X509Certificate[]) o; dnstring = clientcert[0].getSubjectDN().toString().toUpperCase(); // Gets the Login name // This is obtained by getting the portion of the string after "UID=" and befroe the next comma. startIndex = dnstring.indexOf("UID=") + 4; endIndex = dnstring.indexOf(",", startIndex+1); loginName = dnstring.substring(startIndex, endIndex);}
The problem is that I can't seem to get hold of a XPRequest object (the Plumtree object used to wrap the JSP request object) in the Login View. I need this to call the request.GetAttribute method to retrieve the client certificate.
Anyone knows how to do this? Or maybe I should be customizing another component instead?
Thanks in advance for any suggestions!
Weng Kong LeeFrom the 5.0.4 JavaDocs for AActivitySpace:
com.plumtree.uiinfrastructure.activityspace.IXPRequest[b]GetCurrentHTTPRequest() Return the HTTP Request for the current request. com.plumtree.uiinfrastructure.activityspace.IXPResponse[b]GetCurrentHTTPResponse() Return the HTTP Response for the current request.
Hope this helps clear things up.
-- Don -
How to get the count of repeating elements in a xml doc.
In many xml documents, in is common to have repeating child elements and what I would like to know is how do I determine exactly how many of these child elements exist in a particular document. There is probably a correct XPath string to determine this, but I cannot figure out what it is. Here is an example
<a>
<b>
<c>1</c>
<c>5</c>
<c>22</c>
</b>
</a>
The above 'c' element is what varies in number from document to document and I need to know how to get the number of 'c' elements for the document, which would be 3 in the above case.create table test_xml(data xmltype)
insert into test_xml values(
xmltype('<a>
<b>
<c>1</c>
<c>5</c>
<c>22</c>
</b>
</a>')
select extract(data, '/a/b/c').getclobval() from test_xml
select count(*) from test_xml
where existsnode(data, '/a/b/c')=1
good luck. -
How to get meta data of business objects in BOR
i need to get all the meta data information of business objects present in BOR.
for example purchase order BUS2012
1. I need to get for example the attributes information how to get it?
2. if business object contains further child business objects then how to get attributes of those child business objects also?
I am writing ABAP code, i want to retrieve all attributes with help of ABAP program .
any ideas?Hi..
You have to use SWC_GET_ELEMENT CONTAINER '( string name of your attribute)' your_attribute.
All attributes are part of container issue.. SWC_GET_ELEMENT command can give you these values.
Hope to help... -
How to get class name of a object in run time, from its accessible context.
Hi,
I need to get the class name of a java object in run-time, given the AccessibleContext of that object.
I gone through the AccessibleContext api documentation. but there is not way to get the class name for a java object using its AccessibleContext object.
Do any one have any idea how to get the class name of an java object, given its accessible object Accessible.
Thanks
Timberlake816311 wrote:
Please try to provide a solution for my requirement and avoid evaluating a requirement.
I am a curious guyit's great to be curious. however, in this situation, the requirement makes no sense in the given context. so, in an effort to be helpful, the people on this forum are asking you the reason behind the requirement. the reason we do this is because we have experience answering questions on this forum and, more often than not, requirements which don't make sense are the result of misunderstandings or confusion on the part of the person making the requirement. if we can figure out why you want to do what you want to do, we may be able to point you in a direction which makes more sense.
Maybe you are looking for
-
Hi experts I am usisng SRM 7.0, ECS and I have a EBP-SUS where I sent purhase orders to vendors, and it sends PO rensponse, all is working and the Po resposnse is created my problem is I want to use the worhflow WS14500001 to auto tranfer PO response
-
Xorg 1.6.3.901 input not working
I recently had to reinstall Arch on my laptop after a hard drive crash. I had a working X11 setup with XDM and ratpoison, though I'm not sure which version of X I had and I have no way of checking that. Trying to get 1.6.3 working in my new install h
-
Hi, In TCode F110 in the ACH payment, DME administration display, the US Tax number given in the Global Parameters is preceeded by a '1'. There is a requirement to change the same. Is there any possiblities? Thanks & Regards, Vallamuthu.M
-
Consecutive Numbering in New Documetns (Action)
Hi all, About two years ago I posted this query regarding a possible bug in Photoshop 4. As much as christoph pfaffenbich tried extremely hard to help me, he was unable to provide a solution. UNFORTUNATELY, the problem still exists in Photoshop CS
-
Managing deployment pools is a hassle. Any tips? (and feature suggestions)
Hi, we currently have 20 device licenses for Adobe Creative Cloud. I manage the installation of CC and the license assignment. Our desktop computers are managed by a different department. Occasionally a computer will get repurposed and an employe