Vous êtes sur la page 1sur 47

APPENDIX:

Mapping Table for APO R/3 integration

This appendix contains detailed mapping information on the


different data objects transmitted from R/3 to APO.

Meaning:
N
C
R
D
M

New
Change
Delete reservation
Delete
Goods movement

Content:
Mapping Table for APO R/3 integration................................................................................................ 1
1. Master data.................................................................................................................................. 4
2. Transaction Data.......................................................................................................................... 5
3. Location....................................................................................................................................... 6
Location: Customer.................................................................................................................. 6
Location: Customer Description............................................................................................ 6
Location: Supplier.................................................................................................................... 7
Location: Supplier Description................................................................................................ 7
Location: Plant.......................................................................................................................... 8
Location: Plant Description..................................................................................................... 8
4. Product........................................................................................................................................ 9
Product: Global Data............................................................................................................... 9
Product: Description data..................................................................................................... 10
Product: Unit Conversion data............................................................................................. 11
5. Product Location........................................................................................................................ 12
Product Location: General data.............................................................................................. 12
Product Location: Lot size data.............................................................................................. 14
Product Location: Demand profile data.................................................................................16
6. Product allocation...................................................................................................................... 17
7. Resource................................................................................................................................... 18
Resource: Capacity ID............................................................................................................. 18
Resource: Resource Data........................................................................................................ 18
8. Stock.......................................................................................................................................... 20
Stock: Storage Location ......................................................................................................... 20
Stock: Batch Stock ................................................................................................................. 20
Stock: Consignment Stock for Suppliers ..............................................................................21
Stock: Customers' Special Stock ........................................................................................... 21
Stock: Suppliers' Special Stocks ........................................................................................... 22
Stock: Project Stock ............................................................................................................... 22
Stock: Customer Order Stock ................................................................................................ 23
9. Purchase Requisition................................................................................................................. 24
10. Purchase Order......................................................................................................................... 26
11. Sales Order................................................................................................................................ 28
Sales order: Requirement........................................................................................................ 28
Sales order: Important document fields.................................................................................29
Sales order: Table of additional document fields..................................................................31
12. Production Order....................................................................................................................... 32
Production Order: Order Header............................................................................................. 32
Production Order: Order Operations......................................................................................33
Production Order: Capacity Requirement, Operations..........................................................35
Production Order: Input nodes............................................................................................... 36
Production Order: Output nodes............................................................................................ 38
Production Order: Operation Relationships..........................................................................40
13. Planned Order........................................................................................................................... 42
Planned Order: Order Header.................................................................................................. 42
Planned Order: Input nodes.................................................................................................... 43
Planned Order: Output nodes................................................................................................. 45

1. Master data
The relevant master data fields for data upload from R/3 to APO :
Category

R/3

Name
Location Customer
Plant

T001W

Vendor

LFA1

Material

Storage
Location
Material

Resource

Capacity

PPM

Allocation

APO
Table
KNA1

Name
Location
type 1010
Location
type 1001
Location
type 1011

MARA
MARC
MAKT
MARM
Mat. Class

Product

KAKO

Resource

Remark

Table
/SAPAPO/LOC
/SAPAPO/LOC
/SAPAPO/LOC
Not in GA
/SAPAPO/MATKEY
/SAPAPO/MATLOC
/SAPAPO/MATTXT
/SAPAPO/MARM
Mat. Class
/SAPAPO/RES_HEAD

Work
Center

The work
center is not
used in APO.

BOM

Not in GA

Routing

Not in GA

Product
Allocation

S140 or
User defined
table

Allocation
group

2. Transaction Data
The relevant transaction data fields for data upload from R/3 to APO:
Category

R/3

Stock data

Name
Receipt,
Issue,
Transfer posting

Purchase data

Purchase requisition
Purchase order

APO
Table
MARD
MCHB
MKOL
MSKA
MSKU
MSLB
MSPR
EBAN
EKKO
EKPO

Order type
0

1
2

Shipping notification
Sales order

Sales order,
Delivery note

Planned order
Production order
(incl. automatic
reservation)

Planned order
Production order

Reservation
(manually)

Reservation

Remark

Not in GA
VBAK
VBAP
VBEP
VBBE
VBKD
VBPA
PLAF
AUFK
AFKO
AFPO
AFVG
KBED
AFAB
RESB

5
6

3. Location
Location:

Customer

APO FIELD
Internal location number
LOC-LOCID

R/3 FIELD
NA

CONVERSION
Internal conversion for integration

Location type

1010

LOC-LOCTYPE
Customer number

KNA1-KUNNR

LOC-LOCNO

Default 1:1
You have the possibility to define your own data
mappings via user_exit.

Time zone

KNA1-LAND1

LOC-TZONE

KNA1-REGIO

Time zone, calculated via country and region


Both fields can be found in the AddressScreen.

Longitude position in GPS

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

LOC-XPOS
Latitude position in GPS
LOC-YPOS
Production Calendar
LOC-PPCAL
Shipping Calendar
LOC-SDCAL
Storage Calendar
LOC-STCAL

Location:
APO FIELD
Language key
LOCT-SPRAS
Internal location number
LOCT-LOCID
Location type
LOCT-DESCR40

Customer Description
R/3 FIELD

CONVERSION

KNA1-SPRAS
NA
KNA1-NAME1

Internal conversion for integration

Location:

Supplier

APO FIELD

R/3 FIELD

Internal location number

NA

CONVERSION
Internal conversion for integration

LOC-LOCID
Location type

1011

LOC-LOCTYPE
Supplier number

LFA1-LIFNR

LOC-LOCNO

Default 1:1
You have the possibility to define your own data
mappings via user_exit.

Time zone

LFA1-LAND1

LOC-TZONE

LFA1-REGIO

Time zone, calculated via country and region


Both fields can be found in the AddressScreen.

Longitude position in GPS

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

LOC-XPOS
Latitude position in GPS
LOC-YPOS
Production Calendar
LOC-PPCAL
Shipping Calendar
LOC-SDCAL
Storage Calendar
LOC-STCAL

Location:
APO FIELD
Language key
LOCT-SPRAS
Internal location number
LOCT-LOCID
Location type
LOCT-DESCR40

Supplier Description
R/3 FIELD

CONVERSION

LFA1-SPRAS
NA
LFA1-NAME1

Internal conversion for integration

Location :

Plant

APO FIELD

R/3 FIELD

Internal location number

NA

CONVERSION
Internal conversion for integration

LOC-LOCID
Location type

1001

LOC-LOCTYPE
Plant number

T001W-WERKS

LOC-LOCNO

Default 1:1
You have the possibility to define your own data
mappings via user_exit.

Time zone

T001W-LAND1

LOC-TZONE

T001W-REGIO

Time zone, calculated via country and region


Both fields can be found in the Details-Screen.

Longitude position in GPS

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

LOC-XPOS
Latitude position in GPS
LOC-YPOS
Production Calendar
LOC-PPCAL
Shipping Calendar
LOC-SDCAL
Storage Calendar
LOC-STCAL

Location:

Plant Description

APO FIELD
Language key
LOCT-SPRAS
Internal location number
LOCT-LOCID

R/3 FIELD

Location type

T001W-NAME1

LOCT-DESCR40

CONVERSION

T001W-SPRAS
NA

Internal conversion for integration

4. Product
Product Global Data
APO FIELD
Internal number for product
MATKEY-MATID
Product number
MATKEY-MATNR

R/3 FIELD
NA
MARA-MATNR

Base unit of measure


MATKEY-MEINS

MARA-MEINS
View: Basic Data
Screen: General Data
Field: Base unit of
measure

Low-level code
MATKEY-DISST

MARA-DISST

Gross weight
MATKEY-BRGEW

MARA-BRGEW
View: Basic Data
Screen:
Dimensions/EANs
Field: Gross weight

Weight unit
MATKEYX-GEWEI

MARA-GEWEI
View: Basic Data
Screen:
Dimensions/EANs
Field: Unit of weight

Volume
MATKEY-VOLUM

MARA-VOLUM
View: Basic Data
Screen:
Dimensions/EANs
Field: Volume

