WP07 Act PP DS

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

10Steps2S4

PP/DS Activation

Installed Base Conversion

February 2019
Version 1.3
10Steps2S4 – [ACT] PP/DS Implementation

1 Introduction........................................................................................................................................3

2 Installation of liveCache for S/4HANA ................................................................................................4

3 Configuration of PP/DS ......................................................................................................................9

4 Master Data Transfer ....................................................................................................................... 17

5 Appendix ......................................................................................................................................... 21

2
10Steps2S4 – [ACT] PP/DS Implementation

1 Introduction
Production Planning and Detailed Scheduling (PP/DS) for SAP S/4HANA is not a legal successor of the
PP/DS component from the SAP SCM Server. Data migration and customer code migration from PP/DS
component from the SAP SCM Server is not supported by the standard solution.

The following guide describe the steps required for the activation of PP/DS after a conversion to
S/4HANA.

1.1 Most important notes and documentation


2666947 - Restrictions and Implementation Main note including configuration steps
Recommendations for Production Planning and
Detailed Scheduling for SAP S/4HANA 1809

2434851 - How to setup Advanced Planning Activate and maintain CIF basic settings for
(PPDS) in S/4 HANA (CIF Basic Setup) PP/DS

2407589 - Manual installation of liveCache for Installation and basic configuration of liveCache
S/4HANA 2407589 - Manual installation of in S/4HANA
liveCache for S/4HANA

3
10Steps2S4 – [ACT] PP/DS Implementation

2 Installation of liveCache for S/4HANA


2.1 Install the LCAPPS plugin
We recommend that you use the latest version of the LCAPPS plugin for the SAP HANA revision that you
use. You can determine the appropriate version using SAP Note 2074843; please also see SAP Note
2074788. SAP Note 2037585 describes where to find the LCAPPS plugin in the SAP Support Portal and
how to install it. Installing the plugin requires a downtime of the SAP HANA database.

NOTE: No activities required since the plugin is already installed.

2.2 Creating liveCache connections


To include liveCache in the S/4HANA system, you must create the three liveCache connections LCA,
LDA, and LEA in the DBA Cockpit (transaction DBACOCKPIT) for the ABAP schema users.

The ABAP schema user is the standard user of the SAP HANA instance, as displayed in the menu
item°"System" -> "Status", in the section "Database Data" --> "Owner". This user is referred to in the
following as <ABAP-USER> (previously, this was usually the user SAP<SID> for S/4HANA 1610, and in
later versions also the users SAPABAP1 or°SAPHANADB).

1. Call transaction DBACOCKPIT


2. Double-click on Database Connections and Add a new one

3. Define the parameters as per the following picture (password is jk366SAP)


NOTE: Use your database host details and not linux-hk00

4
10Steps2S4 – [ACT] PP/DS Implementation

4. Save and test the connection

5. Create other 2 identical connections named LDA and LEA and test them to make sure they are
Working

5
10Steps2S4 – [ACT] PP/DS Implementation

2.3 SAP HANA Studio


In order to execute liveCache procedures in the SAP HANA database and to log warnings, it is necessary
to execute the following SQL commands as a system administrator in SAP HANA Studio:

GRANT AFL__SYS_AFL_LCAPPS_EXECUTE to <ABAP-USER>


create schema lcaalerts
GRANT SELECT on schema LCAALERTS to <ABAP-USER>
GRANT INSERT on schema LCAALERTS to <ABAP-USER>
GRANT DELETE on schema LCAALERTS to <ABAP-USER>
GRANT CREATE ANY on schema LCAALERTS to <ABAP-USER>
GRANT DROP on schema LCAALERTS to <ABAP-USER>

NOTE: Nothing required since it has been already done as part of the preparation activities.

2.4 Implement SAP Note 2664811


2664811 - liveCache tables have incorrect table type on SAP HANA 2.0 >= SPS03

Correction in support packages mentioned below. In urgent cases, you can implement the correction
instructions as an advance correction.
Execute the program /SAPAPO/OM_CREATE_LC_TABLES to rectify inconsistencies.

1. Implement SAP note 2664811 from transaction SNOTE


2. DO not execute the suggested program now as it will be part of the next step.

2.5 Initialization reports


Now execute the°report SLCA_INIT_FOLLOW_UP in the S4/HANA system, and after it has finished
successfully, execute the report°/SAPAPO/OM_CREATE_LC_TABLES. This prepares liveCache for use
in S/4HANA and creates the database tables required for operating the liveCache.

1. Run program SLCA_INIT_FOLLOW_UP from SE38

6
10Steps2S4 – [ACT] PP/DS Implementation

