API to get system objects and their propeties at EP6?
Thank you.
Hi Detlev,
Thank you very much for quick and precise reply!
I have also added a following piece of code to receive
a name-value pairs of all the system and it works.
Attributes attr = so.getAttributes();
NamingEnumeration ids = attr.getIDs();
while (ids.hasMoreElements()) {
Object nextIDObj = ids.nextElement();
String idName = nextIDObj.toString();
response.write(idName + " = " + attr.get(idName).get() + "<BR>");
Thanks again,
Yuri
P.S. Where from comes your knowledge about these APIs?
I didn't find ANY documentation about!...
Similar Messages
-
Command to provide list of all objects and their scripts from database
Hi,
How do i get the list of all objects and their scripts/source from database?
I guess using dbms_metadata package or Toad tool we can achieve the above task
But i do not know the steps to get the objects and their scripts.
Im using oracle database 11g R2 11.2.0.2
Kindly ge me the advice
Thanks in AdvanceHow do i get the list of all objects and their scripts/source from database?
I guess using dbms_metadata package or Toad tool we can achieve the above task
But i do not know the steps to get the objects and their scripts.
Im using oracle database 11g R2 11.2.0.2If you want the all the metadata of whole database, then it is quiet difficult to get from DBMS_METADATA, as it is very complex because you need to gather for each object of each schema in whole database and to spool.
http://www.orafaq.com/node/57
I want to know, what is the use of entire database metadata, Certainly need of objects of metadata.
or if you want to whole database, then i suggest you go for export full backup and import as impdp sqlfile option, -
Unable to lookup System ...check the system object and the alias
Hi,
I am working on EP6 Sp 9. I have created iviews and integrated j2ee application by appIntegartor . everything is working fine . but these iviews are working only with superadmin role . with any other role am getting the error message "Unable to lookup System 'NNNJ2ee'. Please check the system object and the alias.."
Have created a role and done appropriate user mapping. Connection Test goes through successfully and iViews work fine as expected, but just in administrator login.
i found a a thread dissucing about the same problem in this forum and followed the solution given by them(assigning eu_role to the user) .
But still it is not working for me.
can anyone please help me in finding the solution .
Thanks,
LakshmiHi,
<b>The cause is :</b>
When you create an item with the 'super admin role' user's , you don't have the role : 'eu_role' assigned.
So when you create a new item the role 'eu_role' is not spread to end user.
<b>The solution is :</b>
First add the 'eu_role' to the super admin user. For all next item created it's work fine.
For item already created,
- right click on the object, Select open permissions.
- In the display option, choose Permissions
- Search for role : 'eu_role'
- Add the permissions
- check the box 'End User'
- Save
- And test
For me it's work fine. Let me know if it's good for you...
Regards
Alain Chanemouga @ SAP -
How to get system status and user status ?
how to get system status and user status for the given production order?
In which PP table we can
find these?
Thanks&Regards
SatishHi Ram,
Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
Alternatively, the following tables store the user and system status info:
JSTO- Status object information
JEST- Individual Object Status
Hope this helps.
Let me know if u need further information.
Regards,
Sonal -
Unable to lookup System object and the alias..
Hello All,
I am implementing the Business Package for CRM.
I have created the SAP_CRM and SAP_BW systems and assigned them the same aliases as mentioned in the instructions in http://help.sap.com/saphelp_crm40/helpdata/en/11/0584016208bc4988c3791d6213b6d0/content.htm
I have tested the connections to the WAS, as well as ITS server after configuring them from the portal system administration.
However, I get the exception.
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
Unable to lookup System 'SAP_CRM'. Please check the system object and the alias..
The error in the log is as follows:
#1.5#00112FCBC32C005E000000A9000007EC000412303370C08B#1145898137593#com.sap.portal.sapapplication#sap.com/irj#com.sap.portal.sapapplication#user1#95##LABNW_J2E_19311950#user1#15374a50d3b411da8f1e00112fcbc32c#SAPEngine_Application_Thread[impl:3]_36##0#0#Error#1#/System/Server#Plain###ApplicationIntegratorException: com.sapportals.portal.appintegrator.ApplicationIntegratorException: Unable to lookup System &\#39;SAP_CRM&\#39;.
Please check the system object and the alias.com.sapportals.portal.appintegrator.ApplicationIntegratorException: Unable to lookup System &\#39;SAP_CRM&\#39;.
Please check the system object and the alias.
at com.sapportals.portal.appintegrator.layer.SingleSignOnLayer.getSystemLogonMethod(SingleSignOnLayer.java:243)
at com.sapportals.portal.appintegrator.layer.SingleSignOnLayer.processLayer(SingleSignOnLayer.java:55)
at com.sapportals.portal.appintegrator.LayerProcessor.processActionPass(LayerProcessor.java:173)
at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doOnPOMReady(AbstractIntegratorComponent.java:71)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:396)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
at com.sapportals.portal.prt.pom.PortalNode.processEventQueue(PortalNode.java:800)
Any hints recommendations for the same.
Thank You.
Sumit.Hi Sumit,
System is an object in Portal Content Directory (PCD). User of portal should have permissions to access it. Looking up is a kind of access.
Please go to System Administration -> System Configuration -> System Landscape. Find your system and right-click on it, then choose 'Permissions'. There you should make sure that your portal user has permissions.
You can read about permissions here:<a href="http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604e505fd11d7b84200047582c9f7/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604e505fd11d7b84200047582c9f7/frameset.htm</a>
There is an extract probably related to your problem:
" If an iView is based on a system object defined in your system landscape (see System Landscape), you must assign end user permission for the relevant user, group, or role to the system object, as well. End user permission assigned to a system permits the iView to retrieve data from the respective back-end application through the system object at runtime."
Regards,
Sergei
Message was edited by: Sergei Dneprov -
How to get system date and time?
Can someone show me a code on how to get system date and time.
Thanks!there is one really easy way to get system time, the api gives a great example of code on this. use gregorian calendar, which you'll find in the api under GregorianCalendar. You only need to create one instance of GC, ie Calendar time = new GregorianCalendar();
you save seconds, minute and hours into int values, so you don't have to access the system time every second, you can create a thread which adds one to the int second value, if oyu see what i mean, for example, i have saved the hours, minutes and seconds as int values;
int hour, minute, second;
i can then create a thread (Thread thread = new Thread(this) and run it like:
Calendar time;
int hour, minute, second;
Thread thread = null;
public MyTime() {
hour= time.get(Calendar.HOUR_OF_DAY);
minute = time.get(Calendar.MINUTE);
second = time.get(Calendar.SECOND);
if(thread == null) {
thread = new Thread(this);
thread.start();
public void run() {
Thread t = Thread.currentThread();
while(thread == t) {
thread.sleep(1000);
second++;
if(second > 59)
minute++;
if(minute>59)
hour++;
formatTime();
public void formatTime() {
second = (second > 59? 0 : second);
minute = (minute > 59? 0 : minute);
hour = (hour > 23? 0 : hour);
System.out.println(hour+":"+minute+":"+second);
public static void main(String[] args) {
new MyTime();
I know this looks like gibberish but it should work. If not, try to fix the problem, i have written from memory really but i guarantee you, this gets the time then every second, simply adds one to the second and then formats time. You can also access the day, month and year then format them using the above code. I don't like giving code since you should really do these things yourself but it is 2:04am, i have nothing better to do and i am not tired so i did you a favour - i have become what i always did not want to, someone ho stays upall night writing code. -
CKPT locks the system objects and blocks other sessions
CKPT locks the system objects and blocks other sessions
Oracle Version 10.2.0.4
OS : HP UX 11.31 Itanium
SQL> select * from v$lock where block=1;
ADDR KADDR SID TY ID1 ID2 LMODE
REQUEST CTIME BLOCK
C0000009FCC2B348 C0000009FCC2B368 1100 RO 65559 1 2
0 3877 1
SQL> select program from v$session where sid=1100;
PROGRAM
oracle@ctqanhr1 (CKPT)
As a workaround we flush the buffer cache with the below command
SQL> alter system flush buffer_cache;
however the issue reoccurs after some times.
Edited by: 965132 on Dec 2, 2012 9:59 PMother reference:
CKPT Questions
The temporary workaround is to set "_db_fast_obj_truncate"=FALSE in that particular case.
Regards,
sgc
Edited by: Samuel G. Cristobal on 03-dic-2012 8:48 -
Listing objects and their instance names (of closed source SWF)
I have an API for a flash player that I want to use, but it is closed source. I know I could try a decompiler but I need to see what it loads and what it's doing at runtime.
I'd like to see the objects (and all their info) that it loads and has on stage along with thier instance names. I'd like to see what this SWF has/does so I can write my AS3 code accordingly... maybe add some additional event listeners.
Is there any was to go about doing this? I know there's some AS3 commands to get this information but I dont know what they are. If you all could give me some hints at which commands would be useful that would be great."I need to see what it loads"
You can use Fiddles, Charles or Firebug to monitor traffic (what it loads).
As for the rest of your question - good luck. Although it is possible to decompile swf of course, reverse engineering is an extremely complex time consuming task. In the majority of cases it is easier and faster to replicate functionality from scratch than to try to understand SWF's logic.
Unless you know packages structure - there is no native way to figure out/access application domain. -
Animation: how can I move objects (and their transform keyframes)?
Hi,
I have created a project with a group of layers which all move (have transform keyframes set up).
Now I want to move the group, but when I do this and then run the animation, the position of all the transform keyframes I have set up remain in the same place.
Is there some way to move a group of objects and the location of their transform keyframes at the same time, or will I have to go through each keyframe and move them individually?
Thanks!
Jack> PLEASEEE HELPP
You need to get some understanding of HTML and CSS to know
why building a
web page is not like using a page layout program or even a
word processor.
Unfortunately that will require some effort on your part.
You cannot just place things on the page in HTML - you need
to build an HTML
infrastructure to hold the elements you want to appear on the
page, and to
hold them in the location where you want them to appear. As a
simple
example, consider a 1 row by 2 column table, where each
column is set to 50%
width, and the table itself is 800px wide. An image placed
into the second
column will be located exactly 400px from the left margin of
the page
(assuming a) the image is less than 400px wide, b) the table
has zero
borders, cellspacing and cellpadding, and c) there is nothing
wider than
400px in the first column.
Make sense?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"afsheenm" <[email protected]> wrote in
message
news:fftbo8$cok$[email protected]..
> hi, its my first time making the website so i have no
clue about anything.
> how
> can i move text box? i mean i wrote something and want
to move its
> position
> like up or down, how can i move it? also tables??????
sometimes i can move
> them
> , by chance but i have no clue how i did it? PLEASEEE
HELPP.
> -
API to get Work Item and Attached Information
Dearl all,
Is there any API to get the work items assigned to specific users and their attached information during runtime?
Thanks, JeromeHI Jerome,
This code will help you: API FM is " 'SO_NEW_DOCUMENT_ATT_SEND_API1'
DATA : w_name TYPE sos04-l_adr_name.
SELECT-OPTIONS :
Recipient address
s_name FOR w_name DEFAULT sy-uname NO INTERVALS.
START-OF-SELECTION.
E-mail Abap report
PERFORM f_send_mail.
Form f_send_mail
FORM f_send_mail.
Data Declaration
DATA:
l_datum(10),
ls_docdata TYPE sodocchgi1,
lt_objpack TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
lt_objhead TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_objtxt TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_objbin TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_reclist TYPE TABLE OF somlreci1 WITH HEADER LINE,
lt_listobject TYPE TABLE OF abaplist WITH HEADER LINE,
l_tab_lines TYPE i,
l_att_type LIKE soodk-objtp.
WRITE sy-datum TO l_datum.
List of Users According to Logon Date and Password Change
NOTE: Create ALI/OTF Document in Spool
MESSAGE ID 'ZWF' TYPE 'I' NUMBER '001'.
SUBMIT ZMM_MIR_RPT_FOR_WORKFLOW VIA SELECTION-SCREEN WITH valid = 'X'
WITH notvalid = space
WITH unlocked = 'X'
WITH locked = space
EXPORTING LIST TO MEMORY AND RETURN.
IF sy-subrc = 0.
ENDIF.
MESSAGE ID 'ZWF' TYPE 'I' NUMBER '000'.
Read list from memory into table
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = lt_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error in function module &1
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = lt_listobject.
ENDIF.
IF sy-subrc = 0.
endif.
Because listobject is of size RAW(1000)
and objbin is of size CHAR(255) we make this table copy
CALL FUNCTION 'TABLE_COMPRESS'
TABLES
in = lt_listobject
out = lt_objbin
EXCEPTIONS
compress_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error in function module &1
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
NOTE: Creation of attachment is finished yet.
For your report, the attachment should be placed into table
objtxt for plain text or
objbin for binary content.
Now create the message and send the document.
Create Message Body
Title and Description
ls_docdata-obj_name = 'Outstanding MIR'.
CONCATENATE 'Outstanding MI-Report sent by' sy-uname l_datum "#EC *
INTO ls_docdata-obj_descr SEPARATED BY space.
Main Text
lt_objtxt = 'Outstanding MIR Report' &
'List of Outstanding Goods Receipts under inspection 103 movement'. "#EC *
APPEND lt_objtxt.
Write Packing List (Main)
DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
READ TABLE lt_objtxt INDEX l_tab_lines.
ls_docdata-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
lt_objpack-transf_bin = 1. " If u want to CLEAR inbox evrytime
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
lt_objpack-body_num = l_tab_lines.
lt_objpack-doc_type = 'RAW'.
APPEND lt_objpack.
Create Message Attachment
Write Packing List (Attachment)
l_att_type = 'ALI'.
DESCRIBE TABLE lt_objbin LINES l_tab_lines.
READ TABLE lt_objbin INDEX l_tab_lines.
lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objbin ).
lt_objpack-transf_bin = 'X'.
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
lt_objpack-body_num = l_tab_lines.
lt_objpack-doc_type = l_att_type.
lt_objpack-obj_name = 'ATTACHMENT'.
lt_objpack-obj_descr = 'Outstanding MIR'. "#EC *
APPEND lt_objpack.
Create receiver list
LOOP AT s_name.
lt_reclist-receiver = s_name-low.
lt_reclist-rec_type = 'B'.
APPEND lt_reclist.
ENDLOOP.
Send Message
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_docdata
put_in_outbox = ''
TABLES
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc = 0.
Document sent
MESSAGE ID 'ZWF' TYPE 'S' NUMBER '002'.
ELSE.
Document <&> could not be sent
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH ls_docdata-obj_name.
ENDIF.
ENDFORM.
Thanks and Regards,
Prabhakar Dharmala -
DB table to get system status and text for PO.
Hi All,
I need the table to get system status for a production order and system status text .Please help.Hi Prem,
JEST table is for system status for a production order and TJ02T table is for system status text.
Try with these fields in the above tables.
u2022 OBJNR like JEST-OBJNR object number
u2022 STAT like JEST-STAT Object status
u2022 INACT like JEST-INACT indicator status inactive
u2022 TXT04 like TJ02T-TXT04 individual status of an object
u2022 TXT30 likeTJ02T-TXT30 object status.
Hope it helps you.
Regards,
Anusha V.
Edited by: Anusha on May 26, 2009 10:22 AM -
How to get Request object and LDAP user
Hi All,
How to get Request object, coz i want to see the out put of this code
IUser myUser = request.getUser();
String uid=myUser.getUid();
I want to get only LDAP user from the server, for that i am having code but i think this code is returning me all user from the server.
com.sap.security.api.IUser user = null;
try {
IUserFactory userFactory = UMFactory.getUserFactory();
IUserSearchFilter searchFilter = userFactory.getUserSearchFilter();
ISearchResult searchResult = userFactory.searchUsers(searchFilter);
int count = 0;
List list = new ArrayList();
while (searchResult.hasNext()) {
count++;
String uniqueid = (String) searchResult.next();
user = userFactory.getUser(uniqueid);
list.add(user.getUniqueName());
This code is giving me all user from the server LDAP and as well as portal user.
But i want only LDAP.
Please help me out. It's urgent.
Regards,
DeepakHi
use the following code
//Request
IWDRequest = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
//User
IWDClientUser = WDClientUser.getCurrentUser();
Regards
Ayyapparaj -
How to get system status and user status of service order
Hi,
I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
Regards,
Kamesh BathlaHi,
Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
Regards
Srinu -
[ASK] How to get system date and substring / concate in data manager dynami
Hello guys.
I want to run package DM with the input have default value.
The selection is look like this :
Dimension : CATEGORY
Source : PLAN_2011
Destination : FORECAST_2011
Dimension : TIME
Source : 2011.JAN,2011.FEB,2011.MAR,2011.APR,2011.MAY,2011.JUN,2011.JUL,2011.AUG,2011.SEP,2011.OCT,2011.NOV,2011.DEC
Destination : <same>
How to get system date year and do the substring / concate ?
So dimension category source will be PLAN_<YYYY>, destination = FORECAST_<YYYY>
Dimension source = <YYYY>.JAN,<YYYY>.FEB,<YYYY>.MAR,<YYYY>.APR,<YYYY>.MAY,<YYYY>.JUN,<YYYY>.JUL,<YYYY>.AUG,<YYYY>.SEP,<YYYY>.OCT,<YYYY>.NOV,<YYYY>.DEC
Depend on year system date.
Thank you.Stuart,How are you storing OnSaleDate. If you are using OnSaleDate as an attribute dimension then you can write a Custom Defined Function to either:1- query your system for the current date and return the number of seconds that have elapsed since 1/1/1970. This is by definition the begining of the Epoch and how Essbase treats Attribute Dimensions of the Date type.public static long getDateInSeconds() { Calendar cal = Calendar.getInstance(); return cal.getTime().getTime()/1000;}2- Write a Custom Defined Function that will accept the OnSaleDate and return the number of days sincepublic static double daysSince(double myDate) { return (getDateInSeconds()-myDate )/86400;}
-
How to get system time and date with PHP
Dear Mr.Craig,
Thanx a lot. We are running SRM 5.0 (RAMP - Implementation).
My initial requirement is to write a server-side script to display server date and time. Could you give more inside on how to achieve it?
Regards,
Deva.Perhaps that will help.
[code]
<html>
<h1>Access System time and date</h1>
<?
// saprfc-class-library
require_once("saprfc.php");
$sap = new saprfc(array(
"logindata"=>array(
"ASHOST"=>"localhost" // application server
,"SYSNR"=>"00" // system number
,"CLIENT"=>"000" // client
,"USER"=>"bcuser" // user
,"PASSWD"=>"minisap" // password
,"show_errors"=>false // let class printout errors
,"debug"=>false)) ; // detailed debugging information
$result=$sap->callFunction("MSS_GET_SY_DATE_TIME",
array( array("EXPORT","SAPTIME",array()),
array("EXPORT","SAPDATE",array())));
if ($sap->getStatus() == SAPRFC_OK) {
echo "Time: ".$result["SAPTIME"];
echo "<br>Date: ".$result["SAPDATE"];
echo "<br>or<br>";
echo "Server is showing: "
.substr($result["SAPDATE"], 0, 4)
."-".substr($result["SAPDATE"], 4, 2)
."-".substr($result["SAPDATE"], 6, 2)
." and "
.substr($result["SAPTIME"], 0, 2)
.":".substr($result["SAPTIME"], 2, 2)
.":".substr($result["SAPTIME"], 4, 2);
} else {
$sap->printStatus();
$sap->logoff();
?>
[/code]
Maybe you are looking for
-
I'd like to have two different L&F's in the same app. The architecture of Swing doesn't seem to allow this, but maybe I've missed a workaround. I've looked at the Multiplex stuff but it seems to address a different problem. I realize the gut reaction
-
Different Document types for Reciepts and payment-Cash Journal
Hi Gurus, Please tell me how can we make different document types for reciepts and payments in cash journal and where we need to assign it?? Please revert asap. Thank You
-
Matrix Option in Crystal Reports?
Hi I used to work with Crystal for a long time before using Microsoft Reporting Services at my next job. I have now started another job that uses Crystal Reports 2010. I am having a problem trying to do something that is very easy to do in Reporting
-
Odd error with toolbar resizing when view pushed onto navigation stack
I have a drill down application with a detail view containing a scroll view which has a number of text fields, etc, and a table view. I have added a toolbar which which appears above the keyboard (including animating in and out with the keyboard in t
-
Updating an attribute value in a custom Configuration Object
I created a custom configuration object, and have two attributes which should hold date values. One attribute will contain a null value and one attribute will contain a date value by default. Now, when i enter date values on an end user form and pres