You are on page 1of 11

Customer Service ABAP Tables for Programmers

Introduction While implementing Customer Service, you will probably specify or develop custom reports, and may specify or develop enhancements. After the business process owners have decided what they want (to start with anyway), your next challenge may be to find where the data are located that you ll need to wor! with. "or reports and many enhancements, you ll want to pull data directly from the transparent tables. #ut which tables, and which fields$ % have ferreted out some (hardly all) useful paths that you can follow to get the Customer Service data you need. All this information results from the research % ve done on various pro&ects in 'elease (.)# and is therefore limited to the areas and release % wor!ed in. *here are surely tables and data paths that % don t !now about because % haven t wor!ed in those particular niches. % d love to hear about any corrections or expansions to this information you may have. +lease send them to ,ennis.#arrett-sap.com. *his article contains three parts. *ables, /oins and +lants. +art 0 contains a list of many (most$) tables that that are involved in Customer service. %t concludes with a small A#A+ program you can use to list the fields of those tables so you can search for a well1hidden field. +art 2 graphically shows several of the data paths you might find useful when you must pull data out of the transparent tables. +art 3 briefly illustrates several plants that are used in Customer service. %f you want a report to include +lant then you must choose which one (or more) to show. %n many business environments the several +lants may all have the same value, but some companies use +lant very creatively. Part 1 - Tables 4ere s a list of many of the tables involved in Customer service.
*Orders AUFK AFIH AFKO AFPO AFFL AFFH AF"U AF"' AF"" AFRU IHPA PM+#O Order master data Maintenance Order Header Order header data PP orders Order item Work order sequence PRT assignment data or the !ork order #$ structure o the user ie%ds o the o&n O&eration !ithin an order #$ str o quantities(dates()a%ues in the o&n Order com&%etion con irmations P%ant Maintenance* Partners +er)ice order sa%es area noti ication noti ication 0 items message 0 maintenance data e1cer&t noti ication 0 acti)ities noti ication 0 tasks

*,oti ications -M.L -ua%it/ -MF. -ua%it/ -MIH -ua%it/ -MMA -ua%it/ -M+M -ua%it/

-MUR

-ua%it/ noti ication 0 causes

*Function Location IFLOT Functiona% %ocation 2ta3%e4 IFLOT5 Functiona% Location* +hort Te1ts IFLO+ Functiona% %ocation a%iases 2678 and a3o)e4 IFLOALT La3e%ing +/stems or Functiona% Locations 2678 and a3o)e4 ILOA PM o39ect %ocation and account assignment *Reser)ations RKPF #ocument Header* Reser)ation K$KO Header record or ca&acit/ requirements K$.# 'a&acit/ requirements records HRP:;;: In ot/&e :;;: #$ Ta3%e PA;;;: HR Master Rec* In ot/&e ;;;: 2Org7Assgnmnt4 *+tatus <+TO <.+T <'#+ T<=;T T<;>T +tatus O39ect 'hange Te1ts Te1ts o39ect in ormation status #ocuments or +/stem(User +tatuses or user status or s/stem status

*Work 'enters 'RI# 'IM Resource? .ntities 'RH# Work 'enter Header 'RT5 Te1t or the Work 'enter or Production *.qui&ment 'R".@A 'R".@$ 'RFH .-UI .-UA .-KT A,LH *Materia%s MARA MAR' MAR# MAKT O$<K +.R;= Assign PRT to equi&ment Assign equi&ment to PRT 'IM &roduction resource(too% master data .qui&ment master data .qui&ment time segment .qui&ment Te1ts Main asset num3er Materia% Master* Benera% #ata Materia% Master* ' +egment Materia% Master* +torage Locn($atch +egment Materia% #escri&tions P%ant Maintenance O39ect List #oc7header 7seria% num3ers or goods m)mnts

*Measures C 'ounters IMPTT Measurement &oint 2ta3%e4

IMRB 'A$,

Measurement document 'haracteristic #ocument* #ocument* #ocument* document Header #ata Item #ata +chedu%e Line #ata %o!

*+a%es documents "$AK +a%es "$AP +a%es "$.P +a%es "$FA +a%es

