Skip to Content
0
Former Member
Nov 23, 2008 at 02:35 AM

Use TH_CREATE_MODE to invoke another program with some parameters

269 Views

Hi:

TH_CREATE_MODE colud be a good solution to call transaction in a new session but I have to set some parameters to it just like SELECT-OPTIONS or something.

How to do this?

My code:

     CALL FUNCTION 'TH_CREATE_MODE'
       EXPORTING
         transaktion          = 'ZTEST'
         del_on_eot           = 0
         PARAMETERS           = 'S8-LOW=1000'          <-----incorrect I know
         PROCESS_DARK         = ''
*       IMPORTING
*         MODE                 =
       EXCEPTIONS
         max_sessions         = 1
         internal_error       = 2
         no_authority         = 3
         OTHERS               = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.