Skip to Content
-1

Copy Standard Function module (ISU_PROFILE_GET_EPROFVAL10 ) to Z Function module

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 ?

Add comment
10|10000 characters needed characters exceeded

  • 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?

  • Follow
  • Get RSS Feed

9 Answers

  • Best Answer
    Apr 09 at 09:24 AM
    -1

    Hi Sou S,

    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.


    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 03:57 AM

    Hi,

    Try enhancement in Standard.

    Regards,

    Venkat.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 04: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:

    1. Use a user exit
    2. Use an implicit enhancement point
    3. Modify SAP standard
    4. Copy SAP standard.

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 03:19 AM

    Hello Sou S ,

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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 ..

  • Apr 09 at 08:31 AM
    -1

    Hi Sou S,

    Okay I understand now. Can you please confirm what is the error you are getting when copying?

    Regards

    Rohit

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 08:55 AM
    -1

    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 .

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 09:43 AM
    -1

    Hi Sou S ,

    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


    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 09:56 AM
    -1



    * 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 .







    community.png (22.0 kB)
    error-message.png (30.5 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 03:13 PM
    -1

    Hello,
    Thank you for your answer .
    i tried to correct all the errors .
    the function modules are activated now .
    im trying to test them .

    Add comment
    10|10000 characters needed characters exceeded