Skip to Content
0
Sep 08, 2015 at 04:19 AM

Calling BAPI_PBSRVAPS_GETDETAIL2 in BADI Macro

126 Views

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