0% found this document useful (0 votes)
46 views13 pages

and Upload The ABAP Code - SAP Community

This blog post provides a step-by-step guide on how to download an ABAP program from one SAP system and upload it into another. It outlines the necessary transactions and file formats required for the process, including the use of transaction SE38 for downloading and CG3Y/CG3Z for uploading. The post also notes limitations regarding dependencies on other transport requests that may need to be handled separately.

Uploaded by

ARPITA BISWAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views13 pages

and Upload The ABAP Code - SAP Community

This blog post provides a step-by-step guide on how to download an ABAP program from one SAP system and upload it into another. It outlines the necessary transactions and file formats required for the process, including the use of transaction SE38 for downloading and CG3Y/CG3Z for uploading. The post also notes limitations regarding dependencies on other transport requests that may need to be handled separately.

Uploaded by

ARPITA BISWAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

m
m
Products and Technology Groups Partners Topics Events What's New Get Started
u
ni
t
y
SAP Community  Groups  Interest Groups  Application Development  Blog Posts
 Download and upload the ABAP code

Application Development Blog Posts


Learn and share on deeper, cross technology development topics such as integration and connectivity,
automation, cloud extensibility, developing at scale, and security.

Blog  What are you looking for today?

Download and upload the ABAP code

pmayilvahanan
Participant

‎2019 Dec 13 1:54 PM

 8 Kudos  38,859

SAP Managed Tags: ABAP Development

Dear all,

In this blog post you will learn about how to download an ABAP program and upload into
another SAP system using simple steps.

1. Find the relevant program and its transport.

Transaction SE38 - Enter the program - Display-Utilities-Version-Version management -


find the latest TR number.

2. The TR should be downloaded into two file formats. One as Co file and another
one as data files.
https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 1/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

3. These files are stored in SAP directory. Use the transaction AL11 and the go to the
directory parameter DIR_TRANS and it will have a directory /usr/sap/trans. Inside
that we can see two subfolders called "Cofiles" and "datafiles"

4. Go to the source system and enter transaction CG3Y

5. From the TR number, remove the prefix of server name. For Example, if the TR
number is ERDK123456, just enter K123456. Enter the source path as
/usr/sap/trans/cofiles/K123456.ERD

6. The destination file path would be your local drive. Make sure you follow the below
format for the file name. K123456 followed by Server name followed by DAT. So,
the destination file name would be K123456.ERD.DAT

7. Download the file to your drive.

8. Do the above mentioned 3 steps to download the Data files. Data files Prefix will
be R instead of K. So the download parameter would be

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 2/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

9. Bring these files to the system where you want to copy the code.

10. Use the transaction CG3Z to upload the files in to SAP directories.

11. The parameters would be,

12. Do the same thing for Data files as well. Parameters would be,

13. We need to import these files as a Transport request. Go to the transaction STMS-
click on import overview - double click on target system name.

14. This will give the list of transports which are queued in the system.

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 3/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

15. In the menu - Extras - Other requests - Add - enter the Co file name and click on
continue. For ex: K123456.ERD

16. Now the file has been added to the import queue as a Transport. If you refresh the
screen, you can see the Transport in the list.

16. In the menu, Request click on Import.

17. Choose immediate import and in the options make sure that all boxes are
unchecked.

After these steps, you will see your program in the target system!

Limitation: If the program is having any FM /Method /table definition which is used in the

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 4/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

program but stored in the different Transport, it is not automatically copied. You need to
download all the relevant transports using the above said method.

Please let me know if you need further information on this.

Tags:

Downloadthecode

9 Comments

Sandra_Rossi
Active Contributor


‎2019 Dec 13 4:43 PM

 1 Kudo

Thank you for this interesting blog post. There's a little typo about the subdirectory
"datafiles", it should be "data". Note that CG3Y/CG3Z only exist in SAP ERP systems
(ECC, S/4HANA), in other systems a FTP client could be used (or develop a custom
ABAP tool).

michael_koehler2
Participant


‎2019 Dec 13 8:04 PM

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 5/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

 3 Kudos

Thanks for this interesting blog. Please note 3 things:

This and similar approaches work for every type of transportable object, not just for
ABAP code.

This approach may circumvent the CTS (Correction and Transport System) and its
safety and security measures. So in a productive environment, Systems Admin has
probably blocked it. Still, it is an alternative to move stuff between sandboxes for
trial and testing purposes.

Last, for ABAPGit geeks there are other ways... but that would be another blog
entirely, which I'm sure can be found in this forum.

hardyp180
Active Contributor


‎2019 Dec 14 4:01 AM

 2 Kudos

The problem with this approach is that it generally involves the BASIS department, and
the code when it arrives in the target system is "foreign" and cannot be changed without
the modification assistant, or changing the object directory entry.

That being said, transports are generally how updates to third party commercial add-ons
are installed.

For open source Z code, things like SAPLINK and AbapGit are the way to go.

Cheersy Cheers

Paul

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 6/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

chairat_onyaem
Participant


‎2019 Dec 14 9:00 AM

 1 Kudo

Thank you for the post. It helps me understanding more about what under the hood.

Jelena_Perfiljeva
Active Contributor


‎2019 Dec 17 10:56 PM

 2 Kudos

Nice effort but the title is slightly misleading. This is about upload/download of the
transport files, which could include other objects (e.g. dictionary elements).

This subject has already been well covered in other SCN blogs:

