‎2005 Sep 12 5:44 PM
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
‎2005 Sep 12 5:54 PM
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.
‎2005 Sep 12 5:51 PM
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
‎2005 Sep 12 5:54 PM
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.
‎2005 Sep 12 5:56 PM
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
‎2005 Sep 12 6:00 PM
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
‎2005 Sep 12 6:02 PM
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.
‎2005 Sep 12 6:29 PM
Is the original FM attached to a transaction code? If so, you should copy it as well and point it to your development.
Rob
‎2005 Sep 12 8:26 PM
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
‎2005 Sep 12 8:36 PM
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
‎2005 Sep 12 8:52 PM
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
‎2005 Sep 12 8:56 PM
HUMO is defined for program RHU_HELP which is a normal executable program. Where did you get the function pool here?
Srinivas
‎2005 Sep 12 9:08 PM
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
‎2005 Sep 12 9:26 PM
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.
‎2005 Sep 13 12:49 AM
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
‎2005 Sep 13 2:45 AM
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
‎2005 Sep 13 2:53 AM
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
‎2005 Sep 13 4:45 AM
Hi
Check the Y tcode in SE93 . You should have SAPLY... in program name instead of SAPLHUMO.
Cheers.
‎2005 Sep 13 9:00 AM
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