Volume unit
MATKEY-VOLEH

MARA-VOLEH
View: Basic Data
Screen:
Dimensions/EANs
Field: Volume unit

Product allocations
determination procedure
MATKEY-KOSCH

MARA-KOSCH
View: Basic Data
Screen: General Data
Field: Product allocation

CTM: Product completion


level
MATKEY-COMPL
Delete mark
MATKEY-LVORM

CONVERSION
Internal conversion for integration
MATKEY-MATNR = MARA-MATNR
Default 1:1
You have the possibility to define your own data
mappings via user_exit.

Maintained in BOM maintenance


-> Not maintained in MM01

Not Maintained in 3.X


-> Will be maintained 4.X
Not maintainable in material master
MARA-LVORM

MARA-LVORM = X =>
Method D of CIF Function module =>
MATKEY-LVORM = X

Product allocations
determination schema
MATKEY-KOSCH_GRP
Material group
MATKEY-MATKL

NA

DP: Modeling products


MATKEY-LIKEID
DP: Phase in
MATKEY-PHIN_FROM
DP: Phase in
MATKEY-PHIN_TO
DP: Phase in
MATKEY-PHIN_TSID
DP: Phase out
MATKEY-PHOUT_FROM
DP: Phase out
MATKEY-PHOUT_TO
DP: Phase out
MATKEY-PHOUT_TSID
Flag: Is Classified
MATKEY-FLAGCLASS
ATP: Display Unit
MATKEY-DIUOM

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

Product:
APO FIELD
Internal number for
product
MATTXT-MATID
Language
MATTXT-LANGU

Product description
MATTXT-MAKTX

MARA-MATKL
View: Basic Data
Screen: General Data
Field: Material group
(also available in the
Purchasing and Sales
Data View)

Description data
R/3 FIELD
NA

CONVERSION
Internal conversion for integration
MATTXT-MATNR = MAKE-MATNR

MAKT-SPRAS
View: Basic Data
Screen: Descriptions
Field: Language
MAKT-MAKTX
View: Basic Data
Screen: Descriptions
Field: Material decription

Product:

Unit Conversion data

APO FIELD
Internal number for
product

R/3 FIELD
NA

MARM-MATID
Alternative unit of
measure for stock
keeping unit
MARM-MEINH

MARM-MEINH
View: Units of measure
Field: AUn

MARM-MATNR = MARM-MATNR

Numerator for converting MARM-UMREZ


to base unit of measure View: Units of measure
MARM-UMREZ
Field: Y
Denominator for
conversion to base units
of measure
MARM-UMREN
EAN/UPC-Code
MARM-EAN11

CONVERSION
Internal conversion for integration

MARM-UMREN
View: Units of measure
Field: X
MARM-EAN11

5. Product Location
Product Location: General data
APO FIELD
Internal number for
product

NA

MATLOC-MATID
Internal location number
MATLOC-LOCID

MARC-WERKS

MATLOC-LOCTYPE = 1001
MATLOC-LOCNO = MARC-WERKS

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

Production planner
MATLOCPLANNER_PPS
SNP planner
MATLOCPLANNER_SNP
Demand planner
MATLOCPLANNER_DEMAND
Transportation planner
MATLOCPLANNER_TRANS
Indicator : material
memo exist
MATLOC-MANOT
ATP group
MATLOC-MTVFP

R/3 FIELD

CONVERSION
Internal conversion for integration
MATLOC-MATNR

= MARC-MATNR

MARC-MTVFP
View: Sales:General/Plant
Screen: General Data
Field: Avail. check
(also available in the MRP2
View)

Check mode
NA
MATLOC-ATP_CHMOD
Indicator : Which BOM is NA
to be
MATLOC-WHATBOM
Flag: Production
MARC-DIBER
planning areas exist
MATLOC-DIBER

Not used in R/3

Consumption of handling NA
capacity in volume unit
MATLOC-CONHAP

Not used in R/3

Unit of measurement for


size
MATLOC-HUNIT

NA

Not used in R/3

Consumption of storage NA
capacity per material unit
MATLOC-CONINP

Not used in R/3

Unit of measurement for

Not used in R/3

NA

Not used in R/3


Not Maintained in 3.X
-> Will be maintained 4.X

size
MATLOC-IUNIT
Customer material
number
MATLOC-KDMATID

NA

Do not transfer GA Release

ATP: Checking horizon in


days
MATLOC-CHKHOR

call function 'CALCULATE_APO_CHECK_HORIZON'

ATP: Calendar for


checking horizon
MATLOC-CHKHORCAL

call function 'CALCULATE_APO_CHECK_HORIZON'


sets a flag to get the Calendar from the Location

Internal number for lot


size profile in material
master
MATLOC-LSZID

NA

/SAPAPO/MATLOTSZ
Lot size profile for material master

SNP: Demand profile ID


(GUID)
MATLOC-DPRID

NA

/SAPAPO/SNP01
SNP: Demand Profile

SNP: Supply profile ID


(GUID)
MATLOC-SPRID

NA

/SAPAPO/SNP02
SNP: Supply profile

SNP: Deployment profile NA


ID (GUID)
MATLOC-DPLID

/SAPAPO/SNP11
SNP: Deployment profile

SNP: Product related


storage resource
MATLOC-MATSTORE
Goods receipts
processing time
MATLOC-GRPRT

NA

Goods issue processing


time
MATLOC-GIPRT
Safety stock
MATLOC-SAFTY

NA in R/3 3.X

MATLOC- STOCK_UID

NA

Not used in R/3

MATLOC- SW_SCZPRF NA

Not used in R/3

Planned delivery time in MARC-PLIFZ


days
MATLOC-PLIFZ
Internal number of
NA
demand profile in

/SAPAPO/MATRQ
Demand profile for the material master record

MARC-WEBAZ
View: Purchasing
Screen: Other data
Field: GR processing time
(also available in the MRP1
and the Quality
management View)

MARC-EISBE
View: MRP1
Screen: Net requirements
calculation
Field: Safety stock

material master record


MATLOC-RQMID
Planning procedure for
production planning
MATLOC-RRP_TYPE
Purchase group
MATLOC-EKGRP

2
MARC-EKGRP
View: Purchasing
Screen: General data
Field: Purchasing group
(also available in the MRP1
View)

Procurement type
MATLOC-BESKZ

MARC-BESKZ
View: MRP1
Screen: Procurement
Field: Procurement type

Delete mark
MATLOC-LVORM

MARC-LVORM

Service level
MATLOC-LGRAD

MARC-LGRAD
View: MRP1
Screen: Net requirements
calculation
Field: Service level%

MARC-LVORM = X =>
Method D of CIF Function module =>
MATLOC-LVORM = X

Product Location: Lot size data


APO FIELD
Internal number for lot
size profile in material
master
MATLOTSZ-LSZID

NA

R/3 FIELD

CONVERSION
Not used in R/3

External key for lot size


profile in APO
MATLOTSZ-LSZKY

NA

Not used in R/3

Fixed Lot Size


MATLOTSZ-BSTFE

MARC-BSTFE
View: MRP1
Screen: Lot size data
Field: Fixed lot size

Minimum Lot Size


MATLOTSZ-BSTMI

MARC-BSTMI
View: MRP1
Screen: Lot size data
Field: Minimum lot size

Maximum Lot Size


MATLOTSZ-BSTMA

MARC-BSTMA
View: MRP1
Screen: Lot size data
Field: Maximum lot size

Rounding Value for


Purchase order
MATLOTSZ-BSTRF

MARC-BSTRF
View: MRP1
Screen: Lot size data

Field: Rounding value


Assembly scrap in
percent
MATLOTSZ-AUSSS

MARC-AUSSS
View: MRP1
Screen: Lot size data
Field: Assembly scrap

Rounding Profile
MATLOTSZ-RDPRF

MARC-RDPRF
View: MRP1
Screen: Lot size data
Field: Rounding profile

Target days' supply for


material
MATLOTSZ-SVTTY

T438M-SHZET

Select single * from t438m


where werks = marc-werks
and mtart = marc-disgr.

