12 Replies Latest reply: Feb 7, 2011 3:06 PM by Raymond Giuseppi RSS

Mass Transport request release

jk t
Currently Being Moderated

have 1000 transport request to release.I cannot relaese one by one in SE10.Can any1 eaxplain how to relase all the request at the same time.

  • Re: Mass Transport request release
    Kiran K
    Currently Being Moderated

    TJK,

     

    Check the below link.

     

     

    Mass Transport in STMS

     

    K.Kiran.

  • Re: Mass Transport request release
    Anji Reddy Vangala
    Currently Being Moderated

    Hi

    From Se09

    check the following

    go to the requests screen

    from menu

    REQUEST/TASK-> RELEASE->DIRECTLY OR BACKGROUND

    REQUEST/TASK->MORE REQUESTS

    may be useful

     

    Reward points if useful

    Regards

    Anji

  • Re: Mass Transport request release
    devender upadhyay
    Currently Being Moderated

    Hi Tjk,

     

    Well if you r talking abt transporting between clients than it is done through T-Code: SCC1

  • Re: Mass Transport request release
    António Nunes
    Currently Being Moderated

    The following ABAP code can help you:

     

     

    &----


    *& Report  ZTSTAN001

    *&

    &----


    *& Mass release of tasks/transport orders

    *& - Run it first to release CTS-tasks

    *& - Run it once again to release CTS-Change requests (creating the

    *&   Transport Orders)

    &----


     

    REPORT  ZTSTAN001.

     

    tables e070.

     

    select-options strkorr for E070-TRKORR.

     

    data: wakorr like e070-trkorr,

          tabkorr like standard table of wakorr.

     

    select trkorr from e070 into table tabkorr where trkorr in strkorr.

     

     

    loop at tabkorr into wakorr.

      CALL FUNCTION 'TR_RELEASE_REQUEST'

        EXPORTING

          IV_TRKORR                  = wakorr

          IV_DIALOG                  = ' '

          IV_AS_BACKGROUND_JOB       = ' '

          IV_SUCCESS_MESSAGE         = ' '

          IV_DISPLAY_EXPORT_LOG      = ' '

        EXCEPTIONS

          CTS_INITIALIZATION_FAILURE = 1

          ENQUEUE_FAILED             = 2

          NO_AUTHORIZATION           = 3

          INVALID_REQUEST            = 4

          REQUEST_ALREADY_RELEASED   = 5

          REPEAT_TOO_EARLY           = 6

          ERROR_IN_EXPORT_METHODS    = 7

          OBJECT_CHECK_ERROR         = 8

          DOCU_MISSING               = 9

          DB_ACCESS_ERROR            = 10

          ACTION_ABORTED_BY_USER     = 11

          EXPORT_FAILED              = 12

          OTHERS                     = 13.

     

     

    endloop.

    • Re: Mass Transport request release
      Raymond Giuseppi
      Currently Being Moderated

      There is even a BAPI to release transport requests...

      DATA: gt_e070 TYPE TABLE OF e070,
            return TYPE bapiret2.
      FIELD-SYMBOLS: <e070> TYPE e070.
      
      SELECT-OPTIONS: so_num FOR <e070>-trkorr.
      
      
      START-OF-SELECTION.
        SELECT * INTO TABLE gt_e070
          FROM e070
          WHERE trkorr IN so_num
            AND trstatus EQ 'D' " not yet released
            AND strkorr EQ space. " only request not task
      
        CHECK sy-subrc EQ 0.
      
        LOOP AT gt_e070 ASSIGNING <e070>.
          CALL FUNCTION 'BAPI_CTREQUEST_RELEASE'
               EXPORTING
                    requestid = <e070>-trkorr
                    complete  = 'X' " Release request including tasks
               IMPORTING
                    return    = return.
          IF NOT return-type IS INITIAL.
            MESSAGE ID return-id
                    TYPE return-type
                    NUMBER return-number
                    WITH return-message_v1
                         return-message_v2
                         return-message_v3
                         return-message_v4.
          ENDIF.
        ENDLOOP.

      Regards,

      Raymond

Actions