*Purchase orders .$A, Purchase Requisition .$K, Purchase Requisition Account Assignment

4ere s a report that shows all the structures of the tables listed. 5ou can search (in the report or in a downloaded file) for a field by name, data element or chec! table if you need a field that doesn t show up otherwise. 6bviously you can add other tables to this report if you are wor!ing in another module.
*C00000000000000000000000000000000000000000000000000000000000000000000C* R.PORT A@+"'@OR#@TA$L.+7 * Re&ort ta3%es and ie%ds associated !ith +er)ice orders *C00000000000000000000000000000000000000000000000000000000000000000000C* TA$L.+* ##;=L? ##;>T? ##;6T7 #ATA* &osition LIK. ##;=L0PO+ITIO,? ke/ %ag LIK. ##;=L0K.DFLAB? ie%dname LIK. ##;=L0FI.L#,AM.? data@e%em LIK. ##;=L0ROLL,AM.? checkta3%e LIK. ##;=L0'H.'KTA$L.? descr LIK. ##;6T0##T.5T? ddte1t LIK. ##;>T0##T.5T? header2:>;4? $.BI, OF i O''UR+ E;? t LIK. ##;>T0TA$,AM.? .,# OF i7 *Orders i0t F GAUFKG7 i0t F GAFIHG7 i0t F GAFKOG7 i0t F GAFPOG7 i0t F GAFFLG7 i0t F GAFFHG7 i0t F GAF"UG7 i0t F GAF"'G7 i0t F GAF""G7 APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# i7 i7 i7 i7 i7 i7 i7 i7 i7 HOrder master data HMaintenance Order Header HOrder header data PP orders HOrder item HWork order sequence HPRT assignment data or the !ork order H#$ structure o the user ie%ds o the o&n HO&eration !ithin an order H#$ str o quantities(dates()a%ues in the o&n

i0t F GAFRUG7 i0t F GIHPAG7 i0t F GPM+#OG7 *,oti i0t F i0t F i0t F i0t F i0t F i0t F ications G-M.LG7 G-MF.G7 G-MIHG7 G-MMAG7 G-M+MG7 G-MURG7

APP.,# i7 HOrder com&%etion con irmations APP.,# i7 HP%ant Maintenance* Partners APP.,# i7 H+er)ice order sa%es area APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# i7 i7 i7 i7 i7 i7 H-ua%it/ H-ua%it/ H-ua%it/ H-ua%it/ H-ua%it/ H-ua%it/ noti ication noti ication 0 items message 0 maintenance data e1cer&t noti ication 0 acti)ities noti ication 0 tasks noti ication 0 causes

*Function Location i0t F GIFLOTG7 APP.,# i7 HFunctiona% %ocation 2ta3%e4 *i0t F GIFLO+G7 APP.,# i7 HFunctiona% %ocation a%iases 2678 and a3o)e4 *i0t F GIFLOT5G7 APP.,# i7 HLa3e%ing +/stems or Functiona% Locations 2678 and a3o)e4 i0t F GILOAG7 APP.,# i7 HPM o39ect %ocation and account assignment *Reser)ations i0t F GRKPFG7 i0t F GK$KOG7 i0t F GK$.#G7 i0t F GHRP:;;:G7 i0t F GPA;;;:G7 *+tatus i0t F G<+TOG7 i0t F G<.+TG7 i0t F G<'#+G7 i0t F GT<=;TG7 i0t F GT<;>TG7 *Work i0t F i0t F i0t F 'enters G'RI#G7 G'RH#G7 G'RT5G7 APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# i7 i7 i7 i7 i7 i7 i7 i7 i7 i7 H#ocument Header* Reser)ation HHeader record or ca&acit/ requirements H'a&acit/ requirements records HIn ot/&e :;;: #$ Ta3%e HHR Master Rec* In ot/&e ;;;: 2Org7Assgnmnt4 H+tatus HO39ect H'hange HTe1ts HTe1ts o39ect in ormation status #ocuments or +/stem(User +tatuses or user status or s/stem status