Category group
MATLOTSZ-CATGRP

NA

Not used in R/3

Lot-size calculation in
make-to-order
production
MATLOTSZ-LGKND

X or Space

Select single * from t439a


where disls = p_marc-disls.
if not t439a-disls is initial.
P_cif_matloc-lgknd = X
Else.
P_cif_matloc-lgknd = space.
Endif.

Indicator: Lot-for-lot order X or Space


quantity
MATLOTSZSL_LSZ_EXACT
Indicator: Fixed lot size
MATLOTSZSL_LSZ_FIXED

X or Space

Indicator: Target days'


supply for lot-size
calculation
MATLOTSZSL_LSZ_RANGE

X or Space

Description of lot size


profile
MATLOTSZ-LSZTX

NA

if t439a-loskz = F
p_cif_matloc-sl_lsz_fixed = X
p_cif_matloc-sl_lsz_exact = space.
p_cif_matloc-sl_lsz_range = space.
Else.
p_cif_matloc-sl_lsz_fixed = space.
p_cif_matloc-sl_lsz_exact = X
p_cif_matloc-sl_lsz_range = space.
Endif.

Not used in R/3

Product Location: Demand profile data


APO FIELD
Internal number of
demand profile in material
master record
MATRQ-RQMID

R/3 FIELD

CONVERSION

NA

Ext. number of PP
demand profile in material
master record
MATRQ-RQMKY

NA

not used in R/3

Consumption Mode
MATRQ-VRMOD

MARC-VRMOD
View: MRP2
Screen: Planning
Field: Consumption mode

Consumption Period:
Backward
MATRQ-VINT1

MARC-VINT1
View: MRP2
Screen: Planning
Field: Bwd Consumption
per.

Consumption Period:
Forward
MATRQ-VINT2

MARC-VINT2
View: MRP2
Screen: Planning
Field: Fwd Consumption
per.

Planning strategy group


MATRQ-STRA1

MARC-STRGR
View: MRP2
Screen: Planning
Field: Strategy group

Depending requirement
MATRQ-SBDKZ

MARC-SBDKZ
View: MRP2
Screen: BOM
explosion/dependent
requirements
Field: Individual/coll.

Mixed MRP Indicator


MATRQ-MISKZ

MARC-MISKZ
View: MRP2
Screen: Planning
Field: Mixed MRP

MATRQPEG_PAST_MAX
MATRQPEG_PAST_ALERT
MATRQPEG_FUTURE_MAX
Description of profile
MATRQ-RQMTX

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

NA

Not used in R/3

if

marc-strgr = '10'.
cif_matloc-stra1 = '10'.
Elseif marc-strgr = '40'.
cif_matloc-stra1 = '20'.
Elseif marc-strgr = '50'.
cif_matloc-stra1 = '30'.
endif.

6. Product allocation
(example: the defined period is month )

APO FIELD
Product allocations:
Planning object
number; GUID able

NA

R/3 FIELD

CONVERSION
Internal conversion for integration

S140-VRSIO

From- date to check the Product allocation

S140-SPMON

Data : vodat type d,

QTTAB-PLUID
UTC time stamp in
short form
(YYYYMMDDhhmmss)

bisdat type d.

QTTAB-VODAT

vodat(6) = spmon.
vodat+6(2) = '01'.
UTC time stamp in
short form
(YYYYMMDDhhmmss)

S140-VRSIO

To- date to check the Product allocation

S140-SPMON

bisdt = vodat + 40.


bisdt+6(2) = '01'.

QTTAB-BISDT

bisdt = bisdt - 1.
Product allocation
quantity

S140-KCQTY

QTTAB-KCQTY
Incoming orders
quantity
QTTAB-AEMENGE

S140-AEMENGE

7. Resource
Resource:

Capacity ID

APO FIELD
Resource name
RESKEY-NAME
Internal location number
(customer, supplier or plant)
RESKEY-LOCID

R/3 FIELD
RES_HEAD-NAME

CONVERSION
RES_HEAD-NAME

KAKO-WERKS

select single * from /sapapo/loc


where locno = kako-werks.

Resource category
RESKEY-RESTYPE

Business system group


MATMAP-LOGQS
Internal key (GUID) of
resource

NA

RESKEY-LOCID = LOC-LOCID
P : Production

NA

Call function /SAPAPO/LOGQS_GET


by /SAPAPO/CIF_CTRLPARAM-LOGSRCSYS
Internal conversion for integration

KAKO-KAPID

Capacity ID

RESKEY-RESUID
Object ID of capacity/work
center in R/3

KAKO : Capacity Header Segment

RESKEY-R3KAPID
Object ID of capacity/work
center in R/3

CRCA-OBJID

CRCA : Work center Capacity Allocation

RESKEY-R3ARBID

Resource:

CRHD : Work Center Header

Resource Data

APO FIELD
Internal key (GUID) of
resource
RES_HEAD-RESUID
Planning version (operative
or simulation version)
RES_HEAD-SIMVERSID
Base unit of measure for
capacity
RES_HEAD-UNIT
Capacity name
RES_HEAD-NAME

Object ID of the resource

R/3 FIELD
NA

CONVERSION
Internal conversion for integration

000

KAKO-MEINS

If the KAKO-NAME is initial


Then name+0(1) = W,
name+1(8) = CRHD-ARBPL,
name+9(1) = _,
name+10(4) = CRHD-WERKS,
name+14(1) = _,
name+15 = KAKO-KAPAR
Else name+0(8) = KAKO-NAME,
name+8(1) = _,
name+9(4) = KAKO-WERKS,
name+13(1) = _,
name+14 = KAKO-KAPAR
endif

Resource category
RES_HEAD-RESTYPE

Internal location number


(customer, supplier or plant)
RES_HEAD-LOCID

KAKO-WERKS

Factory calendar ID
RES_HEAD-CALENDAR

KAKO-KALID
T001W-FABKL

Resource category
RES_HEAD-TYPE

KAKO-AZNOR

Start tine in seconds


RES_HEAD-BEGTI

KAKO-BEGZT

Finish time in seconds


RES_HEAD-ENDTI

KAKO-ENDZT

Cumulative break time in


seconds
RES_HEAD-BREAKTIME

KAKO-PAUSE

Number of individual
capacities
RES_HEAD-NOINDIVRES

KAKO-AZNOR

Capacity utilization rate


RES_HEAD-UTILIZATION

KAKO-NGRAD

Active version of available


capacity
RES_HEADVERSION_ACTIVE

KAKO-VERSA

Consider resource capacity KAKO-KAPTER


load
RES_HEADFINITE_PLANNING
Resource is a multi-activity
KAKO-KAPAVO
resource
RES_HEAD-MULTIIND
Maximum capacity overload KAKO-UEBERLAST
of resource
RES_HEAD-OVERLOAD

condense name no-gaps.


P : PRODUCTION
select single * from /sapapo/loc
where locno = kako-werks.
RES_HEAD-LOCID = LOC-LOCID
If the KAKO-KALID is NOT initial
Then move KAKO-KALID to -Calendar
else move T001W-FABKL to -Calendar
endif
If KAKO-AZNOR > 1
Then move 1 to RES_HEAD-TYPE
Else move 0 to RES_HEAD-TYPE
Endif

8. Stock
Stock: Storage Location (/SAPAPO/XMARD)
Core Interface FIELD In APO
Product number
XMARD-MATNR

R/3 FIELD
MARD-MATNR

Plant
XMARD-WERKS

MARD-WERKS

Storage location
XMARD-LGORT

MARD-LGORT

CONVERSION

Valuated stock with unrestricted MARD-LABST


use
XMARD-LABST
Stock in quality inspection
XMARD-INSME

MARD-INSME

Blocked stock
XMARD-SPEME

MARD-SPEME

Restricted-use stock
XMARD-EINME

MARD-EINME

Stock: Batch Stock (/SAPAPO/XMCHB)


Core Interface FIELD In APO
Product number
XMCHB-MATNR

R/3 FIELD
MCHB-MATNR

Plant
XMCHB-WERKS

MCHB-WERKS

Storage location
XMCHB-LGORT

