cancel
Showing results for 
Search instead for 
Did you mean: 

Calling BAPI_PBSRVAPS_GETDETAIL2 in BADI Macro

former_member198275
Active Contributor
0 Kudos

Hi,

In APO planning book /sapapo/sdp94, I have to call BAPI_PBSRVAPS_GETDETAIL2 to read another PB/DV key figure details in BADI macro /SAPAPO/IF_EX_ADVX~USER_EXIT_MACRO. But when I read the other PB/DV KF, the displayed PB/DV is getting replaced with the calling PB/DV. How to restrict that, I want to retain the old PB/DV in SDP94 ?

Example :  Suppose I'm in PB ABC and DV ZXY, and there in the BADI macro I have written code to read KF form another PB ASD and DV GHJ by BAPI_PBSRVAPS_GETDETAIL2 and once the reading is complete my PB ABC is getting replaced with  ASD in the /SAPAPO/SDP94 view.

PB : Planning book

DV: Data View

KF: Key Figure

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member198275
Active Contributor
0 Kudos

Issue solved. I called the BAPI outside of PB and return the values back in PB.

claire_yang
Contributor
0 Kudos

Hi,


This may depend on your BADI macro, I suggest to  review your macro first.

BR
Claire