‎2012 Jun 28 11:46 AM
Hi Guys,
I was working on an ABAP Program to Download the code of a Function Module by provding the Function Group name, Function module name & Package name in the selection screen, this is working fine....My question is: In which Database Table all these Function Modules code reside??
Thanks in Advance,
Nawaz
‎2012 Jul 01 7:04 AM
Hi Guys,
Thanks for your response.
I am able to download the code of the Function Module
by following the procedure you guys posted. I want to know the Database table name where the Function module code resides, My aim here is to update a Function Modules code using a program without going to se37 tcode.
Thanks,
Nawaz
‎2012 Jun 28 11:56 AM
Hi, the table TFDIR hold's the name of the function pool. You can use the function pool name to fetch the code from the table REPOSRC.
‎2012 Jun 28 12:07 PM
Hi vijay,
You can use table TFDIR to fetch the program name and include name for function module.
There is one more way to fetch,
You can use TADIR table to fetch the program name and program type (Field name SUBC)
and make inner join with REPOSRC table to get the program id , object, dev class.
Here you can find the sample program, to downlod all the function module code to PC.
http://www.dalestech.com/products/massdownload.htm
Regards,
Ramya R
‎2012 Jun 29 10:12 AM
Hi vijay,
If you get solution , pls update so it will be useful for others also.
Regards,
Ramya R
‎2012 Jun 28 12:03 PM
‎2012 Jul 01 7:04 AM
Hi Guys,
Thanks for your response.
I am able to download the code of the Function Module
by following the procedure you guys posted. I want to know the Database table name where the Function module code resides, My aim here is to update a Function Modules code using a program without going to se37 tcode.
Thanks,
Nawaz
‎2012 Jul 01 7:58 AM
Hi Faheem,
I guess REPOSRC has a field(DATA) which has the source code in a Compressed form.
You can try to decompress it using DECOMPRESS_TEXT of CL_ABAP_GZIP but I am not sure how much this will work. The data field could also be encrypted.
You can work with the READ REPORT, DELETE REPORT and INSERT REPORT in the same order and modify your source code.
Thanks,
Shambu
‎2012 Jul 02 2:04 PM
No need to use DELETE REPORT as INSERT REPORT will ovewrite existing code (without warning )
Regards,
Raymond
‎2012 Jul 03 7:29 AM
Hi Shambu,
Thanks for your help.
With your help I have fulfilled my Objective.
Can you please tell me how to upload an Excel file with multiple tabs into multiple Internal tables....??
Thanks in advance,
Nawaz
‎2012 Jul 03 7:49 AM
No complicated code required, use the utility class CL_RECA_RS_SERVICES, method GET_SOURCE. This class will work for object types : Program, Class, interface & Function group.
Regards, Vinod
P.S: Will work only for extraction of source code and not for updating.
Message was edited by: Vinod Kumar