2. Specify parameter LCA for the “DB Connection Name” and press “Execute”

3. Check that the execution was successful

4. Run report /SAPAPO/OM_CREATE_LC_TABLES


5. If the execution is successful there is no result

2.6 Live cache jobs running regularly


For the correct operation of liveCache, some programs must be executed regularly, for example, updating
the calendar or cleaning up obsolete liveCache data. For this reason, you must schedule the following
background jobs periodically:

/SAPAPO/OM_REORG_DAILY in every liveCache-relevant client: daily (preferably at night)

/SAPAPO/OM_DELETE_OLD_SIMSESS in a liveCache-relevant client: every 30 minutes

/SAPAPO/OM_LCAALERTS in a liveCache-relevant client: every 12 hours

1. Schedule the jobs using SM36

2.7 Checking the installation


To determine whether liveCache was set up and integrated correctly, you can execute the following
transactions in your S/4HANA system:

/n/sapapo/om13: liveCache Health Check. Note in particular any error messages on the tab page
"Checks"

/n/sapapo/om03: Basic check of the PP/DS function

1. Execute transaction “/n/sapapo/om13”


2. Check that in the tab “Checks” all lights are green

7
10Steps2S4 – [ACT] PP/DS Implementation

3. If you have any red items check the information and complete the related activity
4. Execute transaction “/n/sapapo/om03”
5. If everything is ok you will just get a message on the buttom saying “liveCache-test at LCA
finished without errors”

8
10Steps2S4 – [ACT] PP/DS Implementation

3 Configuration of PP/DS
3.1 Settings in Customizing
3.1.1 Activate Advance Planning flag in customizing
1. Call transaction SPRO and click on button “SAP Reference IMG”
2. Navigate to Advanced Planning à Basic Settings à Activate Advance Planning and Scheduling
3. Select “New entries” and activate the option
4. Save the changes selecting a customizing request or creating a new one

3.1.2 Global settings in customizing


Enable number range in PP/DS for SAP S/4HANA in PP/DS global parameters and values (Transaction
/SAPAPO/RRPCUST1). In addition, maintain number ranges for production campaigns and
interchangeability groups depending on the usage of these functions.

1. Call transaction SPRO and click on button “SAP Reference IMG”


2. Navigate to Advanced Planning àGlobal Settings à Maintain Number Ranges for Orders
3. Define the number range

4. Confirm the warning message and Save


5. Go back to transaction SPRO
6. Navigate to Advanced Planning àGlobal Settings à Maintain Global Parameters and Defaults
7. Set the number rages and change the Plan Explosion value as per the following picture

9
10Steps2S4 – [ACT] PP/DS Implementation

3.1.3 Setup integration via Core Interface (CIF)


Set up the CIF customizing in customizing by choosing Basic Settings for Creating the System
Landscape, and by including SAP S/4HANA with system type SAP_APO and release 713 so that an
Integration model pointing to itself (own system and client) can be created and logical system and queue
types could be maintained. Set up CIF user parameters. Register the CIF queue (Transaction SMQR).
There is no need for maintaining distribution definition or publication types as the PP/DS is part of SAP
S/4HANA. SAP recommends using CIF Post-Processing as the error-handling option to avoid queue
blocks.

1. Call transaction SPRO and click on button “SAP Reference IMG”


2. Navigate to Advanced Planning à Integration via Core Interface (CIF) à Integration à Basic
Setting for Creating the System Landscape
3. Execute “Name Logical System”
4. Define a Logical System for your system in client 100 (e.g. S4HCLNT100)

5. Go back
6. Execute “Assign Logical System to a Client”
7. Double click on client 100
8. Make sure that the Logical System assigned is the one you created or verified previously

10
10Steps2S4 – [ACT] PP/DS Implementation

9. GO back
10. Execute “Set up RFC Connection”
11. Create a new connection with the same name of the logical system you previously defined.

11
10Steps2S4 – [ACT] PP/DS Implementation

12. Maintain Logon information

13. Test the connection


14. Go back to SPRO
15. Execute “Assign RFC Destination to Various Application Cases”
16. Maintain a new entry containing the logical system and the RFC connection

17. Save
18. Go back to SPRO
19. Execute “Maintain Business System Group”
20. Create a new entry for a new business system group

12
10Steps2S4 – [ACT] PP/DS Implementation

21. GO back to SPRO


22. Execute “Assign Logical System and Queue Type”
23. Create a new entry to reflect the following picture

24. Go back to SPRO


25. Navigate to Advanced Planning à Integration via Core Interface (CIF) à Basic Settings for Data
Transfer
26. Execute “Set User Parameters”
27. Maintain the following options

