Fetch User from eDirectory

Hi I am new in this field.
My requiremnt is fetch Object GUID(which is coming after user
provisioning with AD) and User attribute from eDirectoy with help of
JAVA code.
I have used LDAP API classe and I am able to connect to eDirectory. Now
I wnat fetch all User or User by criteria order by name or any thing.
can we have some utility or approch to do this task.
thanx in advance
kuldeepanandthakur
kuldeepanandthakur's Profile: http://forums.novell.com/member.php?userid=76635
View this thread: http://forums.novell.com/showthread.php?t=402999

You can try using some control (like server side sort)
kuldeepanandthakur;1938428 Wrote:
> Hi I am new in this field.
>
> My requiremnt is fetch Object GUID(which is coming after user
> provisioning with AD) and User attribute from eDirectoy with help of
> JAVA code.
>
> I have used LDAP API classe and I am able to connect to eDirectory. Now
> I wnat fetch all User or User by criteria order by name or any thing.
> can we have some utility or approch to do this task.
>
> thanx in advance
-WITH REGARDS,-
*-Palaniappan N-*
palaniappan1's Profile: http://forums.novell.com/member.php?userid=12325
View this thread: http://forums.novell.com/showthread.php?t=402999

Similar Messages

  • LDAP query to fetch users from Two different OU

    I am looking for an AD query to get AD enabled users from two different OU Stores & ServiceOffice under root domain.
    Using below syntax to fetch it simultaneously but not succeeding. Please help me.
    (&(objectCategory=person)(|(ou=Stores)(ou=ServiceOffice)))

    Hi Thanks for the revert. Actly i am setting this syntax in application not running powershell script to fetch users.
    So i need query in Ldap filter format only...
    i.e.
    (&(objectCategory=person)(|(OU=Stores,DC=Mumbai,DC=Users,DC=ABC,DC=com)(ou=ServiceOffice,DC=Chennai,DC=users,DC=ABC,DC=com)))
    Please correct my above query.

  • Error while fetching Users from AD Tree

    Dear Gurus,
    I am connecting my NetWeaver 7.01 GRC ABAP stack to AD for fetching the Users. I have successfully created the LDAP Server, Connector and System User and I am able to connect to the AD.
    The problem I am facing is that when I put my Base Entry as the bootom level, I am able to create users using RSLDAPSYNC_USER program but when I put the base entry as my top level DC, it gives an error "Operation Failed" with code no LDAPRC001.
    Kindly guide if I can fetch all users in a single go, using the top level base entry? Otherwise it will be very difficult for me to identifiy all low level OUs and then fetching data individually changing base entry every time.
    Hope I am able to explain my problem..
    Thanks
    Jitendra Tayal

    Check this thread it might put you in the right direction,
    Problem with LDAP connector
    Regards
    Juan

  • RFC fetching data from table which is not commited

    Hi Experts,
                   I have a query regarding commit work.Below is the RFC that i have written
    FUNCTION ZBAPI_CREATE.
    *"*"Local Interface:
    *"  TABLES
    *"      IT_ZABAP_RFC STRUCTURE  ZBAPI_RFC_STR OPTIONAL
    *"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
    CALL FUNCTION 'ZBO_BAPI_CREATE'
    TABLES
       IT_ZABAP_RFC       = IT_ZABAP_RFC
       RETURN             = return
    Break-point.
    DATA lt TYPE TABLE OF ZBAPI_RFC_STR_MAIN.
    CALL FUNCTION 'ZBAPI_SEARCH_RANGE'
    * EXPORTING
    *   IS_STR        =
    TABLES
       ET_TAB        = lt
    *   RETURN        =
    ENDFUNCTION.
    here in first RFC call i am creating a record in ZTABLE , and then at break-point
    i check the ZTABLE where it does not create any record because data is not commited into ZTABLE upto this point, but just after it i have written code for fetching data from ZTABLE but i am able to get this new record in lt.
    Can anybody please explain that from where this serach RFC is providing data because inside serach i am simply selecting data from ZTABLE.
    Regards,
    Abhishek Bajpai
    Edited by: ABHISHEK BAJPAI on Jan 28, 2009 1:12 PM

    Hi Thomas,
                     Thanks for reply , i checked in ZTABLE ,before search RFC call data is not there but if i commit explicitly only then it is showing data in ZTABLE. Actually my requirement is different -
    I have two RFCs 1. Create 2. Search , Now  from web dynpro user will call first Create RFCs but at this point it should not insert record in ZTABLE and just after it user will call another search RFC and in this search he should be able to get these newly created records.
    I want to have the functionality which a user gets when working with normal database front end like SQLPLus for Oracle. In these scenarios we see that whenever user does any insert or update the data sits in the table but still it is not committed. So there he fires Select query he sees the inserted data. But if he logs off from SQL PLUS and then logs in again, and fires Select query he does not see the data as it was not committed. I want a similiar functionalty in which if user inserts the data through Create RFC and fires the Select query through Search RFC then he can see the newly Created data also even though this data is not committed.
    Although if i call create RFC in update task it will not update ZTABLE but in this situation , if user will call search RFC he will not be able to get newly created records.
    So my requirement is that i should be able to get those records which are not commited in ZTABLE .If you have still any doubt regarding my question then please let me know.
    Regards,
    Abhishek

  • How to fetch data from a SAP BW Cube via Perl/PHP on a Linux machine?

    Hi all,
    here's the scenario:
    I need to fetch data from a cube of a remote SAP NetWeaver 7.  The data will later be used in a web application based on  Linux and  Perl/PHP. (I'd prefer using perl for the backend and doing the business logic of the web application.)
    I have:
    A Linux system with all its on-board tools and scripting languages.
    A user for the SAP BW which allows me to logon (very,very limited user rights, no se37,no se80,no rsaX and so on)
    Access to http://<SAP BW Server>:<Port>/sap/bw/xml/soap/xmla with the above mentioned user.
    My questions:
    - Could you please push me into the right direction how I can realize this? E.g. by pointing to tutorials / HowTos / sample code / CPAN modules etc..  (Most information I found so far referred to software based on a different operating system and on remote function calls using custom functions.)
    - I'm aware of the  SAPNW::RFC CPAN module, but do I necessarily have to perform a remote function call? ( If so, is there a "standard" function I could call for accessing a cube?)
    Thanks a lot in advance!

    You can take through the RFCS .check for some system function modules...but why do you need to route it through XI?How huge z the files?

  • Fetching Values From JAVA classes into ABAP report

    Hi Experts,
    I have a requirement, in which I need to fetch Java Roles/Groups from  the portal to a ABAP report, for specific users.  The roles inside of our project are not always in sync with the central system.
    I could not find any link with talks about this. Could anybody guide me on how to proceed?
    Regards,
    Trishna

    I have written a report which takes users and specific  roles as the input. Eg, userID :12345  and role/profile :SAP_ALL, SAP_ADMIN..etc in a table. and gives back if the user 12345 has SAP_ALL or not.
    Now I have used RFCs to fetch all the roles for the user from different SAP systems which i further compare .
    What I am unable to do is fetch the portal roles .
    PROBLEM : The portal roles also exist in the central system, but might not be always consistent since they get manually updated in the central system. Hence I want to directly fetch the data from the JAVA Portal.
    WHAT I KNOW : I need to write a JAVA class in NW developer studio which will take the user as the input and give me all the roles/profiles for the same user as output.
    How do I further pass the values to and from  the Java class to my ABAP report?
    I know that I need to use the UME in some way to have this work for me. But since i do not expertize in java I need guidance/steps as to how to proceed.
    Regards
    Trishna

  • Fetching Data from SAP ECC to BODS 4.0

    HI,
    I am trying to fetch tables like LFA1 and ADRC into BODS from ECC. I am able to connect to the ECC system from BODS.
    In Data services Designer I go to Datastore and add a new datastore as SAP Applications.
    I am able to connect to ECC using this. After that when I select the datastore and select import by name i get the following error
    Data Services Designer
    Error: Cannot import the metadata table <name=LFA1>.
    RFC CallReceive error <Function Z_AW_RFC_ABAP_INSTALL_AND_RUN: RFC_ABAP_MESSAGE- SAP System has status 'not modifiable'[SAP NWRFC 711][SAP Partner 701 ][PET][hicgudb3][BOBJDS][4102]>. (BODI-1112339)
    OK  
    Can you please help me in resolving this.
    What kind of access does the user need to have for fetching data from ECC using BODS
    Thanks in advance.
    Regards
    Sudip.

    Please refer to the [documentation|http://help.sap.com/businessobject/product_guides/boexir4/en/sbo401_ds_sap_en.pdf] that discusses that in quite a lot of detail.

  • Fetching properties from external LDAP

    Hi,
    I have configured ActiveDirectoryAunthenticator to link to my external LDAP
    provider. I am trying to fetch some properties/attributes related to the
    profile such as company and other contact details.
    I have not configured UUP as Im using weblogic's default user store.
    Now, when I access "com.bea.p13n.controls.profile.UserProfileControl", to
    fetch the properties I get null values.
    Is there some other configuration required ?
    Please let me know the solution or the approach.
    Thanks in advance ,
    Regards,
    Arun

    Hi Arun
    Migration of data is possible
    Export the data from external server and import into your domain server
    Here is the steps
    To export and import security data:
    1.     Expand the Security-->Realms nodes.
    2.     Click the name of the realm you are configuring (for example, TestRealm).
    3.     Click the Migration-->Export tab.
    4.     Specify the directory and filename in which to export the security data in
    the Export Directory on Server attribute.
    Note: You can specify a directory and file location on another server.
    5.     Click Export.
    6.     Expand the Realms node.
    7.     Click the name of the security realm in which the security data is to be imported.
    8.     Click the Migration-->Import tab.
    9.     Specify the directory location and file name of the file that contains the
    exported security data in the Import Directory on Server attribute.
    10.     Click Import.
    To verify the security data was imported correctly:
    1.     Expand the Security-->Realms nodes.
    2.     Click the name of the realm into which the security data was imported.
    3.     Click Users.
    4.     Users from the security realm from which you exported the security data should
    appear in the Users table.
    Cheers
    Surya
    "Arun A.G." <[email protected]> wrote:
    Hi,
    I have configured ActiveDirectoryAunthenticator to link to my external
    LDAP
    provider. I am trying to fetch some properties/attributes related to
    the
    profile such as company and other contact details.
    I have not configured UUP as Im using weblogic's default user store.
    Now, when I access "com.bea.p13n.controls.profile.UserProfileControl",
    to
    fetch the properties I get null values.
    Is there some other configuration required ?
    Please let me know the solution or the approach.
    Thanks in advance ,
    Regards,
    Arun

  • Failed to fetch dNIPDNSZones from DNS_LOCATOR_OBJECT

    I am unable to provision DSfW after installing it. The Provisioning PreCheck is successful, but the Configure DNS portion fails.
    It looks to me as though the installation did not create a DNS Locator object in eDirectory. It seems as though we had some old ones floating around from years past.
    We currently do not use Novell DNS for DNS. The zone is hosted on an Active Directory domain controller. After clearing out all of the old DNS objects from eDirectory, I would like to retry provisioning DSfW. However, I cannot seem to reinstall, uninstall, or provision.
    Is there a way to manually create the DNS Locator object that DSfW is looking for, or is there a way to remove and reinstall DSfW.
    The documentation does not say that I need to be running Novell DNS in eDirectory. Do I have to have an existing Novell DNS installation?
    Thank you for any information that you have about this. Here is an excerpt from the log:
    2013-07-05 15:38:00,052 INFO - Authentication :Successfully completed the provisioning plugin authentication
    2013-07-05 15:38:22,816 INFO - DNS Configuration:DNS Configuration starting
    2013-07-05 15:38:22,817 INFO - DNS Configuration:Script to be run is /opt/novell/xad/share/dcinit/provision/provision_dns.pl
    2013-07-05 15:38:28 Pre-check of DNS configuration Passed
    >>>Creating DNS Zone object
    Failed to fetch dNIPDNSZones from DNS_LOCATOR_OBJECT at /opt/novell/xad/lib64/perl/Install/frd_install.pm line 797.
    at /opt/novell/xad/lib64/perl/Logger.pm line 120
    Logger::_err('Failed to fetch dNIPDNSZones from DNS_LOCATOR_OBJECT at /opt/...') called at /opt/novell/xad/lib64/perl/Logger.pm line 211
    Logger::Log(0, 'Failed to fetch dNIPDNSZones from DNS_LOCATOR_OBJECT at /opt/...') called at /opt/novell/xad/lib64/perl/Install/frd_install.pm line 827
    frd_install::decide_domain_zones() called at /opt/novell/xad/lib64/perl/Install/frd_install.pm line 329
    frd_install::configure_zone_object('frd_install=HA SH(0x793080)') called at /opt/novell/xad/share/dcinit/provision/provision_dns.pl line 45
    2013-07-05 15:38:28,451 INFO - DNS Configuration:DNS Configuration returned.
    Dennis

    Hi Dennis,
    We brought in logic to utilize the existing Locator Object based on the customer feedback and DNS restriction.
    The DNS Yast page indicates you on which locator context that is being picked, by default it is "ou=OESSystemObjects,<Domain NC>" if there is no pre-existing locator objects. Now if you need locator object in new context, I'm worried, you will have to redo the installation to get a cleaner installation as it is two stage process and many back-end files for DNS configuration are generated at Yast stage.
    Originally Posted by deisler
    The zone is hosted on an Active Directory domain controller. After clearing out all of the old DNS objects from eDirectory, I would like to retry provisioning DSfW. However, I cannot seem to reinstall, uninstall, or provision.
    Dennis
    DSFW doesn't support this. It can co-exist with AD only by means of trust and it doesn't support any other means of co-existance like being Child domain to AD domain or Additional Domain controller to AD domain. The zone being hosted on an Active Directory domain controller for DSFW domain is not supported.
    Originally Posted by deisler
    Is there a way to manually create the DNS Locator object that DSfW is looking for, or is there a way to remove and reinstall DSfW.
    Yes you can do it by using dns-maint and make sure you create the locator object in the same old locator context. You can get the old context that DSFW is looking for from following file.
    frd:~ # cat /etc/opt/novell/xad/xad.ini | grep DNS_LOCA
    DNS_LOCATOR_OBJECT = cn=DNS-DHCP,ou=OESSystemObjects,ou=frd,o=novell
    frd:~ #
    Make sure you have following objects, and if you notice, the DNSSERVER object is must and it will always exist in ou=OESSystemObjects,<DOMAIN NC>. Hope you have not deleted the DNSSERVER object by mistake.
    DNS_LOCATOR_OBJECT = cn=DNS-DHCP,ou=OESSystemObjects,ou=frd,o=novell
    DNSDHCP_GROUP = cn=DNSDHCP-GROUP,ou=OESSystemObjects,ou=frd,o=novell
    DNSSERVER = cn=DNS_frd,ou=OESSystemObjects,ou=frd,o=novell
    Or you can reach out NTS and get access to our domain removal tool and re-attempt from fresh.
    Originally Posted by deisler
    The documentation does not say that I need to be running Novell DNS in eDirectory.
    Please review our Administration Guide, your first domain controller must to be running Novell DNS in eDirectory by default. There is no choice.
    Originally Posted by deisler
    Do I have to have an existing Novell DNS installation?
    There is no need to have an pre-existing Novell DNS for configuring DSFW, DSFW will bring in a DNS server by default.
    Hope this helps you resolve your issues. If not, request you to reach to NTS or re-attempt a fresh install. Suggest, not to mix your domain installation with Active Domain Controller and get into issues.
    -Kamalesh

  • How to fetch data from DataBase using Servlet ?

    Hi all,
    Till now, i was just sending values from web page and receive the data in excel format using servlets.
    But, now, i want to fetch data from data base. I will be giving inputs in the web page(for the query)....ON click of submit button,
    Servlet should be called.
    Depending on the input, query has to be executed, and response should be sent to the user.
    How to do it?
    Code
    import java.text.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.OutputStream;
    /** Simple servlet that reads three parameters from the html
    form
    public class Fetchdata extends HttpServlet
              String query=new String();
              String uid="ashvini";
              String pwd="******";
              try
                   Connection con=null;
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");     
                   String url = "jdbc:odbc:Testing";     
                   con = DriverManager.getConnection(url, uid, pwd);
                   Statement s = con.createStatement();
                   query = "select * from gowri.msllst1";
                   ResultSet rs = s.executeQuery(query);
              public void doGet(HttpServletRequest request,HttpServletResponse response)
              throws ServletException, IOException
                        response.setContentType("application/vnd.ms-excel");
                        ServletOutputStream out=response.getOutputStream();
                        out.println("<HTML>" +"<BODY BGCOLOR=\"#FDF5E6\">\n" +
                        "<H1 ALIGN=CENTER>" + title + "</H1>\n" +
                        "<table>" +" <th>ITEM Code</th>");
                        while(rs.next())
                        out.println("<tr><td>" rs.getString(1).trim()"</tr></td>");
                        }//end of while
                        out.println("</table></BODY></HTML>");
                   }//end of doGet method
         }catch(Exception e)
                        System.out.println(e);
    It is giving error message as:
    C:\Program Files\Apache Tomcat 4.0\webapps\general\srvlt>javac Fetchdata.java
    Fetchdata.java:17: illegal start of type
    try
    ^
    Fetchdata.java:48: <identifier> expected
    ^
    2 errors
    Is this format is correct? am i placing this doGet method at the right place? is my program's logic is correct?
    Please help me?
    Regards
    AShvini

    There is some mistakes in ur code.....how can try catch exists outside a function???
    make use of try catch isde ur doGet method and put
    Connection con=null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:Testing";
    con = DriverManager.getConnection(url, uid, pwd);
    Statement s = con.createStatement();
    query = "select * from gowri.msllst1";
    ResultSet rs = s.executeQuery(query);
    isdie doGet method, for the time being,
    i think u get me..
    regards
    shanu

  • How can i fetch records from 3 tables in a single query  without using join

    Hi.
    Can any body please tell me <b>How can i fetch records from 3 tables with a single query  without using joins</b>
    Thanx
    prabhudutta

    Hi Prabgudutta,
    We can fetch the data by using the views concept.
    Go throuth this info we can know the how to create view and same like database table only we can fetch the data.
    Views conatin the data at runtime only.
    Four different view types are supported. These differ in the
    way in which the view is implemented and in the methods
    permitted for accessing the view data.
    Database views are implemented with an equivalent view on
    the database.
    Projection views are used to hide fields of a table (only
    projection).
    Help views can be used as selection method in search helps.
    Maintenance views permit you to maintain the data
    distributed
    on several tables for one application object at one time.
    step by step creation of Maintenance view:
    With the help of the table maintenance generator, you are able to maintain the ENTRIES of the table in SM30 transaction.
    It can be set in transaction SE11 - Tools - Table maintenance generator.
    Table maintanance Generator is used to manually input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under attributes tab
    2) utilities-table maintanance Generator-> create function group and assign it under
    function group input box. Also assign authorization group default &NC& .
    3) select standard recording routine radio in table table mainitainence generator to move table
    contents to quality and production by assigning it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers this dialog box appears when you click on create button
    6) save and activate table
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    SM30 is used for table maintenance(addition or deletion of records),
    For all the tables in SE11 for which Table maintenance is selected , they can be maintained in SM30
    Sm30 is used to maintain the table ,i.e to delete ,insert or modify the field values and all..
    It creates the maintenance screen for u for the aprticular table as the maintenance is not allowed for the table..
    In the SE11 delivery and maintenance tab, keep the maintenance allowed..
    Then come to the SM30 and then enter the table name and press maintain..,
    Give the authorization group if necessary and give the function group and then select maintenance type as one step and give the screen numbers as system specified..
    Then create,,,
    Then u will able to see the maintenance view for the table in which u can able to insert and delete the table values...
    We use SM30 transaction for entering values into any DB table.
    First we create a table in SE11 and create the table maintenance generator for that Table using (utilities-> table maintenance generator) and create it.
    Then it will create a View.
    After that from SM30, enter the table name and Maintain, create new entries, change the existing entries for that table.
    Hope this resolves your query.
    Reward all the helpful answers.
    Rgds,
    P.Naganjana Reddy

  • How to fetch data from single database table using 2 internal tables.

    Hi friends,
    i am a new user of ABAP and also SDN.
    i need a help. 
    i want to fetch data from one database table based on primary keys of 2 internal tables.  how to put in where clause.
    Thanks in advance.

    hii
    refer to following code ..i hope it will help you
    SELECT matnr                         " Material Number
        FROM mara
        INTO TABLE i_mara
       WHERE matnr IN s_matnr.
      IF i_mara[] IS NOT INITIAL.
        SELECT matnr                       " Material Number
               werks                       " Plants
               prctr                       " Profit Center
          FROM marc
          INTO TABLE i_marc
           FOR ALL ENTRIES IN i_mara
         WHERE matnr = i_mara-matnr
           AND werks IN s_werks.
      ENDIF.                               " IF i_mara[] IS NOT INITIAL
      i_output = i_marc.
      IF i_marc[] IS NOT INITIAL.
        SELECT matnr                       " Material Number
               werks                       " Plants
               lgort                       " Storage Location
          FROM mard
          INTO TABLE i_mard
           FOR ALL ENTRIES IN i_marc
         WHERE matnr EQ i_marc-matnr
           AND werks EQ i_marc-werks
           AND lgort IN s_lgort.
      ENDIF.                               " IF i_mara[] IS NOT INITIAL
    regards
    twinkal

  • Any suggestion for tuning following code of fetching prompts from report.

    Hi Experts,
    In my application I want to fetch all prompts details from SAP BO.  I am using following code and its working fine but taking to much time in fetching data.
    public static ReportEngine reportEngineWebi = null;
      public static ReportEngine reportEngineFullClient = null;
      public static Prompts prompts = null;
      public static DocumentInstance di = null;
      public static Prompt cdzPrompt = null;
      public static PromptType cdzPromptType = null;
      public static Lov lov = null;
      public static Values lovValues = null;
      public static String[] pvalues = null;
      public static IWebi webi = null;
      public static IFullClient fullclient = null;
      public static int prmt_report_si_id = 0;
      public static String prmt_si_id = "";
      public static String prmt_si_title = "";
      public static String prmt_si_kind = "";
      public static String prmt_si_lov_previous_values = "";
      public static String prmt_si_lov_values = "";
    IInfoObjects objsprompts = oInfoStore
      .query("Select top 20000 * From CI_INFOOBJECTS Where si_kind in ('Webi') and SI_INSTANCE=0 and SI_PROCESSINFO.SI_HAS_PROMPTS=1");
      int prmt_report_si_id = 0;
      prmt_si_id = "";
      prmt_si_title = "";
      prmt_si_kind = "";
      prmt_si_lov_previous_values = "";
      prmt_si_lov_values = "";
      reportEngineWebi=((ReportEngines) oEnterpriseSession
      .getService("ReportEngines"))
      .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
      for (int j = 0; j < objsprompts.getResultSize(); j++) {
      prompts = null;
      di = null;
      try {
      webi = (IWebi) objsprompts.get(j);
      di = reportEngineWebi.openDocument(webi.getID());
      try {
      prmt_report_si_id = 0;
      prmt_report_si_id = webi.getID();
      } catch (Exception e) {
      prmt_report_si_id = 0;
      prompts = di.getPrompts();
      try {
      if (prompts.getCount() > 0) {
      for (int i = 0; i < prompts.getCount(); i++) {
      cdzPrompt = prompts.getItem(i);
      try {
      prmt_si_id = "";
      prmt_si_id = cdzPrompt.getID();
      } catch (Exception e) {
      prmt_si_id = "";
      try {
      prmt_si_title = "";
      prmt_si_title = cdzPrompt.getName();
      } catch (Exception e) {
      prmt_si_title = "";
      try {
      cdzPromptType = cdzPrompt.getType();
      prmt_si_kind = cdzPromptType.toString();
      } catch (Exception e) {
      prmt_si_kind = "";
      // System.out.println("going to fetch prompt lov");
      cdzPromptType = cdzPrompt.getType();
      // System.out.println("promt type-" + cdzPromptType);
      // System.out.println("Ended***********"+i);
      if (cdzPrompt.hasLOV()) {
      try {
      prmt_si_lov_values = null;
      // System.out.println("going to found pvalues");
      pvalues = cdzPrompt.getPreviousValues();
      // System.out.println("pvalues found");
      prmt_si_lov_previous_values = "";
      if (pvalues.length > 0) {
      // System.out.println("pvalues-");
      for (int c = 0; c < pvalues.length; c++) {
      if (c == 0) {
      prmt_si_lov_previous_values = pvalues[c];
      } else {
      prmt_si_lov_previous_values = prmt_si_lov_previous_values
      + "," + pvalues[c];
      } catch (Exception e) {
      System.out.println("handle Error lov values");
      e.printStackTrace();
      // System.out.println(" ");
      // here enters prompts into databse...
      // System.out.println(i+" prompt fetch");
      pstmt.setInt(1, prmt_report_si_id);
      pstmt.setString(2, prmt_si_id);
      pstmt.setString(3, prmt_si_title);
      pstmt.setString(4, prmt_si_kind);
      pstmt.setString(5, prmt_si_lov_previous_values);
      pstmt.setString(6, prmt_si_lov_values);
      pstmt.setString(7, "Utility");
      pstmt.executeUpdate();
      } else {
      // System.out.println("No promts found");
      } catch (Exception e) {
      // System.out.println("Handle Error in code-");
      // e.printStackTrace();
      } catch (Exception e) {
      // Nothing...
      try {
      if(di!=null){
      //System.out.println("going to close di");
      di.closeDocument();
      //System.out.println("di close");
      } catch (Exception e) {
      // nothing..
      //System.out.println("*****************************single prompt completed********************************");
      if(reportEngineWebi!=null){
      try{
      reportEngineWebi.close();
      }catch(Exception e){
      System.out.println("Handle error! while closing reportEngineWebi prompt");
      e.printStackTrace();
    This code is working fine but taking too much time in fetching prompts.
    di = reportEngineWebi.openDocument(webi.getID());
    this is DocumentInstance object, its taking time.
    Please suggest me if there is any other option available to fetch prompts from SAP BO.
    Thanks in advanced

    Hi Vijay...
    The selection screen should look like...
    cb1 -
    variant1 -
    icb1 -
    date1 -
    time1
    cb2 -
    variant2 -
    icb2 -
    date2 -
    time2
    where...
    cb1 - checkbox which indicates the first report(YRTEST) in the table...
    variant1 - textbox for variant which has a help,on clicking should display all the variants of YRTEST report...
    icb1 - checkbox which indicates the immediate background processing...
    date1 - date on which the job should be scheduled...
    time1 - time on which the job should be scheduled...
    If icb1 is clicked then date1 & time1 should not be allowed to enter & vice-versa...
    cb2 - checkbox which indicates the second report(YRTEST1) in the table...
    variant2 - textbox for variant which has a help,on clicking should display all the variants of YRTEST1 report...
    icb2 - checkbox which indicates the immediate background processing...
    date2 - date on which the job should be scheduled...
    time2 - time on which the job should be scheduled...
    If icb2 is clicked then date2 & time2 should not be allowed to enter & vice-versa...
    Its not like what u said...(Based on user entered data fetch the data of report(variant,date,time) and you can submit the data to background job as incase of single record by looping the data)
    Because we have only ReportName,ReportDescription as fields in the table & not variant,date,time...The variant,date,time are all entered in the selection-screen only from which the background job is scheduled...
    I hope the requirement is more clearer...

  • Fetching data from database in case of mixed case in SE37

    Hi,
    I have created a function module(in se37) where the input is Last name(PA0002-NACHN). My requirement is i have to fetch data from PA0002 based on last name. But the problem is if i give a name in mixed case(both upper and lower) sap converts the last name into Capital letter and starts searching the database.
                      But i tried in abap editor. here SAP accept the parameter(last name) as mixed case and starts searching. Why in function module the parameters are converted into upper case. How to restrict it.
                 If i will create a domain with LOWER CASE check box checked and try to call the dataelement in import part of function module then also it's converting it inot upper case. If i uncheck the lower case check box then also it's taking it as upper case.
                How to process the input parameter in function module(SE37) which should take the input as user enters,i.e if user enters small letter it should take it as small letter , if mixed letter it should take it as mixed letter and start searching.
    regards
    sandeep

    HI sandeep,
    <i>"If i will create a domain with LOWER CASE check box checked and try to call the dataelement in import part of function module then also it's converting it inot upper case. If i uncheck the lower case check box then also it's taking it as upper case."</i>
    I think the data is getting converted to upper case even before it is passed to this FM.
    Can yo ushow how are you testing this FM?
    If you are calling this FM in a abap program using a parameter, it will convert the text to upper case as and when you enter data the name in it.
    Regards,
    Ravi

  • I have Problem in fetching data from CONTROL BLOCK

    Sir,
    I am facing problem in fetching data from control block.
    Asif.

    is your control-block a filter-block for the detail-block?
    Do you want to see only the detail-data of the user-id you have displayed in the master?

Maybe you are looking for

  • How to center selected text in document window?

    I'm using Word.select( SelectionOptions.REPLACE_WITH) to iterate through a list of words in a document. It would be handy if any off-screen selections could be automatically scrolled into the document window, as with Find/Change. Is there any way to

  • Photos out of order with iOS5 update

    Looking for any advice I can get on my out of order photos on my 4g ipod touch.  When the last major operating system update came down the line I had a similiar issue.  The way I solved it last time was by batch changing all the dates for my pictures

  • HT4098 i was charged for an itune i didn't purchase

    I was charged for an itune that I didn't purchase, how do I go about getting a refund? How do I keep this from happening again, this is the second time its happened.

  • Location-based w/o having to make each item location-based?

    Hi, I know how to make an entry on a reminder list location-based, but can you tell me how to set an entire reminder list to be location-based (if that's possible). In other words, can I make a reminder list called "Costco" and set it so that every i

  • Rollback related queries

    I have doubt related to rollback in albpm. though we have COMPENSATION HANDLDLING method to deal with rollbacks but what if we make an entry in databse and we have to rollback the changes. I tried it using compensation handling but i dont think that