Upload a SAP Transport Request – Made Easy - this was posted just a few months ago,
covers the same exact steps but offers more information. More accurate title too.

Step by Step Instruction on How to Transfer Request to External System - same thing
from 2016

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 7/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

How to download / upload transport request from / to a server - 2013

How to Manually import transports into SAP without using command line TP - this is
vintage 2012 blog that I used long time ago, as evident from the comments. There were a
few even older ones but that one was most detailed.

Jelena_Perfiljeva
Active Contributor


‎2019 Dec 17 11:02 PM

 1 Kudo

I think that directory names could actually differ, at least it happened to me before (as I
noted in the comment to an older blog on this same subject). Not sure if it was just an
odd choice by the Basis folks or something else influenced it but we had 2 SAP systems,
both ECC and hosted by the same provider on the same OS, etc. And for some reason
they had different physical names for DIR_TRANS directory.

Sandra_Rossi
Active Contributor


‎2019 Dec 18 8:22 AM

 1 Kudo

I don't think that the names of "cofiles" and "data" subdirectories can be customized. Yes
for DIR_TRANS.

Again a duplicate blog post... In fact, merging both of them makes a complete blog
post... And even in the mentioned blog post, there's a typo on "cofiles", written "cofile"

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 8/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

Jelena_Perfiljeva
Active Contributor


‎2019 Dec 19 4:55 AM

 1 Kudo

Not going to argue on this, don't have access to that system anymore and am not sure
what exactly was he deal there. I just remember that I needed to copy the same files into
two SAP systems but had to use different path names for some reason. It was mildly
annoying since I couldn't just copy-paste.

P.S. There are actually multiple blogs with the same steps, I posted a separate comment
below.

Yasin
Active Participant


‎2021 Jul 08 3:08 PM

 0 Kudos

i think it is not available at ECC6

You must be a registered user to add a comment. If you've already registered,


sign in. Otherwise, register and sign in.

Comment

Labels In This Area

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 9/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

- SAP 1 @sapcommunity 1 A Dynamic Memory Allocation Tool 1

A Unit Test for function Module 1 ABAP 28 ABAP 7.4 7 ABAP API 1

ABAP auf HANA 1 ABAP BTP 1 abap cds 2 ABAP CDS VIEW 3

ABAP CDS Views 14 ABAP Class 1 ABAP Cloud 4 ABAP development 7

ABAP Environment & RAP 3 abap for sap hana 1 ABAP in Eclipse 2

ABAP internal sessions 1 ABAP Keyword Documentation 2 ABAP ODATA 3

ABAP OOABAP 6 ABAP Programming 4 ABAP RAP 4 ABAP RAP custom action 1

ABAP RAP(RESTful Application Programming) 2 abap reports 1 ABAP RESTFul API 2

ABAP RESTful Application Programming Model 2 ABAP RESTful Programming 1

abap technical 1 ABAP test cockpit 7 ABAP test cokpit 1 abapGit 1

adobe form 1 Adobe forms 2 ADT 1 Advanced Event Mesh 1 AEM 2 AI 4

AL11 1 ALV 1 alv oo 1 AMDP 1 AMDP CURD Operations 1

API and Integration 2 APIs 37 APIs ABAP 1 App Dev and Integration 2

Application Development 2 application job 1 application jobs 1 archivelinks 1

aRFC 1 AUNIT 3 authorization 1 Automatic PO during Goods Receipt 1

Automation 19 B2B Integration 1 BADI 1 Batch Management 1 BTP 1

BTP (Business Technology Platform) 1 BTP Destination 1 buffer 1

Business Application Studio 1 Business objects 1 Business Technology Platform 1

cache 1 CAP 4 CAP CDS 1 CAP development 2 CAPM 1

Career Development 11 CDS 1 CDS Access Control 1 CDS Views 1

CL_GUI_FRONTEND_SERVICES 1 cl_gui_html_viewer 1 CL_SALV_TABLE 4

Clean Core 1 Cloud Development 1 Cloud Extensibility 29

Cloud Foundry Deployment 1 Cloud Native 19 Cloud Platform Integration 1

CloudEvents 2 CMIS 1 coding 1 Condition Tables 1 Configuration 1

Connection 1 container 1 Create RAP Application 1 Customer Experience 1

Customer Portal 1 customizing client 1 CVA 1 Data Modeling 1 Debugging 2

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 10/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

Popular Blog Posts

Get Started with the ABAP Development Tools for SAP NetWeaver

OlgaDolinskaja
Product and Topic Expert

 177934  12  1442

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 11/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

Become an ABAP in Eclipse Feature Explorer and earn the Explorer Badge

ThFiedler
Product and Topic Expert

 33132  147  369

Six kinds of debugging tips to find the source code where the message is raised

JerryWang
Product and Topic Expert

 228263  56  322

Top Kudoed Authors

Dadapeer  10

Sandra_Rossi  5

Khan-Muskan  4

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 12/13
1/22/25, 11:06 PM Download and upload the ABAP code - SAP Community

AmveshKumar  4

Ravikumar_H  4

OlgaDolinskaja  3

Ruhoolla_Khan  2

harald_w  2

Shyam4U  2

NemanjaSimovic  2

View all

Privacy Terms of Use

Copyright Legal Disclosure

Trademark Support

Cookie Preferences
Follow

https://community.sap.com/t5/application-development-blog-posts/download-and-upload-the-abap-code/ba-p/13453292 13/13

You might also like