‎2015 Sep 21 9:14 AM
Hi,
I would like to read simply all components included in a Function Group from a specific ABAP code.
Is there a MF to perform that?
thank you very much.
Rachid.
‎2015 Sep 21 9:50 AM
Depending on what you mean with "components". All function modules?
DATA:
function_modules type standard table of tfdir-funcname,
pname type syrepid value '.....' "type in your main program name / function group
SELECT funcname
INTO TABLE function_modules FROM TFDIR
WHERE pname eq main_program.
‎2015 Sep 21 9:50 AM
Depending on what you mean with "components". All function modules?
DATA:
function_modules type standard table of tfdir-funcname,
pname type syrepid value '.....' "type in your main program name / function group
SELECT funcname
INTO TABLE function_modules FROM TFDIR
WHERE pname eq main_program.
‎2015 Sep 21 9:56 AM
Hi Rachid
You can pass function group name to the FM FUNCTION_SELECT_TFDIR, it will provide you the list of function modules in given function group.
Regards,
Pravin
‎2015 Sep 21 10:01 AM
‎2015 Sep 21 10:12 AM
‎2015 Sep 21 10:14 AM
Well, let's decide the questioner, who wins the medal "correct answer" (just kidding)
‎2015 Sep 21 10:41 AM
Hi guys!
Thank you all.
In fact, I need all components included in my Function Group:
That includes mainly:
Cheers,
Rachid.
‎2015 Sep 21 10:45 AM
Oh, this is a problem. A DDIC-Structure is not a component of a function module or function group, it's just included in it's where-used-list.
Perhaps you should tell us, what exactly you want to do with that list of "components"
‎2015 Sep 21 11:11 AM
Hi Ralf,
basically, we have a Function Group developed in a customer XYZ in 2012 and we want today, to migrate all this function group into another environment.
That must include necessary all the components (program, transaction, ddic (table, struct), MF etc..) of the Function group.
Have you got any advice?
Rachid.
‎2015 Sep 21 11:19 AM
At first, you have to check if this migration causes any naming conflicts.
If not, you need to create a transport request, including all regarding objects. You can do that with an ABAP or manually in SE10. In most cases, the effort to do that with an ABAP is higher than doing that manually. This avoid inconsistencies in this transport request (it's difficult, to create a consistent transport request with an ABAP).
Finally, you have to release and import that transport request into your target system.
‎2015 Sep 21 11:20 AM
There are couple of ways to do it.
1. Download everything using ABAP Download Program available on SAP LINK
2. Use How to copy Repository Objects between non-connected SAP systems - ABAP Development - SCN Wiki
Thats basically creating a transport for all the objects and importing it across.
3. Goto the package view and manually create the listed objects.
Regards,
Manu
‎2015 Sep 21 11:56 AM
Hi,
yes, but it is time-consuming to do that in the case of more that 50 function group. That's why, we would like to create a program to perform this need automatically.
Rachid.
‎2015 Sep 21 12:00 PM
I created transport requests with more than 50 items within an hour......