Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI problem

abapdeveloper20
Contributor
0 Likes
530

Hi all,

My requirement is to update the appraisal template's procedure tab by calling the HRHAP_DOCUMENT_MODIFY.

I have implemented the code in the BADI HRHAP00_DOC_SAVE under the method SAVE_DOCUMENT. This badi gets triggered whenever the appraisal template status is changed from In preparation to In Planning.

The problem is :- when i'm trying to change the template status to In planning the badi is getting triggerd and the function module HRHAP_DOCUMENT_MODIFY is called ; it triggers the BADI again.. now it comes to the FM again... and again it triggers BADI... This is keep on running.

Any inputs how to control this..

Rgds,

Lakshmiraj

3 REPLIES 3
Read only

Former Member
0 Likes
459

Hi,

try to use the parameter: S_HEADER_STATUS, to restrict the flow of the BADI, check for the status and if it has certain status run it else skip it.

Cheers,

Srini.

Read only

abapdeveloper20
Contributor
0 Likes
459

Solved.

Read only

abapdeveloper20
Contributor
0 Likes
459

Solved by own.