APP.,# i7 H'IM Resource? .ntities APP.,# i7 HWork 'enter Header APP.,# i7 HTe1t or the Work 'enter or Production APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# APP.,# i7 i7 i7 i7 i7 i7 i7 HAssign PRT to equi&ment HAssign equi&ment to PRT H'IM &roduction resource(too% master data H.qui&ment master data H.qui&ment time segment H.qui&ment Te1ts HMain asset num3er

*.qui&ment i0t F G'R".@AG7 i0t F G'R".@$G7 i0t F G'RFHG7 i0t F G.-UIG7 i0t F G.-UAG7 i0t F G.-KTG7 i0t F GA,LHG7 *Materia%s

i0t i0t i0t i0t i0t i0t

F F F F F F

GMARAG7 GMAR'G7 GMAR#G7 GMAKTG7 GO$<KG7 G+.R;=G7

APP.,# APP.,# APP.,# APP.,# APP.,# APP.,#

i7 i7 i7 i7 i7 i7

HMateria% Master* Benera% #ata HMateria% Master* ' +egment HMateria% Master* +torage Locn($atch +egment HMateria% #escri&tions HP%ant Maintenance O39ect List H#oc7header 7seria% num3ers or goods m)mnts

*Measures C 'ounters i0t F GIMPTTG7 APP.,# i7 HMeasurement &oint 2ta3%e4 i0t F GIMRBG7 APP.,# i7 HMeasurement document i0t F G'A$,G7 APP.,# i7 H'haracteristic *+a%es documents i0t F G"$AKG7 i0t F G"$APG7 i0t F G"$.PG7 i0t F G"$FAG7 APP.,# APP.,# APP.,# APP.,# i7 i7 i7 i7 H+a%es H+a%es H+a%es H+a%es #ocument* #ocument* #ocument* document Header #ata Item #ata +chedu%e Line #ata %o!

*Purchase orders i0t F G.$A,G7 APP.,# i7 HPurchase Requisition i0t F G.$K,G7 APP.,# i7 HPurchase Requisition Account Assignment P.RFORM List@Ta3%e@Fie%ds7 *C00000000000000000000000000000000000000000000000000000000000000000000C* FORM List@Ta3%e@Fie%ds7 LOOP AT i7 +.L.'T +I,BL. ##T.5T FROM ##;>T I,TO 2ddte1t4 WH.R. ##LA,BUAB. .- +D0LA,BU A,# A+6LO'AL .- GAG A,# A+6".R+ .- G;;;;G A,# TA$,AM. .- i0t7 +KIP >7 ULI,. 2::>47 'O,'AT.,AT. i0t G0G ddte1t I,TO header +.PARAT.# $D +PA'.7 WRIT.* header? (> GFie%d nameG? :E GKe/G? >> G#ata e%ementG? =E G'heckta3%eG? I6 G#escri&tionG? 8I G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G7 +.L.'T LJPO+ITIO, LJK.DFLAB LJFI.L#,AM. LJROLL,AM. LJ'H.'KTA$L. #J##T.5T I,TO 2&osition? ke/ %ag? ie%dname?

data@e%em? checkta3%e? descr4 FROM ##;=L A+ L <OI, ##;6T A+ # O, #JROLL,AM. .- LJROLL,AM. WH.R. #J##LA,BUAB. .- +D0LA,BU A,# LJA+6LO'AL .- GAG A,# TA$,AM. .- i0t OR#.R $D LJPO+ITIO,7 WRIT.* (>2:I4 ie%dname? :E2:4 ke/ %ag? >>2:I4 data@e%em? =E2:I4 checkta3%e? I628;4 descr7 .,#+.L.'T7 .,#LOOP7 Hi .,#FORM7 *C00000000000000000000000000000000000000000000000000000000000000000000C* *C end o re&ort

