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

Similar Messages

  • Putting attribute value from java level into sessionScope variable?

    Hallo,
    is it possible to put an attribute value from java level into a sessionScope variable?
    For example when i'am in prepareSession is it possible to fill a sessionScope variable which i can use in a jspx-Site? And when how i must do it?
    Any help is appreciated.

    At the java level i make this
    private void setUserIdIntoUserDataHashtable() {
    Integer userid = getUserIdForLoggedInUser();
    Integer groupid = getGroupIdForLoggedInUser();
    Hashtable userdata = getDBTransaction().getSession().getUserData();
    if (userdata == null){
    userdata = new Hashtable();
    userdata.put(PBConstants.CURRENT_USER_ID, userid);
    userdata.put(PBConstants.CURRENT_GROUP_ID, groupid);
    And when i at the java level i can use the constants. But i don't have an interaction at this point. Thats why i don't now how to bring the values to a sessionScope variable i need later in a / some sites?

  • How to display value from java class with output generated with toplink

    i hava a requirement of displaying (distance ie calculated in java class) with output generated by query.
    ie if output is like
    school name (distance)
    physical address
    here the school name and physical address are retrived from database.

    Hi,
    ValueHolders are used by the JSF internal framework. To work with an object (attributes) in a managed bean you don't need to make it returning a value holder.
    Create a POJO, provide accessor methods and register it as a managed bean. Access it from JSF with EL
    Frank

  • Fetching Message from message class into variable

    hello all,
    can anyone please tell me that how can i fetch the message from message class?
    because i have to take that message in one variable and have to pass it in function module.
    regards saurabh.

    Hi,
    DATA : MESSAGE TYPE STRING.
    Select TEXT from t100 into MESSAGE where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'
    msgnr = 'YOUR_MSGNR'
    or if you want all the messages to fetch in a single query to avoid performance issue
    Select * from t100 into itab where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'
    Cheerz
    Ram

  • Problem in fetching values from Java Web Service returning ArrayList

    Hi all,
    I am calling an External Java web Service from BPEL. That Java Web Service is returning an Arraylist.
    I am not able to assign the values returned by the Java web service to local String Variables of BPEL.
    Kindly help me...

    Hi,
    My problem has been resolved..
    I have used
    bpws:getVariableData('Invoke_1_useSSH_OutputVariable','parameters',concat('/ns7:useSSHResponseElement/ns7:result/ns8:item\[',bpws:getVariableData('count'),']'))
    where count is the local int variable which contains the index value of the arraylist i.e. which index element we want to retrieve from arraylist.
    Thanks....
    Edited by: user643533 on Sep 12, 2008 12:10 AM

  • Implement Java Class into Report Builder

    Hi, I have problems implementing own java classes into the Report Builder. OK, let say I am running a simple report using STUDENT_ID and STUDENT_NAME. What I wanted to do is to concatenate a string "XXXX" to one of the records in STUDENT_NAME (e.g. STUDENT_NAME = 'Mary').
    The Java class that I wrote has a static method:
    public class MyAppend
    public static String myMethod(String s)
         s = s +"XXXX";
         return s;
    I also wrote a Formula Column in Report Builder called "TestFormula":
    function TestFormula return varChar2 is
         StuName     varchar2(40);
         myStr     varchar2(40);
    begin
    select STUMST.STU_NAME
    into StuName
    from STUMST
    where STUMST.STU_NAME= 'Mary';
    ->myStr := myappend.myMethod(myPackage.aobj, StuName);
    return myStr;
    end;
    The error message I get when I compile this Formula Column PL/SQL is (with '->' pointing to the line):
    Wrong number or types of arguments in call to 'MYMETHOD'
    How do I correct this error?
    Thank you.
    Joey

    Thanks Navneet. Actually I am new to PL/SQL programming. I have another problem here. I would like to list all the records of the STUDENT_NAME. How would I go about it using PL/SQL? This is the Formula Column I have written but it only shows me 1 record:
    function TestFormula return varChar2 is
    StuName     varchar2(40);
    cursor c1 is
    select all stumst.stu_name
    from stumst;
    begin
         LOOP
         open c1;
         fetch c1 into stuName;          
         stuName := myappend.myMethod(stuname);
         return stuName;
         EXIT WHEN c1%NOTFOUND;
    end loop;
    end;
    By the way, can you please give me any useful sites for reference to the PL/SQL?
    Thank you.
    Joey

  • Read item from Java class and call to stored function/procedure of database

    Hi,
    I am looking solution that I was trying to find becasue of I am not expert and novice of ADF so I am getting problem to do. I am trying migrating from oracle forms to JDeveloper[ADF].
    I want to call database stored function from JSF pages by java bean class of a button press event (manually created) and after button event I have called java class which I created manually. But I can not read that values what I given into jsp page.
    question1: How can I read jsp pages items value to java class ?
    question2: How can I call to database stored function/procedure with that parameter?
    question3: How can I use return value of that stored function/procedure ?
    Please reply me .
    Thanks,
    zakir
    ===
    Edited by: Zakir Hossain on Mar 29, 2009 10:22 AM

    ---

  • Fetching data from java system

    Hi All
    I want to fetch the data from Java application into my SAP system how can i fetch that .
    Thanks and rgards
    Saurabh Khanna

    you need BI system to do this, need to extract data using reports.
    can also do from solman ehp1.
    regards
    nag

  • How can i store values from my String into Array

    Hi guys
    i wants to store all the values from my string into an array,,,, after converting them into intergers,,,, how i can do this becs i have a peice of code which just give me a value of a character at time,,,,charat(2)...BUT i want to the values from String to store in an Array
    here is my peice of code which i m using for 1 char at time
    int[] ExampleArray2 = new int[24];
    String tempci = "Battle of Midway";
    for(int i=0;i>=tempci.length();i++)
    int ascii = tempci.charAt(i); //Get ascii value for the first character.

    public class d1
         public static final void main( String args[] )
              int[] ExampleArray2 = new int[24];
              String tempci = "Battle of Midway";
              for(int i=0;i<tempci.length();i++)
                   int ascii = tempci.charAt(i);
                   ExampleArray2=ascii;
              for(int i=0;i<ExampleArray2.length;i++)
                   System.out.println(ExampleArray2[i]);

  • How to get return value from java and read by other application?

    i want to read return value from java and the other application read it.
    for example:
    public class test_return {
        test_return(){
        public int check(){
            return 1;
        public static void main(String args[]){
           new test_return().check();
    }from that class i make as jar file. How to read the return value (1) by other application?
    thx..

    If your installer is requiring some process it invokes to return a particular value on failure, then the installer is seriously broken. There are a bazillion commands your installer could invoke, and any of them could fail, which in turn could invalidate the entire install process, and any of them could return any value on failure. The only value that's consistent (in my experience) is that zero means success and non-zero means failure, with specific non-zero values being different in different programs.
    About the only control you have over the JVM's exit code is that if your main method completes without throwing an exception, the JVM will have an exit code of 0, and if main throws an exception (either explicitly or by not catching one thrown from below), it will be non-zero. I'm not even sure if that's guaranteed, but I would guess that's the case.
    EDIT: I'm kind of full of crap here. If you're writing the Java code, you can call System.exit(whatever). But nonetheless, if your installer requires certain exit codes from any app--java or otherwise--you have a problem.
    Edited by: jverd on Oct 29, 2009 1:27 AM

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • How to set classpath from java class ??

    I have tried to use System.setProperty("java.class.path", "my class path string ") to set classpath dynamically. But it is not working. How to set it dynamically from java class ?? Thanks , gary

    Look into the java.net.URLClassLoader. You can't set the classpath after the fact but you can specify URL's that will checked when you try to load a class with that loader.

  • Compiling java classes into dll

    Hi,
    Just trying to find out is there anyway I can compile the java classes into dll?
    If I am to use JNI and C++, will the dll compiled be able to work well in a platform that does not have JVM?
    Thank you.

    Hi,
    Just trying to find out is there anyway I can
    an compile the java classes into dll?
    No, but you can start the jvm and run your main class from a dll using jni. And, if you do that, you'll of course need a JVM on the client that'll be running your code.

  • AR60RUN from Java class

    Can we run a oracle report 6i from java class ? Is there a JAVA API available for this ? I tried using "ar60run" thro getRuntime().exec java API, but its giving a core dump.. any suggestions ?

    You don't need to extend from Frame if you're creating an Applet. The Applet Class is a Container so you can anything you can add to a Frame to an Applet. With an Applet you must call either init(), start() or paint(Graphics g). There is a really good description of how to create your first Applet in the Java Tutorial. It also give a demo of how to set up a web page to contain your applet and how to use the appletviewer.
    http://java.sun.com/docs/books/tutorial/getStarted/applet/index.html
    Basically what you need to do is:
    import java.applet.Applet;
    import java.awt.*;
    public class MyApplet extends Applet {
    public void init() {
    setSize(500,500);
    // Add Components, Listeners, etc...
    Button b = new Button("MyButton");
    add(b);

  • Can we Return values from Java Bean to Form

    Hi All,
    I have a Bean area defined on a Form. The Bean Area consists of a Text field which gets populated by path of a file selected using Browse button.
    Can I return this path as a parameter from the Java Bean to the form? Is there any function for this?
    Regards,
    Prathima.

    If you designed your bean to offer the ability to exact info/data from it, then yes you can get a value from the bean into the form (pl/sql) - using Get_Custom_Property
    Refer to the following which is a good example of how to build a bean. Specifically look at page 12 where is shows how to use Get_Custom_Property.
    This is NOT an Oracle supported or provided document or web site, but it is a very good example.
    http://forms.pjc.bean.over-blog.com/ext/http://sheikyerbouti.developpez.com/forms-pjc-bean/first-bean/first_bean.pdf

Maybe you are looking for

  • What is the diffrence betweensy-tabix and sy-index

    hi can any one suggest me what is the diffrence betweensy-tabix and sy-index Thanks & Regards kalyan.

  • HPLaserJetService.exe has encountered a problem and needs to close.

    I continue to recieve an error message that states the following: HPLaserJetService.exe has encountered a problem and needs to close.  Right before the message appears my pc slows down and sometimes programs that i am in shut down. I have not issues

  • Java.lang.NullPointerException Running an application NWDS

    Hi! Deploying and Running an application in Netweaver Developer Studio, it gives me a java.lang.NullPointerException. In the deploy view: SDM port not defined or not found [INFO: 27-feb-2008 15:49:33 /userOut/daView_category (eclipse.UserOutLocation)

  • IDOC: HRSM_D01

    I maked migration from non SAP system to the SAP R3 via XI (IDOC HRMD_A07).Export file from non SAP system in .csv file. Now I need store Attendences/Absences data into IT2001 (IDOC HRSM_D01), but I dont know structure of the IDOC and I need to fill

  • Starting applications remotely using LabView activeX server

    I want to make a program that enables me to start applications on a remote computer. I made a program that starts applications using either System exec.vi or .NET and both methods work find on my local computer. I built it with activeX server enabled