Vous êtes sur la page 1sur 88

AC120

EXERCISE 15 - CONFIGURE BPC WORK STATUS


WITH A BADI FOR IBPF

Tasks
1. Create the External Characteristic.

2. Maintain the Master Data Values.

3. Configure Work Status in BPC.

4. Create the Work Status BAdI in SAP ECC.

Field Name Value


InfoObject U01_EPC
Long Description U01 External Profit Center
Length 10
Superior InfoObject 0co_area
Attribute U01PERF
Long Description U01 Performer
Length 12
Attribute U01REV
Long Description U01 Reviewer
Length 12
Controlling area 1000
U01 External Profit Center IBPF_PC01
U01 Performer TRAIN-01
U01 Reviewer TRAIN-01
Name Locked
Description Locked
Name In Process
Description In Process
/NSE19
Enhancement Spot RSBPCB_SETUSER
Enhancement Implementation ZEI01
Short Text Z01 Profit Center Enhancement
BAdI Implementation ZBI
Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Field Name Value


Implementation Class Z01_PC_ENHANCEMENT
Value 1 U01_ENV
U01
U01

SAP SE AC120 EX-2


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Create the External Characteristic.

Step Action
(1) Double-click Modeling .

SAP SE AC120 EX-3


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(2) Double-click Object Maintenance .

Step Action
(3) Click Customize Local Layout .

SAP SE AC120 EX-4


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(4) Click Options....

Step Action
(5) Double-click Interaction Design.

SAP SE AC120 EX-5


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(6) Click Visualization 2.

SAP SE AC120 EX-6


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(7) Select Do not show Enhanced Search.

SAP SE AC120 EX-7


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(8) Click Apply.

SAP SE AC120 EX-8


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(9) Click OK.

SAP SE AC120 EX-9


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Transaction InfoObject

Step Action
(10) Double-click the transaction InfoObject.

SAP SE AC120 EX-10


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(11) Enter U01_EPC in the InfoObject box.

SAP SE AC120 EX-11


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(12) Click Create .

SAP SE AC120 EX-12


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(13) Enter U01 External Profit Center in the Long Description box.

Step Action
(14) Click Continue .

SAP SE AC120 EX-13


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(15) Click the Data Type to open a drop-down list.

SAP SE AC120 EX-14


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(16) Select CHAR - Character String.

SAP SE AC120 EX-15


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(17) Enter 10 in the Length box.

Step Action

SAP SE AC120 EX-16


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(18) Click the Compounding tab.

Step Action
(19) Enter 0co_area in the Superior InfoObject box.

SAP SE AC120 EX-17


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(20) Click the Attributes tab.

SAP SE AC120 EX-18


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(21) Enter U01PERF in the Attribute box.

SAP SE AC120 EX-19


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(22) Click Continue .

Step Action
(23) Enter U01 Performer in the Long Description box.

SAP SE AC120 EX-20


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(24) Click the Data Type to open a drop-down list.

Step Action
(25) Select CHAR - Character String.

SAP SE AC120 EX-21


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(26) Enter 12 in the Length box.

SAP SE AC120 EX-22


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(27) Select the Lowercase Letters check box.

SAP SE AC120 EX-23


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(28) Click Continue .

SAP SE AC120 EX-24


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
Enter U01REV in the Attribute box.
(29)
Confirm your entry by pressing the Enter key.

SAP SE AC120 EX-25


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(30) Click Continue .

Step Action
(31) Enter U01 Reviewer in the Long Description box.

SAP SE AC120 EX-26


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(32) Click the Data Type to open a drop-down list.

Step Action
(33) Select CHAR - Character String.

SAP SE AC120 EX-27


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(34) Enter 12 in the Length box.

SAP SE AC120 EX-28


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(35) Select the Lowercase Letters check box.

SAP SE AC120 EX-29


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(36) Click Continue .

Step Action
(37) Click Activate .

SAP SE AC120 EX-30


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(38) Click Continue .

Maintain the Master Data Values.

Step Action

SAP SE AC120 EX-31


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(39) Click Maintain .

Step Action
(40) Enter 1000 in the Controlling area box.

SAP SE AC120 EX-32


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(41) Enter IBPF_PC01 in the U01 External Profit Center box.

Step Action
(42) Enter TRAIN-01 in the U01 Performer box.