Part 2 - Joins *his part contains an assembly of many of the &oins involved in Customer service, followed by specific data paths that lead to particular outputs. *he data paths have one or more entry points (what you !now to start with) at the top, for example the Service order number (AUF,R) and the 6peration number ("OR,R). *hese values start a se7uence of table &oins that ultimately produce the output needed for a report.
Some table joins in Service orders Tables "$.P "$AK "$AP AUFK AFIH ILOA AFKO AFPO AF"' AFFL AFFH 'RI# 'RH# 'RT5 AF"" AF"U AFRU RKPF K$KO <+TO | Joins K K K K K K K K K K K K K K K K K K K K AUF,R AUF,R AUF,R AUF,R AUF,R PO+,R O$<,R AUFPL AUFPL APLAL O$<,R AUFPL APLAL AUFPL APLAL O$<,R AR$I# O$<I# O$<I# O$<I# O$<I# AR$I# O$<,R +T+MA | Conditions "$.L, PO+,R K "$.L, K "$.L, PO+,R K K#AUF K#PO+ K K K R+,UM $.#I# K K K K K K K K K K K R+,UM K $.#I# K K

ILOA, ILOA, "OR,R

B.WRK

AUF,R "OR,R

AUFPL APLAL AUFPL APLAL AUFPL APLAL

O$<TD* O$<TD* O$<TD* O$<TD* I+M,W

+PRA+ F +D0LA,BU7

<.+T <'#+ T<=;T T<;>T

K K K K K

O$<,R* O$<,R

+TAT +TAT +T+MA .+TAT I+TAT

K K K K K K K K K K K K K K O$<TD* O$<TD* O$<TD* R.'#" etc7 AT,AM

+PRA+ F +D0LA,BU7 +PRA+ F +D0LA,BU7

AFFH 'R".@A 'R".@$ .-UI IMPTT IMRB 'A$, 2,otes4 Tables AUFK AFIH ILOA AF"' AF"" 'RH# <'#+ T<=;T T<;>T

K K AUFPL APLAL O$<I# K O$<I# .-U,R K O$<I# .-U,R K .-U,R O$<,R K MPO$< POI,T ATI,, K POI,T K ATI,, K *O$<TDFGAG HWork 'enter FGFHG HPRT | Typical display fields K AUF,R KT.5T AUART W.RK+ K PRIOK K TPL,R K AR$I# LT5A: K AR$.I K AR$PL K U#AT. UTIM. I,A'T 'HI,# K T5T;6 T5T=; K T5T;6 T5T=;

Data path Between Service order and Sales Document Entry & Tables +er)ice Order AUFK "$.P PM+#O Origina% +7O7 "$AK "$AP Origina% -uote "$FA "$AK "$AP | K K K K K K K K K K K Joins AUF,R AUF,R K#AUF K#PO+ O$<,R AUF,R "$.L, PO+,R O$<,R "$.L, "$.L, PO+,R "$.L" PO+," "$.L, PO+,, "$.L, "$.L, PO+,R | Conditions K K K K K K K K K "$TDP@" F L$MN "$TDP@, F L'M K K | utputs K K K K "KORB "TW.B +PART K K K K K K K

,otes* K#AUF and K#PO+ !i%% contain the num3ers o the origina% sa%es document rom !hich this order !as created7 I it !as created rom a -uotation and a su3sequent sa%es order !as created? these ie%ds are not u&dated7 Fo%%o! the &ath through "$FA to get the +a%es order num3er in that case7 Service order !lants and "or# Center Entry & Tables | Joins +er)ice Order K AUF,R AFIH K AUF,R B.WRK 'RH# K O$<I# 'RT5 K O$<I# | Conditions K K K K +PRA+ F +D0LA,BU | utputs K K IW.RK K AR$PL W.RK+ K KT.5T

Service order !artners Entry & Tables | Joins +er)ice Order K AUF,R AUFK K AUF,R O$<,R IHPA K O$<,R Service operation to assi$ned !%T and to that e&uipment's system status Entry & Tables +er)ice Order O&eration AFKO AF"' AFFH 'R".@A .-UI .-KT .-UA <.+T <.+T | Joins K AUF,R K "OR,R K AUF,R AUFPL K "OR,R AUFPL APLAL O$<,R K AUFPL APLAL O$<I# O$<TD O$<,R K O$<I# O$<TD .-U,R K .-U,R K .-U,R K .-U,R K O$<,R K O$<,R | K K K K K K K K K K K Conditions | utputs K K K K K K .-U,R K MAT,R K .-KT5 K K K | Conditions K K K | utputs K K K PAR"W PAR,R

