User Objects in SAP Universe

Hi ,
How i create user objects in BO SAP OLAP Universe.
for Example i have date field with like 12/02/2008.
now i want 2 fields like 2008 and Feb ..
i am getting error in report level when iam trying create one object with date format
thnx in advance

Hi Reddeppa,
                      As per my understanding what you had intended is that you have a Date Feild
11/02/2008
and you need to seperate this ..if it is so
you can use substr(date,1,4) in the report level.
so you can get 2 feilds one is the year and month.
Is this the one that you need.Let me know if i am clear to you.
Regards
Prashant

Similar Messages

  • BAPI-VB, Unable to call method GetDetail of USER Object using SAP.BAPI.1

    Hi,
    I am trying to call SAP Methods using Excel VBA.
    In the below example, I am trying to get the user details.
    I can solve this, if I use SAP.Functions object, but not when I use SAP.BAPI.1 object.
    The Procedure GetUserDetails() works fine, but the 2nd one GetUserDetails2() fails?
    Can you tell what is the difference in calling SAP method with SAP.Functions and SAP.BAPI.1 ?
    Also how can I run the program GetDetails2() using SAP.BAPI.1
    Const CNT_STR_USR As String = "XXXXX"
    Const CNT_STR_PWD As String = "XXXXX"
    Const CNT_STR_APPLN_SRVR As String = "ides47"
    Const CNT_STR_SYSTEM As String = "IDS"
    Const CNT_STR_SYS_NUM As String = "00"
    Const CNT_STR_CLIENT As String = "800"
    Const CNT_STR_LOGON_LANG As String = "EN"
    Const CNT_STR_LOG_FILE As String = "C:sap_vb.txt"
    Const CNT_INT_LOG_LEVEL As Integer = 9
    'Works Fine
    Public Sub GetUserDetails()
    'Using SAP Functions
    Dim obSAPFn As Object
    Dim obFuncUsrDtl As Object
    Dim obFuncRtrn As Object
    Dim obFuncLogDtl As Object
    Dim sRetStatus As String * 1, sErrText As String, sUsrGroup As String * 12
    Dim iRetRowCount As Integer, iLoop As Integer
    Dim bErrFlag As Boolean
    'Set obSAPFn = New SAPFunctions
    Set obSAPFn = CreateObject("SAP.Functions")
    obSAPFn.Connection.ApplicationServer = CNT_STR_APPLN_SRVR
    obSAPFn.Connection.SystemNumber = CNT_STR_SYS_NUM
    obSAPFn.Connection.User = CNT_STR_USR
    obSAPFn.Connection.Password = CNT_STR_PWD
    obSAPFn.Connection.Language = CNT_STR_LOGON_LANG
    obSAPFn.Connection.Client = CNT_STR_CLIENT
    obSAPFn.LogLevel = CNT_INT_LOG_LEVEL
    obSAPFn.LogFileName = CNT_STR_LOG_FILE
    'Check For Connection
    If obSAPFn.Connection.Logon(0, True) = False Then
        MsgBox "R/3 connection failed"
    Exit Sub
    Else
        If obSAPFn.Connection.IsConnected Then
    '    MsgBox "Connected"
        Else
        MsgBox "Not COnnected"
        Exit Sub
        End If
    End If
    'Get User Details.
    Set obFuncUsrDtl = obSAPFn.Add("BAPI_USER_GET_DETAIL")
    obFuncUsrDtl.Exports("USERNAME") = CNT_STR_USR
    obFuncUsrDtl.Call
    Set obFuncRtrn = obFuncUsrDtl.Tables("RETURN")
    iRetRowCount = obFuncRtrn.RowCount
    bErrFlag = False
    For iLoop = 1 To iRetRowCount
        If obFuncRtrn(iLoop, "TYPE") = "E" Then
    '        ErrorUsuario = True
            sErrText = "E" & obFuncRtrn(iLoop, "ID") & obFuncRtrn(iLoop, "NUMBER") & _
                         " " & obFuncRtrn(iLoop, "MESSAGE")
            MsgBox sErrText
            bErrFlag = True
            Exit For
        End If
    Next
    If bErrFlag = False Then
    Set obFuncLogDtl = obFuncUsrDtl.Imports("LOGONDATA")
    sUsrGroup = obFuncLogDtl("CLASS")
    MsgBox sUsrGroup
    End If
    Set obFuncRtrn = Nothing
    Set obFuncLogDtl = Nothing
    Set obFuncUsrDtl = Nothing
    obSAPFn.Connection.LogOff
    Set obSAPFn = Nothing
    End Sub
    ' Does not work
    Public Sub GetUserDetails2()
    'Using BAPI Object
    Dim obSapBAPICtrl As Object 'BAPI control object
    'Dim obSAPConn As Object 'Connection object
    Dim obSAPUSER As Object ' To Get Details of USER Object
    Dim obLogondata As Object, obDefaults As Object, obAddress As Object, obCompany As Object
    Dim obSnc As Object, obParameter As Object, obProfiles As Object, obActivitygroups As Object
    Dim obReturn As Object, obAddComrem As Object, obAddRml As Object, obAddPag As Object
    Dim obAddUri As Object, obAddSsf As Object, obAddPrt As Object, obAddRfc As Object
    Dim obAddX400 As Object, obAddSmtp As Object, obAddTlx As Object, obAddTtx As Object
    Dim obAddTel As Object, obAddFax As Object, obParameter1 As Object
    Dim sRetStatus As String * 1, sTransId As String, sUsrGroup As String
    Dim iRetRowCount As Integer, iLoop As Integer
    Set obSapBAPICtrl = CreateObject("SAP.BAPI.1")
    obSapBAPICtrl.Connection.ApplicationServer = CNT_STR_APPLN_SRVR
    obSapBAPICtrl.Connection.SystemNumber = CNT_STR_SYS_NUM
    obSapBAPICtrl.Connection.User = CNT_STR_USR
    obSapBAPICtrl.Connection.Password = CNT_STR_PWD
    obSapBAPICtrl.Connection.Language = CNT_STR_LOGON_LANG
    obSapBAPICtrl.Connection.Client = CNT_STR_CLIENT
    obSapBAPICtrl.LogLevel = CNT_INT_LOG_LEVEL
    obSapBAPICtrl.LogFileName = CNT_STR_LOG_FILE
    'Don't show the logon details
    'Connect to SAP
    If obSapBAPICtrl.Connection.Logon(0, True) = False Then
        MsgBox "R/3 connection failed"
        Exit Sub
    Else
        If obSapBAPICtrl.Connection.IsConnected Then
    '    MsgBox "Connected"
        Else
        MsgBox "Not COnnected"
        Exit Sub
        End If
    End If
    ‘Could not find a way to pass the User Id?
    ‘ Is this the right way to pass the user Id for this Object?
    Set obSAPUSER = obSapBAPICtrl.GetSAPObject("USER", CNT_STR_USR)
    Set obLogondata = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Logondata")
    Set obDefaults = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Defaults")
    Set obAddress = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Address")
    Set obCompany = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Company")
    Set obSnc = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Snc")
    Set obParameter = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Parameter")
    Set obProfiles = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Profiles")
    Set obActivitygroups = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Activitygroups")
    Set obReturn = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Return")
    Set obAddComrem = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddComrem")
    Set obAddRml = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddRml")
    Set obAddPag = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddPag")
    Set obAddUri = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddUri")
    Set obAddSsf = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddSsf")
    Set obAddPrt = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddPrt")
    Set obAddRfc = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddRfc")
    Set obAddX400 = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddX400")
    Set obAddSmtp = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddSmtp")
    Set obAddTlx = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTlx")
    Set obAddTtx = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTtx")
    Set obAddTel = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTel")
    Set obAddFax = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddFax")
    Set obParameter1 = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Parameter1")
    sTransId = obSapBAPICtrl.CreateTransactionID()
    'obSapBAPICtrl.TransactionId = sTransId
    obSAPUSER.GetDetail Logondata:=obLogondata, Defaults:=obDefaults, Address:=obAddress, _
    Company:=obCompany, Snc:=obSnc, Parameter:=obParameter, Profiles:=obProfiles, _
    Activitygroups:=obActivitygroups, Return:=obReturn, AddComrem:=obAddComrem, _
    AddRml:=obAddRml, AddPag:=obAddPag, AddUri:=obAddUri, AddSsf:=obAddSsf, _
    AddPrt:=obAddPrt, AddRfc:=obAddRfc, AddX400:=obAddX400, AddSmtp:=obAddSmtp, _
    AddTlx:=obAddTlx, AddTtx:=obAddTtx, AddTel:=obAddTel, AddFax:=obAddFax, _
    Parameter1:=obParameter
    iRetRowCount = obReturn.RowCount
    If iRetRowCount > 0 Then
        For iLoop = 0 To iRetRowCount
            sRetStatus = obReturn(iLoop, "TYPE")
            If sRetStatus = "S" Then
            sUsrGroup = obLogondata("CLASS")
            MsgBox sUsrGroup
            End If
        Next
    End If
    Set obSAPUSER = Nothing
    obSapBAPICtrl.Connection.LogOff
    'Set obSAPConn = Nothing
    Set obSapBAPICtrl = Nothing
    End Sub
    Regards,
    Vikas

    The problem was occuring because, the structure Return was not holding any values.
    But the other tables which returned values were getting populated.
    Regards,
    Vikas

  • Resources for customizing SAP Universe objects with MDX

    Hello,
    Are there any recommended documents out there that provide a comprehensive resource regarding MDX syntax?  We are customizing objects in our SAP Universe using MDX, however the "customizing" chapter in the pdf..."Using SAP BW in Universe Designer" is not that thorough.
    Any recommendations?
    Thanks.
    Kevin

    Ingo...here is an example from one of my team members....
    We are able to create simple calculated measures such as:
    <EXPRESSION>(@SELECT(path\ObjectA)) + (@SELECT(path\ObjectB))</EXPRESSION>
    <EXPRESSION>(@SELECT(path\ObjectA)) - (@SELECT(path\ObjectB))</EXPRESSION>
    <EXPRESSION>(@SELECT(path\ObjectA)) * (@SELECT(path\ObjectB))</EXPRESSION>
    <EXPRESSION>(@SELECT(path\ObjectA)) / (@SELECT(path\ObjectB))</EXPRESSION>
    No problem.  Anything more complex than that does not work, e.g.
    <EXPRESSION>Sum(YTD(), @SELECT(path\ObjectA))</EXPRESSION>
    or even
    <EXPRESSION>Sum(@SELECT(path\ObjectA))</EXPRESSION>
    gets me an error when I try to include it in a Webi report at query execution time. It gives me an error:
    A database error occurred.  The database error text is: the MDX query ... failed to execute with error Unknown error. (WIS 10901)
    Ideally, I would like to get something like <EXPRESSION>IFF(period = this period, amount, 0)</EXPRESSION> to work.  Without this kind of control, either the number of BEx queries, BO connections and universes that will be required will grow to an unmanageable number or Webi reports will become very complex with all kinds of formulas and will not be be suitable for any end user modification.  I think that resolving this is critical to having further success with BO implementations on top of EDW.
    I am not sure if there is some patch level in EDW that is required or if I should be including some kind of specific date or time characteristic in my queries for this to work.  Any help is greatly appreciated.

  • Business object for user master in SAP

    Is there a standard business object for User Master in SAP?
    Somehow I just could not find it.
    Thanks.

    Hi Jeff,
    I think the BOR - USER should do your purpose.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Business Object and SAP Integration

    All,
    We've BOJ Data Services XI installed.
    Would like to integrate with SAP, does anyone know how or have good information about Business Object and SAP Integration?
    Please adivce.

    Hi Lynn,
    If you need to have Business Objects and SAP work together in conjunction you need to have the Business Objects Integration Kit for SAP. Integration Kit provides the database drivers and other features for reporting off SAP.
    Link to download the useru2019s Guide:
    -     Please go to Http://help.sap.com
    - Click on Business Objects tab
    - Select the product as Integration Kit for SAP
    User guide: Business Objects Integration Kit for SAP Useru2019s Guide.
    I hope that helps you.
    Regards,
    Prashant

  • System Copy -- database PRR conains user object belongs to system user dbo

    Hi all,
    I am having an issue while performing the system copy for the sql server.
    Actions taken so far.
    1.Detached the database.
    2.Installed central instance in the target system .
    3.Attached the database using attach as option.
    4.Then used STM coll for the conversion.
    5.Bought sap in Up condition.
    Before detaching the database made export for java addin abap in source system
    Then I am trying to import the java add in abap using sapinst(system copy option)..In the half of the way i am getting the below message as ..
    DATABASE QAS containus user object belongs to system user dbo.
    I have performed the 551915 , 151603 but the still the same message is dispalying.
    In log files.  inserting
    TRACE [iaxxejsexp.cpp:208]
    EJS_Installer::writeTraceToLogBook()
    - Database XIA contains user objects belonging to system user dbo
    TRACE [iaxxbjsmod.cpp:301]
    CJSlibModule::showMessageBox_impl()
    <html> <head></head> <body> <b>Problems were found after checking configuration of database server b><br>- Database XIA contains user objects belonging to system user dbo<br><br>SOLUTION: Fix these problems to continue the installation. </body> </html>
    TRACE [iaxxgenimp.cpp:845]
    showDialog()
    waiting for an answer from gui
    TRACE [iaxxdlghnd.cpp:180]
    CDialogHandler::doHandleDoc()
    ACTION_OK received
    ERROR 2009-01-09 12:52:31 [iaxxinscbk.cpp:289]
    abortInstallation
    MDB-05919 Errors were found when checking connection to or configuration of database server (listed above in the log file).
    TRACE [iaxxejsbas.hpp:270]
    EJS_Base::dispatchFunctionCall()
    JS Callback has thrown std::ESAPinstException: ESAPinstException: error text undefined
    TRACE [syxxcfsmgt.cpp:430]
    CSyFileSystemMgtImpl::getFile(iastring,bool)
    lib=iamodmssql module=CIaNtMssDmo
    WARNING: THE FUNCTIONALITY YOU ARE USING IS DEPRECATED: getFile(const iastring & sFullName, bool bCaseSensitive) const. Use getFile(const PSyFSPath &) const instead.
    TRACE [syxxcfsmgt.cpp:195]
    CSyFileSystemMgtImpl::getNode(iastring,bool)
    lib=iamodmssql module=CIaNtMssDmo
    WARNING: THE FUNCTIONALITY YOU ARE USING IS DEPRECATED: getNode(const iastring & sFullName, bool bCaseSensitive) const. Use getNode(const PSyFSPath &) const instead.
    TRACE [syxxcfsmgt.cpp:921]
    CSyFileSystemMgtImpl::isExisting(iastring,bool)
    lib=iamodmssql module=CIaNtMssDmo
    WARNING: THE FUNCTIONALITY YOU ARE USING IS DEPRECATED: CSyFileSystemMgtImpl::isExisting(const iastring & , bool , ISyNode::eNodeType ) const. Use CSyFileSystemMgtImpl::isExisting(const CSyPath & , ISyNode::eNodeType ) const instead.
    WARNING 2009-01-09 12:52:31 [iaxxccntrl.cpp:477]
    CController::stepExecuted()
    The step dSetActionUnattended with step key J2EE_EngineEnterprise_Addin_OneHost|ind|ind|ind|WebAS|630|0|J2EE_EngineEnterpriseDialogs|ind|ind|ind|WebAS|630|0|J2EE_Engine|ind|ind|ind|J2EE_Engine|630|0|MssJ2eeDBSetup|ind|ind|ind|ind|ind|0|MssDatabaseInfo|ind|ind|ind|ind|ind|0|dSetActionUnattended was executed with status ERROR.
    TRACE [iaxxcsihlp.hpp:301]
    main()
    An error occurred during the installation of component SAP NetWeaver '04 SR1> SAP System Installation> Java Add-In for ABAP> MS SQL Server> Central / Distributed System> Java System Finalization. Press the log view button to get extended error information or press OK to terminate the installation. Log files are written to SAP NetWeaver '04 SR1> SAP System Installation> Java Add-In for ABAP> MS SQL Server> Central / Distributed System> Java System Finalization.
    TRACE [iaxxgenimp.cpp:845]
    showDialog()
    waiting for an answer from gui
    TRACE [iaxxdlghnd.cpp:180]
    CDialogHandler::doHandleDoc()
    ACTION_OK received
    WARNING 2009-01-09 12:52:33 [iaxxcsihlp.hpp:250]
    main()
    An error occurred during the installation.
    Regadrs
    Vijay

    Hi,
    what do you get executing this statement:
    use <SID>
    go
    select * from sys.objects where schema_id =
    (select schema_id from sys.schemas where name = 'dbo')
    go
    Sven

  • I am loging in SAP. Initial screen come where it display User Menu and Sap

    Dear All,
    When i am loging in SAP. Initial screen come where it display User Menu and Sap Menu, but User menu is in active not showing but T code are executing then what object i have missed.
    can u help me?
    Thanks,
    Regards,
    Sachin

    Hi Sachin,
    It doesn't care if you're using SAP_ALL or any of those profile. That is not relevant. I had that case a few days ago, I'm not using any of those profiles and I made it work with help of one post.
    If you put the transactions in the tab "Menu" of the role in the PFCG, and if you activate parameters I mentioned in a prior post, then you should see the Menu.
    Tables SSM_CUST and USERS_SSM. The first is global and the other is user-especific.
    The link in one of the first post of this thread hace all the info.
    That should work, that worked in my case.
    What values the parameters have on those tables? The more the info the better.
    Updating the parameters on those tables should help. If still doesn't work then you should check another parameter using transaction RZ10 or report RSPARAM.
    If my info solves your problem, points are appreciated, if not, we will try...
    Jose

  • User migration vom SAP DB to LDAP: Problem when userId not equal to logonId

    Hello
    I have to write a migration tool which migrates the users stored in the SAP DB to LDAP. Thereby the logon ID of the users in the SAP DB is not equal to the user ID.
    The migration works fine and in SAP Identity Management (IDM) everything is ok.
    But when I try to log onto the portal with a migrated user, the portal tells me that no portal role is assigned to the user. But the IDM shows clearly that the portal role is assigned to the user.
    Investigation showed that when I create in the LDAP a user with the same logon ID and user ID, the log onto the portal works ok. As soon the logon ID differs from the user ID, the portal does not find the assigned portal role anymore, although in IDM everything works.
    How can I solve this problem? It is important that the logon ID and the user ID are different as otherwise all the stored data has wrong references.
    Greetings
    Rolf
    Edited by: Rolf Grüninger on Jul 19, 2011 6:08 PM

    Problem solved:
    The naming attribute of the user account has to be set to the same attribute as the one of the user object and not to the user logon ID.

  • How many ways we can create authorization for user groups in sap query reports

    Hi Gurus, I am getting a problem when I am assigning users to user group in sap query report .The users other than created in user groups are also able to add &change  the users .So please suggest me how to restrict users outside of the user group.
    Please send me if u have any suggestions and useful threads.
    Thank You,
    Suneel Kumar.

    I don't think it can be done. According to the link below 'Users who have authorization for the authorization object S_QUERY with both the values Change and Maintain, can access all queries of all user groups without being explicitly entered in each user group.'
    http://help.sap.com/saphelp_46c/helpdata/en/d2/cb3f89455611d189710000e8322d00/content.htm
    Although I think you can add code to your infoset and maybe restrict according to authority group, i.e.:
    Use AUTHORITY-CHECK to restrict access to the database based on user.
    Press F1 on AUTHORITY-CHECK to find out how to use it in the code

  • Report for users permission to see universes

    Hi,
    I would like to create a report in the BO that shows for each user which universes he has permission to see.
    Which universe contains information about user authorization to see universes?
    Or how can I find this type of data?
    Thanks,
    Shiran

    This info is not available in universe, you have to use SDK to get the result.
    You can find the sdk from here,
    http://www.sdn.sap.com/irj/boc/sdklibrary

  • Creating objects in BO universe designer

    Hi All,
    I have designed a universe on the top of BEx Query. I want to create additional objects at Universe Level.
    I am able to create objects in the Universe and they gets parsed, but when I pulled the same objects in the report query it generates a MDX error.
    Even a simple <Expression> @select(Key Figures\Actual) </Expression>is not working
    Please provide me some pointers for creating the objects.

    Hi Didier,
    I am creating objects in OLAP universe only.
    I am using BO XI 3.1 with SAP Integration Kit installed on my system.
    I am not able write any expression in the objects being created at universe level. Any expression, I write gives me the error while running the query while the object gets parsed at universe level.
    for @Select() I am using the same as you write?
    One more doubt what shuould be parameters of @Select()?
    Technical Definition (Generated in the select clause) or Display Name (Class name\object Name)
    If I am writing the definition as @Select([Measures].[000054728]) Then the object defition gets parsed but if I am writing it as @Select(Key Figures\Actual) then the object doesn't get parsed in the universe.
    I guess I have read somewhere that we can use "@Select(Key Figures\Actual)' while writing the expressions. Please correct if I am wrong.
    Regards,
    Rohit

  • Error "The Query Returned no Objects" while exporting Universe in UDT?

    Hi,
    I have created a Universe on top of BEx Query using UDT in SAP BO 4.1 and tried to Export the Universe to Repository the following error is appearing.
    "The Query Returned no Objects" so "The Universe couldn't be exported".
    Could you please suggest me what could be the issue and how to resolve this.
    Thanks & Regards,
    Ramana,
    +91 8008665199.

    What version of Oracle 9i are you using? Do you have a standard 'NLS_LANG' environment variable set on client's machines? Or do you set it to different values on different machines?
    Here is one of way you could get around it.
    Could you specify the export parameter 'STATISTICS=NONE' while exporting the table data?
    Try this and see.
    If this is successful, you could use the import utility as usual. You could always compute or estimate statistics on the table after import.

  • Optimum approach to architect BI solution in Business Object and SAP BI

    Hi Expects , I as long as my experience going in delivering BI solution in Business Object and SAP BI We have option to connect to SAP BI via Building BO Universe on SAP BI cube or BEX Query . Now take a example we have 1000s of BEX queries in production. So Should I architect the solution recommending creation of 1000s of BO Universe. Which I donu2019t feel fusible option. You may reply me back saying create BO Universe on SAP BI Cube/Multiprovider, which will reduce no of universe to be created . But at the same time couple of questions comes in my mind u20131. Will I be able to leverage SAP BIA (SAP Business Intelligence Accelerator) to get best performance . 2. As of now BIA dose not accelerate queries build on Multiprovider ??? I believe When I Build Universe on BEX Query It will leverage BIA , But Not sure what will happen if I build BO Universe on Cube. Can we collectedly arrive at Optimum approach to architect Bi solution in Business Object and SAP BI ?? Comments are welcomed Regards Ashutosh D

    Ashuthosh...
    You might want to have a look at Pioneer for another option for your architecture.
    https://www.sdn.sap.com/irj/scn/subscriptions/content?rid=/media/uuid/905d0ad2-9060-2b10-73bc-ce42a5668c6e
    Arun

  • Problem with User Objects in Portal.

    Hi Gurus,
                           I am trying to get User Objects and do some operations  like retrieve User information etc through a Plain Java Class.
    1] Jar files that I am using are - sapj2eeclient.jar
                                                  com.sap.security.api.jar
                                                  logging.jar
    this is the code that I am using.
    Properties props = new Properties();
            try{
            props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
            props.put(Context.PROVIDER_URL, "iiop://localhost:50007");
            props.put(Context.SECURITY_PRINCIPAL, "administrator");
            props.put(Context.SECURITY_CREDENTIALS, "somil007");
            props.put(Context.URL_PKG_PREFIXES, "com.sap.engine.services");
             InitialContext ctx = new InitialContext(props);
    String uid = "USER.PRIVATE_DATASOURCE.un:dhorions";
    try {
    if(UMFactory.isInitialized()){
    UMFactory umf = UMFactory.getInstance();
    IUserFactory userFactory = UMFactory.getUserFactory();
    IUser user  = userFactory.getUser(uid);
    String username = user.getDisplayName();
    String email = user.getEmail();
    System.out.println(username);
    System.out.println(email);
    else {
    System.out.println("Not Initialized");
    catch (UMException e) {
    String exmsg = null;
    if(e.getNestedException()!= null)
    exmsg = e.getNestedException().getLocalizedMessage();
    else
    exmsg = e.getLocalizedMessage();
    System.out.println("UME EXception:" +exmsg);
    e.printStackTrace();
    catch(javax.naming.NamingException e) {
         e.printStackTrace();
    Now when I run  this code I check "if UMFactory.isInitialized()" do operation else Print "some message" and I end up getting the message in  "Not Initialized".
    Can anyone help me with this ?
    Thanks in Advance
    Somil

    Hi,
    There is no need to create any Java file or program to get these simple information. All you have to do is that you have to add the seurity API in your WD application by righclicking on WD project --> properties --> java buld path --> add external jars --> com.sap.security.api
    Please make a search on com.sap.security.api in help.sap.com and SDN. You will get lot of information. This will resolve the issue.
    Cheers
    Gary

  • Missing property mailboxsize at user-object

    There is no chance to get information about the mailboxsize at the user-object.
    I found following information at the gwadmenu.pdf:
    MailboxSize R/O Long
    -GroupWise 8.0 and later versions.
    I'm using GW Version 8.02 (Server and Client-Version). But there is no mailboxsize!?
    Thanks for your help
    Peter

    We are encountering a similar error when attempting to view BOE XI 3.1 iViews from the Federated (consumer) portal. The same iViews will work from the producer portal. Also, our old Crystal iViews pointed to our XI R2 systems still work from the Federated portal. Here is the error:
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException:
    Exception in SAP Application Integrator occured: Missing Property
    &\#39;ClassName&\#39; in property file for
    layer&\#39;BusinessObjects/SSOLayer&\#39;.
    We tried the J2EE restart. We also tried importing the new template/par file directly to the federated portal but the iViews still will not work.
    Any suggestions?
    Thanks,
    --Brent

Maybe you are looking for

  • Tell if CS5 or CS5.5 at a glance?

    Is there a way to know if an After Effects Project File is CS5 or CS5.5 at a glance? I mean by just clicking on the info or something? (Running a Mac). I have 5.5 and I down save them to 5 to send them to people and I was wondering if there was a fas

  • Black Screen in Mavericks with latest update (11.2.2 iTunes)

    I've had problems that were never fully resolved regarding waking my iMac from a sleep state. I would be able to hit the volume up and down buttons on my keyboard, hear the tones when the volume was changed, but the screen would remain black no matte

  • Aggregate one-to-many relationship problem

    Hello, After migrating from Toplink 9i I've stumbled across a problem with our aggregate objects. Toplink Workbench reports no errors and generates a nice XML but in runtime I get this error whenever a aggregate function is used. [TopLink fin]: 2008.

  • Mass Upload Of Sales Orders

    Hi all, Is there any tool/technique in SAP with the help of which I can upload mass sales orders in the SAP system? Each order contains a minimum of 10 line items. Regards, Allabaqsh G. Patil

  • Safari / Internet appears to be freezing whole notebook.

    Hello for some reason, today when i turned on my macbook it took a little longer on the spining circle. I went to open safari. It loaded, but no pages did and i got the spinning beachball. This then caused the whole system to freeze and i couldnt do