Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

TMS_MGR_IMPORT_TR_REQUEST (don't leave trr in queue)

Former Member
0 Kudos

Hello,

   

We are in
some circumstances using this function module to import transports:

 

TMS_MGR_IMPORT_TR_REQUEST

    

The problem is, that it leaves the transports in the queue. Any good idea on how to avoid this?

   

As far as I can see there is not any parameter in the function module for this.

   

Any idea?

  

Regards,

Kenneth

1 REPLY 1

Former Member
0 Kudos

I'm using FM 'TMS_MGR_MAINTAIN_TR_QUEUE' to delete requests after successful imports:

CALL FUNCTION 'TMS_MGR_IMPORT_TR_REQUEST'
        EXPORTING
          iv_system                  = lv_system
          iv_request                 = wa_buffer-trkorr
          iv_client                  = wa_buffer_sotr-tarcli
          iv_monitor                 = 'X'
          iv_verbose                 = ' '
        IMPORTING
          ev_tp_ret_code             = lv_trretcode
        EXCEPTIONS
          read_config_failed         = 1
          table_of_requests_is_empty = 2
          OTHERS                     = 3.
      IF sy-subrc <> 0.
        MESSAGE e006(zmsg) WITH wa_buffer-trkorr wa_buffer-tarcli lv_system.
      ELSE.
        CALL FUNCTION 'TMS_MGR_MAINTAIN_TR_QUEUE'

          EXPORTING
            iv_command                 = 'DELFROMBUFFER'
            iv_system                  = lv_system
            iv_request                 = wa_buffer-trkorr
            iv_tarcli                  = wa_buffer-tarcli
            iv_monitor                 = ' '
            iv_verbose                 = ' '
          EXCEPTIONS
            read_config_failed         = 1
            table_of_requests_is_empty = 2
            OTHERS                     = 3.

     ENDIF.