Skip to Content
avatar image
Former Member

Remove old request

there are lots of old request which are already import. i want to remove old request . how can i do this and what is precaution before removing, there is any other use of old request. what is sideeffect of old request.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 22, 2009 at 06:27 PM

    You only want to delete them from the buffer correct ?? If so,

    you can do

    tp deletefrombuffer <SID> <REQUEST>

    This will delete the entries from the buffer file in /usr/sap/trans/buffer/<SID>

    Whenever you want to add or import then you need to do a

    tp addtobuffer <SID> <Request>

    Make sure you do not delete the data and cofile and also the log

    Log will give you the history of the request


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      My mistake. You do want to delete the data.

      Would not delete the data as you never know when a request comes in for history of a transport.

      Disk is cheap. Just add disk. If you really really need to then only move then to an alternate directory


  • Sep 22, 2009 at 05:02 PM

    at OS level, type:

    tp help

    you'll get the syntax of tp command. look for CLEAROLD

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2009 at 06:25 PM

    As Eric already has mentioned, this Note will help you further in understanding the concept

    SAP Note 41732 - Deletion of data in transport directory

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 23, 2009 at 07:06 AM

    Could you be a bit more specific.

    Do you want to:

    - remove old entries from the import queues


    - remove the old requests from SAP


    - remove the old requests physically from the \usr\sap\trans directory

    Removing the entries from the import queue has the consequence that you have a shorter import queue.

    The import history is still in the system when you look at different requests.

    Removing the requests from SAP means that you "archive" the old request information and it will not be available online.

    Removing the old requests physically means that you have to make sure that the request is already imported

    to the whole transport system landscape (e g to both QAS and PRD).

    Please note that when you are using the CLEAROLD function of tp,

    it will remove old requests AND the logs of requests as well.

    You should always have backup routines for \usr\sap\trans or /usr/sap/trans if a request is deleted by mistake.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If you perform a backup of the whole usr\sap\trans directory, the you got what you need in this area.

      short description:

      bin - is where the transport profile is located. The profile is used when calling program tp.
      buffer - this is where the actual import queues are located.
      cofiles - Information about the requests and what steps need to be performed during import.
      data - The actual data for the requests
      EPS - directory which SPAM/SAINT works with when patching the system.
      log - as it says. Logfiles.
      sapnames - Each user has it's own file here with a list of requests.
      tmp - as it says. Directory for temporary files.

      The easiest way is to use the tp functions.

      You can read more about this function under:

      [Software Logistics|]

      - Change and Transport System

      - Transport Tools

      - Transport control Program tp

      - tp: Additional function

      - Cleaning up the Transport Directory

      Here you can read about "tp clearold all" and "tp check all".

      If you still want to delete the files manually:

      Make sure that if you delete files from \usr\sap\trans\data, also remove files from \usr\sap\trans\cofiles accordingly.

      \usr\sap\trans\EPS\in can be emptied whenever you have performed a complete system landscape patch operation.

      Please note that you might have to unpack the patches again if you need to install additional languages in the system.

      Remove old entries from \usr\sap\trans\log as well.

      Please note that you should have a delete policy for cofiles, data and log.


      Save logs for 6 months and the cofiles and data 12 months.

      Still, a request can turn up after 1 year or so and then it's physically gone.

      Then you need to have your backups in order!.