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

Function pool

Former Member
0 Likes
1,917

Hi

I am trying to copy a sap standard program and atach it to a tcode. The sap standard program is infact a functin pool with around 4 fmodules.

How should i create a z function pool. Does anyone have idea?

Thks,

Sri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,780

Go to SE38. Give the name of the main program 'SAPLXXXX' where XXXX is your function group. Press Copy and give your new function group name and description. After that it will prompt you to copy the function modules. Select the ones you want to copy.

17 REPLIES 17
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,780

In SE80 enter the function group name, and change the dropdown list to function group, hit enter. Now right click on the function group name, and click copy. Enter the name of the "Z" function group. System will then ask you to copy the funciton modules, which you should rename as "Z" function modules. Save and activate. That's it.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,781

Go to SE38. Give the name of the main program 'SAPLXXXX' where XXXX is your function group. Press Copy and give your new function group name and description. After that it will prompt you to copy the function modules. Select the ones you want to copy.

Read only

Former Member
0 Likes
1,780

Hi Sri

Depend on which function modules you need.

It usually copies the components that have to be modified.

What do you want to do? Which is the standard program?

Max

Read only

Former Member
0 Likes
1,780

Hi all,

I did in the same way. I copied the existing program into some y program and copied the fmodules in to a y function group.

But how should i attach this to a y tcode and how should i create a program name ?

Rgds,

Sri

Read only

0 Likes
1,780

When you copied the function group, system will create a new program SAPLZZTEST where ZZTEST is your new function group. Give this as your program name in SE93 when creating the tcode. Use the pulldown and choose the appropriate screen number.

Read only

0 Likes
1,780

Is the original FM attached to a transaction code? If so, you should copy it as well and point it to your development.

Rob

Read only

Former Member
0 Likes
1,780

Hi all,

Thanks all for your responses.

I am getting a probnlem. I have created a new tcode and attached the saplyyxxx to it and while creating tcode i have given the selection screen number same as in original tcode. When i am trying to use new tcode the selection screen is blank??

Any idea.

Rgds,

Sri

Read only

0 Likes
1,780

Hi Sri

Have you tried to check the type of transaction you have created? Are you sure it's the same type of standard transaction?

Perhaps it's better if you say us which transaction you have copied.

MAx

Read only

Former Member
0 Likes
1,780

Hi Thanks for your response.

I am using HUMO tx. During this tx. the logs will b displayed in separate session. The requiremetn is not to create another session for log display.

What i did is copied the program of HUMO tcode program and copied into y function group and made changes and attached it to a tcode. Now the tcode is working but the program is giving the errors.

Can anyone have idea how to achieve this>

Rgds,

Sri

Read only

0 Likes
1,780

HUMO is defined for program RHU_HELP which is a normal executable program. Where did you get the function pool here?

Srinivas

Read only

0 Likes
1,780

I Sri

Perhaps you haven't copied all element you need.

Transaction HUMO is linked to program SAPLHUMO and screen 1040. So I've copied function group HUMO in ZHUMO and all functions in Z-functions too.

Then I created a new transaction ZHUMO linked to my new program SAPLZHUMO and its screen 1040 and all works fine.

Max

Message was edited by: max bianchi

Read only

0 Likes
1,780

I am sorry, I looked at the selection screen and took technical help from there instead of going to SE93. Max is right. It is program SAPLHUMO, screen 1040.

So you copied the function group HUMO to your ZZHUMO and created this transaction code. For the selection screen it is calling the function module HUMO_HU_MONITOR_SHOW.

Read only

Former Member
0 Likes
1,780

Hi,

Now it is working fine calling the corresponding screens. But the problem is when i debugged observed that it is calling the includes of HUMO tcode and the new humo tcode??

Any idea?

Rgds,

sri

Read only

Former Member
0 Likes
1,780

Hi Thanks for your response.

I am using HUMO tx. During this tx. the logs will b displayed in separate session. The requiremetn is not to create another session for log display.

What i did is copied the program of HUMO tcode program and copied into y function group and made changes and attached it to a y tcode. Now the tcode is working properly , but when i called the y tcode it is calling the standard program instead of copied program.

Can anyonehave idea?

Rgds,

Sri

Read only

0 Likes
1,780

did u change the copied pgm name in ur copied tcode..

std pgm RHU_HELP

std tcodo HUMO -


for pgm RHU_HELP

copied pgm ZRHU_HELP

copied tcode ZHUMO -


for pgm <b>RHU_HELP</b>

did u change this pgm name to <b>ZRHU_HELP</b>

In tcode SE93...

regards

gv

Read only

Former Member
0 Likes
1,780

Hi

Check the Y tcode in SE93 . You should have SAPLY... in program name instead of SAPLHUMO.

Cheers.

Read only

0 Likes
1,780

Hi Sri!

- Check in your new function group ZHUMO that all

compenents (screen, include...) are copied.

- I think you have to change the code of some new include. Infact I saw that the functions of HUMO often are called, so if there is 'CALL FUNCTION 'HUMO....' you should replace with 'CALL FUNCTION 'ZHUMO....'

Max