Application Development 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: 

ABAP session id with a webdynpro app

Former Member
0 Kudos

Hi....

I have a custom webdynpro app that makes JCO calls to ABAP.

So when i open the abap debugger (debugging remotely from the java webdynpro) i can see that sy-uname

is in fact the user that logged into the portal....

What I am wondering is this....

Is there a way to get a unique session id (or guid) on the abap side for that users session? when the user logs off of the portal, there session closes on the abap side as well...if they logged into the portal then they

would have a new session on the abap side as well....

I need to find a way to get this session id on the abap side.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

maybe this function module?

TH_GET_SESSION_ID

4 REPLIES 4

former_member194669
Active Contributor
0 Kudos

Have u checked fm TH_USER_INFO from the abap side.

May be this help you out.

Former Member
0 Kudos

can you explain the export parameter Terminal of the fm you listed above?

is this always a unique identifier of the users session?

Former Member
0 Kudos

maybe this function module?

TH_GET_SESSION_ID

0 Kudos

Yes i think TH_GET_SESSION_ID will get you unique id