SAP SE AC120 EX-33


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(43) Enter TRAIN-01 in the U01 Reviewer box.

To activate the changes to the master data, make sure you use the menu
item Save and Activate.

Step Action
(44) Click the arrow next to the Save button.

SAP SE AC120 EX-34


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(45) Click Save and Activate.

The master data are saved and activated.

Step Action
(46) Click Close Tab.

SAP SE AC120 EX-35


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

You are back to the Edit Characteristic U01_EPC: Details screen.

Configure Work Status in BPC.

Step Action

SAP SE AC120 EX-36


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action

(47)
Click Administration .

Step Action
(48) Click Work Status Configuration.

SAP SE AC120 EX-37


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(49) Click U01_PRODUCT.

Step Action
(50) Select the Enable Work Status checkbox.

SAP SE AC120 EX-38


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
You will modify the Unlocked work status to Locked, and then create
additional work statuses, with the following properties:

Name Description Controlled By Manual Entry


Owner and
Locked Locked None
Manager
Owner and
In Process In Process Owner
Manager
Submitted Submitted Manager Manager
Approved Approved Manager None

(51) Click Unlocked.

SAP SE AC120 EX-39


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(52) Enter Locked in the Name box.

Step Action
(53) Enter Locked in the Description box.

SAP SE AC120 EX-40


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(54) Click the Manual Entry to open a drop-down list.

Step Action

SAP SE AC120 EX-41


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(55) Select None.

Manual Entry includes manually inputting data from a web and excel input
form and it also pertains to planning functions.

Step Action
(56) Click OK.

SAP SE AC120 EX-42


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(57) Click Add.

Step Action
(58) Enter In Process in the Name box.

SAP SE AC120 EX-43


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(59) Enter In Process in the Description box.

Step Action
(60) Click the Manual Entry to open a drop-down list.

SAP SE AC120 EX-44


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(61) Select Owner.

Step Action

SAP SE AC120 EX-45


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(62) Click OK.

In the interest of time, the remaining Work States will now be created for
you.

Step Action

SAP SE AC120 EX-46


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(63) Click Save.

You can now define the locking dimensions.

The main settings are the following:

Owner Dimension: This characteristic is used to lookup the owner or


team. It must have a hierarchy along with an attribute to store the owners
and an attribute to store the teams.

Hierarchy: This is the hierarchy being used to determine which profit


centers to include

Define by Property: Select this to determine owner via a user field.

Define by Customer Implementation: Use this option when the


characteristic does not have an owner/user field.

Owner Property: The Work Status Owner is the attribute of the


characteristic being used to lookup the owner.

Team Property: The Work Status Owner is the attribute of the


characteristic being used to lookup the team

SAP SE AC120 EX-47


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(64) Click the Owner Dimension: to open a drop-down list.

SAP SE AC120 EX-48


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(65) Select Profit Center - /ERP/PROFTCTR.

SAP SE AC120 EX-49


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(66) Click the Hierarchy to open a drop-down list.

SAP SE AC120 EX-50


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(67) Select IBPF_PCH - 1000IBPF_PCH.

SAP SE AC120 EX-51


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(68) Select Define by Customer Implementation.

SAP SE AC120 EX-52


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(69) Scroll down.

Since the business requirement is usually to lock data regions made up of


category, time, and the owner dimension, you also need to turn work
status on for category and year.

Keeping in mind that an Embedded model can be referenced to more than


one infoprovider, work status can therefore be set for all infoproviders in a
model, or just for a specific infoprovider.

By not selecting Set Work State by InfoProvider,any work state set will
be for all infoproviders in the model. If you do select Set Work State by
InfoProvider then you will need to specifiy which infoprovider when you
set the work state.

SAP SE AC120 EX-53


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
Add the following dimensions:

Category (/ERP/CATEGORY)
Controlling Area (/ERP/CO_AREA)
Fiscal year variant (0FISVARNT)
Fiscal Year (0FISCYEAR)
(70) Click Add/Remove.

SAP SE AC120 EX-54


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(71) Select Category.

SAP SE AC120 EX-55


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(72) Scroll down.

Step Action
(73) Select Controlling Area.

In the interest of time, the remaining dimensions will now be selected for
you.

SAP SE AC120 EX-56


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(74) Click OK.

