You are on page 1of 16

Course Overview

2. PS Structures
PROJECTS

Project Definition, WBS Elements

NETWORKS

Network Header, Activities and Sub-Operations

Relationships & Milestones

Texts

Components

Screen Sequence Control & Function Processing

ASSEMBLY ORDER PROCESSING

SAP AG 1999 filename (author) / 1

Course Overview
2. PS Structures

(...contd)

STRUCTURE PLANNING
PROJECT PLANNING BOARD
GENERAL TOPICS

Object Number Derivation

Status Management

General debugging tips

SAP AG 1999 filename (author) / 2

PS Structures
Master Data in PS:

Project definition

Work breakdown structure

Network
Process- oriented
organization

Responsibilityoriented
organization

11 :: N
N

Costs, revenues, payments,

Costs, payments

Basic dates,

Dates,

Budget

Ressources

Basic dates
Organizational units
SAP AG 1999 filename (author) / 3

PS Structures
Organisational Structures in SAP

Views

Organizational units
Company

Cost accounting
External logistics
Accounting

Controlling areas
Sales organizations

Purchasing organizations

Company codes

Valuation areas
Internal logistics
(MRP/Production)

Plants

Inventory management

Storage locations/Batches/Special stocks

SAP AG 1999 filename (author) / 4

PS Structures - Projects
Programs:
SAPLCJWB

Dialog programs for operative WBS (screen flow logic)

SAPLCJDW

DB Interface (Dialog tables operative WBS)

SAPLCJSS

Dialog programs for standard WBS (screen flow logic)

SAPLCJSD

DB Interface (Dialog tables standard WBS)

SAPLCJWI

Integration: SD/PSP/Networks

SAPLCJPN

Preparation of project number (MHG)

Common Form Routines:

CJDW & CJSD

FCJDWxxx

CJWB & CJSS

FCJWBxxx

Programs only in CJDW, CJSD

SAP AG 1999 filename (author) / 5

LCJDWxxx, LCJSDxxx

PS Structures - Projects
Tables:
Object

Table

Standard Proj. Def.


Standard WBS
Operative Proj. Def.
Operative WBS
Assignment WBS/Text
PS-Text
Milestones
Milestone Texts
Version: WBS Element
Version: Proj. DeF:
Operative WBS (Position in hierarchy)
Operative WBS (Position in hierarchy)
Change documents header

PROJS
PRPSS
PROJ
PRPS
PRTX
PSTX
MLST
MLTX
VSPRPS_CN
VSPROJ_CN
PRHI
PRHIS
CDHDR, CDPOS

SAP AG 1999 filename (author) / 6

PS Structures - Projects
Edit Masks:
A
D
E
V
P

-0000-X-X-X-X
-000000.00.00.X
-0000-X-X-X-X
/XXXXX-000-00
/0000-X-X-X-X
P/0095-2-3-4-5

Table PRPS
PSPNR

00008042
00008043
00008044
00008052

(OPSK/OPSJ)
EDITION ELEVATOR
Project edition for IDES
Edition ELEVATOR
EDITION IT project
POSID

POST1

V
3A00000
V3BETA00100
V
3A00100

V/3A
V/3BETA-001
V/3A -001

POSID

P0095
P00951
P00952
P00952345

SAP AG 1999 filename (author) / 7

Table PRPS
POSID

D0000010001B
D0000010002B
D0000010112B

POST1

D-000001.00.01.B
D-000001.00.02.B
D-000001.01.12.B

PS Structures - Projects
DB Table Relationships for Projects
PROJ
Mandt

Pspnr Objnr ...

Project Definition
= PD + PSPNR (8)

PRPS
Mandt

Pspnr Objnr Psphi

WBS Element
= PR + PSPNR (8)

PRHI

Mandt

Posnr Psphi ...

SAP AG 1999 filename (author) / 8

Project Hierarchy

OBJNR

STATUS TABLES
STATUS TABLES
JSTO
JSTO
JEST
JEST
JCDO
JCDO
JCDS
JCDS
ONR00
ONR00
ONRPD
ONRPD
ONRPR
ONRPR

PS Structures - Networks
Programs:
Dialog:

SAPLCOKO Network header

SAPLCOVG Activity overview list

SAPLCONW Activity detail screen

SAPLCOMK Material overview list

SAPLCOMD Material detail screen

Buffer tables:

SAPLCOBH Network header & activity

SAPLCOB1

SAPLCOBO Activity & sequence

SAPLCOBP Activity & sequence (split)

SAPLNWBT Milestones

SAPLCOBC Components

Network header & activity (split)

Central functions:

SAPLCOZF

Scheduling/Cost calculation/PReq/...

SAPLCOSD Copying standard structures -> operative

SAPLCOSF

SAPLCOVB Update function module: Dialog after commit

SAPLCOZR Release

SAPLCOZA

External call: Function modules: Buffer + DB Tables

Availibility check

SAP AG 1999 filename (author) / 9

PS Structures - Networks
Tables:
Object

Database Table

Structure

Standard network header


Operative network header

PLKO
AUFK + AFKO (= CAUFV)

CAUFVD

Standard network activity


Operative network activity

PLPO
AFVC

AFVGD

User fields
Quantity/Dates/Values
Elements
Order Items