MCHB-LOGRT

Batch
XMCHB-CHARG

MCHB-CHARG

Valuated stock with unrestricted MCHB-CLABS


use
XMCHB-CLABS
Stock in quality inspection
XMCHB-CINSM

MCHB-CINSM

Blocked stock
XMCHB-CSPEM

MCHB-CSPEM

Restricted-use stock
XMCHB-CEINM

MCHB-CEINM

CONVERSION

Stock : Consignment Stock for Suppliers (/SAPAPO/XMKOL)


Core Interface FIELD In APO
Product number
XMKOL-MATNR

R/3 FIELD
MKOL-MATNR

Plant
XMKOL-WERKS

MKOL-WERKS

Storage location
XMKOL-LGORT

MKOL-LGORT

Batch
XMKOL-CHARG

MKOL-CHARG

Account number of supplier or


vendor
XMKOL-LIFNR

MKOL-LIFNR

Special stock indicator


XMKOL-SOBKZ

MKOL-SOBKZ

CONVERSION

Valuated stock with unrestricted MKOL-SLABS


use
XMKOL-SLABS
Stock in quality inspection
XMKOL-SINSM

MKOL-SINSM

Blocked stock
XMKOL-SSPEM

MKOL-SSPEM

Restricted-use stock
XMKOL-SEINM

MKOL-SEINM

Stock : Customers' Special Stock (/SAPAPO/XMSKU)


Core Interface FIELD In APO
Product number
XMSKU-MATNR

R/3 FIELD
MSKU-MATNR

Plant
XMSKU-WERKS

MSKU-WERKS

Batch
XMSKU-CHARG

MSKU-CHARG

Special stock indicator


XMSKU-SOBKZ

MSKU-SOBKZ

Customer number
XMSKU-KUNNR

MSKU-KUNNR

Valuated stock with unrestricted MSKU-KULAB


use
XMSKU-KULAB

CONVERSION

Stock in quality inspection


XMSKU-KUINS

MSKU-KUINS

Restricted-use stock
XMSKU-KUEIN

MSKU-KUEIN

Stock: Suppliers' Special Stocks (/SAPAPO/XMSLB)


Core Interface FIELD In APO
Product number
XMSLB-MATNR

R/3 FIELD
MSLB-MATNR

Plant
XMSLB-WERKS

MSLB-WERKS

Batch
XMSLB-CHARG

MSLB-CHARG

Special stock indicator


XMSLB-SOBKZ

MSLB-SOBKZ

Account number of supplier or


vendor
XMSLB-LIFNR

MSLB-LIFNR

CONVERSION

Valuated stock with unrestricted MSLB-LBLAB


use
XMSLB-LBLAB
Stock in quality inspection
XMSLB-LBINS

MSLB-LBINS

Restricted-use stock
XMSLB-LBEIN

MSLB-LBEIN

Stock: Project Stock (/SAPAPO/XMSPR)


Core Interface FIELD In APO
Product number
XMSPR-MATNR

R/3 FIELD
MSPR-MATNR

Plant
XMSPR-WERKS

MSPR-WERKS

Storage location
XMSPR-LGORT

MSPR-LGORT

Batch
XMSPR-CHARG

MSPR-CHARG

Special stock indicator


XMSPR-SOBKZ

MSPR-SOBKZ

CONVERSION

Work breakdown structure


element (WBS element)
XMSPR-PSPNR

MSPR-PSPNR

Valuated stock with unrestricted MSPR-PRLAB


use
XMSPR-PRLAB
Stock in quality inspection
XMSPR-PRINS

MSPR-PRINS

Restricted-use stock
XMSPR-PREIN

MSPR-PREIN

Blocked stock
XMSPR-PRSPE

MSPR-PRSPE

Stock: Customer Order Stock (/SAPAPO/XMSKA)


Core Interface FIELD In APO
Product number
XMSKA-MATNR

R/3 FIELD
MSKA-MATNR

Plant
XMSKA-WERKS

MSKA-WERKS

Storage location
XMSKA-LGORT

MSKA-LGORT

Batch
XMSKA-CHARG

MSKA-CHARG

Special stock indicator


XMSKA-SOBKZ

MSKA-SOBKZ

SD document number
XMSKA-VBELN

MSKA-VBELN

Item number of the SD


document
XMSKA-POSNR

MSKA-POSNR

Valuated stock with unrestricted MSKA-KALAB


use
XMSKA-KALAB
Stock in quality inspection
XMSKA-KAINS

MSKA-KAINS

Restricted-use stock
XMSKA-KAEIN

MSKA-KASPE

Blocked stock
XMSKA-KASPE

MSKA-KAEIN

CONVERSION

9. Purchase Requisition
Core Interface FIELD In APO
Method to be executed while
transferring an object
CIF_PU_DOC-METHOD
Purchase requisition number
CIF_PU_DOC-DOC
Item number
CIF_PU_DOC-ITEM

R/3 FIELD
NA

CONVERSION
Purchase requisition closed
Depend of EBAN-EBAKZ : Indicator
deletion

EBAN-BANFN
EBAN-BNFPO

Schedule line number


CIF_PU_DOC-SCHED

- DOES NOT EXIST -

Material
CIF_PU_DOC-MATERIAL

EBAN-MATNR

Plant
CIF_PU_DOC-PLANT

EBAN-WERKS

Target storage location for which a


receipt is determined.
CIF_PU_DOC-STORAGELOC

EBAN-LGORT

Special stock indicator


CIF_PU_DOC-SP_STK_IND

EBAN-SOBKZ

Special stock key


CIF_PU_DOC-SPEC_STOCK

1. EBKN-VBELN+EBKN-VBELP IF
EBAN-SOBKZ = E
2. EBKN-PS_PSP_PNR IF EBANSOBKZ = Q

Account assignment category


CIF_PU_DOC-SP_STK_EXP

1. EBKN-VBELN+/+EBKN-VBELP IF
EBAN-SOBKZ = E
2. EBKN-PS_PSP_PNR IF EBANSOBKZ = Q

Vendor
CIF_PU_DOC-VENDOR

EBAN-FLIEF

Goods receipt processing time


CIF_PU_DOC-GR_PROC_TI

EBAN-WEBAZ

Purchase requisition unit of


measure
CIF_PU_DOC-UNITOFMEAS

EBAN-MEINS

ISO code for unit of measure


CIF_PU_DOC-UOM_ISO

ISO-CODE FOR
EBAN-MEINS

batch
CIF_PU_DOC-BATCH

EBAN-CHARG

Quantity
CIF_PU_DOC-QUANTITY

Computed quantity

call function
'CIF_GEN_CONVERT_QUANTITY_ISO'
by eban-menge
eban-meins
and
get cif_pu_doc-uom_iso

EBAN-MENEG EBAN-BSMNG

Delivery date
CIF_PU_DOC-REQ_TSTAMP

EBAN-LFDAT

Fixed
CIF_PU_DOC-FIXED

EBAN-FIXKZ

ATP-Category
CIF_PU_DOC-ATPCAT

call function
'CIF_GEN_CONVERT_DATETIME'
by EBAN-LFDAT

AG , BH

Number of reservation/ dependent


requirement
CIF_PU_DOC-RES_NO

EBAN-RSNUM

Reservation item number


CIF_PU_DOC-RES_ITEM

- DOES NOT EXIST -

10. Purchase Order


Core Interface FIELD In
APO
Method to be executed
while transferring an object
CIF_PU_DOC-METHOD
Purchasing document
number
CIF_PU_DOC-DOC
Item number of purchasing
document item
CIF_PU_DOC-ITEM

R/3 FIELD
NA

CONVERSION
Purchase order Closed
Depend of EKPO-LOEKZ : Indecator deletion

Purchase order number


EKKO-EBELN
Item number
EKPO-EBELP

Schedule line number


CIF_PU_DOC-SCHED

EKET-ETENR

Material Number
CIF_PU_DOC-MATERIAL

EKPO-MATNR

Location
CIF_PU_DOC-PLANT

PLANT
EKPO-WERKS

Target storage location for


