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

[ABAP] Read Function Group SE80 from an ABAP code

Former Member
0 Likes
2,360

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.

1 ACCEPTED SOLUTION
Read only

ralf_wenzel_heuristika
Active Participant
0 Likes
2,316

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.

12 REPLIES 12
Read only

ralf_wenzel_heuristika
Active Participant
0 Likes
2,317

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.

Read only

Former Member
0 Likes
2,316

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

Read only

0 Likes
2,316

That means: It does the same as my SELECT statement

Read only

0 Likes
2,316

yes it's same .

Read only

0 Likes
2,316

Well, let's decide the questioner, who wins the medal "correct answer" (just kidding)

Read only

Former Member
0 Likes
2,316

Hi guys!

Thank you all.

In fact, I need all components included in my Function Group:

That includes mainly:

  • Function Modules (thanks for that point)
  • Dictionary Structures
  • Type Groups
  • Types
  • Fields
  • Subroutines
  • Includes

Cheers,

Rachid.

Read only

0 Likes
2,316

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"

Read only

0 Likes
2,316

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.

Read only

0 Likes
2,316

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.

Read only

0 Likes
2,316

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

Read only

0 Likes
2,316

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.

Read only

0 Likes
2,316

I created transport requests with more than 50 items within an hour......