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

BADI, User Exit or Dynamic Action for Infotype 24

Hello,

in PA30, our HR admin team want me to write an Infotype 19 record when a user amends or creates an Infotype 24 record.

I spent all day yesterday trying to find a solution to this.

Can anyone please tell me:

1) Do dynamic actions work for IT0024? - our HR admin suggest that they don't as there is no 'subtype'.

2) Should user exit PBAS0001 (function EXIT_SAPFP50M_002) work for IT0024? I have tried putting in a test display which should appear on save of IT0024 and this does not appear to work.

3) Will BADI HRPAD00INFTY work? If so, does anyone have an example of code that tests the 'old' IT0024 record before modification - the documentation does not help too much with a good example. I'm planning to use this as a last resort due to the need for an access key.

Many thanks in advance,

Keiron.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2007 at 03:30 PM

    The BADI is probably the best way to go. You should not need an access key - you do not put your code in the BADI, but instead create an implementation of it in a Z name range. Go to SE18 for the BADI and display it, and select menu option implementation--->create. Give a Z name and then you will have a place to put your code. You can double click on the methods shown in your implementation to get to the ABAP code editor.

    Exit PBAS0001 should also work - put a breakpoint in it to see if it is called.

    Both the BADI and Exit are called at almost the same point in the SAP PA30 code - however the BADI is called in some cases when the exit is not. It is outside an additional IF test in the SAP code.

    Andrew

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello again Andrew - I've just revisited this problem and wondered whether you had time to confirm that the BADI HRPAD00INFTY works for IT0024.

      I just can't get it to work at all.

      I've put a breakpoint in all events of my implementation but they are reached for all other infotypes and not 0024 - same problem with the user exit.

      Hope you can advise,

      Keiron.

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.