cancel
Showing results for 
Search instead for 
Did you mean: 

getting program code from AS Database

Former Member
0 Kudos

Hello!

I have to get some codes of mine from DB of ApplServ, because I have no access to it from GUI. Is there any tables in which abap code is saved? What are their names?

Thank you for your answres.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ravinder,

You could use this method but you would need to know the function group in which the function module was contained. For example, if you had a function group named MYFUNC, you would use the following SELECT in your R3trans command file:

SELECT REPORT WHERE NAME = 'LMYFUNC*'

That would export all ABAP INCLUDE source that comprises the function group. This would have the effect of exporting ALL function modules in that function group.

Regards,

Gary

Former Member
0 Kudos

Alexey,

If you have access at the operating system level with the <sid>adm user you could use R3trans to export the source code. Create a command file (e.g. PGMexp.cmd) in /usr/sap/trans/bin that contains the following:

export

client=000

file='PGMexp.dat'

SELECT REPORT WHERE NAME = '<report>'

Then, export the source code using command:

R3trans -w PGMexp.log PGMexp.cmd

Once the command returns, check PGMexp.log for errors.

Regards,

Gary

Former Member
0 Kudos

Hello Gary

Is there an way to get Function module code from the database in that way ??

Former Member
0 Kudos

Hi

I do not think that would be possible.

As the report source codes is stored in compressed format in table REPOSRC , field DATA.

Regards

Ravinder singh