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

ABAP session id with a webdynpro app

Former Member
0 Likes
981

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
Read only

Former Member
0 Likes
905

maybe this function module?

TH_GET_SESSION_ID

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
905

Have u checked fm TH_USER_INFO from the abap side.

May be this help you out.

Read only

Former Member
0 Likes
905

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

is this always a unique identifier of the users session?

Read only

Former Member
0 Likes
906

maybe this function module?

TH_GET_SESSION_ID

Read only

0 Likes
905

Yes i think TH_GET_SESSION_ID will get you unique id