cancel
Showing results for 
Search instead for 
Did you mean: 

APO Badi Macro

Former Member
0 Kudos

Dear All,

In APO Macro Builder, we have a BAdi Macro.

Can you tell how to use this?

Thanks,

Santhana.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

In SE19, create a new implementation for Enhancement Spot /SAPAPO/ADV (using the "New BADI" option).

Then, in the code, you can add a series of Case statements that will allow you to identify which BADI macro you're running (see below).

You can get the layout, view, and macro ids in the macro workbench, by selecting the macro, and where you define the name, clicking on the Technical Details button

Sample Code:

  CASE i_adv_layout.
*
    WHEN '4AYAN729QPV'.                       
      CASE i_adv_view.
*
        WHEN '4AYAN79Y9OH'.                    
*
          CASE i_adv_macroid.
*
            WHEN '4B1M0ZRFXWDK0VEWCSSQABTQC'.  "Macro Name

*            Enter Coding Logic Here

ENDCASE.
ENDCASE.
ENDCASE.

CS

Former Member
0 Kudos

We have user exit macro , can check SMOD -APODM005 .

Manish