which a receipt is
determined.
CIF_PU_DOCSTORAGELOC

EKPO-LGORT

Special stock indicator


CIF_PU_DOCSP_STK_IND

EKKN-SOBKZ

Special stock key


CIF_PU_DOCSPEC_STOCK

EKKN-VBELN + EKKNVBELP
OR
EKKN-PS_PSP_PNR

Account assignment
category
CIF_PU_DOCSP_STK_EXP

Vendor
CIF_PU_DOC-VENDOR
Goods receipt processing
time CIF_PU_DOCGR_PROC_TI

OR
EKPO-EMLIF
EKKN-VBELN + EKKNVBELP
OR
EKKN-PS_PSP_PNR
OR
EKPO-EMLIF
EKKO-LIFNR
EKPO-WEBAZ

Purchase requisition unit of EKPO-LMEIN


measure CIF_PU_DOCUNITOFMEAS

BASE UNIT OF MEASURE

ISO code for unit of


measure
CIF_PU_DOC-UOM_ISO

EKPO-MEINS

batch
CIF_PU_DOC-BATCH

EKET-CHARG

Quantity
CIF_PU_DOC-QUANTITY

Computed quantity :
ekpoapor-menge

EKET-WEMNG

Delivery date
CIF_PU_DOCREQ_TSTAMP

EKET-EINDT

call function 'CIF_GEN_CONVERT_DATETIME'


by EKET-EINDT

Fixed
CIF_PU_DOC-FIXED

EKET-FIXKZ

ATP-Category
CIF_PU_DOC-ATPCAT

call function
'CIF_GEN_CONVERT_QUANTITY_ISO'
by ekpo-menge
ekpo-meins
and
get cif_pu_doc-uom_iso

Generate ATP category

Number of reservation/
dependent requirement
CIF_PU_DOC-RES_NO

EKET-RSNUM

Reservation item number


CIF_PU_DOC-RES_ITEM

NA

if not ekko-reswk is initial.


if ekpo-pstyp eq 3.
cif-rsnum = eket-rsnum.
endif.
endif

11. Sales Order


Sales order: Requirement
Core Interface FIELD in APO
A method executed during the
transfer of an object
CIF_SL_REQ-METHOD
ATP: Category of Stock /
Receipts / Issues
CIF_SL_REQ-ATPCAT
SD document number
CIF_SL_REQ-DOC_NUMBER
Item number of the SD
document
CIF_SL_REQ-ITM_NUMBER

R/3 FIELD
N

Vbbe-vbtyp

Generate ATP category

VBBE-VBELN
VBBE-POSNR

Schedule line
CIF_SL_REQ-SCHED_LINE

VBBE-ETENR

Product number.
CIF_SL_REQ-PRODUCT

VBBE-MATNR

Plant
CIF_SL_REQ-LOCATION

VBBE-WERKS

Production planning area


CIF_SL_REQ-MRP_AREA

NA

Storage location
CIF_SL_REQ-STORE_LOC

VBBE-LGORT

Batch
CIF_SL_REQ-BATCH

VBBE-CHARG

Order type
CIF_SL_REQ-DOC_TYPE

NA

ATP: Requirement quantity


CIF_SL_REQ-REQ_QTY

VBBE-OMENG

ATP: Confirmed quantity


CIF_SL_REQ-AVA_QTY

VBBE-VMENG

ATP: Requirement quantity


CIF_SL_REQ-ALLOC_QTY

VBBE-PZMNG

Base unit of measure


CIF_SL_REQ-UNITOFMEAS

VBBE-MEINS

Check mode
CIF_SL_REQ-CHECK_MODE

NA

Point in time

CONVERSION

NA

Not used in R/3

Not used in R/3

REQUIREMENTS DATE

CIF_SL_REQ-MS_DATE

VBBE-MDDAT
CALL FUNCTION 'TZ_LOCAL_TO_GLOBAL'
SOLD-TO PARTY

Customer number
CIF_SL_REQ-SHIP_TO

VBBE-KUNNR

Key for special inventory


section
CIF_SL_REQ-SPECSTOKEY

VBBE-VBELE +
VBBE-POSNE
OR
VBBE-PSPEL

Special stock indicator


CIF_SL_REQ-SPECIALSTO
Requirements record is not
relevant for MRP
CIF_SL_REQ-MRP_INDIC

VBBE-SOBKZ
NA

Source SD document number


CIF_SL_REQ-DOCNR_RESP
Item number of source Sales &
Distribution document
CIF_SL_REQ-ITMNR_RESP

VBBE-VBELE
VBBE-POSNE

Sales order: Important document fields


Core Interface FIELD In
APO
A method executed
during the transfer of an
object
CIF_SL_DOC-METHOD
SD document number
CIF_SL_DOCDOC_NUMBER
Item number of the SD
document
CIF_SL_DOCITM_NUMBER

R/3 FIELD
VBAP-UPDKZ

CONVERSION
Updkz_new

Updkz_update C
Updkz_delete. D
VBAP-VBELN

VBAP-POSNR

ATP: Category of Stock /


Receipts / Issues
CIF_SL_REQ-ATPCAT

Not used

Document type.
CIF_SL_DOCDOC_TYPE

VBAK-VBTYP

Order type
CIF_SL_DOCORD_TYPE

VBAK-AUART

Sales organisation
CIF_SL_DOCSALES_ORG

VBAK-VKORG

Sales Division
CIF_SL_DOC-DIVISION
Distribution Channel
CIF_SL_DOCDISTR_CHAN
Sales Office
CIF_SL_DOC-SLSOFF
Sales group
CIF_SL_DOC-SLSGRP

VBAK-SPART
VBAK-VTWEG
VBAK-VKBUR
VB AK-VKGRP

Customer number
CIF_SL_DOC-SOLD_TO VBAK-KUNNR
Complete delivery
indicator
CIF_SL_DOCCOMPL_DLV
Item category of order
item
CIF_SL_DOCITEM_CATEG
Name of person who
created the item
CIF_SL_DOCITEM_CATEG

VBAK-AUTLF

VBAP-PSTYV

VBAP-ERNAM

Product number
CIM_SL_DOCPRODUCT

VBAP-MATNR

Product number
CIM_SL_DOCPRODUCT

VBAP-MATNR

Location
CIM_SL_DOCLOCATION

VBAP-WERKS

Storage Location
CIM_SL_DOCSTORE_LOC

VBAP-LGORT

ATP-Sublocation

Batch number
CIM_SL_DOC-BATCH

VBAP-CHARG

Product Version

Ship-to-party
VBPA-KUNNR for
CIM_SL_DOC-SHIP_TO VBAP-PARVW WE
In actual item
Shipping point for item
CIM_SL_DOCSHIP_POINT

VBAP-VSTEL

Route
CIM_SL_DOC-ROUTE

VBAP-ROUTE

Shipping Condition
CIM_SL_DOCSHP_COND

VBAP-VSBED

Delivery Priority
CIM_SL_DOCDLV_PRIO

VBAP-LPRIO

Partia Delivery
Agreement
CIM_SL_DOCPART_DLV

VBAP-KZTLF

Maximum Number of
Partials
CIM_SL_DOCMAX_PL_DLV

VBAP-ANTLF

Product Allocation
Procedure
CIM_SL_DOC- ALLOC

VBAP-KOSCH

Sales order: Table of additional document fields


Core Interface FIELD In
APO
SD document number
CIF_SL_DOC-DELNR
Item number of the SD
document
CIF_SL_DOC-DELPS
Name of Transported
Field
CIF_SL_REQ-KFDNA

Value of Transported
Field
CIF_SL_DOC-VALUE

R/3 FIELD
VBAP-VBELN
VBAP-POSNR

Fields predefined in
field catalogue for
product allocation resp.
Rules based ATP
Values for fields
predefined in field
catalogue for product
allocation resp. Rules
based ATP

CONVERSION

12. Production Order


Production Order: Order Header
(/SAPAPO/CIF_ORDER_HEAD)
Core Interface FIELD In
APO
Order/MRP element
number
CIF_ORDER_HEADORDNR

R/3 FIELD
AFKO-AUFNR

