Application Development and Automation 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: 
Read only

How can i backup a source code ?

Former Member
0 Likes
2,811

How can i backup a source code ?include text-elements screen include program etc.

7 REPLIES 7
Read only

Former Member
0 Likes
1,776

Right click the program of your source code. Then choose copy. Then enter a new name for the 'Copy to' field or it won't be copied then click save. Save to your own package or other package. Then you are done.

Read only

former_member189059
Active Contributor
0 Likes
1,776

saving it in a package will ensure that you have a backup if something happens to the program

however if something happens to the server, then both the copies will be lost

a more complete approach would be to save it in a request, release the request and take the generated files with you (keep it on your personal PC for example)

1. go to tcode se80 and create a package

2. when it prompts to save create a new request and save this number

3. enter description and click on save and then ok

4. now go to se38 and create your program (or use the one you wish to backup) and assign the package created above and put the same request number

5. if the program already exists and is assigned to a local object/different package, then follow the path “goto-> object directory entry” and put the above created package and request number

6. go to tcode se09 and make sure that “modifiable and released” are checked and click on display

7. Do the syntax check and consistency checks on the requests and release

8. go to tcode cg3y and download the data and CO files to your local pc from the following paths.

--> Data: E:\usr\sap\trans\data\R903789.IEC

--> CO: E:\usr\sap\trans\cofiles\K903789.IEC

Read only

0 Likes
1,776

Ok,thanks!

Read only

0 Likes
1,776

After realse the program,but i can't find any file in the data or cofiles,maybe need any other to setup,thanks.

Read only

0 Likes
1,776

Ensure that your request is not a local request

ie: when the request is filled, the 'Target' field should be filled

If the search help does not return any results, you will need to contact your Basis team to allow you to create such a request

Also, the name I gave in the previous post was just an example

the format is...

Data file -> R<request number>.<system id>

Co file -> K<request number>.<system id>

Read only

0 Likes
1,776

After i set a virtual host for my local system,it is ok,i find two file in 'data' and 'cofiles',but how i import the file to anthor local host?

Read only

0 Likes
1,776

This is for importing

9. Go to the Sever in which the request is to be imported

10. Go to transaction CG3Z and upload the data and co files to the respective folders on that server

11. Go to transaction STMS

12. Go to Overview -> Imports

13. Double click on the system (eg: CE6) <-- your sysid

14. Go to Extras -> Other Requests -> Add

15. Choose the request number (which will be the same as the one you created in the old server) and click on Ok

16. If a similar message is displayed as follows, click on ‘Yes’

‘Transport request IECK903 attach to import queue CE6’

17. Your request number will get added to the list

18. Select it and go to Request -> Import

19. Choose your client (same as client on the current server) (you can fiddle with other options in the Options tab

20. Click on Ok and if a similar message is shown as follows, click on Yes

The import is being executed with the following options

Asynchronous:

- Leave transport request in queue

Import transport request IECK903789 into system CE6

client 100?

21. A ‘Truck’ symbol will be shown in the Status column

22. Click on Refresh till the truck changes to a yellow triangle

23. Right click on the request and click on logs to view any errors or messages

24. If no errors then transport is successful