10
7/25/2019 Custom Developmetns in SAP ETM.docx http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 1/10 1.  Adding Z fields in IK11 - Entering Measurement Documents 1. Add your Z-felds to the include table CI_IMRG (a part o table IMRG !. "esi#n a $creen area ($%&1 and ha'e these custo felds. ). Create a *ro+ect throu#h CM," and ha'e the enhanceent IMRC) into it. . /hrou#h $M," #o to IMRC) and acti'ate it. &. I you double clic0 on this enu eit here you 2ill #et a pop-up 2ith deault title 3Custoer 4unction3. 5ou can chan#e this. ($uppose 2e chan#ed it as Additional felds 6. In the I711 enu G,/, you fnd this enu eit lin0. (Additional felds 8. 9o2 the turn o unction %it %:I/_$A*;IMR_) o the user-eit IMRC). 5our A<A*er 2ill put a code here to call the screen you3'e desi#ned 2ith additional felds and to update the felds in the table IMRG. =. 9o2 this screen 2ill appear 2hen you clic0 on the Additional felds enu. >. /he feld 'alues are supposed to sa'e into the table IMRG. 5our A<A*er 2ill 2or0 here or callin# the screen and updatin# these felds o IMRG. 1./hese felds should autoatically ?o2 to I718@ because CI_IMRG is seen in the structure RIIMRG 2hich is I718 output structure. 2.  Adding Z fields in IK17 - Entering Measurement Documents 1. Append the report structure (RIIM*/ 2ith your ne2 felds !. Bse user-eit I,C to populate these felds 2ith the desired data 3.  Adding Z fields in IK17 Equipment Master Step 1 ;etDs suppose 2e are intendin# to ha'e char lon# feld@ naed *, 9uber into the %Euipent Master. 1st step is to create this Z-feld into the include table o %FBI table. 4or this run /code $%11@ Gi'e 'alue CI_%FBI and Go to Chan#e ode. Add a Z-feld in this table say ZZI/,_*,9, 2ith coponent type /:/ (or char lon# feld. Acti'ate table.

Custom Developmetns in SAP ETM.docx

Embed Size (px)

Citation preview

Page 1: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 1/10

1.  Adding Z fields in IK11 - Entering Measurement Documents

1. Add your Z-felds to the include table CI_IMRG (a part o table IMRG

!. "esi#n a $creen area ($%&1 and ha'e these custo felds.

). Create a *ro+ect throu#h CM," and ha'e the enhanceent IMRC) into it.

. /hrou#h $M," #o to IMRC) and acti'ate it.

&. I you double clic0 on this enu eit here you 2ill #et a pop-up 2ith deault title

3Custoer 4unction3. 5ou can chan#e this. ($uppose 2e chan#ed it as Additional

felds

6. In the I711 enu G,/, you fnd this enu eit lin0. (Additional felds

8. 9o2 the turn o unction %it %:I/_$A*;IMR_) o the user-eit IMRC). 5our

A<A*er 2ill put a code here to call the screen you3'e desi#ned 2ith additional felds

and to update the felds in the table IMRG.

=. 9o2 this screen 2ill appear 2hen you clic0 on the Additional felds enu.

>. /he feld 'alues are supposed to sa'e into the table IMRG. 5our A<A*er 2ill 2or0

here or callin# the screen and updatin# these felds o IMRG.

1./hese felds should autoatically ?o2 to I718@ because CI_IMRG is seen in the

structure RIIMRG 2hich is I718 output structure.

2.  Adding Z fields in IK17 - Entering Measurement Documents

