cancel
Showing results for 
Search instead for 
Did you mean: 

Call Transaction in new window

Former Member
0 Kudos

Hi!

I have to perform a call a transaction from a custom report but I would that the transaction is displayed in a new window (as SAP done for the help window)

Any suggest?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Salvatore

Do you mean new session?

Max

andreas_mann3
Active Contributor
0 Kudos

hi,

use fm TH_CREATE_MODE:

      CALL FUNCTION 'TH_CREATE_MODE'
           EXPORTING
                transaktion    = tcode
           IMPORTING
                mode           = cnt_mod
           EXCEPTIONS
                max_sessions   = 1
                internal_error = 2
                no_authority   = 3
                OTHERS         = 4.
      CASE  sy-subrc .
        WHEN 0.
        WHEN 1.
          MESSAGE e000(yp) WITH text-e01.
        WHEN 3.
          MESSAGE e000(yp) WITH text-e03 tcode.
        WHEN OTHERS.
          MESSAGE e000(yp) WITH text-eix.
      ENDCASE.

Andreas

Former Member
0 Kudos

Hi,

TH_CREATE_MODE colud be a good solution to call transaction in a new session but I have to set some parameters.

What about this?

Former Member
0 Kudos

Hi

Andreas solution is good if you run a trx without parameters, but if you need to do the call like:

CALL TRANSACTION <...> AND SKIP FIRST SCREEN

I solved it inserting the CALL TRANSACTION into a fm I called using the option STARTING NEW TASK:

report znew_tusk .

call function 'Z_NEW_TUSK'

starting new task 'ZMIO'

exporting

transaction = 'VA03'.

FUNCTION z_new_tusk.

*"----


""Interfaccia locale:

*" IMPORTING

*" VALUE(TRANSACTION) TYPE SY-TCODE

*"----


SET PARAMETER ID 'AUN' FIELD '0011100405'.

CALL TRANSACTION transaction AND SKIP FIRST SCREEN.

ENDFUNCTION.

Max

Former Member
0 Kudos

Hi salvatore,

1. TH_CREATE_MODE

2. In this FM.

pass TRANSAKTION = your tcode

pass DEL_ON_EOT = 0

3. The transaction will open in NEW window.

regards,

amit m.