Quickest way to retrieve modeinfo[n],context_id_uuid from an ABAP pgm

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

Try this David.
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 .
Regard,
Rich Heilman

Similar Messages

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

    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 ...

    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 .

  • Whats the quickest way to export packages,tables etc from one enviroment

    Hi
    whats the quickest way of more loads of packages, tables, indexes etc. from one enviroment to another?
    I did some things in apex.oracle.com workspace to test apex now I want to move it across to my xe installation.

    Hello,
    2 'fast' options really -
    1) Export of application + Export/DataPump of schema
    This works if you want a complete 'mirror' from one environment to another of the schema objects
    2) Supporting Objects
    Bundle all your requirements together with the application export.
    The Supporting Objects feature absolutely rocks and yet very very (very!) few people seem to use it.
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • What is the quickest way in extracting the ETL Logic from OWB 11gR2?

    We are working on an OWB 11gR2 project with stringent timelines.A Detailed Design logic depicting the mapping logic is one of the expected deliverables.
    Can any one of you help us understand the quickest way in extracting the ETL/mapping Logic from OWB 11gR2.Does is have anything similar to Metadata Manager Reporting in Informatica?

    Hi
    Simplest way is to use the public SQL views and report from them.
    http://download.oracle.com/docs/cd/E11882_01/owb.112/e10584/api_3designviews.htm#BABECECD
    Cheers
    David

  • Is there any way to retrieve past appointment information from Iphone calendar.  All disappeared. (kind of important, Apple)

    I need to find past work dates and information for taxes and claims, etc, but the calendar app seems to have erased everything dating back further than a few weeks. Is there any way to retrieve this? The IOS walk thru doesnt explain that not syncing ALL EVENTS means they'll all be erased.  Dumb.  This is kind of imprtant, Apple, for an 'everything' device.  Please advise. Post-setting to 'all events' has not restored the info... Thank you!

    Not sure what you mean by 'turn off calendars'.  Do you mean under 'accounts' that i should delete the  previously synched calendar accounts from the iphone and then turn it back on?  This will restore all the information?
    thank you.

  • Is there any way to retrieve deleted texts messages from KIN TWO M?

    is there any way to retrieve deleted texts messages on KIN TWO M?

    Unfortunately, no, not unless you had them backed up somewhere (like with bitpim software).  Once the texts are deleted from the phone, they're gone.

  • Quickest way to transfer iMovie 09 Files from Macbook Pro to iMac

    Hello:
    We recently got an iMac and I would like to transfer my iMovie 09 files from my macbook pro to the iMac which also has iMovie 09. Can you suggest the quickest and easiest way to do this? I am assumign this can be done since they are both iMovie 09-anyhelp is appreciated

    Huh.
    Well, my approach has always been:
    1. Click the "Consolidate Media" menu in File, and click the buttons to move all source materials into the project.
    2. Shut down iMovie
    3. Navigate to Movies/iMovie Projects in Finder, and copy the corresponding project over to the other machine's Movies/iMovie Projects folder.
    4. Start up iMovie on the other machine.
    I don't do much video (mostly photo slideshows) in iMovie, but this certainly hasn't caused me any problems before. iMovie just sees the new item in its iMovie Projects folder and allows you to select it.

  • Is there any way to retrieve photos and videos from my water damaged iPhone 6?

    My iPhone 6 appears to be water damaged and won't turn on. At this point, I'm ready to give up on the phone but I'd like to retrieve data from the phone if possible - especially photos and videos. Is there any way to do this? I have seen suggestions to take it to the Apple Store, but with the nearest one just over an hour away, I would be very disappointed to drive all that way just to be told there's nothing they can do.

    Thanks, John. I should have specified - no  iCloud back up. I would have maxed it out with the first backup, so I didn't do it. I back up to my computer, but hadn't done that in about a month. Big lesson learned here. I have a new phone and am setting up iCloud!! I'm trying to allow all my family's devices to back up to the same iCloud - that's the new challenge

  • Is there any way to retrieve my apple id from game center id. i forgot both my email and passwords and no other possible way to get my account back

    I have lost both my email and password to my apple id and i have no way of getting my account back i do have the account on my friends list of this accounts game center, is there any way i can retrieve it using this information from game center username?

    same problem with me.. please let me know if you find any solution. thanks

  • Is there a way to Retrieve QT Pro Registration # from old computer?

    Hi,
    I had a Mac G5 Tower that died about six months ago.  I removed the two hard disk drives and have a Newer Technology disk reader, so I can acess information on the drives, and bring up the disks on my Macbook Pro laptop. 
    I would like to retrieve the registration number for the QuickTime pro from the G5 disks, but I can't figure out how to do that.  The registration number is many years old, and Apple keeps those numbers for only 18 months.
    Is there a way for me to retrieve the registration number?

    Hi,
    Well, I figured it out....snagged the registration number from the old drives.  Not that difficult to do....just took me a while.

  • How can I integrate metadata and keywords in Lightroom with those in Photoshop, Bridge, and Photoshop Elements? In other words, is there a way to retrieve common metadata templates from all modules? Thanks!

    Keyword and Metadata Integration throughout Adobe Modules

    Thanks! That's helpful.
    What I mean by "common metadata", is a unified, updated, most current metadata, which I could update in each program. That is without overwriting the metadata, but appending new keywords to the metadata I created in the previous program.
    I use Bridge, then Lightroom and finally Photoshop. That's the regular workflow: Bridge for preliminary sorting and and adding some keywords; Lightroom for organizing and picking the best images; finally, Photoshop for processing. I got Photoshop Elements on trial. Doesn't work for my purposes.
    I need to share and update the metadata / keywords when I go from one program into another. Can't retrieve metadata I set up in Bridge into Lightroom. Same happens with Photoshop, where I can't retrieve keywords I add in Lightroom. It's tedious to write up the keywords again.
    Thanks for your efforts!

  • Is the way to retrieve the deleted pages from the database application

    Hi,
    I was just deleted the pages from my database application wizard. Now, i want to retrieve the deleted pages, can you help me to retrieve those pages.
    Thankyou.

    Halloween can be a scary time -- especially if you Oops your APEX application. Of course you can't travel back in time but through the miracle of flashback, you may be able to get the APEX appl. back to where it was when. I tried these approaches and was successful with them.
    *** This assumes flashback is running on the APEX schema(?). Your abiliy to go back a given number of minutes (or hours?) will depend on whether the saved values still exist in the database. ***
    A) If you modify a page and want to go back to what you had, say, about 30 minutes ago.
    1) Under the Utilities button (on that page), select History.
    2) Determine how far back in time you want to go by examining the list of editing changes displayed.
    3) Do a page export of that page (also under Utilities) and fill in “As of __ minutes ago”.
    4) If you don’t want to lose what you've got on the “damaged” page, copy it to another page number for now.
    5) Import the exported page file.
    6) Check if you got back what you wanted.
    7) If not, try an earlier (or later) time and have another go at it.
    B) If you deleted the wrong page in the application!
    1) Assuming the last thing you did was this deletion, export the entire application filling in “As of __ minutes ago”.
    2) Just to be careful, import the file to a different unused application number. Don't overwrite someone else's application.
    3) Copy the deleted page from the new application back to where you need it.
    4) Clean up by deleting the unneeded application.
    C) If, "Doh," you deleted the wrong application!!!!
    1) Are you able to retire? If no, then proceed!
    2) Create a minimal application (with a single page) with the same number as the one deleted.
    3) Export the application filling in “As of __ minutes ago” with an appropriate number of minutes.
    4) The export file should contain the code you need to restore.
    5) You can inspect it with an editor.
    Look about line 25 for" Pages: <number>".
    For specific pages look for "page_000nn".
    5) Import the file to the same appl. number. You should get everything back!
    YMMV: Your mileage may vary!
    I'll take my leave with the words of that immortal song:
    "Yes. Oops, Oops, Oopsie! Good Bye. But Oops, Oops, Oopsie. Don't Cry."
    (With apologies to Ted Fio Rito, 1900-1971.)
    Howard

  • Is there any way to retrieve deleted texts messages from the IPhone 5C?

    I accidentally deleted the wrong texts, and was wondering if there was a way Verizon, or the IPhone could recover the deleted messages...

    Unfortunately, no, not unless you had them backed up somewhere (like with bitpim software).  Once the texts are deleted from the phone, they're gone.

  • Shortest way to retrieve from KONM Table

    Hi,
    Can anyone tell me how to write a query for, the shortest and quickest way to retrieve the data from KONM Table?
    Sample Record in the KONM Table will be as given below.
    KNUMH          KSTBM             KBETR
    007......... 1 .......... 50
    007......... 11 ........ 45
    007......... 55 .........40
    When i give my input Quantity (KSTBM) as 4, i should get the price (KBETR) as 50. i.e., input quantity between 1 to 10 is 50. Input Quantity between 11 and 54 is 45. Anything Greater than 55 to next greater quantity is 40,...
    Is there any function module available to retrieve the record?
    Also best optimized logic, will be given a full mark.

    Hello Vijay
    I am assuming that you have value in KNUMH with you...
    here's the idea in brief..
    select the values.. sort by quantity descending.. then populate a range with LE option... the first entry in the interal table which meets the condition is the value u require..
    Sort of Pseudo code:
    ranges: r_kstbm for kstbm.
    r_kstbm-sign = 'I'.
    r_kstbm-option = 'LE'.
    r_kstbm-low = p_kstbm.    <your quantity value comes here> 
    select <your fields> from KONM into table i_konm where KNUMH eq p_knumh.
    if sy-subrc = 0.
    sort i_konm by kstbm descending.
    loop at i_knom where kstbm in r_kstbm.
        <The price required> = i_konm-kbetr.
        exit.
    endloop.
    endif.
    Message was edited by:
            Arun Nair

  • Retrieve a phone number from iCloud that I deleted

    Is there a way to retrieve a phone number from iCloud that I deleted a while back from my address book? I had the number in my favorites and all contacts but now I don't know how to get the number back.
    I'm using Mavericks

    Unless you kept a backup, no.

Maybe you are looking for