Escolar Documentos
Profissional Documentos
Cultura Documentos
Summary
There are some instances when we want to be able to raise an event using an APO Planning Book Macro.
For example, there may be a need to allow the users to execute a certain background job or process chain
by just running a macro in the Interactive Planning screen. The background job or process chain can be set
to run after a certain event. The user can then execute a Planning Book macro which triggers the needed
event. This document describes the steps to implement this kind of functionality.
Author(s): Emmanuel Nepomuceno
Company: Hewlett Packard Asia Pacific
Created on: 19 December 2006
Author Bio
Emmanuel Nepomuceno is a SAP specialist working for Hewlett Packards Global Delivery
Center in the Philippines. Hes involved in various projects using APO, BW and ABAP/4.
Table of Contents
Applies to: ........................................................................................................................................ 1
Summary.......................................................................................................................................... 1
Author Bio ........................................................................................................................................ 1
Implementing the User Function in SE37 ........................................................................................ 3
Using the User Function in the Macro Workbench.......................................................................... 5
Related Content............................................................................................................................... 6
Disclaimer and Liability Notice......................................................................................................... 7
NOTE: It is very important that you configure the function module as shown below. Other configurations
(e.g. more parameters) may not work.
2) Specify the parameters in the CHANGING tab
FUNCTION Z_C_MACRO_RAISEEVNT .
*"---------------------------------------------------------------------*"*"Local Interface:
*" TABLES
*"
*" CHANGING
*"
*"
*"----------------------------------------------------------------------
clear f_calc_error.
l_event = l_value_tab-string.
= l_event
EXCEPTIONS
SAP DEVELOPER NETWORK | sdn.sap.com
2006 SAP AG
bad_eventid
=1
eventid_does_not_exist = 2
eventid_missing
raise_failed
OTHERS
=3
=4
= 5.
IF sy-subrc <> 0.
f_calc_error = c_error.
ENDIF.
ENDFUNCTION.
NOTE: You may also try to place the macro function within an action box.
Related Content