How to get the details inside base domain name?

I need to extract the details inside the base DN like ou="" ,cn="" and so on..
Somebody please help me in getting the details inside the base domain name. I could able to get the attribute names and values for the domain name...
Anyone please help me?
Thanks in advance...
Edited by: Preethi_Engineer on Aug 3, 2010 9:54 PM

Hi Vipin,
This code snipet show that how to find the login user to the portal
public void LoginUser( )
    //@@begin LoginUser()
     String LogonID;
       try{
          // create an user object from the current user
          IWDClientUser wdUser=WDClientUser.getCurrentUser();
          IUser user=wdUser.getSAPUser();
          //LogonID=user.getUniqueName();
          wdComponentAPI.getMessageManager().reportSuccess(user.getFirstName()" "user.getLastName().toUpperCase());
          //wdComponentAPI.getMessageManager().reportSuccess(LogonID.toUpperCase());
          wdComponentAPI.getMessageManager().reportSuccess("Logon User ID : "+wdUser.getClientUserID().toUpperCase());
       }catch(Exception e){
          e.printStackTrace();
    //@@end
Note:  You also need to add"com.sap.security.2.0.0" jar file into your java build path liberary.
Thanks
Anup
Edited by: Anup Bharti on Oct 13, 2008 2:18 PM
Edited by: Anup Bharti on Oct 13, 2008 2:29 PM

Similar Messages

  • How to get the detailed version of ORACLE?

    hi,
    the version of Oracle Enterprise Version is 9.2.0.2.0, recently I patched it to 9.2.0.6.0, and wanted to get the detailed version by using MetaData in OCCI, but what I got is still 9.2.0.2.0. how can I get the "9.2.0.6.0"?
    thanks for your help!
    scripts:
    Environment env = Environment::createEnvironment(Environment::OBJECT);
    Connection conn = env->createConnection("billing", "billing", "boss");
    MetaData meta = conn->getMetaData("testdb", MetaData::PTYPE_DATABASE);
    db_ver = meta.getString(MetaData::ATTR_VERSION);
    cout << "database version: " << db_ver << endl;
    sap

    I just patched client-side, not server-size. so I guess the returned value from MetaData::getString(MetaData::ATTR_VERSION) represents the server's version.

  • How to get the Details Regarding the tcode like used by  and used in .

    Hi all,
    My requirement is if i give the Z* Tcode in the selection screen I should get the details like program Name and Creator Name and created on and last Changed by and used by and used in Related Data.
    Somehow i managed to get all the data except for two fields used by and used in .Please let mke know is there any Function Module to fetch the used by(User Name ) and used in data or any table where this data is saved.
    Thanks in Advance.
    Regards,
    Naveen

    Hi Naveen,
    What are you exactly looking for in "used by" (if it's who launched the transaction lastly -> performance statistics, transaction ST03N, search forum how to read it) and "used in" (programs in which the transaction is statically defined in CALL TRANSACTION, and other statements -> CROSS table)?
    BR
    Sandra

  • How to get the details of the readings in counter tab in crm order

    Hi experts,
    I have the following requirement.
    I am creating service order thru crmd_order.In Transaction data tab - > in counter tab-> i have readings. These belong to the readings of the vehicle. I want to read these details. I am not able get the way.
    Pl suggest me how can i get the details of the readings in counter tab of the transactional data of a crm service order.
    Thanks,
    mallik

    Hi experts,
    Even I am facing the same issue
    Kindly provide some inputs
    Thanks,
    Surjeet Bhati

  • How to get the details of Calc. Formula

    Hi,
    Please let me know where can I check the detailed formula which is defined for subtotals(ex. Net value, list price etc.) in the pricing procedure that means how get the details of Calculation Formula which is maintained for price condition in the pricin procedure in CRM and ECC.
    Please do needful
    Thanks and Regards,
    Venkat

    Hi Venkat,
    the source of a calculation formula in ECC can be reviewed either by transaction VOFM or by using the F4 help for the calculation formula in the pricing procedure definition (source code button).
    As the formulas in CRM are implemented in JAVA and deployed on the VMC the source code is not available. Nevertheless the note 809820 and the attached guide provide some details. Nevertheless the VMC mini debugger provides some possibility to review the JAVA source code (see SAP note 1114609, transaction VMCJDB, double-click on dbsources and double click the JAVA source you like to review.
    Best Regards,
    Michael

  • SSAS : How to get the details of a mesure by script

    Hi,
    I have 5 cubes in my DB. I have regulare mesures (count, min, max, ...) on the fact (see the botton ones in the print screen below)... but also some other calculations (see the top 3 ones in the print screen below).
    When i use this MDX script....
    SELECT [CATALOG_NAME] as [DATABASE],
        CUBE_NAME AS [CUBE],[MEASUREGROUP_NAME] AS [FOLDER],[MEASURE_CAPTION] AS [MEASURE],
            [EXPRESSION], [MEASURE_IS_VISIBLE]
    FROM $SYSTEM.MDSCHEMA_MEASURES
    WHERE CUBE_NAME  ='EPE'
     ORDER BY [MEASUREGROUP_NAME]
    I get as a result this :
    I need to get the details (expression) of 8 botton mesures ... as with the 3 top ones ...
    example : the last one is 'Somme Montant' (in english is : SUM Amount). It is a sum on the musure 'Montant' (Amount).... as : SUM(Montant)
    i want to show the real calculation  behind it with the real name (as is on the fact) of the column on with the mesure is based.
    Thank you for your help.
    Nacer CREPUQ BI Developer

    Thank you Dareen and Jerry,
    I wasn't able to make it work ...
    1. my case here do not work.
    2. i don't see how to get the column name of the mesure as it is on the fact table. with MEASURE_NAME_SQL_COLUMN_NAME it shows its name as is displayed for the use.
    ie: please show me how i can do what you sayed : you can overwrite the expressions of regular measures and list them out by script.
    Please advice.
    Thank you.
    SELECT MEASURE_AGGREGATOR, MEASURE_NAME_SQL_COLUMN_NAME, MEASURE_AGGREGATOR
        , CASE [MEASURE_AGGREGATOR]
              WHEN 1 THEN 'Sum'
              WHEN 2 THEN 'Count'
              WHEN 3 THEN 'Min'
              WHEN 4 THEN 'Max'
              WHEN 8 THEN 'Distinct Count'
              WHEN 9 THEN 'None'
              WHEN 10 THEN 'AverageOfChildren'
              WHEN 11 THEN 'FirstChild'
              WHEN 12 THEN 'LastChild'
              WHEN 13 THEN 'FirstNonEmpty'
              WHEN 14 THEN 'LastNonEmpty'
              WHEN 15 THEN 'ByAccount'
              WHEN 127 THEN 'Calculated measure'
              ELSE 'N/A'
       END AS AggregateFunction
    FROM $SYSTEM.MDSCHEMA_MEASURES
    WHERE CUBE_NAME  ='EPE'
    Nacer CREPUQ BI Developer

  • How to get the details of Transports which are yet to be imported

    Hi Experts,
    Kindly let me know how to get the Transport request details which were not yet imported.
    For example:
    We have two client in development system 300 and 400, The transports which are created in 300 and imported to 400 (in SCC1).
    I need to know the details of transport requests related to 300 which are yet be to moved to 400.
    Where can i get these details.
    Thanks,
    Narasimhan Krishna

    Narasimhan,
    Take a closer look at Yves KERVADEC's approach. The issue here is that typically SCC1 is used to move transports which have not yet been closed.  You can see the details of any transport via se01/se09/se10, whether open or closed, but my interpretation of your question is that the customer wants to know which transports have been imported into the unit test client (400) via SCC1, which transports have been brought in by the transport system (after they were closed), and which transports have not yet been sent to either the unit test or QA system (i.e. are still open).
    My guess is that you are trying to track down why things work in the unit test client and not in the QA client. That is actually a different question with a different approach, but if that's what you really want to answer, go ahead and ask that question in a separate thread and you'll get a ton of techniques.
    Back to the question you actually asked: By writing a query, you can get a list of transports which have been brought in to the unit test client via SCC1. You can also get this information from SCC1 --> Goto --> Log Display. Then click All Transport Requests and doubleclick on the client. This will give you the import log of your unit test client with date/time stamp. Analysis of that data indicates to me that perhaps you may want to look at CC0_RSCCPROT03_ALV, but I'm not an ABAPer so the previously mentioned tables are probably better.
    Anyway, once you have a list of transports which have been imported, you can subtract out the ones that have been closed and transported downstream (and back into the unit test client.. your transport path does re-import the final version of the transports into the unit test client... right?). You can get that information from another query or you can get the list from STMS as suggested by Aparajit Banik.Then you'll have a list of transports which have been imported into the unit test client via SCC1 but have not yet been released and made it downstream. This will give you a "hit list" of transports which might be causing a mismatch between your unit test and QAS clients. You would then inspect them more closely with SE09/SE10/SE01 (I prefer se01, but different folks prefer different version of the transaction).
    Again, there are better ways to deal with client mismatches, but I'm answering the question you asked in case I misunderstood the underlying subtext.
    I hope this helps!
    Best regards,
    --Tom

  • How to get the caret inside a custom editor?

    I was reading through old posts the other day and noticed this by Rob Camick in this thread Re: Problem in cell selection in JTable Java Swing :
    camickr wrote:
    All KeyEvents are passed to the editor for the cell and the editor is psuedo invoked. That is, the caret is not placed on the text field used as the editor, but the character typed is added to the editor.This set me thinking about a known issue in my app which I had shelved for a "rainy day": how to get the caret into the cell editor component. I thought I'd get it out and look at it. I tried the following, in my custom cell editor:
      public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
                                                 int row, int column)
        JTextField ec = (JTextField) editorComponent;
        ec.setText((String) value);
        if ("".equals(ec.getText()))
          ec.setCaretPosition(0);
        else
          ec.selectAll();
        return editorComponent;
      }But it has no effect whatsoever, the user still can't type something in and then press the backspace key to useful effect. Has anyone out there solved this problem? (And why, oh why, is the caret not put into the cell editor by default, if it's a component that has a caret?)

    Replying to my own post, in case what I ended up with is of some help to others. The desired behaviour was that anything the cell contained from the previous edit would be replaced by what the user types in the current edit, i.e.:
    user starts edit, types 234, stops editing, cell displays 234...user single-clicks on cell, types 567, stops editing, cell displays 567
    My code is as follows:
        public Component getTableCellEditorComponent(JTable table, Object value,
                                                     boolean isSelected, int row,
                                                     int column)
          final JTextField ec = (JTextField) editorComponent;
          ec.setText((String) value);
          // selectAll, so that whatever the user types replaces what we just put there
          ec.selectAll();
          SwingUtilities.invokeLater(new Runnable()
            public void run()
              // make the component take the keyboard focus, so the backspace key works
              ec.requestFocus();
              SwingUtilities.invokeLater(new Runnable()
                public void run()
                  // at this point the user has typed something into the cell and we
                  // want the caret to be AFTER that character, so that the next one
                  // comes in on the RHS
                  ec.setCaretPosition(ec.getText().length());
          return editorComponent;
        }

  • How to get the details of entry date in SQ00.

    Hello,
    Can anybody let me know the steps how to get the entry date in the report SQ00.Here when i am selecting entry date its coming as 00.00.00.(as zero).please let me know how to correct the steps with proper steps.

    Hi
    Apply the SAP NOTE 562031. This will rectify the error. I too faced similar problem which was then corrected when this Note was applied.
    Test it first an then let me know

  • How to get the Details when we checked with check box?

    Hi....
    I want to display all the records of perticular checked vendor_id's. n for this checking I want to display series of checkbox along with vendor_id's. could U please give me the code for this.

    actually I'm not getting the logic how to get the vendor_id's which are checked in checkbox...... infact I'm not familier with checkbox properties also.....
    i can able to display series of checkboxs along with vendor_ids . but when I clicked perticualar checkboxes which vendor_id's I wanted. how can display only these checked vendor_id's records. ???? Can U help me????

  • How to get the details of MIGO num/MIGO Doc year and Ref MIGO Doc item num

    Hi,
    Currently I am working on a requirement to post an Incoming Invoice and using the BAPI 'BAPI_INCOMINGINVOICE_CREATE' to upload the data into SAP.
    In the Input file(to be uploaded to SAP) I was not getting details like REF_DOC(Document No. of a Reference Document), REF_DOC_YEAR(Document No. of a Reference Document) and REF_DOC_IT(Item of a Reference Document) and so I need to derive these 3 fields and feed into the interface parameter 'ITEMDATA'  of the BAPI.
    If I do not give any input values to these 3 fields, BAPI was throwing a message saying that, the mandatory fields were missing in the structure 'ITEMDATA'. So I need to pass these 3 fields mandatorily.
    I have in the input fields PO Number and PO item( only from these 2 fields ) and I need to get the above fields.
    So please provide me inputs as how I can get these 3 fields from the PO number and PO item.
    Thanks for the help in advance.
    Regards,
    Vishnu.

    Hi Vishnu,
    The code mentioned by Vinod is OK, but You will also have to check whether the GR has not been cancelled. For this you need to add selection criteria of
    Fetch the latest GR date (movement type will be 101)
    select max( budat )
    into w_budat
    from    ekbe
    where ebeln = <Po number>
    and     ebelp = <po Line Item>
    and     vgabe = '1'
    and     bwart = '101'.
    Fetch the latest material document
    Select gjahr  "(Reference document year)
               belnr  "(Reference document No)
               buzei "(Reference document item)
    from    ekbe
    where ebeln = <Po number>
    and     ebelp = <po Line Item>
    and     vgabe = '1'
    and     budat = w_budat .
    Regards,
    Birendra

  • How to get the details of a LUN (Storage Logical Units) presented to an ESX host thru SCVMM 2012

    Hi,
    We are working with a UI Add-in for SCVMM 2012 where we should support both Hyper-v and ESX hosts. When added the ESX host and presented few LUNs (out of band operation) from the HP 3PAR array,
    we are unable to view the Storage details like Storage Logical unit, Storage Pool and Storage Array when we select the same LUN in the Classification and Pools section of SCVMM.
     We tried even with the PowerShell, but couldn’t help. Can you please guide us, how we can get the storage details of a LUN presented to the ESX host which is added in the SCVMM 2012.
    Thanking you.
    Regards,
    Hari

    Hi Jiannan,
    No worries, you can go to UDDI client from the main page of PI  i.e. http://<serverName>:<serverPort>/
    And you use the search function for  the TModel for your Physical System. Search parameters can use the % wildcard.
    Hit the search and you find the UDDI Key for the Physical System.
    Cheers.
    Hemant Chahal

  • How to get the details of the document uploaded at the catalog area header?

    Hi,
    Can someone explain how we can get the properties(guid class etc) of the uploaded document by using the details of the catalog area (guid)?. Do we have standard FMs available to fetch the required information?
    Please assist.
    Regards,
    Vaibhav

    got the FM

  • FavoriteFolder, how to get the content inside this folder

    Hi
    I have to get with the Java api consumer the content inside the favorite folder. How can i get it?
    i write this code:
                   String searchQuery = search://{'guaglanto1'}?SearchKeywords=true&SearchExact=true&SearchCaseSensitive=true;
                   ResponseHolder rh = boBIPlatform.get(searchQuery, null);
                   InfoObjects myFav = rh.getInfoObjects();
                   if (myFav == null || source.getInfoObjectArray().length == 0){
                     result="No terms matching the following search query could be found: " + searchQuery;
                             return result;
                   result ="";          
                   for (InfoObject infoObject: myFav.getInfoObjectArray()){
                     result= result+ infoObject.getName() + " has CUID: " + infoObject.getCUID()+ " type "+ infoObject.getKind() + " has childreen "+ infoObject.getChildrenObjects();
    Where guaglanto1 is the title of the favoriteFolder.This code show the CUID,name,kind and children of the favoriteFolder.  Now i want to navigate this folder and get its content (i see from InfoViewApp there are 5 web intelligent report inside the favorite folder) but i don't know how can i get that.
    Anyone can help me to resolve this problem?
    thank you
    best regard
    Andrea

    once you get the SI_ID or SI_CUID of the favorites folder you need to write an additional query to pull all its children using:
    select * from ci_infoobjects where si_parentcuid='<si_cuid of favorites folder>'
    If the favorites folder contains folders with subfolders, this will be a recursive call. You can use query://{select....} or path://
    Look at the BIPlatform documentation in API reference and there is more information on how to use query:// or path://

  • How to get the Sql inside Omni SQL portlet.

    Hi,
    We are trying to find a table/view which stores/holds the Sql and Pl/Sql code of Omni Pl/sql portlets.
    Thanks,
    Ram.

    by default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
    you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
    so, if it is null, it ran as sql server agent account.
    so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
    accurate information as the new account will show up though the job really ran as old account, to get this information, you need to  get this from the logmessage column as you mentioned above.
     try this code...
    /*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
    declare @sqlserveragentaccount varchar(2000)
    select @sqlserveragentaccount= service_account
    from sys.dm_server_services
    where servicename like '%sql%server%agent%'
    select message,isnull(name,@sqlserveragentaccount) as AccountName
    from sysjobhistory a inner join sysjobsteps b
    on a.step_id=b.step_id and a.job_id=b.job_id
    left outer join sysproxies c on c.proxy_id=b.proxy_id
    Hope it Helps!!

Maybe you are looking for

  • OBIEE 11g BI Publisher; New Data Set Creation Error "Failed to load SQL"

    Hi, I'm trying to create a new SQL data set (from a client machine). I use "query builder" to build the data set. But when I click "OK", it fires the error "Failed to load SQL". But strangely, if connect to the OBIEE server's desktop and create the d

  • Functunality of save view in BW report iview

    Dear all, When SAP BW Query report iview is called in portal, u will get Save view, Bookmark, variableSreen...etc buttons.. When u click on saveview button...it will ask u to save as a view of that report with specific name. My question is, where it

  • Helping can't see Output to Decklink Mini Monitor

    Hi all, Did the upgrade last night to the Newest version on Premiere Pro CC and I lost all links to my Decklink Monitor. I have unistalled and reinstalled the drivers serval times now. Prior to the update all was good. Also experiencing the same with

  • Unable to get an internet connection for CC???

    Hi there, I am wanting to provide InDesign CC to some of my customers but am having difficulties with this. Please can someone tell me how the Creative Cloud and then links within InDesign need to be configured on a business network to allow access?

  • Ignore required fileds when click on af:ShowDetilItem

    I am using jdeveloper 11.1.2 I have jsf page with two showDetailItem in each one I have <af:region> which is task flow with jsff page contain required fields I need when click on showDetailItem to take me to this component without displaying error me