Skip to Content

Dynamic actions: weird variable ADD_BESCHZTR in SAP default action?!

Hello everyone,

in the default dynamic actions that come with every SAP installation there is the following section:

0000 STAT2 06 0 *-- DEUTSCHLAND AENDERUNGEN BEI WIEDEREINTRITT --

0000 STAT2 06 1 P T001P-MOLGA='01'

0000 STAT2 06 2 P PSAVE-STAT2='0'

0000 STAT2 06 3 P P0000-STAT2<>'0'

0000 STAT2 06 4 P P0000-BEGDA+4(4)<>'0101'

0000 STAT2 06 5 I COP,0012,,,(P0000-BEGDA),(P0000-ENDDA)

0000 STAT2 06 6 W P0012-BEGDA=P0000-BEGDA

0000 STAT2 06 7 W ADD_BESCHZTR='YES'

Basically I understand what these lines do, but the last of them confuses me. Where does the variable ADD_BESCHZTR come from, and what is its meaning?

As far as I know (based on the online documentation) only the variables Pxxxx (for the respective infotype), Qxxx (for extensions of some infotypes), PSAVE (old infotype value) and the structure RP50D are valid variables for use in dynamic actions. So what is the meaning of the assignment in that last line?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 06, 2014 at 01:27 PM

    This field is used in infotype 0012.

    If you go to SE38, type in MP001200, click on "find" and search for "ADD_BESCHZTR" in main program you can see where and how this field is used.

    Essentially used when changes are made to a certification period then the employee is issued with a message.

    Hope this has helped or answered your question.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Anthony,

      thank you for your message, which is helpful, as it points towards the right piece of code. In fact the message that can be triggered under certain circumstances is not the main point behind the variable. This variable triggers creating a new tax certification period itself (by being set to YES). Which is apparently why the dynamic action sets it in case of a re-entry action. I figure this is done because the code assumes that re-entry of an employee that used to have left the company always needs to trigger a new certification period, even if it occurs in the same fiscal year.

      But this triggers infotype 12 as the first infotype in the info group in this case, which can be irritating.. Especially if the info group contains infotype 12 itself, causing this infotype to appear twice during the re-entry action dialogue.

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.