AFVU
AFVV
(same as activity)
AFPO

AFVGD
AFVGD

Sequences (unimportant for networks)

AFFL

AFFLD

AOB

AFAB

AFABD

Milestones

MLST

MLSTD

Components
Purchase requisitions
Index RESB/EBAN (plant stock)
Index RESB/EBAN /special stock)
PSTexte
SAP AG 1999 filename (author) / 10

RESB
EBAN/EBKN
RSDB
RSDBS
NPTXD, TTXCP

RESBD
EBAN/EBKN

AFPOD

PS Structures - Networks
Important DB Fields for Networks
Network (DB Table CAUFV, Structure CAUFVD)
AUFNR
PLNNR
AUFPL
RSNUM
AUART
STATS
OBJNR NP+AUFNR(10)
LOEKZ
PROFID
PRONR
PSPEL / PROJN
VBELN / VBELP

Network number
Standard network number when created via standard network
Internal network number - unique per network
Reservation number - 1 reservation per network
Order type - always 20 for networks
Status profile - only in dialogue, see also JSTO-STSMA
used in JSTO,JEST,JCDO,JCDS,ONROR,ONR00
Deletion flag
Network profile
Project definition assignment
WBS element assignment
Sales order/item assignment

Network Activity/Element (DB Tables AFVC/AFVU/AFVV, Structure AFVGD)


AUFPL
APLZL
PLNNR
VORNR
SUMNR
RUECK
OBJNR NV+AUFPL(10)+APLZL(8)

SAP AG 1999 filename (author) / 11

Internal network number


Internal activity counter - unique per activity
Standard network number when created via standard network
External activity number
Superior activity internal number
Confirmation number - 1 confirmation number per activity
used in JSTO,JEST,JCDO,JCDS,ONROV,ONR00

PS Structures - Networks
Important DB Fields for Networks
Network Relationships (DB Table AFAB, Structure AFABD)
AUFPL_VOR
APLZL_VOR
AUFPL_NCH
APLZL_NCH
AOBAR
MIMAX

Internal network number of predecessor


Internal activity number of predecessor
Internal network number of follower
Internal activity number of follower
Relationship type: SF / SS / FS / FF

For Function Modules see Function Group NWDB

Network Milestones (DB Table MLST, Structure MLSTD)


MLST_ZAEHL
ZAEHL
AUFPL / APLZL / PSPNR

Internal network number of predecessor


Internal activity number of predecessor
Object assignment

For Function Modules see Function Group NWDB

Network Texts (DB Table STXH / STXL, Structure MLSTD)


TDOBJECT
TDNAME
TDID
TDSPRAS

Object type - eg AUFK or


Text key - similar to OBJNR (MANDT+AUFNR / MANDT+AUFPL+APLZL )
Language key

Text lines read with function module:


READ_TEXTLINES
For PS-Text Function Modules see Function Group NWDB

Subnetworks (DB Table VALLC)


Read from database in CO_BH_SUBNET_PRE_READ

SAP AG 1999 filename (author) / 12

LSTXDFDB

PS Structures - Status
Status Management

See Program
LCOKOSTA
or BS23 for
internal status

OBJNR = NP+AUFNR(10)

JEST

Description

Form Routine / Function Module

System status used in PS


Change/check status for a business act. STATUS_CHANGE_FOR_ACTIVITY
Set a status
STATUS_CHANGE_INTERN
Check if a status is currently set
STATUS_CHECK

SAP AG 1999 filename (author) / 13

Comment
Program LCOKOSTA
BS13 / BS23

PS Structures - Creating Structures


Assembley Order Processing
Customising
Sales Order

Table / View

Description

V_T461P

Strategy group

V_T461S
V_T459A
V_T459K

Strategy
Requirement type KMPN
Requirement class

Table

Description

V_TVEPZ_V

Assign Requirement Types to Transaction

Program

Description

LV07A005

SD check for assembly relevance

CO_61_ORDER_EDIT

Interface to SD

CO_61_ORDER_POST

Saving SD Interface information

Important:

Condition Type EK02 for calculated costs (PWERT)

SAP AG 1999 filename (author) / 14

PS Structures - Screen Flow


Screen Sequence Control

VFBS

Table

Function

Subroutine

T185F
T185
T185V
T185D
TC02
TC33
TCO05

Function Code Definition


Paths between processing locations / following screens
Processing location
Dialogue
FCode permissibility
Allocation of FCode to operation to be checked
CUA Status

T185F_LESEN
T185_LESEN
T185V_LESEN

Important variables
AGIDV
BLDGR
PANEL
OK_CODE

Program
Screen Group
Screen Number
Function Code

SAP AG 1999 filename (author) / 15

FUNCTION_PROCESSING
EVENT_PROCESSING
CO_TA_TCO05_READ

PS Structures - General Tips


Derivation of Plant from Company Code
Table

Field

Description

T001W
T001K
T001

WERKS
BWKEY
BUKRS

Plant
Valuation Area
Company Code

OX18

Settlement Rules
All function modules called for creating / deleting / changing / saving settlement rules begin with K_SETTLEMENT,
eg: K_SETTLEMENT_RULE_CHECK
In the network, CK_F_SINGLE_SETTLE_MODIFY is used.

SAP AG 1999 filename (author) / 16