Skip to Content
author's profile photo Former Member
Former Member

Starting new foreground sessions from ABAP program.

I am trying to start multiple foreground sessions from a 'driver' module asynchronously.

I have tried various forms of the call transaction, submit report and wrapping the code in a function module that I have called asynchronously. The function module will start an independent session, but as a background task instead of foreground one.

Anyone have any ideas or tried this before?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 14, 2006 at 08:40 PM

    Yes, you can do it like this.

    report zrich_0001.
    data: session_name type string.
    do 3 times.
      session_name = sy-index.
      call function 'ABAP4_CALL_TRANSACTION'
          starting new task session_name
              destination 'NONE'
                     tcode                         = 'SM50'
                     call_transaction_denied       = 1
                     tcode_invalid                 = 2
                     others                        = 3.


    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rich,

      Sorry about the lag in my response. The place I work shuts down over XMAS and I took some extra vacation.

      I tried the function module you suggested. It works with the Dialog transactions I tried it with. I had tried doing something similar with a function module I wrote, ie using a call transaction in the function module, as well as using a submit report and recording the execution of the report in a BDC and wrapping it a function module and calling it asynchronously. None of them work, although the asynchronous call opens a new session. All I can figure is reports, ABAP or Painter, work different than the Dialog?

      Any other ideas.

      Thanks, Russ.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.