+PRA+ #AT$I I,A'T I,A'T

....-

L.,M LOOOO:>=:M +PA'. 2:4 +PA'. 2>4

* ,otes* 2:4 I <.+T0+TAT .- GI;;:=G 2#e%eted4 and <.+T0I,A'T .- +PA'. then the o&eration has 3een de%eted7 2>4 I <.+T0+TAT .- GI;;:=G 2#e%eted4 and <.+T0I,A'T .- +PA'. then the equi&ment assignment has 3een de%eted (unctional )ocation to *easurement Document Entry & Tables Fnc% Locn IFLOT AFIH AFKO AFFH 'R".@A .-UI IMPTT IMRB 'A$, Confirmations Entry & Tables +er)ice Order O&eration AFRU Service | Joins K AUF,R K "OR,R K AUF,R "OR,R AUFPL APLAL | Conditions K K K | Joins K TPL,R K TPL,R ILOA, K ILOA, AUF,R K AUF,R AUFPL K AUFPL O$<I# K O$<I# .-U,R K .-U,R O$<,R K MPO$< POI,T ATI,, K POI,T K ATI,, | Conditions K K K K K K K K K K

rom the o&eration7

| utputs K K K K K K K K K R.'#"? etc7 K AT,AM

| utputs K K K I+M,W

rder to capacity +personnel, assi$nments | Joins K AUF,R K AUF,R $.#I# K $.#I# AR$I# P.R,R K O$<I# K P.R,R | Conditions K K K K O$<TD F LAM K .,##A F LOOOO:>=:M | utputs K K K 2dates4 K AR$PL K .,AM.

Entry & Tables +er)ice Order AFKO K$.# 'RH# PA;;;:

E&uipment to "or# Center Entry & Tables .qui&ment .-UA ILOA 'RH# | Joins K.-U,R K.-U,R ILOA, K ILOA, PP+I# K O$<I# | K K K K Conditions #AT$I F LOOOO:>=:MN .-LF, F L;;:M OW,.R F L M O$<TD F LAM? | utputs K K K K AR$PL W.RK+

peration to "or# Center Entry & Tables +er)ice Order O&eration AFKO AF"' 'RH# | Joins K AUF,R K "OR,R K AUF,R AUFPL K AUFPL "OR,R AR$I# K O$<I# | Conditions K K K K K O$<TDFLAM | utputs K K K K K AR$PL W.RK+

E&uipment -ierarchy Entry & Tables .qui&ment ,r .-UA .-UI | Joins K .-U,R K .-U,R H.-UI K .-U,R | Conditions K K #AT$I .- LOOOO:>=:M? H.-,R F : K | utputs K PThe su39ect equi&ment K PIts current date record K PIts immediate%/ su&erior equi&ment

Data *ap to identify moved e&uipment assets Entry & Tables | Joins Asset K A,L,R ILOA K A,L,R ILOA, .-UA K ILOA, .-U,R O$<K K .-U,R O$K,R +.R;= K O$K,R +.R;= K O$K,R A,LH K A,L,: .-KT K .-U,R | K K K K K K K K Conditions A,L,R #AT$I TA+.R $LART $LART ,. BT ...+PA'. +D0#ATUM L+.R;=M LWLM* LW.M* | K K K K K K K K utputs

+HKAB .- LHM* +HKAB .- L+M*

+PRA+ F +D0LA,BU

W.RK F +ourceP%ant W.RK F #estinationP%ant A,LHT5T .-KT5

Additiona% 'onditions* O$<K0#ATUM $T begin A,# end +ourceP%ant ,. #estinationP%ant +e%ect the O$<K record* !ith the greatest )a%ue o #ATUM 3et!een begin and end or destination &%ant !ith the %east )a%ue o #ATUM 3et!een begin and end or source &%ant7 *,otes* begin F irst da/ o re&orting &eriod end F %ast da/ o re&orting &eriod7 +HKAB* H F 'redit + F #e3it $LART* W. F Boods recei&t WL F Boods issue(de%i)er/ (ind all the active e&uipment +from a material number, that e.ists in a plant/ Entry & Tables | Joins P%ant K W.RK Materia% K MAT,R | Conditions K K | K K utputs

