‎2008 Nov 10 9:22 PM
Is there a way to get the abap session id progmatically. Or anything which uniquely identifies a session?
‎2008 Nov 10 9:33 PM
‎2008 Nov 10 9:33 PM
‎2008 Nov 10 9:33 PM
‎2008 Nov 10 9:37 PM
thank you so much..I need to try out this....
but can you please explain a little bit more how session id works.
‎2008 Nov 10 10:44 PM
ok i got it buddies.
So its a system call (its a call to a C source code files of SAP Kernel) to retrieve data.
correct me if i am wrong...
thanks.
‎2008 Nov 10 10:46 PM
Try searching the forum for the term "GUID_CREATE" (the FM).
It might meet your requirement.
Cheers,
Julius
ps: I deleted one of your posts. It was a copy& paste from SAPhelp...
‎2008 Nov 10 10:52 PM
deleted one of my posts!!!!! why...which one.....?? saphelp!!??
‎2008 Nov 10 10:53 PM
>
> ok i got it buddies.
> So its a system call (its a call to a C source code files of SAP Kernel) to retrieve data.
> correct me if i am wrong...
>
> thanks.
Those functions are not (publicly) documented to my knowledge and are subject to change without warning. See the F1 docs....
A better option is to use an FM (preferably a released one) to create an own GUI-ID for your purposes, or a standard API which does the whole job in one shot (see tcode BAPI).
Cheers,
Julius
‎2008 Nov 10 10:59 PM
as per my understanding...
suppose i open a new session at the workbench...that session has got an unique ID..which can be retrived using the FM th_get_session_id...
is my understanding correct??
‎2008 Nov 10 10:59 PM
>
> deleted one of my posts!!!!! why...which one.....?? saphelp!!??
Sorry, I might have been mistaken and posted that to the wrong thread.
Copy&Paste from SAPhelp without showing the source is a bit of a problem, so we reject such posts (to encourage the search) and I must have mistaken one of yours for another.
Sorry about that,
Julius
‎2008 Nov 10 11:01 PM
ok no probs..but..this...
as per my understanding...
suppose i open a new session at the workbench...that session has got an unique ID..which can be retrived using the FM th_get_session_id...
is my understanding correct??
‎2008 Nov 10 11:10 PM
Perhaps if you explain for which scenario / requirement you need the session ID, then there might be a better way of doing it that c-calling the user info function.
> is my understanding correct??
I see that your question is marked answered, so obviously you got it to work already.
But none-the-less, it would be interesting to know why you need the session ID?
Cheers,
Julius