2019 Apr 08 10:37 PM
hello ,
my aim is to create a Z function module based on this one (ISU_PROFILE_GET_EPROFVAL10) .
i tried to clone the function group ..the function module .. but many errors appeared without changing anything .
is it the best method ? and how can i proceed ?
2019 Apr 09 10:24 AM
Hi sou_cons,
It looks like these might be coming due to not getting copying properly.
I hope you are used SE80 and copied the function group.
See below screenshots -
SE80 -> FG name -> Copy

The copy the Function Modules -

And, then change each FM name to Z FM name, like I did for first two as an example -

Hope this helps!
Feel free to come back if you need more help!
Regards
Rohit
PS. Kindly close the question if it is answered.
hello ,
my aim is to create a Z function module based on this one (ISU_PROFILE_GET_EPROFVAL10) .
i tried to clone the function group ..the function module .. but many errors appeared without changing anything .
is it the best method ? and how can i proceed ?
2019 Apr 09 1:16 AM
copy standard objects usually not a good ideal, it could have enhancement points, relevant objects that you dont know about... you cant wrap that function module in your Z one or isnt there any enhancement satisfy your requirement?
2019 Apr 09 4:19 AM
Hello sou_cons ,
Could you please share more details about your requirement and why do you want to make a copy?
This would help in answering you the right solution.
Regards
Rohit
2019 Apr 09 9:01 AM
Hello ,
Thank you for your answer .
To customize the inerval length of a profile(SAP EDM) i must create function Modules ( ISU_PROFILE_GET_EPROFVAL10 , ISU_PROFILE_PUT_EPROFVAL10 ....) (10 here is the standard interval length)
the standard ones are 05 min , 10 min , 15min , 30min , Day ..
my requirement is to add the interval 20 min .
=> i must create Z function Modules for example ZISU_PROFILE_GET_EPROFVAL20 ,ZISU_PROFILE_PUT_EPROFVAL20 ..
2019 Apr 09 4:57 AM
2019 Apr 09 9:31 AM
Hi sou_cons,
Okay I understand now. Can you please confirm what is the error you are getting when copying?
Regards
Rohit
2019 Apr 09 9:55 AM
Thank you .
My question is : what is the origin of errors if i have cloned the function group , the function module .. i haven't changed anything .
example of errors :
- the main program of 'function module name' does not begin with function-pool...
- Field co_table_ieprofval is unknown
- Field CO_TIME_VAL000 is unknown .....
and many others .
i'm trying to correct them one by one .
2019 Apr 09 10:24 AM
Hi sou_cons,
It looks like these might be coming due to not getting copying properly.
I hope you are used SE80 and copied the function group.
See below screenshots -
SE80 -> FG name -> Copy

The copy the Function Modules -

And, then change each FM name to Z FM name, like I did for first two as an example -

Hope this helps!
Feel free to come back if you need more help!
Regards
Rohit
PS. Kindly close the question if it is answered.
2019 Apr 09 10:36 AM
Thank you for your help .
Errors that i was talking about are after this step .
2019 Apr 09 10:43 AM
Hi sou_cons ,
I think you might be getting error due to something else. I can see that all the FMs and Function Group was activated successfully without any error.
Right click on the name of the Function Group and then choose - Activate

This step would activate all the FMs at one go.

Is it possible for you to share the details or the steps that you did?
Regards
Rohit
2019 Apr 09 10:56 AM

* ZSEEDM_PROFILE_MISC is cloned from EEDM_PROFILE_MISC as you mentioned before .
* the function Module ZSU_PROFILE_GET_EPROFVAL20 is cloned from ISU_PROFILE_GET_EPROFVAL10.
is the solution to correct errors now ?

i'm trying to correct the errors (that appeared while activating ) .
example : Form "Complete_Values" does not exist .
2019 Apr 09 4:13 PM
Hello,
Thank you for your answer .
i tried to correct all the errors .
the function modules are activated now .
im trying to test them .
2019 Apr 10 3:34 AM
2019 Apr 09 5:28 PM
Do not copy standard SAP code. It is almost every time the wrong thing to do. In over 20 years of ABAP programming, it's only ever been the right thing to do once.
From most preferable to least is:
The reason why copying SAP standard is a bad thing is that if there are patches, changes and/or upgrades applied to the original, they won't be applied to your copy. Often your copy will simply stop working with syntax errors. Worst case, it doesn't work properly but you don't notice until your data is corrupted.
Do not copy standard SAP code. It is almost every time the wrong thing to do
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |