Entering content frameFunction documentation SAP Enhancements (Customer Exits) for Planning Locate the document in its SAP Library structure

Use

SAP Enhancements are used to go to customer-specific program sections from the standard SAP System, thereby enhancing the standard function with customer-specific requirements.

Customer-specific coding is managed as isolated objects in the customer namespace.

Enhancements are available for planning the following functions:

Prerequisites

To fill the relevant user exit, create an enhancement project using ABAP Workbench ® Utilities ® Enhancements ® Project management, transaction CMOD. Then assign the enhancements to the project. Maintain this in Customizing for Merchandise and Assortment Planning using Function enhancements - Planning.

For more information about SAP enhancements, see Structure link Changing the SAP Standard (BC) in R/3 Enhancements Concept.

Example

Use the customer exist to import data from different SAP applications, and then make these available in manual planning.

For example, data from CO-PA (for example, costs, revenues, data from conditions tables prices, rebates) is imported and then used in the planning layout as additional key figures.

In this example, the values in the Price reduction field for CO-PA should be imported from results area S001 (table CE1S001) and placed in the field for the customer-specific additional key figures in planning layout PLMNI02.

The coding for this example may be as follows:

************************************************************************************

* INCLUDE ZXWXPU03 *

************************************************************************************

* The following exit imports data from the results area in CO-PA *

* to Merchandise and Assortment Planning (MAP) *

* for information purposes. In the example, the data contained in the Price reduction value *

* field in CO-PA is imported from results area S001 (table *

* CE1S001) and placed in the field for the customer-specific additional key figure. *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* Scenario: Importing Data from CO-PA: *

* To import data from CO-PA, ensure that the characteristic for data from CO-PA *

* is defined in the results area as a characteristic *

* or that it is defined using another characteristic *

* (for example, article => merchandise category). *

*************************************************************************************

* Data declaration (result area table) *

TABLE: ce1s001.

* Internal structure for combining the date fields *

* Fiscal year and 3-character calendar month. *

DATA: BEGIN OF itab,

matnr LIKE mara-matnr,

gjahr(4) TYPE n,

spmon3(3) TYPE n,

END OF itab.

* Fiscal year and + 3-character calendar month. *

DATA: str3(7) TYPE n.

* Type conversion *

FIELD SYMBOLS: <praba>.

DATA: praba TYPE P DECIMALS 2.

* Planning layout query as additional key figures do not *

* have to be used in all planning layouts. *

CASE i_form.

WHEN 'PLMNI02'. "only here if the layout name = PLMNI02

* Read internal table "t_itsel_max" that contains the selection characteristics

* for manual planning and enter the data in table ITAB.

READ TABLE t_itsel_max WITH KEY fnam = 'MATNR'.

MOVE t_itsel_max-low TO itab-matnr.

READ TABLE t_itsel_max WITH KEY fnam = 'GJAHR'.

MOVE t_itsel_max-low TO itab-gjahr.

READ TABLE t_itsel_max WITH KEY fnam = 'SPMON3'.

MOVE t_itsel_max-low TO itab-spmon3.

* Link fiscal year and period

CONCATENATE itab-gjahr itab-spmon3 INTO str3.

* Read the CO-PA table using the selection characteristic key for

* manual planning and copying data to the export parameters.

SELECT SINGLE * FROM ce1s001 WHERE artnr = itab-matnr AND perio = str3 AND paledger = '01'.

ASSIGN ce1s001-praba TO <praba> TYPE 'P' DECIMALS 0.

e_value = <praba>.

WHEN OTHERS.

* Additional planning layout names can be queried

* if they contain different additional key figures.

ENDCASE.

********************************END-OF-CODING******************************

 

Planning layout PLMNI02 is structured as follows:

This graphic is explained in the accompanying text

You can use information about characteristics (calendar month, fiscal year, article number) to read the table for the results. The data transferred to the key is then prepared in manual planning.

When programming the customer exits, ensure that all characteristics are selected if they guarantee clear access to the table (CO-PA) that is to be read.

 

 

 

Leaving content frame