28. Save the settings


29. In SPRO navigate to Advanced Planning à Master Data à Resource
30. Execute “Define Capacity Variants”
31. Define the following variants

32. Save the settings

3.2 Additional Settings in Central Functions


Check if pre-delivered ATP categories exist. Refer S/4HANA Administration Guide for Implementation
and SAP Note 2272406 for more information.

1. Call transaction BF11.


2. Set the application indicator for ND-APO (New Dimension Plug-In APO) to active.
3. Verify if ND-APO and NDI (New Dimension Integration) is checked.

4. Call transaction NDV2.


5. Define the following new entry including the logical system, SAP_APO and version 713

13
10Steps2S4 – [ACT] PP/DS Implementation

6. Go to transaction SPRO
7. Go to Integration with other SAP Components à Advanced Planning and Optimization à Basic
Settings for Setting Up the System Landscape à Set Target System and Queue Type

Please Note: Value “T” as OpMode is set automatically after saving. In case OpMode value is
wrong or remains empty after saving use this program to update the entry

8. Go to Integration with other SAP Components à Advanced Planning and Optimization à Basic
Settings for Data Transfer à Set User Parameters

9. Go to Integration with other SAP Components à Advanced Planning and Optimization à Basic
Settings for Data Transfer à Initial Data Transfer à Determine Number Ranges for
Parallelization

14
10Steps2S4 – [ACT] PP/DS Implementation

10. Register the CIF Queue in transaction SMQR with the following settings

3.3 Model and version


Set up the Model '000' and Version '000' manually and check whether they exist. The PP/DS Horizon can
only be maintained at the level of planning versions in SAP S/4HANA.

1. To complete this activity you may have to deactivate the new Belize theme in SAP GUI otherwise
the “Save and activate” button won’t be displayed.
a. To do so log-off from the system and in the SAP Logon screen open the “Options…”

b. In the options under Visual Design select the Theme Preview/Settings and deactivate the
option “Accept Belize theme”.

15
10Steps2S4 – [ACT] PP/DS Implementation

c. Now logon again to the system and you will see the old SAP GUI theme.
2. Call transaction /N/SAPAPO/MVM
3. Create model “000”

4. Create version “000”

16
10Steps2S4 – [ACT] PP/DS Implementation

4 Master Data Transfer


For relevant materials create/update Advanced Planning View and set “advanced planning” flag and
other relevant Advanced Planning Settings such as Heuristic, Pegging, etc.

Run Program: /SAPAPO/CREATE_LOCATION or /SAPAPO/UPD_LOC_SP_PL

Location: 1000

17
10Steps2S4 – [ACT] PP/DS Implementation

4.1 Relevant Materials and Work centers


1. Call transaction MM02
2. Select the relevant material
3. In view “Advanced Planning” select the option Advance Planning and Save

4. Confirm the warning with Enter


5. Save
6. Please Note: Materials that were created in SAP S/4HANA releases prior to 1610 have to be
enabled for usage in PP/DS in SAP S/4HANA. To do so run report
PRD_SCM_GUID_CONVERSION. For more information, check the report documentation.
7. Call transaction CR02
8. Select the relevant Plant and Work center
9. Confirm and select the option “Advance Planning in the tab Basic Data

18
10Steps2S4 – [ACT] PP/DS Implementation

10. Save

4.2 Transfer Production Data Structures (PDS)


1. Call transaction CURTOADV_CREATE
2. Select the plant and the material you would like to use
Please Note: Note this also needs to be done for phantom assembly BOMs
3. Schedule a periodic job to transfer the data

19
10Steps2S4 – [ACT] PP/DS Implementation

20
10Steps2S4 – [ACT] PP/DS Implementation

5 Appendix
5.1 ABAP Report

REPORT ZTARGETSYSTEM_MAINTAIN_OPMODE.

TABLES: cifopmode.
DATA: lv_logsys type TBDLS-LOGSYS,
ls_cifopmode type cifopmode.

"Operation modes
CONSTANTS: lc_opmode_std type C VALUE 'T'." Transactional Events

CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'


IMPORTING
OWN_LOGICAL_SYSTEM = lv_logsys
EXCEPTIONS
OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
exit.
ENDIF.

* select row for update


SELECT SINGLE * FROM cifopmode into ls_cifopmode WHERE
logsys = lv_logsys.
* must exist
ASSERT sy-subrc = 0.

IF ls_cifopmode-opmode is INITIAL.
ls_cifopmode-opmode = lc_opmode_std.
modify cifopmode from ls_cifopmode.
ENDIF.

21

You might also like