1. Append the report structure (RIIM*/ 2ith your ne2 felds!. Bse user-eit I,C to populate these felds 2ith the desired data

3.  Adding Z fields in IK17 Equipment Master 

Step 1

;etDs suppose 2e are intendin# to ha'e char lon# feld@ naed *, 9uber into the

%Euipent Master.1st step is to create this Z-feld into the include table o %FBI table.4or this run /code $%11@ Gi'e 'alue CI_%FBI and Go to Chan#e ode. Add a Z-feld inthis table say ZZI/,_*,9,2ith coponent type /:/ (or char lon# feld. Acti'ate table.

Page 2: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 2/10

9oteere I 2ant to share a 'ital inoration 2ith the readers. i.e.@ as lon# as I tried this tas02ith feld naes li0e ZZ*,9, etc@ it ne'er 2or0ed. And there consued lot o tie.

 /hen at soe place I read about the $A* note &>8&8@ 2hich states that 2ithout apref ZZI/,_ to the Custo felds@ this tas0 2ould not be successul. 9et@ 2e need to add this feld ZZI/,_*,9,@ also to the include table CI_%FBI _B 2ithcoponent type II9"(Char1. "o it in the sae 2ay as abo'e (throu#h$%11. Acti'ate table.

ith this 2e copleted addin# our Z-feld to the database table %FBI (throu#h itsinclude tables 

$tep ! (%nhanceent H Create $ub-$creenCreate a pro+ect Z*M%FBI* throu#h /code CM," and assi#n the%nhanceent I/,<1.

Page 3: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 3/10

 9o2 Run /code $M," 2ith 'alue I/,<1 and clic0 on /est button.

$ee here@ 2e ha'e ! 4unction-eits and & $creen eits. ;etDs select the frst $creen@naely 1 . "ouble clic0 on this and Create a $ub-$creen throu#h the steps thereon. 

9o2 Clic0 on ;ayout Arro2 abo'e to #o to $creen *ainter and Create your 4ields here.In our case 2e are creatin# ,ne feld.

Page 4: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 4/10

As sho2n in the picture @ dra# the 3/3 icon to the screen are to create a /et feld andnae tis feld as 3*, 9uber3.$iilarly dra# the icon belo2 to create an Input,utput feld and Gi'e the "ictionaryaddress to the Input feld i.e.@%FBI-ZZI/,_*,9, .(I hope you recall that this is the feld 2e ha'e created in %FBI table in the step1 

$tep) ( %nhanceent H Gi'e Codes in 4unction %itse ha'e ! unction %its@ naely%:I/_$A*;I/,_1%:I/_$A*;I/,_! 

 /he frst %it iports the Z-feld 'alues ro the %FBI table to the %Euipent Master /he second one eports Z-feld 'alues ro the %Euipent Master to the %FBI table. 9o2 the codes to be 2ritten in the %its.

rite ollo2in# code in the include (Z:/,<B1 o unction-eit %:I/_$A*;I/,_1.

 /A<;%$ %FBI.%_$B<$CR%%9_9BM<%R J 313.

I_,<K%C/_/5*% J 3!3 .I_AC/ILI/5_/5*% J 3)3 .%FBI-ZZI/,_*,9, J I_"A/A_%FBI-ZZI/,_*,9,. 

rite ollo2in# code in the include (Z:/,<B! o unction-eit %:I/_$A*;I/,_!

Page 5: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 5/10

%_B*"A/%_"A/A_%F-ZZI/,_*,9, J %FBI-ZZI/,_*,9,.%_B*"A/%_4;AG$_%F-ZZI/,_*,9, J 3:3. 

$tep ($*R, *reparation

 • 9a'i#ate to this section o $*R,.

 • $elect $creen Group (%Euipent on the ri#ht (*rofle $tandard and "DClic0 on

the Acti'ity and layout o 'ie2son the Ri#ht.

 

• Gi'e 'alue 1& in the line o desired /ab pa#e o %Euipent Master.

Page 6: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 6/10

 • Assi#n this profle (in this case $tandard to the intended %Euipent Cate#ory@

throu#h this settin#.

 Ater this $*R, settin#@ you 2ill be able to see your Z-4ield at the botto o the,r#aniation /ab pa#e o that particular %Euipent Cate#ory. Leriy by runnin# I%! I%) transactions.

Page 7: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 7/10

  /ry by inputtin# a 'alue@ $a'e and rerun I%! and 'eriy your 'alue is stored or not. In act@ the part o $tep) abo'e ( codin# in the %its did not 2or0 as lon# as I did notcoe across the abo'e reerred $A* note. Ater usin# the pref ZZI/,_ to the Z-feldthese codes started 2or0in#. 'alues insertin#.

 Alost done 9o2 i you #o to I%)@ unli0e all other #reyed-out felds@ your Z-feld 2ill be seen%ditable. /hou#h there is no pro'ision to sa'e the edits here@ youDd defnitely li0e toha'e this too in Greyed-out ode. 4or this 2e need to 2rite a sall code in the *<, (*rocess <eore ,utput odule o the screen 1 2e ha'e created."ouble clic0 on the $creen nuber 1 o the enhanceent@ (you are in the 4lo2;o#ic /ab @

Page 8: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 8/10

"DClic0 on the $/A/B$_1 o the *<, odule. and insert this code bet2eenthe M,"B;%@ %9" M,"B;% lines li0e this

M,"B;% $/A/B$_1 ,B/*B/.I4 $5-/C,"% J 3I%)3.;,,* A/ $CR%%9.$CR%%9-I9*B/ J 33.M,"I45 $CR%%9.%9";,,*.%9"I4.%9"M,"B;%.

;astly "o not 4or#et to

Acti'ate the 4unction Group :/,< ro /code $%=. Ri#ht clic0 on the 4unctionGroup and clic0 on the Acti'ate option

Page 9: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 9/10

 

9o2 the ;ast $tep. $tep & (a'e this Z-feld in the $tandard Report @ in this case I%&@ I=

 /o ha'e our Z-feld in I= output@ frst 2e need to 0no2 the structure o this report

output.4or this clic0 on any cell in the A;L screen and press 41 0ey.

ere clic0 on the /echnical Inoration icon. /he resultin# pop-up 2ill sho2 you the$tructure a#ainst feld nae/able. ere the $tructure is RI%FBI_;I$/ .9o2 throu#h $%11 #o to the abo'e $tructure@ Clic0 on an Append $tructure on theApplication toolbar and Create an Append structure ha'in# this feld. Acti'ate table.

Page 10: Custom Developmetns in SAP ETM.docx

7/25/2019 Custom Developmetns in SAP ETM.docx

http://slidepdf.com/reader/full/custom-developmetns-in-sap-etmdocx 10/10

Now Run IH08 and see in the output list in the Column Set (the list not displayed). You should find this field PO

Number.

Often you do not find this. It is time to clear A! "uffer throu#h pro#ram BALVBUFDEL.$or this run %code SE38 #i&e the a"o&e pro#ram and hit 'ecute.

Now run IH08 a#ain and &erify your field is there.

 

Note:

%his wor* is with a lar#er o"+ecti&e in mind to a&oid re,in&entin# the wheel after sometime and at the same time pro&idin#

the Total Solution a"out this tas* at one place. This work involves Appending structures

and Activationof Tables, which should be done by experienced ABPAers only

 

 Also this wor* can "e etended to Functional Location Masters with the same enhancement used a"o&e and to

theFleet Masters with enhancement ITOB3.

 

..and I feel it is important to mention the version I experienced all these and documented it is !CC".# no

!$Ps.