Skip to Content

Extracting factory calendar data to a DSO in #SAP #BW

Introduction

In order to work with factory calendar information it is sometimes helpful if the information would be stored in a datastore object for each day factory calendar and company code if it is a working day or not. The information is extracted after the “factory calendar” have been replicated via “Transfer global settings”

Howto extract the factory calendar information

To achieve this two function modules are needed FISCPER_FROM_CALMONTH_CALC and DATE_CONVERT_TO_FACTORYDATE.

The target DSO contains those key fields / data fields. The data fields aside from the working days keyfigure are optional but might be useful aggregated views are of intrest.

/wp-content/uploads/2013/11/21_11_328408.png

The dataflow in this example forsees to load the required company code / factory calendar assignments from the enhanced masterdata object 0COMP_CODE. This can also be altered to suit e.g. 0PLANT and those factory calendar informations.

/wp-content/uploads/2013/11/21_111_328407.png

The attached expert routine determines for each company code and factory calendar ID if the individual calendarday is a working day or not. The information is stored in the DSO.

Result

/wp-content/uploads/2013/11/20_11_328406.png

Each day is either 0 (no working day) or 1 (working day).

Attached are both the FM and the required expert routine.

19 Comments
You must be Logged on to comment or reply to a post.