【Planning】APO - enhancement for CIF from APO

Purpose:

这里我们要验证,从APO过到R3里的PV,qty.Order data是否可以被人为控制,以及如何做好R3APO integration

 

 

Approach:

 

FM: CIF_ORDER_INBOUND_30A ==> main prog,下面包含着类以于005exit

Machine generated alternative text:
Display 1MG
Lj Existing BC Sets 6y払C S8tE ::rrty 慉ctPiated BC Sets for Act  Release Notes
Structure
SAP E-Recruiting
Time Management
Payroll
Training and Event Management
Management of Internal Controls
SEAL Systems AG Software
Incentive and Sales Force Management
Integration with Other SAP Components
b SAP Business Suite Integration Component for Ariba
Advanced Planning and Optimization
b Basic Settings for Setting Up the System Landscape
b Basic Settings for the Data Transfer
Application-Specific Settings and Enhancements
b Enhancements for Plant, Vendor, Customer, and Shipping Point
b Enhancements for Materials
b Settings for Resources
b Enhancements for Transportation Lanes
b Settings and Enhancements for Stocks
b Settings and Enhancements for Inspection Lots
b Settings and Enhancements for Requirement Reduction
b Enhancements for Reservations
b Enhancements for the Production Process Model
b Enhancements for Production Data Structure
b Enhancements for Integrated Product and Process Engineering CiPPE)
b Settings and Enhancements for Shipments
b Settings and Enhancements for Sales Orders
b Enhancements for Sales Scheduling Agreements
[ettings and Enhancements for In-House Productioni
b General Settings for Manufacturing Orders
b Inbound Processing of Planned Orders and Manufacturing Orders
b Outbound Processing of Planned Orders and Manufacturing Orders
b Inbound Processing of Manufacturing Orders
b Outbound Processing of Manufacturing Orders
b Enhancements for Networks
b Enhancements for Maintenance Orders

 

Machine generated alternative text:
LI , L! 1  L1 LI2 q桱 晅桱 .I桱 e桱 1jj IJ ?1 1
SAP Enhancements in Enhancement Project ZTC_ CIFI
E.   LEnhancement Components
Enhancement Text
Enhancement for In-House Prod. Order Inc.for Customer Fields
1 IL

 

Machine generated alternative text:
Change ZTC_ CIF1
Enhancement assignments Li Enhancement
Project
?
ZTC_CIF1 TC - CIF enhancement for Family care
Enhancement
Impl
?
Exp
CIFORDO3 Enhancement for In-House Prod. Order Inc.
Function exit
9
Q
EXIT_SAPLCORD_005
Include tables CI_APOINA
CI_APOOPA
CI_APODRA
CI_APOOUA

 

Machine generated alternative text:
ABAP Editor: Change Indude ZXC1FUJ1
- 慞fl C6?) ?* Ya Ii t? Pattern PrettyPrinter
Incbde ZXCI11 Act裡
101
111 FIELD-SYMBOLS: cf s_apor? type CIF_APOORD.
121 FIELD SYMBOLS: <f _apoout;? TYPE CIF_APOOUT.
131
iiI s 
151 ? IFZNwn<1.
161 exit.
171 * SNOrT.
181
191 - 鱁NDDO.I
201
211
221
231 SLOOP AT IT_APOORD
241 ASSIGNING 
281, WHERE ORDERCUID = -CRDERGUID AND MATERIAL es ? (JJJ .
291.
3?  ORDERQUAN 23.
311
321 MODIFY IT_APOOUT FROM .
34 ENDLOOP.
351,
361 N IF sy SUbZC 3.
371 -PRODVER = ?002?
381
391, MODIFY IT_APOORD FROM  
</p>
<p lang=  

Machine generated alternative text:
Planning Book: [Live] PGXXGLSNPOO3-GLOBAL DRP PLANNING BOOK/ UNCON WE
? Selection profile
CC5595
. ? ED_FAMCARE_SNP_R3
. ? ZFC_R3JrO_APO_DRP_MARK_01
訨EAN1
. ? ED-REORDER DATE
Destination / Source Start D... Start Ti
U017 14.08. 00:00:00
1LiL? 4J[?? 4jLJ[J[ Aj[ []FDesiqn 1[DGraphic h E1F
Selected Objects P
100%
Product Type
84960000 
84963128 ij
84963128 ru靧
84963128 Th
84963128 !N
84963128 ft!u
84963128 I蚮lJ
OAflfll O ji.44
I b 1
Unit
Location
U017
1534
1535
1537
4786
4787
5233
C) n
1[1[]L Aj[I Aj[I h [!]
09.08.20, 10.08.20... 11.08.20 12.08.20.. 13.08.20
DistrReceipt (TLB Confirmed)
Product Short I
CC 1210/12 FR ?Total Demand UNCON
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 2419. :
Cfi IMTV )A
Ib
CS
In Transit CS
CS
Substitution Demand (Planned)
CS
10
DistrReceipt (Planned)
CS
Production (Planned) __________ _________
Production (Confirmed) CS
Quality Inspection Lots
Substitution Receipt (Planned) CS
CS
14.08.20 W 33.2016 W 34.2016 W 35.2016 W 36.2016 W 37.2016 W 38.2016 V
?Total Receipts UNCON
Stock on Hand
CS
CS
? 10)
r
Projected Inventory UNCON CS
10
r-S.4... r4....i. re I
Ib
a  [j [1][  A.LA?J [J [蝅
Order Numb It Schd.Ln.No AvaiVRe AvaiVRe Fix Rec./Reqmts Qt抷 Original Qty Total Qty Unit Category Category De.ion Product
r1000122906? 1 0000 14.08.2 23:59:59 10 10 10 CS EE SNP: Planned order 84960000
J ...
I I I
I

 

Machine generated alternative text:
?Total Demand UNCON Cs
10
DistrReceipt (Planned)
CS
CS
DistrReceipt (TLB Confirmed)
In Transit
CS
Production (Planned)
CS
Production (Confirmed)
CS
10
Quality Inspection Lots
CS
Substitution Receipt (Planned)
CS
?Total Receipts UNCON
CS
10
Stock on Hand
CS
Projected Inventory UNCON
CS
r-S...-. ri-...-I.
rr
4]I 4][t$jt1
Destination / Source Start D Start Ti End Da... End Ti Characteristics Source
U017 14.08.... 00:00:00 14.08. 23:59: U017
Destination Location Source of Supply
U017 000000000084960000U0170001
PPM/PDS De.ion Plan/PDS MTr
S test Pv 00000

==>此时只有order number被修改了

 

Machine generated alternative text:
Stock/Requirements List as of 02:59 hrs
I ShowOverviewTree ? t 1%
jJ Material ! 84960000 CC 1210/12 FROSTY 800697 ASH
Plant U017j MRP type X0? Material Type FERT Unit CSH
Date MRP ... MRP element data Rescheduli... E.. Receipt/Reqmt Available Qty Pr...
[joe/09/2o16 Stock 0
08/14/2016捬Ord. ?000122906/Stck ZEZ 20 20
08/14/2016 IndReq VSF lo? 10

 

Run lead time scheduling:

Machine generated alternative text:
Display Planned Order: Stock order
Components  Components
LA Stock order 1000122906 E Standard in-house ..
Material 84960000 CC 1210/12 FROSTY 800697 ASH
PLanning Plant U017 CAPE GIRARDEAU PLANT
Header Assignment Master Data Detailed Scheduling Action Control
Quantities
Orderquantity 20 Cs Scrap quantity
Dates/Times Basic Dates / ductionDat biier Dates
End 08/14/201 08/13/2016?4:OO:001 A lableforMRP F08/14/201&
Start 08/09/2016 ?O8/09If2O16i捳IL00. processing time 0
Opening 08/09/2016
Other Data Firming _________
Production Plant U017 . .dnned Order
Storage Location L] Components
Production Version r00021 flCapauty Dispatched
BUM Explosion Number
J JConversion Indicator 

 

Machine generated alternative text:
Planning Book: [Live] PGXXGLSNPOO3-GLOBAL DRP PLANNING BOOK! UNCON WE
1LA1[ j[?  lA]
Selected Objects
Product
Type
Location
Product Short I
84960000
U017
CC 1210/12 FR
84963128
1534
BOUNTY 24/9.
84963128
1535
BOUNTY 24/9.
84963128
1537
BOUNTY 24/9
84963128
4786
BOUNTY 24/9.
84963128
4787
BOUNTY 24/9
84963128
OAfl1 O
L.
5233
BOUNTY 24/9.
Oft IMTV )A ICW
6 Selection profile
CC5595
. ? ED_FAMCARE_SNP_R3
. ? ZFC_R3_TO_APO_DRP_MARK_01
訨EAN1
. ? ED-REORDER DATE
PPM/PDS es n/PDS MTr
S test PV2 00...
[J.,Desgn j1 Graphic J  1?%J?  ][IrJ 111[ 41[t 1 [ 4] L1
Unit 09.08.20 10.08.20 11.08.20 12.08.20 13.08.20.,.
I
14.08.20 W 33.2016 W 34.2016 W 35.2016 W 36.2016 W 37.2016 W
Substitution Demand (Planned)
CS
?Total Demand UNCON
CS
10
DistrReceipt (Planned)
CS
DistrReceipt (TLB Confirmed)
CS
.
In Transit
CS
Production (Planned)
Production (Confirmed)
CS
CS
( 20
Quality Inspection Lots
CS
____
Substitution Receipt (Planned)
CS
?jotal Receipts UNCON
CS
20
Stock on Hand
CS
Projected Inventory UNCON
CS
20
10
10
10 10 10 10
r-.C..+- r#,..-I.
I 
Destination / Source Start D... Start Ti End Da... End Ti Characteristics Source
U017 13.08.., 00:00:00 13.08. 23:59: U017
Destination Lo rce o Supply
U017 000000000084960000U0170002

 

==> 所以,类似于PV,quantity change后,并不会是initial CIF时(即APO->R3)就反cifapo

 

 

如果R3里的PVAPO没有呢?

Machine generated alternative text:
Production Version: Mass Processing
Selection Condition5
Material No
MRP Controller
Key date
Production line
CAPE GIRARDEAU PLANT
84960000
Detailed ping
Rate-based ping
Rough-Cut Ping
Task List Type Group
e
e
e
Production versions
Ap... Detailed... Gr... Type
1 50000550
1 50000551 1
1 50000551 2
e
e
Plant Material
Pr... Text
Lock
M. P.. C.. Te... Check date
Valid from
Valid to From lot size
To lot size U...
Alt... B...
U017 84960000
000ltestPV
No...
No...
No.
No...e
e
GXDG 08/08/2016
XZI 08/08/2016
CC008/09/2016
08/01/2016
08/01/2016
08/01/2016
08/01/2017
08/01/2017
08/01/2017
CS
CS
CS
ED
ED
ED
U01i owvuuuu
]UO174960000
U07
uuuc  yy
J3testPV3
OB ref. material
2 Ma... C
2 Ma... e
2 Ma... e
Uni 7
nrwrTrarl f,, ADfl c DDMIDIThC

 

Machine generated alternative text:
ENDLOOP.
35
36 - IF sy-subrc = D.
37. faaord::-PRODVE.
3 MODIFY ITAPOORD FROM cts apord>.
慓 O,
ENDIF.
42,

 

然后CIF from APO:

Machine generated alternative text:
Stock/Requirements List as of 03:25 hrs
ShowOverviewTree L 
1! A.. Date MRP ... MRP element data
[joe/o9/2o16 Stock
O8/14/2O16捬Ord. ?000122907/Stck
08/14/2016 IndReq VSF
CC 1210/12 FROSTY 800697 ASH
XC MaterialType FE?! Unit
Rescheduli... E.. Receipt/Reqmt Available Qty Pr...
c20
[Material
Plant
84960000
U017I
MRP type

 

Machine generated alternative text:
LA Stock order 1000122907 E Standard in-house ...
r
Material 4960000 ?I 1210/12 FROSTY 800697 ASH
L__ J
Planning Plant U017 CAPE GIRARDEAU PLANT
jHeader Assignment Master Data Action Control
Quantities
Order quantity 20 CS Scrap quantity O
Dates/Times
Basic Dates Production Dates Other Dates
End 08/14/2016 00:00:00 AvailableforMRP 08/14/2016
Start 08/14/2016 00:00:00 GRprocessingtime
Opening 08/14/2016
Other Data Firming
Production Plant 0171 CPlanned Order
Storage Location flComponents
Production Version 慜OO3 [] Capacity Dispatched
BOM Explosion Number
r7lrnni,orcnn Tnrlintnr

 

Machine generated alternative text:
Planning Book: [Live] PGXXGLSNPOO3-GLOBAL 蠷P PLANNING BOOK/ UNCON WE
? Selection profile
CC5595
. ? ED_FAMCARE_SNP_R3
. ? ZFC_R3_TO_APO_DRP_MARK_01
. 訨EAN1
. ? ED-REORDER DATE
Forecast
CS
lo
Sales Order
CS
DistrDemand (Planned)
CS
DistrDemand (TLB Confirmed)
CS
In Transit Correction
CS
[ 4I[]EZ1L ][][1[hiL4Z  ][Design jjjjGraphic j []j 100% j[J [][][][u 4j][[ 4j[ 4j [[  Rl
Selected Objects ____________________________ Unit 09.08.20 10.08.20 11.08.20 12.08.20 13.08.20
Product
84960000
84963128
84963128
84963128
84963128
84963128
84963128
OArlfll )O
Type
trn
憌
Location
U017
1534
1535
1537
4786
4787
5233
? 
Product Short I
CC 1210/12 FR
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9. :
Cfi II.ITV 4 ifl
I 
CS
Dependent Demand
Substitution Demand (Planned) CS
a Total Demand UNCON CS
14.08.20. W 33.2016 W 34.2016 W 35.2016 W 36.2016 W 37.2016 W 38.
Production (Planned)
DistrReceipt (Planned) CS
DistrReceipt (TLB Confirmed) CS
In Transit CS
CS
lo
n.-.,?, ..-+-..... f r.,.R...-....4. rr
I 
1[[ 1[HW[1
rder Numb . Schd.Ln.No Avail/Re Avail/Re Fix Rec./Reqmts Qty
r10001229071 0000 14.08.2 23:59:59 10
J ...
In
Original Qty Total Qty Unit Category Category De.ion Product
10 10 CS EE SNP: Planned order 84960000
Destination / Source Start D.. Start Ti
U017 14.08. 00:00:00

 

Machine generated alternative text:
CS
CS
nr in
[4] 1[ 4IIL 1Ii] fJJ 
Start TL. End Da, End TL. Characteristics Source Destination  ?  PIan/PDs MTr
00:00:00 14.08. 23:59: U017 U017
00000.,.

 

lead time 后再cifapo

Machine generated alternative text:
LA Stock order 1000122 E Standard in-house ...
Material ?o黲7? 1210/12 FROSTY 800697 ASH
Planning Plant U017 CAPE GIRARDEAU PLANT
Header Assignment Master Data Detailed Scheduling Action Control
Quantities
Order quantity 20 CS Scrap quantity
Dates/Times
Basic Dates oduction Dates ther Dates
End 08/14/201 08/13/2016 24:00:00 A ilableforMRP 08/14/201?
Start 08/13/2016 08/13/201604:00:0&1 processing time
Opening 08/13/20161
Other Data Firming
Production Plant U017fl
Storage Location
Production Version 100031
BOM Explosion Number

自动Cif back :

Machine generated alternative text:
Planning Book: [Live] PGXXGLSNPOO3-GLOBAL DRP PLANNING BOOK! UNCON WE
[ 
[L  41    JDGraphic ]  100%    4J[I  1L  L1
Selected Objects __________________________ Unit 09.08.20, 10.08.20,.. 11.08.20... 12.08.20.. 13.08.20,,
Product
84960000
84963128
84963128
84963128
84963128
84963128
84963128
OA(21 O
Type
Location
U017
1534
1535
1537
4786
4787
5233
Product Short I
CC 1210/12 FR
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
BOUNTY 24/9.
ori IMrv 靑 ln
In Transit Correction
Dependent Demand
CS
CS
Forecast
CS
10
Sales Order
CS
DistrDemand (Planned)
CS
D靤trDemand (TLB Confirmed)
CS
? Selection profile
CC5595
. ? ED_FAMCARE_SNP_R3
. * ZFC_R3_TO_APO_DRP....MARK_01
. 闖EAN1
. ? EDREORDER DATE
Substitution Demand (Planned) CS
Total Demand UNCON CS
DistrReceipt (Planned) CS
14.08.20 W 33.2016 W 34.2016 W 35.2016 W 36.2016 W 37.2016 W 38.2016 I
DistrReceipt (TLB Confirmed)
In Transit
CS
Production (Planned)
CS
CS
10
n..A. .i-; 
4 
i[LUJLi
Order Numb? ItmN? Schd.L Avail/Re... Avail/Re... ix Rec./Reqmts Qty
r1000122907 1 0000 13.08.2 23:59:5 20
L J ...
?
Original Qty Total Qty Unit Category Category De.ion Product
20 20 CS EE SNP: Planned order 84960000
Destination / Source Start D Start Ti
U017 13.08.... 00:00:00

 

Machine generated alternative text:
In Transit
Cs
Production
(Planned)
CS
.1 .桰.-;...
(r,..,?...,..4t
A
Destination / Source Start D Start Ti End Da End Ti Characteristics Source Destination Locat
1111[ 1 4] 1[ 4][ Aj[ 4j  PIan/PDS
U017 13.08.... 00:00:00 13.08. 23:59: U017 U017
00000... 

==> 所以,如果R3里有PV,而APOPV,则反回到APO里,还是沿用先前的PV

请使用浏览器的分享功能分享到微信等