Skip to Content
author's profile photo Former Member
Former Member

ABAP HR custom infotype query

Hi,

I created a custom infotype. After creation, I added my custom code to the system generated infotype code.

Due to some reason, I need to regenerate all the infotype objects again from TCode PM01. May I know, how can I prevent my custom written code from being overwritten by system generated code?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2009 at 07:04 AM

    Hi Amit,

    What you can do is you can write include for your code.

    So whenever you will be regenerating the infotype, your code without include will over right include your other screens will remain as it it.

    It can be working solution, which I use. so atleast efforts of writing again will be avoided atleast.

    Thanks & Regards,

    GauravPa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2009 at 04:25 AM

    Hi,

    If u regenerate the custom infotype again, all the code will be overwritten(the code you have written will be lost). So, better to copy the code in text file and regenerate the custom infotype, then add the copied code in include. You cannot prevent the overwrite of the code( i have done like this only).

    Regards,

    Thilotham.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Amit,

      You can keep same code as is it. When system ask to replace the inlcude(PBO, PAI,etc), if u say no, then code will not be overwritten. But the problem is, if u have added new fields then those fields are not reflected in the includes. So, it is better to copy the text and then generate the infotype.

      Regards,

      Thilotham.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.