OLTP object type


CIF_ORDER_HEADOBJECT_TYPE

Simulation version or
version for long-term
planning
CIF_ORDER_HEADSIM_VERSION

NA

Method to be executed
while transferring an
object
CIF_ORDER_HEADMETHOD

NA

Number of reservation /
dependent requirements
CIF_ORDER_HEADRSNUM

AFKO-RSNUM

Location
CIF_ORDER_HEADPROD_PLANT

AUFK-WERKS

Production procedure
CIF_ORDER_HEADPROD_VER

NA

Conversion indicator for


planned order
CIF_ORDER_HEADPRODUCABLE

NA

Planning without final


assembly
CIF_ORDER_HEADNO_FIN_ASSEMBLY

NA

Material requirements
NA
quantity of order is firmed
CIF_ORDER_HEADINPUT_FIXED
Output of order is firmed
CIF_ORDER_HEADOUTPUT_FIXED

CONVERSION

NA

N, C, D

Time of BOM explosion


CIF_ORDER_HEADEXPLOSION_DATE

AFKO- AUFLD

Start time
CIF_ORDER_HEADORDER_START_DATE

AFKO- GSTRP
AFKO- GSUZP

End time
CIF_ORDER_HEADORDER_END_DATE

AFKO- GLTRP
AFKO- GLUZP

CALL FUNCTION
'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = AFKO-AUFLD
* IV_TIME =
CALL FUNCTION
'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = AFKO-GSTRP
IV_TIME = AFKO-GSUZP
CALL FUNCTION
'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = AFKO-GLTRP
IV_TIME = AFKO-GLUZP

Procurement type
NA
CIF_ORDER_HEADPROCUREMENT_TYPE
Supplier
CIF_ORDER_HEADVENDOR

NA

Configuration (internal
object number)
CIF_ORDER_HEADCONFIG

AFKO-CUOBJ

Order priority
CIF_ORDER_HEADPRIORITY

NA

Production Order: Order Operations


(/SAPAPO/CIF_ORDER_OPR)
Core Interface FIELD In
APO
Order/MRP element
number
CIF_ORDER_OPRORDNR
General counter of order
CIF_ORDER_OPROPERATION

R/3 FIELD
AFKO-AUFNR

CONVERSION
SELECT * FROM AFVC
WHERE AUFPL = AFKO-AUFPL

AFVC-APLZL

Internal number (InID) for NA


an order in APO
CIF_ORDER_OPRORDERGUID
Method to be executed
while transferring an
object

NA

N, C, D

CIF_ORDER_OPRMETHOD
Operation number
CIF_ORDER_OPROPRNR

AFVC-VORNR

Sub-operation number
CIF_ORDER_OPRSUBOPRNR

NA

Object ID of
capacity/work center in
R/3
CIF_ORDER_OPRR3ARBID

AFVC-ARBID

Plan quantity
CIF_ORDER_OPRBASEQUANTITY

AFV V-BMSCH

Operation qty / work


CIF_ORDER_OPROPRQUANTITY

AFV V-MGVRG

Base unit of measure


CIF_ORDER_OPRBASEUNIT

AFV V-BMEINS

CIF_ORDER_OPRSETUPTIME

CIF_ORDER_OPRPROCESSTIME

CIF_ORDER_OPRTEARDOWNTIME

CIF_ORDER_OPRWAITTIME

CIF_ORDER_OPRLAYTIME

AFV V-RSTZE
AFV V-RUEST

AFV V-BEAZE
AFV V-BEARZ

AFV V-ARUZE
AFV V-ABRUE

AFV V-WRTZE
AFV V-WARTZ

AFV V-LIGZE
AFV V-LIEGZ

X
CIF_ORDER_OPR-

CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-MEINS
IV_QUANTITY = AFVV-BMSCH
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-MEINS
IV_QUANTITY = AFVV-MGVRG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-BMEINS
IV_QUANTITY = AFVV-MGVRG
CALL FUNCTION
'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = AFVV-RSTZE
IV_TIME = AFVV-RUEST
CALL FUNCTION
'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = AFVV-BEAZE
IV_TIME = AFVV-BEARZ
CALL FUNCTION
'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = AFVV-ARUZE
IV_TIME = AFVV-ABRUE
CALL FUNCTION
'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = AFVV-WRTZE
IV_TIME = AFVV-WARTZ
CALL FUNCTION
'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = AFVV-LIGZE
IV_TIME = AFVV-LIEGZ
X OR SPACE

UNPLANNED
CIF_ORDER_OPRRELEASED

NA
NA

CIF_ORDER_OPRDATE_FIXED
NA
CIF_ORDER_OPRSTARTED
Start time
CIF_ORDER_OPRSTART_DATE

NA

End time
CIF_ORDER_OPRFINISH_DATE

NA

Production Order: Capacity Requirement, Operations


(/SAPAPO/CIF_ORDER_CAPREQ)
Core Interface FIELD In
APO
Order/MRP element
number
CIF_ORDER_CAPREQORDNR
ID of the capacity
requirements record
CIF_ORDER_CAPREQREQID

R/3 FIELD
AFKO-AUFNR

CONVERSION
SELECT * FROM KBED
WHEN BEDID = AFKO-BEDID
AND BEDZL = AFVC-BEDZL

NA

Internal number (InID) for NA


an order in APO
CIF_ORDER_CAPREQORDERGUID
Method to be executed
while transferring an
object
CIF_ORDER_CAPREQMETHOD

NA

General counter of order


CIF_ORDER_CAPREQOPERATION

AFVC-APLZL

Capacity ID
CIF_ORDER_CAPREQCAPID

KBED- CAPID

N, C, D

Set up planned capacity


requirements
CIF_ORDER_CAPREQCAPSETUP

KBEB- KRUESOLL

Planned capacity
requirements for
processing
CIF_ORDER_CAPREQCAPPROCESS

KBED- KBEASOLL

Planned capacity
requirements for
teardown
CIF_ORDER_CAPREQCAPTEARDOWN

KBED-KABRSOLL

Base unit of measure


CIF_ORDER_CAPREQCAPUNIT

KBED- KEINH

Production Order: Input nodes


(/SAPAPO/CIF_ORDER_INPUT)
Core Interface FIELD In
APO
Order/MRP element
number
CIF_ORDER_INPUTORDNR

R/3 FIELD

CONVERSION

AFKO-AUFNR

Number of reservation /
dependent requirements
CIF_ORDER_INPUTRSNUM

RESB-RSNUM

Item number of
reservation / dependent
requirements
CIF_ORDER_INPUTRSPOS

RESB-RSPOS

SELECT * FROM RESB


WHERE RSNUM = AFKO-RENUM

Internal number (InID) for NA


an order in APO
CIF_ORDER_INPUTORDERGUID
Method to be executed
while transferring an
object
CIF_ORDER_INPUTMETHOD

NA

General counter of order


CIF_ORDER_INPUT-

AFVC-APLZL

N, C, D

OPERATION
Product number
CIF_ORDER_INPUTMATERIAL

RESB-MATNR

Location
CIF_ORDER_INPUTPLANT

RESB-WERKS

Sublocation
CIF_ORDER_INPUTSTORAGELOCATION

RESBBT-LGORT

Requirements quantity
CIF_ORDER_INPUTREQMT_QUANT

RESB-BDMNG

Withdrawal quantity
CIF_ORDER_INPUTRECEIVED_QUANT

RESB-ENMNG

ATP: Confirmed quantity


CIF_ORDER_INPUTCONFIRMED_QUANT

RESB-VMENG

Base unit of measure


CIF_ORDER_INPUTUNITOFMEAS

RESB-MEINS

ISO code for unit of


measurement
CIF_ORDER_INPUTUOM_ISO

RESB-MEINS

Time qty required


CIF_ORDER_INPUTREQMT_DATE

RESB-BDTER

Batch number
CIF_ORDER_INPUTBATCH

RESB-CHARG

Special stock indicator


CIF_ORDER_INPUTSPEC_STOCK

RESB-SOBKZ

Key for special inventory


section
CIF_ORDER_INPUTSPEC_STOCK_KEY