+tatus %ist <.+T .-UI

K +TAT K +TAT O$<,R K W.RK MAT,R O$<,R +TAT rom this t/&ica% %ist*

K F an/ mem3er o K I,A'T ,. L5M K L"ORM ,. L5M

Pa%%o!a3%eQ %ist

K K K .-U,R

+e%ect /our a%%o!a3%e )a%ues o

T<;>T 0 +/stem status te1ts 2<.+T0+TAT 0R T<;>T0I+TAT4 000000000000000000000000000000000000000000000 I+TAT T5T;6 T5T=; 000000000000000000000000000000000000000000000 I;;OO A"L$ A)ai%a3%e I;:E6 .+TO In the !arehouse I;::8 I;:E; I;;S8 I;:;; I;:E8 I;:EE I;:O; I;=>; A+.,PRT #LFL I,+T .#.L .'U+ .LOK I,AK A%%ocated to su&erior equi&t PRT not read/ or use 2&%anned4 #e%etion %ag Insta%%ed Assigned in de%i)er/ note At customer site Locked O39ect deacti)ated

Part 3 - Plants +lant fields are sprin!led throughout Service orders and technical ob&ects. 4ere s a brief summary of some of those plants that may be useful as you are parsing out which plants to report. Some tables contain plant fields that % haven t trac!ed down. %f you !now what they are about, please let me !now. *han!s.
Service order !lants 0 1"23 +creen C %a3e% Order Header Main Work 'enter &%ant Maintenance P%anning &%ant T Order item T O&eration Work 'enter &%ant T E&uipment !lants +creen C %a3e% Location C PM* Maint&%ant PM data* P%anning &%ant PM data* Main Work'tr P%ant +eria% data* P%ant T +creen ie%d ILOA0+W.RK .-UA0IW.RK RM8=.0W.RBW .-UI0W.RK T Ta3%e ie%d ILOA0+W.RK .-UA0IW.RK 'RH#0W.RK+ .-UI0W.RK 'RF#0+TOWK Fie%d descri&tionN ,otes PMaintenance &%antQ PP%anning &%antQ PP%antQN Po&u%ated rom Work 'enter choice P+tock &%antQ PP%ant %ocation o the &roduction resource(too%Q +creen ie%d Ta3%e ie%d Fie%d descri&tionN ,otes PP%antQN )ia AFIH0B.WRK F 'HR#0O$<I# PP%anning &%antQN a%so &o&u%ates AUFK0W.RK+ PP%antQ PLocation &%antQ PP%anning &%ant PP%antQ PP%antQ PActua% &%antQ or the orderQ

'AUF"#0"AWRK 'AUF"#0IW.RK T T AF"B#0W.RK+ T

'RH#0W.RK+ AFIH0IW.RK AUFK0+OWRK AFPO0PW.RK AFPO0#W.RK AF"'0W.RK+ AF"'0W.RKI

*aterial !lants +creen C %a3e% +a%esOrg :* #e%i)ering P%ant +a%es? genera%(&%ant* P%ant +torage : C >* P%ant T T (unctional location !lants +creen C %a3e% Location data* Maintenance &%ant P%ant Maintenance* P%anning &%ant P%ant Maintenance* Main Work'tr +creen ie%d ILOA0+W.RK RILO;0IW.RK RILO;0W.RBW Ta3%e ie%d ILOA0+W.RK IFLOT0IW.RK 'RH#0W.RK+ Fie%d descri&tionN ,otes PMaintenance &%antQN a%so P%ant Maintenance PP%anning &%antQ PP%antQN Po&u%ated rom Work 'enter choice +creen ie%d M"K.0#W.RK RMB:0W.RK+ RMB:0W.RK+ T T Ta3%e ie%d M"K.0#W.RK MAR'0W.RK+ MAR#0W.RK+ MAR'0"R$WK +.R;=0W.RK Fie%d descri&tionN ,otes P#e%i)ering &%ant PP%antQN a%so Purchasing C Foreign0Trade segments PP%antQ PRe erence &%ant or consum&tionQ PP%antQ

8nd of article 1 Customer Service A#A+ *ables for +rogrammers

You might also like