SAP SE AC120 EX-57


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(75) Scroll up.

Step Action
(76) Click Save.

SAP SE AC120 EX-58


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(77) Click Close tab.

Create the Work Status BAdI in SAP ECC.

Step Action
(78) Enter /NSE19 in the Transaction box.

SAP SE AC120 EX-59


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(79) Click Enter .

Step Action
(80) Enter RSBPCB_SETUSER in the Enhancement Spot box.

SAP SE AC120 EX-60


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(81) Click Create Impl. .

SAP SE AC120 EX-61


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(82) Enter ZEI01 in the Enhancement Implementation box.

Step Action
(83) Enter Z01 Profit Center Enhancement in the Short Text box.

SAP SE AC120 EX-62


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(84) Click Creation of Enhancement .

SAP SE AC120 EX-63


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(85) Click Local Object.

SAP SE AC120 EX-64


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(86) Enter ZBI in the BAdI Implementation box.

Step Action
(87) Enter Z01_PC_ENHANCEMENT in the Implementation Class box.

SAP SE AC120 EX-65


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(88) Click the BAdI Definition to open a drop-down list.

Step Action
(89) Select BADI_RSBPCB_SETUSER.

Step Action
(90) Click Continue .

SAP SE AC120 EX-66


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(91) Click Save .

SAP SE AC120 EX-67


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(92) Click the Expand button for ZBI01.

Step Action
(93) Double-click Filter Val..

SAP SE AC120 EX-68


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(94) Click Combination .

SAP SE AC120 EX-69


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Environments were referred to as AppSets in prior releases of BPC.

Step Action
(95) Click the header of the row APPSET_ID.

SAP SE AC120 EX-70


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(96) Click Continue .

SAP SE AC120 EX-71


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(97) Double-click the placeholder ???? for Value 1 .

Step Action
(98) Enter U01_ENV in the Value 1 box.

SAP SE AC120 EX-72


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(99) Click Comparator 1 to open a drop-down list.

SAP SE AC120 EX-73


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(100) Select = .

SAP SE AC120 EX-74


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(101) Click Continue .

SAP SE AC120 EX-75


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(102) Double-click Implementing Class.

Step Action
Double-click
(103)
Method IF_RSBPCB_SETUSER_LOGIC~EXECUTE_SETUSER_LOGIC.

SAP SE AC120 EX-76


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(104) Click Yes.

SAP SE AC120 EX-77


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(105) Click Yes.

Step Action
Create the ABAP code for the implementation class.

A sample code is available in a text file located in the Documents folder.

You will then adapt the code to match your own master data.

SAP SE AC120 EX-78


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(106) Double-click AC120.

SAP SE AC120 EX-79


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(107) Double-click IBPF_BADI.txt.

Step Action
Press CTRL+A (select all).

SAP SE AC120 EX-80


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
Press CTRL+C .

Step Action
Press CTRL+A (select all).

SAP SE AC120 EX-81


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
Press CTRL+V.

Step Action
(108) Scroll up.

SAP SE AC120 EX-82


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
Make the following changes to the code to match your environment ID:

Row # Before changes After


2 U___ENV U01_ENV
3 U__PERF U01PERF
4 U__REV U01REV
48 U___EPC U01_EPC
(109) Enter U01 .

In the interest of time, the remaining changes to the code will now
be made for you.

SAP SE AC120 EX-83


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(110) Scroll down.

Step Action
(111) Enter U01 .

SAP SE AC120 EX-84


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
(112) Click Save .

Step Action
(113) Click Activate .

SAP SE AC120 EX-85


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

Step Action
Select all the objects for activation.
Click the header of the row
(114)
Z01_PC_ENHANCEMENT============CCDEF.

SAP SE AC120 EX-86


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

In the interest of time, the remaining objects will now be selected for you.

Step Action
(115) Click Continue .

SAP SE AC120 EX-87


Exercise 15 - Configure BPC Work Status with a BAdI for IBPF

The work status configuration is complete and ready to be used in the


Business Process Flow.

Step Action
(116) Click Exit to return to the SAP Easy Access screen.

You have now finished the setup of Work Status in BPC based on a BadI.

You will use this setup to define a Business Process Flow (BPF) in BPC.

SAP SE AC120 EX-88

Vous aimerez peut-être aussi