NA

ATP: Category of Stock /


Receipts / Issues
CIF_ORDER_INPUTATPCAT

ATPCAT

Bill of material

RESB-STLNR

CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'


EXPORTING
IV_MATNR = RESB-MATNR
IV_UOM
= RESB-MEINS
IV_QUANTITY = RESB-BDMNG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = RESB-MATNR
IV_UOM
= RESB-MEINS
IV_QUANTITY = RESB-ENMNG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = RESB-MATNR
IV_UOM
= RESB-MEINS
IV_QUANTITY = RESB-VMENG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = RESB-MATNR
IV_UOM
= RESB-MEINS
IV_QUANTITY = RESB-VMENG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = RESB-MATNR
IV_UOM
= RESB-MEINS
IV_QUANTITY = RESB-VMENG
CALL FUNCTION 'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = RESB-BDTER
* IV_TIME =

GENERATE_ATP_CATEGORY

CIF_ORDER_INPUTBOM_NUMBER
Inherited node number of RESB-STVKN
BOM item
CIF_ORDER_INPUTBOM_ITEM_ID
Location
CIF_ORDER_INPUTTRANSPLANT

NA

Production Order : Output nodes


(/SAPAPO/CIF_ORDER_OUTPUT)
Core Interface FIELD In
APO
Order/MRP element
number
CIF_ORDER_OUTPUTORDNR
Number of reservation /
dependent requirements
CIF_ORDER_OUTPUTORDER_ITEM

R/3 FIELD

CONVERSION

AFKO-AUFNR

AFPO-POSNR

Internal number (InID) for NA


an order in APO
CIF_ORDER_OUTPUTORDERGUID
Method to be executed
while transferring an
object
CIF_ORDER_OUTPUTMETHOD

NA

General counter of order


CIF_ORDER_OUTPUTOPERATION

NA

Product number
CIF_ORDER_OUTPUTMATERIAL

AFPO-MATNR

Location
CIF_ORDER_OUTPUTPLANT

AFPO-WERKS

Sublocation
CIF_ORDER_OUTPUTSTORAGELOCATION

AFPO-LGORT

N, C, D

Receipt/issue quantity
CIF_ORDER_OUTPUTORDER_QUANTITY

AFPO-PSMNG

Scrap quantity
CIF_ORDER_OUTPUTSCRAP_QUANTITY

AFPO-PSAMG

Goods receipt quantity


CIF_ORDER_OUTPUTGR_QUANTITY

AFPO-WEMNG

Base unit of measure


CIF_ORDER_OUTPUTUNITOFMEAS

AFPO-MEINS

ISO code for unit of


measurement
CIF_ORDER_OUTPUTUOM_ISO

AFPO-MEINS

Goods receipt processing T006-MSEHI


time in seconds
AFPO-WEBAZ
CIF_ORDER_OUTPUTGR_PROC_TIME

CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_IS


EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-BMEINS
IV_QUANTITY = AFPO-GAMNG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO
EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-BMEINS
IV_QUANTITY = AFPO-GASMG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-BMEINS
IV_QUANTITY = AFPO-WEMNG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-BMEINS
IV_QUANTITY = AFPO-WEMNG
CALL FUNCTI 'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = AFPO-MATNR
IV_UOM
= AFPO-BMEINS
IV_QUANTITY = AFPO-WEMNG
CALL FUNCTION 'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = T006-MSEHI
IV_TIME = AFPO-WEBAZ

Start time
CIF_ORDER_OUTPUTSTART_DATE

NA

CALL FUNCTION 'CIF_GEN_CONVERT_DATETIME'


EXPORTING
IV_DATE = AFPO-GSTRP
IV_TIME = AFPO-GSUZP
CALL FUNCTION 'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = AFPO-GLTRP
IV_TIME
= AFPO-GLUZP

End time
CIF_ORDER_OUTPUTFINISH_DATE

NA

Batch number
CIF_ORDER_OUTPUTBATCH

AFPO-CHARG

Special stock indicator


CIF_ORDER_OUTPUTSPEC_STOCK

AFPO-SOBKZ

Key for special inventory


section
CIF_ORDER_OUTPUTSPEC_STOCK_KEY

AFPO-PROJN

ATP: Category of Stock /


Receipts / Issues
CIF_ORDER_OUTPUTATPCAT

NA

GENERATE_ATP_CATEGORY

Indicator for master


output (main material) of
an order
CIF_ORDER_OUTPUTIS_MASTER

IF AFPOBT-POSNR EQ 1.

Production Order: Operation Relationships


(/SAPAPO/CIF_ORDER_RELATION)
Core Interface FIELD In APO
Internal counter
CIF_ORDER_RELATIONCIFCOUNTER

R/3 FIELD

CONVERSION

NA

Order/MRP element number


CIF_ORDER_RELATIONORDNR_PRE

AFKO-AUFNR

Order/MRP element number


CIF_ORDER_RELATIONORDNR_SUC

AFKO-AUFNR

Internal number (InID) for an


order in APO
CIF_ORDER_RELATIONORDERGUID_PRE

NA

Internal number (InID) for an


order in APO
CIF_ORDER_RELATIONORDERGUID_SUCC

NA

Method to be executed while


transferring an object
CIF_ORDER_RELATIONMETHOD

NA

General counter of order


CIF_ORDER_RELATIONOPERATION_PRE

AFAB-APLZL_VOR

Activity category/ID
CIF_ORDER_RELATIONOPRTYPE_PRE

NA

Relationship approach (start or


end)
CIF_ORDER_RELATIONOPRTIME_PRE

NA

General counter of order


CIF_ORDER_RELATIONOPERATION_SUC

AFAB-APLZL_NCH

Activity category/ID
CIF_ORDER_RELATIONOPRTYPE_SUC

NA

Relationship approach (start or


end)
CIF_ORDER_RELATION-

NA

N, C, D

OPRTIME_SUC
Relationship type (parallel or
alternative)
CIF_ORDER_RELATIONRELKIND

AFAB-AOBAR.

Relationship category (min.,


max., or equal)
CIF_ORDER_RELATIONRELTYPE

Duration, time difference (in


seconds)
CIF_ORDER_RELATIONTIMEDIFFMIN

AFAB-ZEINH
AFAB-DAUER.

Duration, time difference (in


seconds)
CIF_ORDER_RELATIONTIMEDIFFMAX

NA

CALL FUNCTION
'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = AFAB-ZEINH
IV_TIME = AFAB-DAUER

13. Planned Order


Planned Order:

Order Header
(/SAPAPO/CIF_ORDER_HEAD)

Core Interface FIELD In


APO
Order/MRP element
number
CIF_ORDER_HEADORDNR

R/3 FIELD
PLAF-PLNUM

OLTP object type


CIF_ORDER_HEADOBJECT_TYPE

Simulation version or
version for long-term
planning
CIF_ORDER_HEADSIM_VERSION

NA

Method to be executed
while transferring an
object
CIF_ORDER_HEADMETHOD

NA

Number of reservation /
dependent requirements
CIF_ORDER_HEADRSNUM

PLAF-RSNUM

Location
CIF_ORDER_HEADPROD_PLANT

PLAF-PWWRK

Production procedure
CIF_ORDER_HEADPROD_VER

PLAF-VERID

Conversion indicator for


planned order
CIF_ORDER_HEADPRODUCABLE

PLAF-UMSKZ

Planning without final


assembly
CIF_ORDER_HEADNO_FIN_ASSEMBLY

NA (3.1H),
PLAF-VRPLA

Material requirements
PLAF-STLFX
quantity of order is firmed
CIF_ORDER_HEADINPUT_FIXED
Output of order is firmed
CIF_ORDER_HEADOUTPUT_FIXED

CONVERSION

PLAF-AUFFX

N, C, D will be derived dynamically

Time of BOM explosion


CIF_ORDER_HEADEXPLOSION_DATE

PLAF-PALTR

Start time
CIF_ORDER_HEADORDER_START_DATE

PLAF-PSTTR
PLAF-PSTTI

End time
CIF_ORDER_HEADORDER_END_DATE

