Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
The Coca Cola
Copany
Program scale
T!C"#$C%L S&!C$'$C%T$(#
')nctional %rea: PTP
&rocess: *
Cate*ory: Conversion
%&& +!, $+:
'++: FDD PTP-006 Purchasing Management
')nctional Spec $+: FS-C PTP-006 Purchase Order upload
+oc)ent #ae: TS-C PTP-006 Purchase Order upload
+escription: Upload o e!isting Purchase Orders into S"P
Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
Contents
##$%&'$(0)doc &a*e o 8
Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
1- .esponsi/ilities
.esponsi/ility
.ole
&erson #ae Contact +etails Coents
"uthor "nil *umar +edd, P "nil-umar.redd,/sat,am)com
2- %ppro0al
%ppro0al .ole &erson +etails Contact +etails %ppro0al
Stat)s
3- Chan*e Control
,ersion ,ersion +etails &erson +etails +ate
##$%&'$(0)doc &a*e o 8
Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
1- 2rief Technical (0er0ie3
2rief Technical (0er0ie3
This report program is used to upload Ta0 Delimited 14-t5t2 ile or the transaction Purchase Orders
M3#%4)
5"P6 is used to achieve re7uired unctionalit,)
Ta0le control is used to handle multiple items or particular header ields)
Transaction Code M3#%4
8eader
Document t,pe 3**O-5S"+T re7uired
9endor 3**O-:6F4+ re7uired
Purchasing Org 3**O-3*O+; re7uired
Purchasing ;roup 3**O-3*;P+ re7uired
Compan, code 3**O-5U*+S re7uired
6tem
"ccount "ssignment 3*PO-*4TTP optional
6tem Categor, 3*PO-PST<P optional
Material 4um0er 3*PO-M"T4+ optional
Short te!t 3*PO-T=>0% optional
?uantit, 3*PO-M34;3 re7uired
unit o measure 3*PO-M364S re7uired
Price 3*PO-43TP+ re7uired
price unit 3*PO-P3648 re7uired
price unit o measure 3*PO-5P+M3 re7uired
material group 3*PO-M"T*: re7uired
plant 3*PO-@3+*S re7uired
storage location 3*PO-:;O+T optional
;A: account 3**4-S"*TO optional
@5S element 3**4-PS.PSP.P4+ optional
Order 3**4-"UF4+ optional
Cost center 3**4-*OST: optional
5- +ata Con0ersions
')%) Data Conversions Detailed Description
+eerence Field
15usiness 4ame2
5usiness +ules Comments
4A"
##$%&'$(0)doc &a*e o 8
Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
')#) 6mportA3!port to S"P
SourceATarget S,stemB 4A"
SourceATarget File PathAFile
4ame or Data0aseB
Source File T,peB
File DelimiterB
Source File DescriptionB
$port/!5port data appin* atri5
Output
File
Field
name
S"P
Ta0le
Field
4ame
6DOC A
56 A
:oading
program
ield
name
Field
Desc)
Format
1T,pe
and
:ength2
S"P
Deault
9alue
+e7uired
1MAO2)
S"P
Conversion
rules A logic
S"P
9alidation
Chec-
Ta0le or
validation
4A"
2+C Con0ersions
S"P Transaction Code M3#%4
Program Screen Field 4ame Field 9alue
/SCL/.UMM&U.C6M!21#
Technical +etails for BAPI conversion
" uni7ue num0er has 0een included)
The uni7ue num0er Cill 0e used to dierentiate 0etCeen dierent purchase orders)
"ll header details relating to a particular uni7ue num0er must 0e identical)
@or-sheet in TS-C
PTP-006 Purchase Order upload)!ls
'ollo3 the flat file str)ct)re in the ention forat only- +ate filed sho)ld /e 7777MM++ only-
Purchase Order upload.txt
There are 6 dierent purchase order scenarios that are re7uiredB
Scenario $te Cate*ory %cco)nt !5tra andatory ites
##$%&'$(0)doc &a*e o 8
Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
%ssi*nent
1 Standard 4one
2 Standard ProDect ;A: "ccount
@5S 3lement
3 Standard Cost Center 1*2 ;A: "ccount
Cost Center
1 Standard Order 1F2 ;A: "ccount
Order 4um0er
Cost Center
5 Consignment 1*2 4one
Consignment Purchasing 6no
+ecord
8
Su0-Contracting
1:2 4one Material1s2
Program Logic
%2 Call unction '16'$L!#%M! is used to get FE 1input help2 or presentation server
ile)
#2 Select Ta0 Delimited ile rom presentation server Chich contains the multiple records Cith
irst roC should contain the F6:3D 83"D64;S)
(2 Call unction 9:U$6U&L(%+9 is used to upload ile into internal ta0le i.struct.po)
E2 Delete the irst roC rom the i.struct.po)
'2 5, chec-ing the scenarios Chich mention a0ove 0ased on i6str)ct6po data call the
Perorms)
62 For each scenario logic should 0e dier 0ased on conditions given in the a0ove)
For e!ample scenario %)
:oop the i.struct.po)
5, using the FC(#,!.S$(#6!;$T6%L&"%6$#&UTG convert the vendorH material and ;A:
"ccount in order to add leading Ieros)
COP< T83 i.struct.po 64TO 83"D3+ 64T3+4": T"5:3)
COP< T83 i.struct.po 64TO 6T3M 64T3+4": T"5:3
COP< T83 i.struct.po 64TO SC83DU:3 64T3+4": T"5:3
3ndloop)
Sort the header data 0ased on lat)
D3:3T3 T83 MU:T6P:3 83"D3+S 5"S3D O4 F:";)
Loop at header-
##$%&'$(0)doc &a*e o 8
Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
COP< T83 83"D3+ 64T3+4": T"5:3 64TO 5"P6 PO83"D3+ ST+UCTU+3)
P"SS T83 J=J 9":U3S TO T83 5"P6 PO83"D3+= ST+UCTU+3)
Loop at ite-
COP< T83 6T3M 64T3+4": T"5:3 64TO 5"P6 PO6T3M T"5:3 5"S3D
O4 83"D3+ +3CO+D F:";)
6
User the counter in item to increase the item no as %0H #0H (0 K)0ased on item records given)
P"SS T83 J=J 9":U3S TO T83 5"P6 PO6T3M= T"5:3)
!ndloop-
Loop at sched)le-
COP< T83 SC83DU:3 64T3+4": T"5:3 64TO 5"P6 POSC83DU:3 T"5:3 5"S3D
O4 83"D3+ +3CO+D F:";)
User the counter in item to increase the item no as %0H #0H (0 K)0ased on item records given)
P"SS64; T83 J=J 9":U3S TO T83 5"P6 SC83DU:3= T"5:3)
!ndloop-
C":: T83 5"P6 FU4CT6O4 MODU:3 92%&$6&(6C.!%T!19TO C+3"T3 PU+C8"S3 O+D3+
and pass all the corresponding 5"P6 structures to it)
!ndloop the header-
Finall, return messages are displa,ed in ":9 grid ormat)
Do this logic or all the scenarios Chich mention a0ove)
8- <ey 2)siness Test Conditions
4um
)
Test Condition 3!pected +esults
UT+ PTP-006
Purchase Order upload)doc
Upload the M3#%4 1Purchase order2 into S"P
=- (pen $ss)es
4um Detailed Description +esolutionAStatus
##$%&'$(0)doc &a*e o 8
Technical Specification
Created: 15/05/2008 23:10:00
Last Updated: 15-May-08
)
4A"
8- Technical %ttri/)tes
#)
-
#ae ,al)e
+e0elopent &ac>a*e ASC:APTP
S%& %pplication %rea MM-PTP
C)stoer "ierarchy 4A"
%ny +ependencies ASC:A+UMMPU+6.M3#%4.TOP
ASC:A+UMMPU+6.M3#%4.FO+M
?- Transport +etails
#)
-
Transport
Type
Transport
#o
S%& (/@ect #ae S%&
(/@ect
Type
Short +escription
1 @or-0ench
+e7uest
DT+*L0%(E$ Prog) 4ameB
/SCL/.UMM&U.C6M!21#
T)codeB
/SCL/.U&&M6&(6U&L(%+
5"P6 PTP-006 PTP-006
Purchase Order
upload
##$%&'$(0)doc &a*e o 8