cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve modeinfo[n].context_id_uuid from inside an ABAP program ?

Former Member
0 Kudos

If you login to an SAP session and then create another session via the system menu option (not a second login), transaction SM04 will show two different values for the parameter:

modeinfo[n].context_id_uuid

I need to know how to retrieve the value of this parameter from inside an ABAP program.

This question is related to the one Rich and Naren and I were discussing - about how to create a unique shared buffer memory id that will distinugish between a two sesssions of a single user who happens to be "MIGO'ng" twice.

Thanks for whatever answer anyone can provide ...

djh

Note: also posted in ABAP General ...

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181923
Active Participant
0 Kudos

Rich answered in ABAP general:

REPORT ZRICH_0001 .

type-pools: thfb.

data: context_id type THFB_CONTEXT_ID.

CALL FUNCTION 'TH_GET_CONTEXT_ID'

IMPORTING

CONTEXT_ID = context_id .

write:/ context_id .