PLAF-PEDTR
PLAF-PEDTI

CALL FUNCTION 'CIF_GEN_CONVERT_DATETIME'


EXPORTING
IV_DATE = PLAF-PALTR
* IV_TIME =
CALL FUNCTION 'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = PLAF-PSTTR
IV_TIME = PLAF-PSTTI
CALL FUNCTION 'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = PLAF-PEDTR
IV_TIME = PLAF-PEDTI

Procurement type
PLAF-BESKZ
CIF_ORDER_HEADPROCUREMENT_TYPE
Supplier
CIF_ORDER_HEADVENDOR

PLAF-FLIEF

Configuration (internal
object number)
CIF_ORDER_HEADCONFIG

PLAF-CUOBJ

Order priority
CIF_ORDER_HEADPRIORITY

NA

Planned Order:

Input nodes
(/SAPAPO/CIF_ORDER_INPUT)

Core Interface FIELD In


APO
Order/MRP element
number
CIF_ORDER_INPUTORDNR

R/3 FIELD

CONVERSION

MATM-AUFNR

Number of reservation /
dependent requirements
CIF_ORDER_INPUTRSNUM

PLAF-RSNUM

Item number of
reservation / dependent
requirements
CIF_ORDER_INPUTRSPOS

RESB-RSPOS

space

Internal number (InID) for NA


an order in APO
CIF_ORDER_INPUTORDERGUID
Method to be executed

See: Header Order

N, C, D

while transferring an
object
CIF_ORDER_INPUTMETHOD
General counter of order
CIF_ORDER_INPUTOPERATION

NA

space

Product number
CIF_ORDER_INPUTMATERIAL

RESB-MATNR

SELECT * FROM RESB


WHERE RSNUM = PLAF-RSNUM

Location
CIF_ORDER_INPUTPLANT

RESB-WERKS

Sublocation
CIF_ORDER_INPUTSTORAGELOCATION

RESB-LGORT

Requirements quantity
CIF_ORDER_INPUTREQMT_QUANT

RESB-BDMNG

Withdrawal quantity
CIF_ORDER_INPUTRECEIVED_QUANT

RESB-ENMNG

ATP: Confirmed quantity


CIF_ORDER_INPUTCONFIRMED_QUANT

RESB-VMENG

Base unit of measure


CIF_ORDER_INPUTUNITOFMEAS

RESB-MEINS

ISO code for unit of


measurement
CIF_ORDER_INPUTUOM_ISO

RESB-MEINS

Time qty required


CIF_ORDER_INPUTREQMT_DATE

RESB-BDTER

Batch number
CIF_ORDER_INPUTBATCH

RESB-CHARG

Special stock indicator


CIF_ORDER_INPUT-

RESB-SOBKZ

CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = IS_R3RES-MATNR
IV_UOM = IS_R3RES-MEINS
IV_QUANTITY = IS_R3RES-BDMNG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = IS_R3RES-MATNR
IV_UOM = IS_R3RES-MEINS
IV_QUANTITY = IS_R3RES-ENMNG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = IS_R3RES-MATNR
IV_UOM = IS_R3RES-MEINS
IV_QUANTITY = IS_R3RES-VMENG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = IS_R3RES-MATNR
IV_UOM = IS_R3RES-MEINS
IV_QUANTITY = IS_R3RES-VMENG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = IS_R3RES-MATNR
IV_UOM = IS_R3RES-MEINS
IV_QUANTITY = IS_R3RES-VMENG
CALL FUNCTION 'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = IS_R3RES-BDTER
* IV_TIME =

SPEC_STOCK
Key for special inventory
section
CIF_ORDER_INPUTSPEC_STOCK_KEY

NA

ATP: Category of Stock /


Receipts / Issues
CIF_ORDER_INPUTATPCAT

ATPCAT

Bill of material
CIF_ORDER_INPUTBOM_NUMBER

RESB-STLNR

GENERATE_ATP_CATEGORY

Inherited node number of RESB-STVKN


BOM item
CIF_ORDER_INPUTBOM_ITEM_ID
Location
CIF_ORDER_INPUTTRANSPLANT

NA

Planned Order:

Output nodes
(/SAPAPO/CIF_ORDER_OUTPUT)

Core Interface FIELD In


APO
Order/MRP element
number
CIF_ORDER_OUTPUTORDNR
Number of reservation /
dependent requirements
CIF_ORDER_OUTPUTORDER_ITEM

R/3 FIELD

CONVERSION

PLAF-PLNUM

RESB-POSNR
(only in case of coproduct)

SELECT * FROM RESB


WHERE RSNUM = PLAF-RSNUM

Internal number (InID) for NA


an order in APO
CIF_ORDER_OUTPUTORDERGUID
Method to be executed
while transferring an
object
CIF_ORDER_OUTPUTMETHOD

NA

N, C, D

General counter of order


CIF_ORDER_OUTPUTOPERATION

NA

space

Product number
CIF_ORDER_OUTPUTMATERIAL

PLAF-MATNR

Location
CIF_ORDER_OUTPUTPLANT

PLAF-PLWRK

Sublocation
CIF_ORDER_OUTPUTSTORAGELOCATION

PLAF-LGORT

Receipt/issue quantity
CIF_ORDER_OUTPUTORDER_QUANTITY

PLAF-GSMNG

Scrap quantity
CIF_ORDER_OUTPUTSCRAP_QUANTITY

PLAF-AVMNG

Goods receipt quantity


CIF_ORDER_OUTPUTGR_QUANTITY

NA
PLAF-WEMNG (R/3 4.X)

Base unit of measure


CIF_ORDER_OUTPUTUNITOFMEAS

PLAF-MEINS

ISO code for unit of


measurement
CIF_ORDER_OUTPUTUOM_ISO

PLAF-MEINS

Goods receipt processing T006-MSEHI


time in seconds
PLAF-WEBAZ
CIF_ORDER_OUTPUTGR_PROC_TIME
Start time
CIF_ORDER_OUTPUTSTART_DATE

PLAF-PSTTR
PLAF-PSTTI

Finish time
CIF_ORDER_OUTPUTFINISH_DATE

PLAF-PEDTR
PLAF-PEDTI

Batch number

NA

CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = PLAF-MATNR
IV_UOM
= PLAF-MEINS
IV_QUANTITY = PLAF-GSMNG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = PLAF-MATNR
IV_UOM
= PLAF-MEINS
IV_QUANTITY = PLAF-AVMNG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = PLAF-MATNR
IV_UOM
= PLAF-MEINS
IV_QUANTITY = PLAF-WEMNG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = PLAF-MATNR
IV_UOM
= PLAF-MEINS
IV_QUANTITY = PLAF-WEMNG
CALL FUNCTION
'CIF_GEN_CONVERT_QUANTITY_ISO'
EXPORTING
IV_MATNR = PLAF-MATNR
IV_UOM
= PLAF-MEINS
IV_QUANTITY = PLAF-WEMNG
CALL FUNCTION
'CIF_GEN_CONVERT_DURATION'
EXPORTING
IV_UOM = LV_UNIT_DAY : T006-MSEHI
IV_TIME = PLAF-WEBAZ
CALL FUNCTION
'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = PLAF-PSTTR
IV_TIME
= PLAF-PSTTI
CALL FUNCTION
'CIF_GEN_CONVERT_DATETIME'
EXPORTING
IV_DATE = PLAF-PEDTR
IV_TIME
= PLAF-PEDTI
IMPORTING
EV_TIMESTAMP = CS_APOOUTFINISHDATE.
SPACE

CIF_ORDER_OUTPUTBATCH
Special stock indicator
CIF_ORDER_OUTPUTSPEC_STOCK

PLAF-SOBKZ

Key for special inventory


section
CIF_ORDER_OUTPUTSPEC_STOCK_KEY

PLAF-PSPEL

ATP: Category of Stock /


Receipts / Issues
CIF_ORDER_OUTPUTATPCAT

NA

GENERATE_ATP_CATEGORY

Indicator for master


output (main material) of
an order
CIF_ORDER_OUTPUTIS_MASTER

Vous aimerez peut-être aussi