Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fetching Values From JAVA classes into ABAP report

Former Member
0 Likes
1,007

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

7 REPLIES 7
Read only

Former Member
0 Likes
983

I speak of "User" Roles/profiles here.

Regards,

Trishna

Read only

0 Likes
983

Hi Trishna ,

Please eleborate your requirement?

I can not understand it well.

Thanks.

Read only

0 Likes
983

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

Read only

0 Likes
983

Hi Trishna,

Just i am guessing. Is it not possible to write a custom bapi and get that.

Regards,

Madhu.

Read only

0 Likes
983

Hi Madhu,

that should be the case but I am unable to get a clear view on how to do that..

Regards

Trishna

Read only

0 Likes
983

Hi Trishna,

You check the tables where it is storing and get that data through custom bapi.

Regards,

Madhu.

Read only

0 Likes
983

oh no...i couldn't do that...I have mentioned that before...the data in CUA is not always update. hence, I am looking at directly fetching th user roles from the portal. I now do not know how to make a bapi work to get data from java portal! I mean how will the connection be made?

Regards,

Trishna