Quantcast
Channel: SCN : Document List - Enterprise Asset Management (SAP EAM)
Viewing all 842 articles
Browse latest View live

Hierarchical Equipment Availability Calculations (on Functional Locations)

$
0
0

Introduction:

The environment in which the present subject is being discussed is that, where Large Machine installations like Furnaces, Cranes etc have been mapped as Functional Locations and the Equipments hierarchy follows under them.


The author, in the past had posted a document on the subject matter Equipment Availability - Concept & Issues. As defined in this document the usual method of deriving Equipment Availability through MTBR, MTTR parameters is by the formula:

Everything was OK until we see the Equipments in isolation.  It did not take longer for the Audit persons to reach the Logic that in an Enterprise Structure, if an Equipment undergoes breakdown, the Functional Location also goes inoperative. M2 Notifications are recorded on the Equipments but its effect impacts the hierarchy, finally affecting the bigger machine i.e., the Functional Location in our case.

 

The Audit demand was that the Equipment Availability figures be made available at the Functional Locations level, even when no direct M2 notifications are created on them.

 

Naturally, we approached OSS. The recommendation was in the form of implementing an SAP note namely 1074845, but with conditions like no further software support would be provided in relation to this. This is relevant to Functional Location-Equipment Hierarchy only, not to Equipment-Equipment Hierarchy. Meaning that, the MTTR, MTBR vales will be collected to Functional Locations only, but not to Superior-Ord Equipments.

 

Objective:

So the objective of this document is to compute Nodal Equipment Availability on Functional Locations as explained above.

 

Let’s see how we do it !

Readers might by now have understood that by implementing the said SAP note, SAP will be providing the collective MTTR, MTBR values on the Functional Locations. Using these values our requirement of Calculating the Availability values can be easily done through formula given above.

 

Step1 (Implement the SAP note)

Steps suggested in SAP note 1074845 were implemented by BASIS people.

 

Important: The nodal MTTR, MTBR computation effect in the report MCJC would be seen with a condition that atleast One M2 Notification is created directly on this Functional Location. (This was the pre-requisite SAP informed us). Also we saw this. Until no M2 Notification is created on the immediate F/Locn, the MCJC report was coming blank inspite of several M2 Notifications exist on the hierarchy Equipments under this F/Locn. The moment we created one M2 Notification on the Big machine (F/Locn), the MCJC report showed the computed figures of hierarchical MTTR, MTBR values..

 

Step2 (Cross-check the impact of SAP note)

We manually checked the correctness of the collective values of MTTR, MTBR on the Functional Location through MCJC, by deriving from the individual Equipment values of MCJB. We confirmed that the things are accurate.

 

Note:

Here I want to share one information with the readers. Few might be wondering that this requirement can be well addressed by a simple development. Even I too tried this. Such development would be very complex because, taking care of Breakdown Duration Overlaps of Equipments under a Functional Location would be very complicated and so a less reliable code would be an outcome if developed locally. The same thing comes from Standard through this SAP-note in an accurate way.

 

Step3 (If required increase update frequency of S070 info-structure)

While testing we realized that the info-structure S070 (responsible for MCJC report) updates monthly (OMOS setting). So, to suit our requirement, we developed a simple program to update S070 (Calling Tcodes OLPM and OLIX in the code) and scheduled it to run daily (Initially we were updating 12Hrly but later modified for Daily updating).

 

Step4 (Develop a program to compute the Equipment Availability)

A simple program using table S070  (for periodical MTBR and MTTR values of the Functional Location) has been developed which calculates the Equipment Availability (in our case the Functional Location) using the formula given in the beginning.

 

Selection-screen

Selscreen.JPG

 

ALV Output

ALV.JPG

 

 

Note:

This is to reiterate that SAP did not give any solutions to compute similar calculations on SuperiorOrd Equipments in relation to the sub-equipments. Also, these collective computations are valid on the immediate Functional Locations above the Equipment hierarchy. So starting with the Equipments which need these collective MTTR/MTBR computations, we had to  modify our structures to suit the present situation .

 

(Hoping that Readers will be able to distinguish the use of word Equipment in this article, sometimes it meant as an SAP object and at other it has general Equipment meaning)

 

...and I feel here too it is important for me to mention the version of my system where all these exercises were to be done. It is ECC6.0 no EHPs.

 

Hope members find this article useful.

 

 

Thank you

KJogeswaraRao


10 Useful Tips on Infoset Queries

$
0
0

Introduction

Often it is seen that. Infoset-query users, stop exploring  at the 1st hurdle and switch to ABAP report programs, for requirements a little bit beyond simple ones. But, it is the author's experience, that we can use this tool (Infoset Query) given to Functional people by SAP,  to reach very close to the ABAP report programs, with features like those discussed in the other document and also some discussed here.

 

In this document the author tried to put together the pieces of his knowledge to present in the form of a document.

 

Tip1

To have a Tcode to your work in Infoset Query.


 

The following screen with report name appears..

 

 

Now you give this report name to your ABAPer and ask him to create a Tcode

OR

You do it yourself through SE93 Tcode, if you have access.

 

Steps for SE93


 

 

 

And Save. Thus your Infoset query will now be working with Tcode ZTCODE

(This applies also to Quick Viewer report SQVI)

 

 

Tip2

Calling Reports from Infoset Query reports.

 

The output of your query contains key fields like Notification no., Equipment No. etc.

It is natural that one wants to go to the Notification screen or the Equipment screen from the output.

 

Do this way.

 

In SQ01


 

 

We get this screen

 

 

Click here on  then on  then select

In the resulting pop-up, specify the Tcode you want to link with the Row in the SQ01 output.

Say IW23 and Save.

 

It is Done.

Now upon D'clicking anywhere on a particular line item in the query output, you are directed to IW23 screen of the notification of the line-item (row).

 

You can have many such report assignments.

Suppose you want to have IW22 also. Then repeat the same steps above to have IW22 Tcode.

 

Now when you D'click (anywhere) on one line-item (row) of the Query output, you will be presented a pop-up menu to select which one you want. i.e.,

Display Notification  or Change Notification. You are taken to the corresponding screen as per your choice.

 

Capture.JPG

Note:

1.If your Report Assignment option is found disabled, then the reason and setting to restore is here: How to make 'report assignment' available in 'SQ01'

2.We always need to remember that, after Tcode assigning, the modifications done in SQ02 or SQ01 would be in effect to the Tcode, only after executing SQ01 once.

3.More Details on this subject here: Calling Reports from an Infoset Query

 

Tip3

Make your report colorful with giving different colors in order to group columns

 

In SQ01 Basic ListScreen

 

Here just Drag & Drop the color from Right Tool-Box to the desired field in the Centre portion.

OR

Double click on a field in the Centre, to display field details and color options on the left. Now you select the color.

 

Example of such output.

Capture.JPG

 

 

Tip4

Always have Selection Fields from Infoset (SQ02).

What does this mean and Why?

 

This means

We have options for Selection Screen designing both in SQ02 and in SQ01.  It is advantageous if we declare selection options in Infoset (SQ02),

 

Here is how we do it. (In the Extras area), Go to Selections Tab, Click on Create icon, select Selection Criterion or Parameter like below.

Capture.JPG

And define the Selection field as under.

selcrit.JPG

Observe here the strings written in Extras field.

OBLIGATORY makes this field in the selection screen mandatory.

NO INTERVALS removes the selection range (Removes the To field of the selection criterion)

NO-EXTENSION removes the multiple selection push button

DEFAULT 'M2' provides the M2 value as default in the field.

 

Like-wise you can design a selection screen as shown below by defining fields one after another.

pastedImage_22.png

Note that, we can declare only Standard Selection Fields here. Additional Fields are to be taken into Selection Screen only from SQ01.

 

The disadvantage in having these standard fields into selection screen from SQ01 is, the previously used values reappear as defaults for new running of the report. We need to erase and type our values. Also there is no provision for making a field mandatory.

 

 

 

Tip5

This is to develop queries in Standard Arearather than in Global Area.

 

What is this?

See the option below in SQ02 while creating an Infoset Query.

 

 

 

In the Query Areas above we have two options: Global Area, Standard Area.

When we are working in Development Server (client 200 or 210), we work in Global Area option, which generates a transport request, subsequently this will be transported to QAS and PRD at the end of work.

 

When we select Standard Area as the name indicates, it is client-specific. This means you can directly develop in PRD with this option. To have a Tcode for reports developed so, we need to use the same way explained earlier in this document. But  it is to be noted that, we get the report name from the PRD client where we developed the report, and create a Tcode in Development server (client 210 or 200) and same will be. transported to PRD.  (One time job)

 

The main advantage I always enjoyed here is, the moment some addition/deletion/modifications performed on this repor, it is instantly available in PRD.

(No hassles of transport requests). Only requirement is to run SQ01 once. The Tcode will be giving the changed report.

Also, the testing of the the report work is done in a perfect environment with real-time data.

 

(Working through the Global Area option in Development clients may be having its own advantages, like work back-up , but I never felt such necessity in my environment.If needed we can have a copy report in PRD itself)

 

 

Tip6

In case we do not want a certain category of records in the output, then go to SQ02 --> Extras--> Code tab --> Record Processing section, and

Give a code like the sample given below.

( check viqmel-abckz <> '' .)

 

What does this do?

With this code, the Infoset query does not bring any records where the ABC indicator field is blank.

Like-wise if you give a code like: check crhd-arbpl <> 'xyz123'.

the output will ignore the records with maint. work center value 'xyz123'.

(Note that these are permanent filters, For optional filters either the Selection Screen OR the Filter in the  ALV output display can be used.)

 

 

Tip7

F4 help related

F4 Help is not available in infoset query.

 

Tip8

How to create a radio button in SAP Query SQ01/SQ02.

 

 

Tip9

User defined fields

 

 

Tip10

We know that, the infoset reports work on Table joins in Infoset. In complex cases, where many tables are joined, the correctness of report depends upon the quality of joins we define. Though system suggests some joins, user can define more joins as per his table knowledge. This is what controls the multiplicity of identical rows appearing in the output sometimes.

 

It is seen that in situations where the user is unable to control the duplicate (or multiple) identical rows , the CHECK statement used in Tip6 works conditionally. In other cases this multiplicity becomes one of  the points where one is forced to go for an ABAP report.

 

 

The author has been working in this area since few years. This is an effort to share his knowledge about some very common requirements in this area with the forum. Hope member friends especially those who love Infoset queries, find this useful.

 

Thank you

KJogeswaraRao


PS: This post and all further posts in the area of Infosets have been compiled to this blogInfoset Queries: Collection of important posts

User-Fields in QM and PM/CS Notifications : Screen-Exit QQMA0001

$
0
0

Introduction

One of the very frequently asked questions in this space, is about the subject matter, i.e., How can I add Custom fields to a Notification? A documentation on this subject would be helpful to the forum for ready reference.

 

Objective

This documentation is intended to enable the readers to create the Custom fields in different tabs of Maintenance Notification, update the Noyification Master data Table and also display these fields in IW28 / IW29 output.

 

Let's see how it is done.

 

Part1

Create Custom fields in the Notification Table

The table of our context is QMEL. We need to append our Z-fields to this through the include structure namely CI_QMEL.

The process of creating any custom field starts with creating a Data Element with desired Type and Length or with desired Domain name and with the Field Labels we want to have for the Customer fields. For our Demo, we have created Two Data Elements, namely :

  1. Z_DELAY  - Type DEC Len 3 Dec 1  and Field Label ‘Delay(H)’
  2. Z_REASON - Domain TXT40 and Field Label ‘Reason for Delay’)

 

Now let us create our Customer fields.

Run Tcode SE11 --> give value QMEL in the Database Table field --> Click on Display. Scroll-down to find include tableCI_QMEL. Double click on this,  Go to Change mode and Add Two new fields of our interest as shown in the picture and Activate.

ci_qmel.JPG

 

As seen in the picture, we have created Two Customer-Fields namely ZZDELAY and ZZREASON. It is essential for all Customer fields used in Enhancement purposes to be prefixed with ZZ.

 

Part2

Enhancement and Screen-Exit

1, Create an Enhancement Project say ZPMNOT using Tcode CMOD.

cmod.JPG

 

2. Assign Enhancement QQMA0001 to this project .

cmod_!.JPG

 

3. Click on Components in the picture above to reach this screen.

cmod_2'.JPG

 

4. Activate by clicking on the Activate Icon (shown in picture above)

Now the screen is like this.

cmod_2.JPG

 

As we see here, there are several screen-exits (27) and Two Function-Exits namely EXIT_SAPMIWO0_008 and EXIT_SAPMIWO0_009  in this enhancement.

Double Click on this screen number to create a Sub-Screen for holding our Custom Fields. You’ll get this pop-up.  Press Enter and Continue.

103 create.JPG

 

You’re in the screen below, where you’ll  give a Description,  Select the Subscreen Radio button,  Save and Activate.

subscreen create.JPG

 

Click on Layout Arrow in the Application Toolbar of (See the picture above) to reach the Screen-Painter pop-up window, where we will be creating :

  1. A Box to hold our Z-fields
  2. Text Fields to for Z-field  labels
  3. Input Fields for Z-fields

screen-painter.JPG

 

The input fields should be referred to the Dictionary fields we have just created. (QMEL-ZZDELAY and QMEL-ZZREASON) as shown above.

 

Activate the screen-painter.

 

Part3

Codes to be given in Function-Exits


Go to the following screen

Codes in Exits.jpg

 

Double click on the Function-Exit EXIT_SAPMIWO0_008 and put the following code in the include  ZXQQMU07 .

 

*---------------------------------------------------------------------------------------------

TABLES: QMEL.

MOVE-CORRESPONDING I_VIQMEL TO QMEL.

*---------------------------------------------------------------------------------------------

 

Similarly put the following code in the include  ZXQQMU08   of the Function-Exit EXIT_SAPMIWO0_009.

 

*---------------------------------------------------------------------------------------------

MOVE-CORRESPONDING QMEL TO E_VIQMEL.

*---------------------------------------------------------------------------------------------


Part4

SPRO setting to be done

Navigate to the Overview of Notification Type in SPRO.

spro1.JPG

Select your Notification Type (Here we are doing it in M2) and Enter the Screen Structure for Extended view

spro2.JPG


Give the following settings in the Malfunction Tab (the tab where we want to have our custom fields)

spro.JPG


Almost Done


Let’s see the effect of work done so far.

Create a Maintenance Notification (IW21). You will see the following addition of subscreen area in the Malfunction Start/End  Tab.

IW21.JPG

Enhancement has been added here by the system, in which our Custom fields appear with their labels and the input fields.

 

Now let’s add some values in these fields and Save the Notification.

values in z-field.JPG

 

Run IW22, open the Notification and verify whether the values are updated to table or not. If they are appearing  as you have entered and saved, this means the QMEL table has been updated with these values when Notification was saved.

 

Part5

Let's have these Custom fields in the Notification list reports namely the ALV of Tcode IW28/29 (QM10/QM11 in case of Quality Notifications)

So far we have succeeded in creating our Custom fields and updating the values to the Notification Master data. Next natural requirement of a user would be to have these fields in IW28/29 ALV screen. For this purpose we, need to create an Append Structure in the Structure RIHQMEL_LIST (RQMQMEL1 in case of QM10/QM11 reports), as shown in the picture below. The Tcode is SE11 again for this task. Here we have created an Append Structure named ZDLAY and in this structure we have added both the Custom fields.

rihqmel_list.JPG


Now let's create few more Notifications, with custom fields filled with some values. Now run IW28 with selection parameters to display these Notifications we created. Click on the icon shown , You'd find the Custom fields in the Column-set list, Bring them to Displayed list on the Right hand side.

iw28.JPG

 

Related SAP Note: 370191  (Image of the note is attached herewith for the benefit of the members who can not access OSS)

 

 

Part6

Now if you go to IW23 of any of these Notifications, unlike all other greyed-out fields, the Custom fields will be seen Editable. Though there is no provision to Save the edits here, you’d definitely like to have these fields too in Greyed-out mode.

 

For this we need to write a small code in the PBO (Process Before Output) module of the screen 0103 we have created.  Double click on the Screen number 0103 of the enhancement,

Codes in Exits.jpg

 

Un-comment line MODULE STATUS_103. and D’Click on the STATUS_0103 of the PBO module. Insert the following code between the MODULE, END MODULE lines like this.

------------------------------------------------------------------------------------------------------------------------

MODULE STATUS_0103 OUTPUT.

 

     IF SY-TCODE = 'IW23'.

          LOOP AT SCREEN.

               SCREEN-INPUT = '0'.

               MODIFY SCREEN.

          ENDLOOP.

     ENDIF.


ENDMODULE.

-------------------------------------------------------------------------------------------------------------------------

 

Lastly Rememebr to
Activate the Function GroupXQQM from Tcode SE80. Right click on the Function Group and click on the Activate option

untitled1.jpg

 

...... and thus we reach to the end of this knowledge sharing Documentation.

 

 

Note

1. As this is largely a Technical job, it is recommended to be developed through an experienced ABAPer, especially Part1 which involves Activating the Standard table QMEL.

2. The Environment of Author is ECC 6.0 with no EHPs, hence the document applicability.

 

Expecting this document too would be of use to many members from mainly from EAM and QM spaces.

 

Related content

User-fields in Catalog Tabs of Notifications



*Author's other Posts




Thank you

KJogeswaraRao

Catalogs & Codes: An Important Knowledge Piece

$
0
0

Foreword

The author believes that the tip given in this document  simplifies and drastically cuts down the amount of data upload to QS41 transaction, In fact this tip should be made use of invariably by every-one who designs the Catalogs & Codes to the Equipments. 


What is it?

An addition of character ‘&’ at the end of Code Group Description helps the Code-text (kurztext) to be very short, but while using the Code-texts  are prefixed by Code Group Texts giving full meaning.

 

This is being explained through Screen-captures in the following example .

 

QS41:

 

1.Object part Code Group ‘MOTOR

  Description : ‘MOTOR &

1.JPG

Codes

1.JPG

 

 

 

 

 

 

 

2a. Damage Code Group:  ‘SHFT

Description :  ‘SHAFT&’

 

1.JPG

 

Codes

1.JPG

 

 

 

 

 

 

2b. Damage Code Group:  ‘FNDN

Description :  FOUNDATION &

 

1.JPG

 

Codes

  1.JPG

 

 

 

 

 

 

 

OQN6:

3. Catalog Profile

1.JPG

 

 

 

 

 

 

 

The result in IW21 / IW22

1.JPG

 

 

Note:

1. The above explanation is applicable for all Catalogs (B,C,2,5, A &  others).

2. Because this is a change in Description field, it is applicable to the Code Groups created and used earlier. Accordingly, the Code-Texts will  be modified in all History Notifications.

 

 

Hope members find this article useful.

Thank you

KJogeswaraRao

User-fields in Catalog Tabs of Notifications - QQMA0008,10,11 and 12

$
0
0

Introduction

Recently I went through a Query, where the subject information was sought. i.e., How to have additional fields for Tasks ?. In fact SAP has provided the facility to have additional fields for line items of all Catalog tabs, namely Item, Cause, Task and Activity. The concerned enhancements are as under.

 

EnhancementDescription
QQMA0008QM/PM/SM  User Subscreen for Additional Data on Notif. Item
QQMA0010QM/PM/SM  User Subscreen for Additional Data on Cause
QQMA0011QM/PM/SM  User Subscreen for Additional Data on Task
QQMA0012QM/PM/SM  User Subscreen for Additional Data on Activity

 

.The SPRO setting to have these Subscreen fields is very simple as shown below.

m2 spro.JPG


Objective

This documentation is intended to enable the readers to create the Custom fields for the line items of different Catalog Tabs of Maintenance Notification.

 

For Demo we are taking  the Tasks Catalog.



Part1

Create Custom fields in the Notification Table

The tables we need to append with our Z fields are as under:

For Item Catalog -- Table QMFE

For Cause Catalog -- Table QMUR

For Tasks Catalog -- Table QMSM

For Activities Catalog -- Table QMMA


The process of creating any custom field starts with creating a Data Element with desired Type and Length or with a Domain name and with the Field Labels we want to have for the Customer fields. For our Demo, we have created 2 Data Elements, namely :

  1. Z_DELAY  - Type DEC Len 3 Dec 1  and Field Label ‘Delay(H)
  2. Z_REASON - Domain TXT40 and Field Label ‘Reason for Delay’)


Because we are understanding this implementation through Tasks Catalog, the table of our context is QMSM. We need to append our Z-fields to this through the Append structure in this Table. So I created an append Structure ZQMSM and assigned my Z fields as under..

append.JPG

 

As seen in the picture, we have created Two Customer-Fields namely ZZDELAY and ZZREASON. It is essential for all Customer fields used in Enhancement purposes to be prefixed with ZZ.

 

Part2

Enhancement and Screen-Exit

Run Tcode SMOD., Give value QQMA0011 and click on Test.  Here you will see number of screen-exits as under, provided for this purpose. Let's create the screen-0410 shown below. Also 2 Function Exits are provided for the purpose of Data Export to Table and Import to Notification. (Activate the Exit if found in Deactivated condition)

Capture1.jpg

Refer to document User-Fields in QM and PM/CS Notifications : Screen-Exit QQMA0001 Part2 step4 onwardsfor details of creating a sub-screen. Remember that  your present table QMSM in place of the QMEL table of that document.

 

So we have created a sub-screen (screen no.410) with like this.

sp.JPG

 

The input fields should be referred to the Dictionary fields we have just created. (QMSM-ZZDELAY and QMSM-ZZREASON) as shown above.

Activate the screen-painter.

 

Part3

Codes to be given in Function-Exits


Go to the following screen through SMOD.

Capture.JPG

Double click on the Function-Exit  EXIT_SAPMIWO0_015  and put the following code in the include   ZXQQMU14 .

 

*---------------------------------------------------------------------------------------------

TABLES: QMSM.

MOVE-CORRESPONDING I_VIQMSM TO QMSM.

*---------------------------------------------------------------------------------------------

 

Similarly put the following code in the include  ZXQQMU14   of the Function-Exit  EXIT_SAPMIWO0_016.

 

*---------------------------------------------------------------------------------------------

MOVE-CORRESPONDING QMSM TO E_VIQMSM.

*---------------------------------------------------------------------------------------------

 

Part4

SPRO setting to be done

Navigate to the Overview of Notification Type in SPRO.

spro1.JPG

Select your Notification Type (Here we are doing it in M2) and Enter the Screen Structure for Extended view

spro2.JPG


Give the screen number we have created (0410) in the Tasks Screen Area as shown below.

y.JPG



All Done


Let’s see the effect of work done so far.

Create a Maintenance Notification (IW21). Go to Catalogs & Codes  tab --> Give some item details in the Object Part & Damage  tab --> Go to Tasks tab fill a line item --> Select this line --> Click on the Lens icon in the left bottom (shown in the picture.

tasks_1.JPG

 

We see this in the pop-up

tasks_2.JPG

 

Success, Our user fields are appearing and ready for inputs. We get these user fields for all line items we have in this tab (Taks). Procedure is same for other Catalogs. Only Tables and Exits change as detailed in the beginning.

 

Test it

Create an M2 Notification, Give values to these User fields and Save. Now run IW22  go to the the User-fields pop-up and verify. The values you've put while creating the Notification will be seen there. Means the values are now a part of the QMSM table database.

 

These Screen-Exit documents are relevant to Quality Notification also.

 

Note

1. As this is largely a Technical job, it is recommended to be developed through an experienced ABAPer,

2. The Environment of Author is ECC 6.0 with no EHPs, hence the document applicability.

 

Hope this document too is helpful to many of our members.

 

Related posts by the author:

IWO10018: User Fields in Maintenance Order

ITOB0001, ITOB0003 : User-Fields in Equipment, Functional Location, Fleet Masters

User-Fields in QM and PM/CS Notifications : Screen-Exit QQMA0001



--------------------------------

Author's other posts

--------------------------------



Thank you

KJogeswaraRao

Explore ALV Graphs

$
0
0

37810-clip-art-graphic-of-a-yellow-guy-character-holding-a-printed-bar-graph-by-jester-arts.jpg

Introduction:

Graphs play a very vital role and have got great impact on business decisions. Senior Management, Clients, Customers all such stake-holders want to see information through Graphs to understand things easily. In SAP we have easy tool facility in ALV screens,  but ...... It has been observed that threads related to ALV Graphs are rarely seen here.

 

Objective:

At the end of this document, members will be familiar with the basics about the ALV Graphs, as well as about various features available. I am sure certain cross-section of members will be benefited by this post through which they will be learning how to interpret the ALV data into various types of Graphs.


Note:

The features discussed in this document are largely applicable to ALVs of custom programs developed through SAP Queries or ABAP codes using fm 'REUSE_ALV_GRID_DISPLAY'.  Things mentioned in this document are not applicable to ALV Graphs through Standard programs.


Here we start.....

 

How we get a Graph in ALV?

We know that Graphs need numeric fields for Y-Axis. So the ALVs  not containing a single numeric field are not Graph-relevant. Also the field for which you want to plot a Graph, looks like a Numeric, but if its data type is Character, then too it is not possible to plot a Graph for this field. In other-words we can say that, the ALV Layout where there is no icon in the Application Toolbar, we will not be able to draw Graphs.

 

Ok...Let’s come back to the Graph possibilities. We are in the following ALV screen. Here these are 2 fields for X-Axis namely FinYr and Equipment Description. We have 4 numeric fields for Y-Axis i.e., MTBR, MTTR, TotBDns and Avlb%.

1.jpg

Now select the first 2 columns (for X-Axis) and 3rd column for Y axis (Means we are drawing graph for MTBR values) as shown in the picture below....

2.jpg

....and click on the Graph icon to get this graph window.

3.jpg

 

What we see in this picture is, system default scale presents only 5 bars in X-axis, for the rest we need to use horizontal Scroll (seen in the picture).

 

  Here we start our exploration of ALV Graphs  


1.To have all the Graph bars in one view (in other-words to remove horizontal scroll)

Place the Mouse pointer anywhere on the X-axis line and Right click, to get this menu.

menu1.jpg


Click on Format Axis... to get a pop-up screen. Go to the tab Scale.


format axis1.JPG

 

Change the value shown above to as many as you want. In our case the bars are 8. So we change this value to 8. Now the graph has got rid of horizontal scroll showing a;; the Graph bars, like this.

2g.JPG

 

2. The Y-Axis

We see the bar with maximum value is touching the top of the Graph area, by default setting, where we want create some room above this. This is nothing but we need to set the Y-Axis value. Our present maximum value of Y-Axis is 2400. We want to change this to say 3000.

In a similar way we did for X-axis, keep the mouse pointer anywhere on the Y-Axis line, and right click. Go to Scale tab. and .......

y-axis.JPG

 

change the Maximum value to 3000. See the graph now.

 

3g.jpg

 

3. Display values on the Bars:

Right click anywhere in the Plot Area to get this menu.

4g.JPG

 

4. Change the Type of Graph (Say to a PIE chart)

Refer to menu picture in Point3 above. Click on chart Type and in the pop-up Select Pies.

 

pie.JPG

 

Select the pie pattern you like, We here selected the 1st one. Now see how our Graph looks like.

pie1.JPG

 

We got the Pies chart but the values disappeared. Follow the procedure explained in point3 to have Values of the Pies.

pie2.jpg

A number of Chart Type are available in this section of the Menu.

 

 

5. Titles to the Graph

Now Let’s Give a Title to our Graph and Configure it. Go to the Title tab of the menu in Point3, Give the Title you want. Say ‘MTBR Values FinYr-wise in Hrs’..

Title.JPG

 

You can Drag & Drop this title to anywhere in the Chart Area. Also you can configure the Font, Font Size, Color etc by Right clicking on the edges of this Title box and choosing Format Chart Title.

title1.jpg

In a similar way you can have Titles for yourAxes from the same tab (Title tab).

 

 

6. Similar Graphs can be drawn for the rest of the value fields viz., MTTR, TotBDn and Avlb% by selecting these fields as the 3rd field for Graph (First two fields being FinYr and Equipment Description for X-Axis)..

 

7. Multiple Value Graphs:

Many times we have a requirement for multiple parameters for Y-Axis. This suits when we have an ALV report something like:

 

MTBR (Hrs) Financial Year wise:

FinYrEquipment01Equipment02Equipment03
1112
1213
1314

 

In this case: The X-Axis will have FinYr, like the present case. The Y-Axis can have all the Equipment fields. In this case there will be 3 bars with different colors above each FinYr on X-Axis. This is a very suitable case for Multi-bar Graph because of the uniformity in UOMs for all 3 bars i.e., Hrs.

 

No two ALV fields in our current ALV are having same UOMs for demonstrating this case, we choose two fields  MTBR and Avlb%. for this demoI've selected first two columns(FinYr and Equipment Description), and MTBRand Avlb% (total 4 columns) . Now upon Clicking on the Graph icon, system presented the following Graph...

multiple value1.JPG

 

After Configuration

multiple value2.JPG

 

Now let’s discuss about the UOM (Unit Of Measure) on the Y-Axis. When this was a graph for MTBR alone the Y-Axis unit of Hrs is OK. But when we have plotted the Avlb% also, the Maximum value of which is 100, all these bars fell within the first grid line, which is 500 high.

 

8. Secondary Axis:

The above is the right situation to discuss about the Secondary Axis. i.e., we will have the vertical line on the right side converted as  Axis for the 2nd bar (Avlb%). For this Right click on Plot Area ....

multiple value4.jpg

 

Select Secondary Axis.

SecAxis.JPG

 

Now your Graph looks better like this. (The Secondary Axis selected automatically has 0 - 100 Range)

multiple value3.JPG

 

To have values on the Secondary Axis, select as under in the Axes tab of Chart Options.

multiple value5.JPG




9. Changing the Colors of Bars, Pies etc.

For this Choose this option:

untitled1.jpg




10. There are other features in the Plot Area / Chart Options Menu as shown below.

menu3.jpg

Some useful features are

- In the Grid-lines Tab youcan remove or set Grid lines  for both Axes.

- In the Legend tab you can have the Color Legend Settings.

 

You may explore what is there in other 2 tabs Data Table and Options. With this we have explored almost everything in ALV Graphs.

 

11. Now How to Save Graphs which we configured with so much effort.:

Simple,

Without closing the Graph-window in the ALV layout, click on the Save Layout button on the Application toolbar

Capture.JPG

and Save the Layout. Now your graph is saved. Any time you select this layout, the graph will be appearing, Similarly, when you save any Selection screen variant with this Layout, upon Executing the report you will be directly presented the Graph. Please read ALV Graphs : An Accidental Discovery for details.

 

 

Addition no.1


Graphs on Sub-Totals

While replying to a member's query, I'd recalled another feature that should be added to this document., i.e., Graphs on sub totals

Example

Suppose I try to draw a graph between Equipment and Breakdown duration for  IW28ALV by giving list of Equipments and range of Malfunction Start Date. In this case the output is likely to have several line items for a single equipment. The Graph (X-Axis) will be crowded with of Equipments repeating themselves several times. From such graph we would not get any information for analysis. Here comes the Sub-Total Graphs. For follow these steps. (Have Equipment and Breakdown Duration fields as 1st 2 columns for simplicity)

1. Sort the ALV by Equipment field

2. Select the Breakdown column and click on icon to display the totals.

(Notice that as immediately after this step a sub-total icon would be added to the toolbar next to icon.)

3. Now Select the Equipment column and click on this Sub-total icon. A report like this would appear.

iw28_1.JPG

This is giving Equipment wise Total Breakdown duration. Now let's draw graph for Equipment-wise Breakdown duration. For this, click on the icon at Red-Arrow shown in above picture. This collapses the details and only Sub-total are visible now. as under.

iw28_2.JPG

Now select the Equipment Column and click on the Graph icon to get the desired Graph. I have taken IW28 case for ease of demonstration of this section (Sub-total graphs).  As I said in the beginning, Graphs through standard reports are not that explorable as discussed in this document. For this very reason, I developed ZIW28 through Infoset query, where all these graph features are available.

 

Hope this document too helps members across the spaces in SCN.

 

 

 

Thank you.

Jogeswara Rao K


Getting Maintenance order Number from Permit number

$
0
0

Hello Folks,

 

  Thought of sharing below logic of getting Maintenance order number from Permit number. Refer attachment for logic and code.

 

Regards,

Nikhil Kulkarni

PEOL Technologies Pvt Limited, Bangalore India.

Standard SAP Plant Maintenance Reports

$
0
0
The purpose of this document is to list the standard SAP reports which are commonly used in Plant Maintenance. Over a  period of time the document will be updated with other useful reports (transaction codes) and can eventually become a single source of information for all Plant Maintenance related reports on SCN.

 

Note: For the SAP RDS Asset Analytics KPI’s please check SAP RDS Asset Analytics KPI’s for Enterprise Asset Management

Please also refer to below document by Pete Atkin for SAP PM / CS Cost Reports:

 

FAQ: PM/CS Cost Reports


Below is a list of standard SAP reports commonly used in Plant Maintenance, these reports can be run as and when required provided the user has access to the transaction code/s.

 

SAP Transaction Code
Description
CA82
Work Center where-used list in task lists                   
CL6A
Class list
CL6B
Object list
CL6C
Class Hierarchy                                                       
CM25
Capacity Leveling – tabular planning board – variable
CR05
Work Center list
CR06
Cost Center assignment
CR07
Work Center capacity
CR08
Work Center hierarchy
CS15
Material single-level where-used list for BOMs
CT10
Characteristics list
CT11
Characteristic Values list
IA08
Task List list(Change)
IA09
Task List list (Display)                                       
IA10
Task list multi-level list (Display)                       
IE05
Equipment list (Change)
IE07
Equipment multi-level list (Display)                 
IH01
Functional Location structure display
IH03
Equipment structure display
IH04
Equipment BOM structure list
IH05
Material BOM structure list
IH06
Functional Location list (Display)
IH08
Equipment list (Display)
IH12
Functional Location BOM structure display
IL05
Functional Location list (Change)
IL07
Functional Location multi-level list (Display)   
IP15
Maintenance Plan list (Change)                       
IP16
Maintenance Plan list (Display)                         
IP17
Maintenance Item list (Change)                       
IP18
Maintenance Item list (Display)
IP19
Graphical Scheduling Overview                                 
IP24
Scheduling overview list                                           
IP62
Material where-used list in task lists                             
IW13
Material where-used list for orders
IW28
Notification list (Change)
IW29
Notification list (Display)
IW30
Notification multi-level list (Display)                   
IW37
Operation list (Change)
IW37N
Order and operation list (Change)
IW38
Order list (Change)                                           
IW39
Order list (Display)                                           
IW3K
Component list (Change)
IW3L
Component list (Display)
IW40
Order multi-level list (Display)
IW47
Time confirmation list (Display)
IW49
Operation list (Display)
IW49N
Order and operation list (Display)
IW70
Order: Total network scheduling
MCI1
Standard analysis – Object class                                   
MCI2
Standard analysis – Manufacturer
MCI3
Standard analysis – Location                                   
MCI4
Standard analysis – Planner group                                   
MCI5
Standard analysis – Damage analysis                                   
MCI6
Standard analysis – Object statistics                                 
MCI7
Standard analysis – Breakdown analysis                                   
MCI8
Standard analysis – Cost analysis                                     
MCJB
MTTR/MTBR – Equipment
MCJC
MTTR/MTBR – Functional Location

 


Please let me know if you would like to contribute and have a list of other useful reports which should be appended to the above list. I am also thinking of adding some useful reports from FICO, MM, PS, etc. which can benefit a Plant Maintenance consultant / end user, so please feel free to share what you know / have.


Measurement Reading Transfer – A useful functionality

$
0
0

Introduction:

This document is about the field marked below in the  IK01 transaction screen. I'm sure many of us have noticed this, but yet to explore .

1.JPG

 

 

 

Let's consider TWO Dumpers as Equipments and their Tyres as Sub-Equipments for our Demo:

 

1.JPG

Two Dumpers, with SAP Equipment Ids V-1000 and V-1001, each having 6 Tyres as shown above.

 

V-1000 with tyres say TYRE0001, TYRE0002, TYRE0003, TYRE0004, TYRE0005, TYRE0006

And

V-1001 with tyres say TYRE0007, TYRE0008, TYRE0009, TYRE0010, TYRE0011, TYRE0012

 

(External numbering is used for easy understanding)

 

Each Dumper above has a meter showing the number of hours it operated.

 

 

 

The Objective

When we record a reading from the above meter  in the SAP system (using IK11, on a Measuring point), the counters of the 6 Tyres installed in this vehicle at this time, shall be automatically updated.

 

This means when we create one measuring document on the vehicle, system should create a total of 7 (1 + 6) , measuring documents so that the usage hours flow from the Vehicle counter  to the Tyre counter.

 

And then, when a Tyre is dismantled from one vehicle and installed in the other, the Tyre counter should derive its own usage hours from the present vehicle counter readings.

 

 

 

Let’s see how this happens:


 

Part1:

Preparing the Masterdata:

 

First let’s  have a characteristic RUNNINGHOUR as shown below (Tcode CT04).

1.JPG

 

Using this characteristic RUNNINGHOUR, let us create the measuring points, on the Vehicles first.

 

V-1000

1.JPG

 

V-1001

1.JPG

 

 

 

Now we need to create measuring points on all the Tyres. A sample screen is …

1.JPG

 

Compare the measuring point screen of Vehicle and the Tyre. The difference is the Red Box.

Remember all these measuring points are based on characteristic RUNNINGHOUR.

So we create 12 measuring points in a similar way, one for each Tyre.

 

Below is the IK07 screen,  where you can see at a glance, the measuring points we have created.

Notice that Transfer support‘X’ mark is there for all the 12 Measuring points of Tyres.

1.JPG

Now install Tyres under the Dumpers  V-1000 and V-1001 (Superior Equipment), using Tcode IE02.

 

Example:

Tyre: TYRE0001.

When we try to define the Superord. Equipmentas V-1000 (in the Structure Tab of IE02 )  wel get this screen.

 

1.JPG

System is asking for your confirmation for Transfer of Readings from the Superord.Equipment (V-1000 in this case) to the Tyre (TYRE0001).

 

Click on Copy  and Save the Equipment master.

In a similar way install all the Tyres under the respective Dumpers.

 

As mentioned above, the initial set-up will have is:

Dumper V-1000 as SuperOrd. Equipment for Tyres TYRE0001 to TYRE0006 and

Dumper V-1001 as SuperOrd. Equipment for Tyres TYRE0007 to TYRE0012.

 

Everytime we need to confirm Copy during Equipment installing under the Superord. Equipment.

 

Now the following is the Equipment tree we have just made.

1.JPG

 

The Masterdata preparation is completed.


End of Part1 ------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

 

Part2a:

Create Documents and understand the working of Transfer Support.

 

It is time now to see what happens when we record Dumper Hour Meter readings through IK11.

Create a measuring document on measuring point 3113 (Equipment Tyre0001), with reading 1000.

 

Let’s assume that the Dumper V-1000 operated for 1000 hours and its meter is showing a value 1000 Hours. We now create a measuring document to record this value.


Note:

Remember that we get the Cumulative Operating Hours from the Dumper Meter. So, we need to put this reading in the Counter Reading field of the IK11 screen.

1.JPG

When we save this document, we  see this message on the task bar.

1.JPG

This is exactly what we expect from the system. As explained above 1 document is what we have created just now and the other 6  documents are automatically created for the Tyres. This means the Usage Hour counter for all the 6 Tyres started with their first reading as 1000 hours.

 

Likewise when we create a document with value 500 hours for Dumper V-1001 (Measuring point 3114). Measuring documents are automatically created for Tyres TYRE0007 to TYRE0012, with this reading of 500 hours.


End of Part2a ------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

Part2b:

Let’s now see what happens when Tyres are relocated from one vehicle to the other.

 

We will examine a case of TYRE0004 is dismantled from Dumper V-1000 and installed in V-1001.

And TYRE0009  is dismantled from Dumper V-1001 and installed in V-1000.

 

When we try to dismantle TYRE0004 from V-1000 through Tcode IE02, we get this warning message.

1.JPG

We can understand what the message says, It is stopping Reading transfer for this equipment (TYRE0004) from V-1000.

We continue and give value V-10001 in the Superord. Equipment field. Now we get this screen (already seen before once), asking for confirmation to establish transfer relation with the new Superord. Equipment.

 

1.JPG

We continue by clicking on Copy and Save the Equipment master.

Repeat the same for dismantling Equipment Tyre0009 from V-1001 and installing it in V-1000.

 

 

See the new structure, notice the change in the places of swapped tyres.

 

1.JPG

Now we create measuring documents on Vehicles.

I have created a document with reading 1450 hours on V-1000 (Measuring point 3113) and a document with reading 1850 hours on V-1001 Measuring point 3114).

 

Now see the IK17 screen below in the sequential order of Document creation.

The upper half (Green) is before the Tyre swaps, and the lower half is after.

 

1.JPG

 

Give special attention to Swapped Tyres (TYRE0004 and TYRE0009) to observe the system intelligence, in transfer of readings during Sub Equipment relocations.

 

For better understanding Equipment-wise sorted list of above is attached herewith.

 

1.JPG

 

End of Part2b ------------------------------------------------------------------------------------------------------------------------------------------------

 


 

Note1:

One more thing that happens in the system background during this process was not shown in pictures above.

That is when we click Copy during Equipment installation under a Superord. Equipment in IE02, some changes happen in Measuring Point data (obviously),

i.e. in IK03 screen, which is shown in the field marked below.

Capture.JPG

As soon as we install TYRE0001 under V-1000, the field marked above is filled with the measuring point of V-1000.

Similarly this field is updated whenever Equipments are relocated from one place to other.

 

Note2:

In this demo Equipment – Sub Equipment scenario has been dealt.

This document is valid for Functional Location –Equipment Scenario also.

 

Concluding Remarks

Here, a vehicle scenario has been taken for demonstration of this Measurement Reading Transfer Support functionality of SAP. It is believed that there will be several other applications requiring this feature.

 

 

Thank you

Jogeswara Rao K

Measurement Document Posting from Production Confirmation (PP/PM-Integration)

$
0
0

Purpose

This step demonstrates how completion confirmations for a production order can influence maintenance measures performed on production resources and tools. This example has been created for a bottling/canning plant. Here, tins are filled with paint. The bottling/canning plant contains a filter press which is recorded as PRT equipment in the task list for material Y-351.The maintenance plan for the PRT equipment contains three performance related maintenance cycles. This means that every time the PRT equipment above is used, different operations are used for the scheduled maintenance plan. In cases of high use this may lead to a change of filter


Data for This Example

Field

Europe

Maintenance plan

40

Material

Y-351

Production plant

1100

Order type

PP01

Total quantity

2000

Basic dates – end

At least four days from now

SchedType

Backwards

Final conf.

Select

Yield to conf.

2000

Measuring Point

10171

Control key

PM01

Component

100-431

Requirement quantity

1

IC (Item category)

L

Sloc

0001

Work center

R_1140

Order type

PM01

Controlling area

1000

 

Equipment –IE03

IE03.png

Note - (Prerequisits)

  • Equipment should be a PRT
  • Equipment used for Production should have PRT view enable
    • In PRT View
      • Usage Formula should assigned
      • Measuring Point & MP which are used for capturing Reading and scheduling are assigned in this Tab of equipment.

 

Maintenance Plan – IP03


Note - Before creating MP you should craete Performance Statergy with required Cycles in IP11.

  ip03.png

ip03_2.png

ip03_3.png

 

Measuring Point –IK01/02/03


Characteristic used is based on production (Unit- Kg)

ik03.png

 

Creation a Production Order


Use

To create a completion confirmation containing a measurement document, create and confirm a production order.

Procedure

Menu Path

Logistics

® Production® Production control® Order® Create® With material

Transaction Code

CO01

Field

Data

Material

Y-351

Production plant

1100

Order type

PP01

 

 

  • Press Enter
  • Enter Following Data

Field

Data

Total quant.

2000

Finish

At least four days from now

Scheduling/Type

Backwards


Production Order – CO03

co03.png

Operation

co03.png

co03_opr_2.png

Click "PRT" Button

co03_opr_4.png

 

 

Confirming the Production Order


Menu Path

Production Control

®Confirmation®Enter®For order.

Transaction Code

CO15

Field

Data

Final conf.

Select

Yield to conf.

2000

Result

You have confirmed the order. A measuring point was defined as a production resource in the task list, enabling the SAP system to create a measurement document. This document creates a new call after the maintenance plan has been scheduled.

 

co15.png

co15_2.png

 

Displaying the Measurement Document

Use

The starting situation for scheduling of production resources and tools (PRT equipment) is displayed.

Procedure

Menu Path

From the Plant Maintenance node, choose Management of Technical Objects®Equipment®Measurement Documents®Display

Transaction Code

IK13

  • Measurement document

Field

Data

Description

Measuring Point

10171

The measuring point is stored in the maintenance plan.

Date to

Today’s date

 

  • .

You see a list of existing measurement documents.

  • GotoMeasurement document.

This screen allows you to check the data in the completion confirmation for the order.

 

 

Ik13

ik13.png

ik13_2.png

 

 

F4

ik_17.png

 

F8

last.png

 

++++++++++++++++++++The End++++++++++++++++++++

Pool Asset Management: End-to-End Cycle

$
0
0

OverviewPool asset management (PAM) allows an organization to manage its pool assets using a graphical planning board. Examples of pool assets can be vehicles, beamers, laptop etc. In this document, I will take an example of pool asset as vehicle to go through the different steps. By using PAM, a planner can request, issue, return and then finally settle the service provided using the graphical planning board.

Steps involved in PAM:

The entire end-to-end scenario for PAM involves below steps:

1) Creation of demand

2) Demand Planning with Graphical Planning Board

3) Issue of pool asset

4) Return of pool asset

5) Settlement

 

Before I go into detailed steps, I would like to mention some pre-requisites that must be fulfilled before this scenario is run:

1) A functional location is created and all pooled equipment (vehicles) installed at functional location

2) A pool of vehicle is created using transaction code PAM01 and functional location assigned to this pool

3) Equipment created as pool asset must have a measuring point assigned for odometer reading and PAM category (PCM_KAT) assigned in equipment characteristics

4) All configuration related to PAM are done. Refer this link: Customizing - Pool Asset Management - SAP Library

 

Now, let's go through all the steps for pool asset management in detail:

1) Creation of demand:

 

Demand can either be created by a requester or a planner. Let's assume that the demand is created by a requester. This is done by using transaction IW21 for creating a notification with a standard notification type MF.

 

Requester enters user and requester information along with notification description exp. 'Request vehicle'.

1.JPG

 

Location is entered where the vehicle is required.

2.JPG

 

In 'Pool Asset' tab, start and end time for requested vehicle is entered along with the Pool Name by the requester.

 

3.JPG

 

In 'Settlement' tab, details of settlement object is entered.

 

4.JPG

 

Notification is released and saved

 

6.JPG

 

2) Demand Planning with Graphical Planning Board

 

Planner logs in the planning board using transaction PAM03 and views created notification in the bottom half section of the planning board.

 

6.JPG

 

Planner can drag the demand and move it to the upper portion of the planning board and can assign it to one of the available vehicle in the pool.

 

8.JPG

 

 

The planner can double click the demand and click on 'Reserve' button to reserve the demand of the vehicle on a particular time.

 

9.JPG

 

This changes the color of the demand to say red in the planning board.

 

10.JPG

 

3) Issue of pool asset

 

The planner will then issue the pool asset by double clicking on the request and entering odometer reading.

 

21.JPG

 

This changes the color of request to green meaning the vehicle is issued to the requester.

 

22.JPG

 

4) Return of pool asset

 

After the requester uses the vehicle and returns the vehicle back, planner will then enter the details in the system (such as new odometer reading) by double clicking on the green bar. This changes the green bar to a small line on the planning board.

 

23.JPG

 

5) Settlement

 

The planner then double click the small line and click on the 'Settle' button to capture the costs in a work order.

 

24.JPG

 

Planner assigns value against the value category from say actual vehicle usage time.

 

30.JPG

An order of type xxxx as defined in configuration is created automatically in the backend.

 

31.JPG

 

If you open the order, you will see the costs are reflected in the order in the 'Costs' tab.

 

32.JPG

 

This cost can then be settled to the final cost object by the finance team during their settlement run.

 

This completes the entire cycle for pool asset management.

 

Thanks,

Tajinder

Step by Step Guide for Multiple Counter Plans

$
0
0

In this document we will be going through various steps involved to develop Multiple counter plan.


A multiple counter plan is used in counter based maintenance. This type of maintenance planning is not based on a maintenance strategy. This means that you can create a multiple counter plan without maintenance strategy.

 

Master data requirement

 

     Below are the list of basic Master data required to process Multiple Counter Plan.

      • Equipment
      • Characteristics for measuring point / counter
      • Measuring Point/Counter assigned to Equipment
      • Cycle sets as per requirement

 

Equipment - IE01 / IE02

 

     I have created PUMP as Equipment for explaining this scenario.

Test 1.jpg

Measuring Point / Counter - IK01

 

     We are going to record the running hours of the Pump. To record the running hours we need to create measuring point / counter.

Test 3.jpg

     Create the Measuring point for Equipment, enter the object type IEQ


     To make the measurement point as a Counter, you need to check "MeasPoint is counter"


     Ensure characteristics you want to assign to measuring point / counter were created

          Test 4.jpg

In the measuring counter, you need to maintain below fields                                                       

         

Header 1
Meas Position
Description
Characteristics
Counter Overflow reading

Annual Estimate

 

MeasPosition                     - This describes the position of the measuring point / counter with respect to the Technical Object.

Counter Overflow reading - The first counter reading that the counter cannot display. Enter a logical value for the first counter reading.

Annual Estimate                - Estimated hours the equipment can run in a year. This needs to be filled, maintenance intervals are calculated based on this data.


On save, measuring point / counter is created.

 

Record the current running hours reading of the Pump using measuring documents (IK11), this is required to schedule the plan.

Test 5.jpg

On save, first measurement document created for measuring point / counter. Two documents are posted for this measuring point / counter.

 

Cycle Sets - IP11Z

 

     Cycle sets are used as a copy model for the creation of multiple counter plan. It defines the period of time between two maintenance tasks. Also cycle sets can be complied directly in multiple counter plan itself.

 

     Cycle sets needs to be created based on business requirement.

Test 6.jpg

Maintenance plan - IP01 / IP43

 

     Select the Maintenance plan category and Cycle set (Cycle set not mandatory)

Test 7.jpg

     Press Enter

 

     Cycle sets will be copied to the maintenance plan

 

     Cycle set sequence needs to be filled and same has to be linked to maintenance item. Here the scenario has only one cycle set sequence.

 

     Cycle set sequence, Scheduling period, Start date will be populated in the multiple counter maintenance plan (IP43) after activating the "Configure Special Functions for Maintenance Planning" in SPRO.

 

     Kindly update the maintenance plan with relevant details like Maintenance Plan Description, Maintenance Item Description, Order Type, Planner Group, Work Center, Task list and Priority.

test 8.jpg

   Select the Maintenance plan scheduling parameters tab.

Test101.JPG

Kindly maintain the Sched Period and Start Date.

 

The important factor of Multiple Counter Plan is the Operation Type.


Kindly refer the scheduling column for the Operation type and difference on scheduling the maintenance plan.

 

On Save Maintenance Plan will be saved.

 

Scheduling - IP10 / IP30

 

On scheduling the plan, we need to consider the Operation Type and the behavior of scheduling will be different based on the type.

 

OR Operation Type:

 

For an OR Operation, a maintenance order is generated for the earliest possible planned date.

 

In our case, if the maintenance is due every 250 hrs or 3 months, the decisive factor is which occurs first.

Test 10.jpg

On scheduling the Maintenance plan

Test 11.jpg

Since the measuring counter reading is already reached 250, a maintenance is already due, on save, work order will be generated.

 

AND Operation type:


For an AND Operation, a maintenance order is generated for the last planned date.


In our case, if the maintenance is due every 250 hrs or 3 months, the decisive factor is which occurs last.

Test 12.jpg

On scheduling the maintenance plan

Test 13.jpg

Measuring counter is reached, but the 3 months is not reached so the maintenance is planned for the future date based on the start date.

 

Here I have covered the basic scenario of Multiple Counter Plan, there are lot of options available to explore in this area.

Permits (Part1)

$
0
0

In this document we will discuss what is the Permit and what are the types of it (Technical Permit)

 

Note:The below steps are applied on SAP ECC6.0  EHP6.0


Table OF Contents:

1- Introduction

2- Technical Permit

2.1 Create theTechnical Permit

2.2 Assign The Technical Permit To The Technical Object

2.3 Technical Permits Influences The order

 

1- Introduction

Permits are created for the Maintenance Order to:

  1. Adhere to health and safety regulations
  2. Control order processing (Release - Completion<TECO>)


There are two types of permits:

  1. Technical Permits (assigned manually to the technical objects (Equipment - Functional Location)
    • If an order is created for the technical object, the permits are copied to the order and can influence the order release Or completion<TECO> (Depends On Your settings)

   2. Process-Oriented Permits (automatic assignment to the order)

    • e.g. -> when creating a maintenance order with an order type and an activity type , the permits are copied to the order and can influence the order release Or completion<TECO> (Depends On Your settings)


2- Technical Permit

Steps:

  1. Create The Technical Permit
  2. Assign the Technical Permit To The Technical Object
  3. Technical Permit Influences The Order

 

2.1 Create The Technical Permit


SAP ECC Menu: Logistics -> Plant Maintenance -> Management of Technical Objects -> Environment -> Permits

T Code: IPMD


Click On (Create/Change) Button To Enter The Change Mode

1.jpg

Then

2.jpg

3.jpg

  • Permit (Code): Char(10)
  • Permit Text : Char(30)
  • Permit Category : Used for grouping the Permits -> Defined In Configuration
  • Order Release : Used when you want to Control order processing (Release)
  • Order Completion (TECO):  Used when you want to Control order  Completion
  • The Possible Options in The Order  Release or Completion Fields:

4.jpg

  • The 1st Option -> when you release the order, a warning message appears but if you pressed Enter, you can continue processing the order
  • The 2nd option -> The order can not be released until the authorized user issue (Approve) the permit
  • The 3rd Option -> No Warring Message,  just check the permits

 

  • Not Modifiable Field: Used when you select the 2nd option as the user can not flag (Dimmed) the button not relevant (Ignore The Permit) when the permit influence the order  as The Permit must be issued by the authorized user

 

Note: We Will Work On Order release


2.2 Assign The Technical Permit To The Technical Object

Note: We Will Assign The Permit To An Equipment -> T Code: IE02

5.jpg

  • Choose Your Permit that is created from the above Step

6.jpg

7.jpg

You can assign more than one technical permit to the equipment


2.3 Technical Permits Influences The order

When Creating a maintenance order for the equipment which the permit has been assigned to it:

1- If you used the 1st option in the permit (Permit to be issued after warning)

when you release the order, a warning message appears but if you pressed Enter, you can continue processing the order

8.jpg

2- If you used the 2nd option in the permit (Permit Must be issued else Error Message)

The order can not be released until the authorized user issue the permit

9.jpg

  • You Can Issue the permit from the order(IW32) or From T Code IPM2 -> we will issue from the order

10.jpg

  • Select the permit Then The Issue Button
  • NR (Not Relevant is Dimmed) -> as I set the flag of Not Modifiable in the permit as any one can not ignore the permit

11.jpg

 

  • The Permit is issued (You Can now Release The Maintenance Order)

12.jpg


3- If you used the 3rd option in the permit (Permit Must not be issued )

No Warring Message,  just check the permits  From The permit Button

13.jpg

 

Note:(I_Sogen) is the authorization object related to the permit (The User that will issue the permit)

  • The Authorization Object Fields:
    • Permit Key (Permit)
    • Maintenance Plant

 

Note: The authorized user can reverse the Permit (Cancel the issue) only before the order being Released or TECO (Depend on your settings)

Permits (Part2)

$
0
0

In this document we will discuss the Process Oriented Permit 

 

Note:The below steps are applied on SAP ECC6.0  EHP6.0

 

1- Introduction

Process-Oriented Permit is assigned automatically to the Maintenance Order

e.g: when creating a maintenance order using an order type with an activity type , the permits are copied to the order and can influence the order release or completion (TECO) ->  (Depends On Your settings)

 

In our example we will create a permit that control the order release when creating an order with:

  • Order type: PMM1 and Activity Type: A02 0r A03

 

2- Steps :

2.1- Create two characteristics that represent (Order Type - Activity Type)

2.2- Assign the two characteristics to the permit class (PM_Permit)

2.3- Create the permit


2.1- Create Characteristics (T Code CT04)

  • Enter the Name of The Characteristics Then create button

1.jpg

 

  • Go To Addnl Data TAB & Enter The Table Name that contains the field (activity type) & The Field Name (Activity Type)

2.jpg

  • An information message appear

3.jpg

  • The Format of the field which is taken fro ABAP

4.jpg

  • Then Choose the Value Assignment

5.jpg

  • Single Value: only one value (For The Field) can be assigned to this characteristic.
  • Multiple Value: more than one value (For The Field) can be assigned to this characteristic.

 

  • Then Enter The Values Of the Activity Type

6.jpg

Then Repeat The previous Steps To create characteristic for the order type


-----------------------------------------------------------------------------------------------------------------------------------------------

 

2.2- Assign the two characteristics to the permit class (PM_Permit)

  • T Code : CL02


  • Put The Name of The Permit Class (PM_PERMIT) Then Change button

7.jpg

 

  • Go To The Char TAB to assign the two characteristics which are created above

8.jpg

 

------------------------------------------------------------------------------------------------------------------


2.3- Create the permit -> T Code: IPMD

9.jpg


  • After filling the below fields press the button classification to assign the Value of the characteristic (Fields ) To the Permit

10.jpg

11.jpg


Note :The Relation Between The two characteristics is AND

Means when the values A02,or A03 (Multiple Assignment ) & PMM1 are entered in the order will prevent the order from release

 

 

Note: Below are the table and the fields related to the permit when creating characteristic(s)

  • The Table Name: CSEVPERMIT

Field

Description

AUART

Order Type

ILART

Maintenance activity type

PRIOK

Priority

IWERK

Maintenance Planning Plant

INGPR

Planner Group for Customer Service and Plant Maintenance

GEWRK

Object ID of the Work Center

WARPL

Maintenance Plan

WAPOS

Maintenance item

PLKNZ

Maintenance order planning indicator

TPLNR

Functional Location

EQUNR

Equipment Number

BAUTL

Assembly

SERIALNR

Serial Number

SERMAT

Material Number

SWERK

Maintenance plant

STORT

Location of maintenance object

MSGRP

Room

BEBER

Plant section

PPSID

Object ID of PP work center

KOKRS

Controlling Area

PRCTR

Profit Center

BUKRS

Company Code

GSBER

Business Area

ANLNR

Main Asset Number

ANLUN

Asset Subnumber

IKOSTEN

Total(actual) maintenance costs

PKOSTEN

Total plant maintenance costs (planned)

USER4

Total maintenance costs (estimated)

WAERS

Currency Key

 

Note: Intervals in the characteristic values are written in the following format

Value1 - Value2

(from Value1 to Value2)

>Value1

(greater than Value1)

>=Value1

(greater than or equal to Value1)

<Value2

(less than Value2)

<=Value2

(less than or equal to Value2)

>Value1 - <Value2

(greater than Value1 and less than Value2)

Value1 - <Value2

(greater than or equal to Value1 and less than Value2)

>Value1 - Value2

(greater than Value1 and less than or equal to Value2)

Basic Questions that helps in PM implementation estimation

$
0
0

How maintenance is planned within your company?  De-Centralized, Centralized or Partial Centralized?

How is capacity planning performed in your maintenance plants?

Are certain types of maintenance work planned or executed with consideration to the plant sections?

Do you subdivide your maintenance plant in locations to facilitate the maintenance job or for purpose of reporting?

How is maintenance work organized?

How are the maintenance teams / labor resources organized?

How are your technical systems structured?

What types of technical objects do you handle (Types of Equipment and functional location)?

Is the hierarchy for functional locations structured according to spatial, functional or technical viewpoints? Is Real Estate objects are integrated?

How detailed should the functional location hierarchy be (for example, number of levels, installation and dismantling of equipment)?

Do you link documents to functional locations/Equipment?

Do you need to record the performance of functional locations using measuring points and counters?

Do you track warranties/Guaranties?

Are your technical objects classified (Class/Chars) used in you company?

List and describe the different categories of equipment/Functional Location that you maintain.

How many equipment and functional location you manage in your system?

Do you use Object part, Damage, Cause and Activity analysis?

Do you use Fleet Maintenance process?

Do you use Equipment BoMs? Whats the volume of data?

What types of Task List do you use? Whats the volume of data?

Do you use Maintenance Plans (for example Time based or Performance based or both)?

What maintenance type do you do (for example Breakdown, Corrective, Calibration, Refurbishment, Preventive etc.)?

Do you have any third party system integrated with SAP PM?

How do you settle the cost and how you see the cost reports on Equipment and Functional location?

Which reports do you use in SAP PM?


A glossary of dates fields on Service Order.

$
0
0

Service order has many date fields which capture the timing of planning and execution. More often than not the name of field does not convey the actual meaning. Via this document I    have tried   to build a quick reference of Service Order date fields.

 

Actual Start date:  It is the start date of first operation in Order.It does not get filled till we do the first confirmation on the Order. I would like to clarify that the First Operation does not mean the first operation in numerical sequence but the first operation which gets confirmed. The first Actual start date of an Operation flows is also the Actual Start date of the Order. In short this field captured the real start of work (Actualignores scheduling and goes with confirmation off course  that is why it is an Actual).



Actual Order Finish date:Similar to Actual start date the Operation finish date is populated as soon as the Operation is confirmed, only difference is in case of Order it is associated with the confirmation of the last operation. .For some reason if we choose not to record the confirmation for the Operation which has confirmation required in configuration and do the TECO, we miss the Actual Order Finish date, because Actual Order Finish date is very closely linked to confirmation of the last operation in time sequence.

 

Actual Release date:This is the Release date of an Order meaning when the system status of the Order has changed from Created to Release. If the order does not get released due to some issue (attains Release rejected RELR) then the value is not stored.

 

Available from date/Available to date: I am unable to determine the business logic behind these two fields. While trying to find its usage, I see them used in just one class "CL_EX_ES_MUL_LIST_TZ_CORE_IMPL" which appears to be more of a technical class (handling session programming) instead of having any business logic. I would like peers to comment on these two fields.

 

Basic Start/Finish Date:These are the most important date field on the Service order, as it contains the input required to initiate the scheduling. These dates are closely linked to Scheduling Type and used in scheduling to determine the start and end of Operations. So the key purpose of these fields to arrive at the schedule for each operation. Operation not having any duration are ignored are ignored in calculation.

 

Change date:This field stores an Order change date. The description of the field states “Change date for Order Master”. Order Master is AUFK and the field is updated regardless of changes done at AUFK or AFPO, RESB etc. (I have tried these three basic tables). There could be exceptions where this field is not updated despite changes done in IW32 but not to my knowledge.

 

Note: The label “Change data for Order Master” does not seem the best possible description of the field.

 

Created on:It is the date on which Order is created.

 

History from: It is stored on Maintenance Orders which are archived through Order archiving process. It contains the date on which the archiving was executed. This field will get the value after archiving so we can see it populated only on historical orders.

 

Period (Service Order Selection screen):If we take literal meaning of this field we understand it is a range. This mapping of period to a field in order Header is unclear from field label. This field acts as selection range for all the Orders which has reference date falling in the period specified. It refers to reference date on the Order.I have explained the significance of Reference date later in this document.

 

[I am sure we could have done better with the naming of this field as “Period” does not signify the business meaning]

 

 

Purchase Order Date:This field can contain the PO related date. At times we get the date on which Customer created and sent a PO for repair. This is one of the freely available fields which can be used to store the date if we want to store the information related to PO.As It is not linked to Purchase Order Technically and can store a value independent of Purchase order.

 

 

Reference Date:It contains two dates over the life cycle of the Order. If the Order is not completed it contains Order start date but once the Order is complete it store the technical completion date. It is also the date which gets referred in Period field on Order selection screen (T code IW73).

 

Scheduled Start/Finish date: It is the planned start date of first operation and the value is derived as soon as scheduling is executed. The calculation is primarily dependent on Basic dates, scheduling type and duration.

 

Note:Whenever an operation is dropped and scheduling is re executed the scheduled date changes. 

 

Though I have not seen the practical usage of each field above, this is my high level understanding of date fields  based on experience and search. If you have reached till this line then feel free to provide your feedback on document, I will be more than happy to incorporate any contextual missing information.

 

Anjan

Equipment Task list Display Report by using SQVI

$
0
0

Equipment Task list Display Report by using SQVI

                   

 

Hi All,

 

This is my First Document in the Forum and hope this will be helpful for all.

 

 

Purpose:

 

IA10 and IA17 standard reports are available to display equipment task list, unfortunately this only brings across the information as it would be printed so there is a lot of work to be done in the spreadsheet to get what you want to see. But maybe not impossible! Hope this report will helps Plant Maintenance users to view the maintenance task list details of multiple equipment’s and save  into spreadsheet.

The report will be created by using T code SQVI

Used SAP Tables:

  1. 1.      EQUZ
  2. 2.      ILOA
  3. 3.      EQKT
  4. 4.      IFLOTX
  5. 5.      EAPL
  6. 6.      PLKO
  7. 7.      PLPO
  8. 8.      PLWP
  9. 9.      T351X

 

Step 1:

Enter T Code SQVI

Enter Name of the program for the report in the quick view field and press create button


1.jpg

 

 

Now enter the Title for the report and select data source as table join.

Select basis mode and press enter


2.jpg

 

Step 2:

Press 3.jpg  to enter the table name


4.jpg

 

Step 3:

Again click on table and enter table which should be link to previous table. Example in EQUZ   Equipment number it is linked to EQKT equipent number.

We can take n number of tables which should linked to previous entered table.

Enter tables EQKT, EAPL, PLKO, PLPO, PLWP and T351X by following the previous step.



5.jpg

 

 

6.jpg

 

 

 

Step 4:

You can delete / edit table connections by selecting the black line and clicking with the right-mouse button.

Select the unwanted connections and delete by clicking the right –mouse button.


7.jpg

 

 

Step 5:

Enter 2 more tables ILOA and IFLOTX



8.jpg

 

 

Bring ILOA and IFLOTX tables to the starting screen to connect EQUZ table.


9.jpg

 

 

 

 

Step 6:

Click join condition button  10.jpgon the top of the screen

Now give EQUZ and ILOA table and press enter


11.jpg

 

The logic:

  1. 1. Select EQUNR field from EQUZ table and pass this into EQKT table to get equipment number and description
  2. 2. Take EQUNR field from EQKT table and pass this into EAPL table to get the task list details.
  3. 3. Take PLNNR field from EAPL table and pass this into PLKO table to get the planner group.
  4. 4. Take PLNNR field  from PLKO table and pass this into PLPO table  to get operation details
  5. 5. Take PLNNR & PLNKN fields from PLPO table and pass this into PLWP table to get the required maintenance strategy of task list.
  6. 6. Take PAKET & STRAT fields from PLWP table and pass this into T351X table to get the maintenance schedule of operation.
  7. 7. Select EQUNR field from EQUZ table and pass this into ILOA table to get functional location. description
  8. 8. Select TPLNR field from ILOA table and pass this into IFLOTX table to get functional location description.

 

After removing the unnecessary links between tables the final links as given below

Table links:

EQUZ-EQUNR-EQKT

EQKT-EQUNR-EAPL

EAPL-PLNNR-PLKO

PLKO-PLNNR-PLPO

PLPO-PLNNR-PLNKN-PLWP

PLWP-PAKET-STRAT-T351X

EQUZ-ILOAN-ILOA

ILOA-TPLNR-IFLOTX

 

12.jpg

 

 

 

Step 7:

Press back button after connecting the table links


13.jpg

 

Press  14.jpg to switch between filed names and technical names

 

15.jpg

 

 

 

Step 8:

Selection fields is for input screen of the report

List fields is for output of the report

Input Fields:

                       EQUZ-EQUNR (Equipment Number)

                       PLKO-VAGRP (Planner Group)

                       PLPO-WERKS (Plant)

Output Fields:

                      PLPO-WERKS (Plant)

                      ILOA-TPLNR (Functional Location)

                      IFLOTX-PLTXT (Functional location Description)

                      EQKT-EQUNR (Equipment Number)

                      EQKT-EQKTX (Equipment Description)

                      PLKO-VAGRP (Planner Group)

                      PLPO-LTXA1 (Task list Operation Text)

                      T351X-STRAT (Strategy)

                      T351X-KTEX1 (Maintenance Package Text)

 

Select the above input and output fields in the quick viewer screen                   

16.jpg

 

Press  14.jpgto switch between filed names and technical names

 

 

Select the output fields for the report


18.jpg

 

 

 

Step 9:

Now go to sort fields tab to enter field names to sort

Select  20.jpgto find required field

21.jpg

 

Click 22.jpgafter entering the table and field name

Click   23.jpgto enter sort fields into quick viewer

 

Sort Fields:

ILOA-TPLNR

EQKT-EQUNR

EQKT-EQKTX

PLPO-WERKS

IFLOTX-PLTXT


24.jpg

 

 

Select  25.jpgat the top left side of the screen

Select output headings of the report to change if required, we can change and modify the output length as required


26.jpg

 

 

 

Press Back Button on the screen to save the SQVI report

27.jpg

 

The SQVI report has been saved, select the line item and press execute to run the report


28.jpg

 

 

Input Screen:

29.jpg

 

 

 

Output Screen:

30.jpg


 

 

 

Procedure to create tcode:

Go to system –status on the input screen

 

 

Copy the programme name and give it to the ABAPER to create TCODE for the report.

 

Hope you all will find the Document Helpful.

 

Thanks & Regards,

Sunil Boya


 

 

 

 


10 Useful Tips on Infoset Queries

$
0
0

Introduction

Often it is seen that. Infoset-query users, stop exploring  at the 1st hurdle and switch to ABAP report programs, for requirements a little bit beyond simple ones. But, it is the author's experience, that we can use this tool (Infoset Query) given to Functional people by SAP,  to reach very close to the ABAP report programs, with features like those discussed in the other document and also some discussed here.

 

In this document the author tried to put together the pieces of his knowledge to present in the form of a document.

 

Tip1

To have a Tcode to your work in Infoset Query.


 

The following screen with report name appears..

 

 

Now you give this report name to your ABAPer and ask him to create a Tcode

OR

You do it yourself through SE93 Tcode, if you have access.

 

Steps for SE93


 

 

 

And Save. Thus your Infoset query will now be working with Tcode ZTCODE

(This applies also to Quick Viewer report SQVI)

 

 

Tip2

Calling Reports from Infoset Query reports.

 

The output of your query contains key fields like Notification no., Equipment No. etc.

It is natural that one wants to go to the Notification screen or the Equipment screen from the output.

 

Do this way.

 

In SQ01


 

 

We get this screen

 

 

Click here on  then on  then select

In the resulting pop-up, specify the Tcode you want to link with the Row in the SQ01 output.

Say IW23 and Save.

 

It is Done.

Now upon D'clicking anywhere on a particular line item in the query output, you are directed to IW23 screen of the notification of the line-item (row).

 

You can have many such report assignments.

Suppose you want to have IW22 also. Then repeat the same steps above to have IW22 Tcode.

 

Now when you D'click (anywhere) on one line-item (row) of the Query output, you will be presented a pop-up menu to select which one you want. i.e.,

Display Notification  or Change Notification. You are taken to the corresponding screen as per your choice.

 

Capture.JPG

Note:

1.If your Report Assignment option is found disabled, then the reason and setting to restore is here: How to make 'report assignment' available in 'SQ01'

2.We always need to remember that, after Tcode assigning, the modifications done in SQ02 or SQ01 would be in effect to the Tcode, only after executing SQ01 once.

3.More Details on this subject here: Calling Reports from an Infoset Query

 

Tip3

Make your report colorful with giving different colors in order to group columns

 

In SQ01 Basic ListScreen

 

Here just Drag & Drop the color from Right Tool-Box to the desired field in the Centre portion.

OR

Double click on a field in the Centre, to display field details and color options on the left. Now you select the color.

 

Example of such output.

Capture.JPG

 

 

Tip4

Always have Selection Fields from Infoset (SQ02).

What does this mean and Why?

 

This means

We have options for Selection Screen designing both in SQ02 and in SQ01.  It is advantageous if we declare selection options in Infoset (SQ02),

 

Here is how we do it. (In the Extras area), Go to Selections Tab, Click on Create icon, select Selection Criterion or Parameter like below.

Capture.JPG

And define the Selection field as under.

selcrit.JPG

Observe here the strings written in Extras field.

OBLIGATORY makes this field in the selection screen mandatory.

NO INTERVALS removes the selection range (Removes the To field of the selection criterion)

NO-EXTENSION removes the multiple selection push button

DEFAULT 'M2' provides the M2 value as default in the field.

 

Like-wise you can design a selection screen as shown below by defining fields one after another.

pastedImage_22.png

Note that, we can declare only Standard Selection Fields here. Additional Fields are to be taken into Selection Screen only from SQ01.

 

The disadvantage in having these standard fields into selection screen from SQ01 is, the previously used values reappear as defaults for new running of the report. We need to erase and type our values. Also there is no provision for making a field mandatory.

 

 

 

Tip5

This is to develop queries in Standard Arearather than in Global Area.

 

What is this?

See the option below in SQ02 while creating an Infoset Query.

 

 

 

In the Query Areas above we have two options: Global Area, Standard Area.

When we are working in Development Server (client 200 or 210), we work in Global Area option, which generates a transport request, subsequently this will be transported to QAS and PRD at the end of work.

 

When we select Standard Area as the name indicates, it is client-specific. This means you can directly develop in PRD with this option. To have a Tcode for reports developed so, we need to use the same way explained earlier in this document. But  it is to be noted that, we get the report name from the PRD client where we developed the report, and create a Tcode in Development server (client 210 or 200) and same will be. transported to PRD.  (One time job)

 

The main advantage I always enjoyed here is, the moment some addition/deletion/modifications performed on this repor, it is instantly available in PRD.

(No hassles of transport requests). Only requirement is to run SQ01 once. The Tcode will be giving the changed report.

Also, the testing of the the report work is done in a perfect environment with real-time data.

 

(Working through the Global Area option in Development clients may be having its own advantages, like work back-up , but I never felt such necessity in my environment.If needed we can have a copy report in PRD itself)

 

 

Tip6

In case we do not want a certain category of records in the output, then go to SQ02 --> Extras--> Code tab --> Record Processing section, and

Give a code like the sample given below.

( check viqmel-abckz <> '' .)

 

What does this do?

With this code, the Infoset query does not bring any records where the ABC indicator field is blank.

Like-wise if you give a code like: check crhd-arbpl <> 'xyz123'.

the output will ignore the records with maint. work center value 'xyz123'.

(Note that these are permanent filters, For optional filters either the Selection Screen OR the Filter in the  ALV output display can be used.)

 

 

Tip7

F4 help related

F4 Help is not available in infoset query.

 

Tip8

How to create a radio button in SAP Query SQ01/SQ02.

 

 

Tip9

User defined fields

 

 

Tip10

We know that, the infoset reports work on Table joins in Infoset. In complex cases, where many tables are joined, the correctness of report depends upon the quality of joins we define. Though system suggests some joins, user can define more joins as per his table knowledge. This is what controls the multiplicity of identical rows appearing in the output sometimes.

 

It is seen that in situations where the user is unable to control the duplicate (or multiple) identical rows , the CHECK statement used in Tip6 works conditionally. In other cases this multiplicity becomes one of  the points where one is forced to go for an ABAP report.

 

 

The author has been working in this area since few years. This is an effort to share his knowledge about some very common requirements in this area with the forum. Hope member friends especially those who love Infoset queries, find this useful.

 

Thank you

KJogeswaraRao


PS: This post and all further posts in the area of Infosets have been compiled to this blogInfoset Queries: Collection of important posts

User-Fields in QM and PM/CS Notifications : Screen-Exit QQMA0001

$
0
0

Introduction

One of the very frequently asked questions in this space, is about the subject matter, i.e., How can I add Custom fields to a Notification? A documentation on this subject would be helpful to the forum for ready reference.

 

Objective

This documentation is intended to enable the readers to create the Custom fields in different tabs of Maintenance Notification, update the Noyification Master data Table and also display these fields in IW28 / IW29 output.

 

Let's see how it is done.

 

Part1

Create Custom fields in the Notification Table

The table of our context is QMEL. We need to append our Z-fields to this through the include structure namely CI_QMEL.

The process of creating any custom field starts with creating a Data Element with desired Type and Length or with desired Domain name and with the Field Labels we want to have for the Customer fields. For our Demo, we have created Two Data Elements, namely :

  1. Z_DELAY  - Type DEC Len 3 Dec 1  and Field Label ‘Delay(H)’
  2. Z_REASON - Domain TXT40 and Field Label ‘Reason for Delay’)

 

Now let us create our Customer fields.

Run Tcode SE11 --> give value QMEL in the Database Table field --> Click on Display. Scroll-down to find include tableCI_QMEL. Double click on this,  Go to Change mode and Add Two new fields of our interest as shown in the picture and Activate.

ci_qmel.JPG

 

As seen in the picture, we have created Two Customer-Fields namely ZZDELAY and ZZREASON. It is essential for all Customer fields used in Enhancement purposes to be prefixed with ZZ.

 

Part2

Enhancement and Screen-Exit

1, Create an Enhancement Project say ZPMNOT using Tcode CMOD.

cmod.JPG

 

2. Assign Enhancement QQMA0001 to this project .

cmod_!.JPG

 

3. Click on Components in the picture above to reach this screen.

cmod_2'.JPG

 

4. Activate by clicking on the Activate Icon (shown in picture above)

Now the screen is like this.

cmod_2.JPG

 

As we see here, there are several screen-exits (27) and Two Function-Exits namely EXIT_SAPMIWO0_008 and EXIT_SAPMIWO0_009  in this enhancement.

Double Click on this screen number to create a Sub-Screen for holding our Custom Fields. You’ll get this pop-up.  Press Enter and Continue.

103 create.JPG

 

You’re in the screen below, where you’ll  give a Description,  Select the Subscreen Radio button,  Save and Activate.

subscreen create.JPG

 

Click on Layout Arrow in the Application Toolbar of (See the picture above) to reach the Screen-Painter pop-up window, where we will be creating :

  1. A Box to hold our Z-fields
  2. Text Fields to for Z-field  labels
  3. Input Fields for Z-fields

screen-painter.JPG

 

The input fields should be referred to the Dictionary fields we have just created. (QMEL-ZZDELAY and QMEL-ZZREASON) as shown above.

 

Activate the screen-painter.

 

Part3

Codes to be given in Function-Exits


Go to the following screen

Codes in Exits.jpg

 

Double click on the Function-Exit EXIT_SAPMIWO0_008 and put the following code in the include  ZXQQMU07 .

 

*---------------------------------------------------------------------------------------------

TABLES: QMEL.

MOVE-CORRESPONDING I_VIQMEL TO QMEL.

*---------------------------------------------------------------------------------------------

 

Similarly put the following code in the include  ZXQQMU08   of the Function-Exit EXIT_SAPMIWO0_009.

 

*---------------------------------------------------------------------------------------------

MOVE-CORRESPONDING QMEL TO E_VIQMEL.

*---------------------------------------------------------------------------------------------


Part4

SPRO setting to be done

Navigate to the Overview of Notification Type in SPRO.

spro1.JPG

Select your Notification Type (Here we are doing it in M2) and Enter the Screen Structure for Extended view

spro2.JPG


Give the following settings in the Malfunction Tab (the tab where we want to have our custom fields)

spro.JPG


Almost Done


Let’s see the effect of work done so far.

Create a Maintenance Notification (IW21). You will see the following addition of subscreen area in the Malfunction Start/End  Tab.

IW21.JPG

Enhancement has been added here by the system, in which our Custom fields appear with their labels and the input fields.

 

Now let’s add some values in these fields and Save the Notification.

values in z-field.JPG

 

Run IW22, open the Notification and verify whether the values are updated to table or not. If they are appearing  as you have entered and saved, this means the QMEL table has been updated with these values when Notification was saved.

 

Part5

Let's have these Custom fields in the Notification list reports namely the ALV of Tcode IW28/29 (QM10/QM11 in case of Quality Notifications)

So far we have succeeded in creating our Custom fields and updating the values to the Notification Master data. Next natural requirement of a user would be to have these fields in IW28/29 ALV screen. For this purpose we, need to create an Append Structure in the Structure RIHQMEL_LIST (RQMQMEL1 in case of QM10/QM11 reports), as shown in the picture below. The Tcode is SE11 again for this task. Here we have created an Append Structure named ZDLAY and in this structure we have added both the Custom fields.

rihqmel_list.JPG


Now let's create few more Notifications, with custom fields filled with some values. Now run IW28 with selection parameters to display these Notifications we created. Click on the icon shown , You'd find the Custom fields in the Column-set list, Bring them to Displayed list on the Right hand side.

iw28.JPG

 

Related SAP Note: 370191  (Image of the note is attached herewith for the benefit of the members who can not access OSS)

 

 

Part6

Now if you go to IW23 of any of these Notifications, unlike all other greyed-out fields, the Custom fields will be seen Editable. Though there is no provision to Save the edits here, you’d definitely like to have these fields too in Greyed-out mode.

 

For this we need to write a small code in the PBO (Process Before Output) module of the screen 0103 we have created.  Double click on the Screen number 0103 of the enhancement,

Codes in Exits.jpg

 

Un-comment line MODULE STATUS_103. and D’Click on the STATUS_0103 of the PBO module. Insert the following code between the MODULE, END MODULE lines like this.

------------------------------------------------------------------------------------------------------------------------

MODULE STATUS_0103 OUTPUT.

 

     IF SY-TCODE = 'IW23'.

          LOOP AT SCREEN.

               SCREEN-INPUT = '0'.

               MODIFY SCREEN.

          ENDLOOP.

     ENDIF.


ENDMODULE.

-------------------------------------------------------------------------------------------------------------------------

 

Lastly Rememebr to
Activate the Function GroupXQQM from Tcode SE80. Right click on the Function Group and click on the Activate option

untitled1.jpg

 

...... and thus we reach to the end of this knowledge sharing Documentation.

 

 

Note

1. As this is largely a Technical job, it is recommended to be developed through an experienced ABAPer, especially Part1 which involves Activating the Standard table QMEL.

2. The Environment of Author is ECC 6.0 with no EHPs, hence the document applicability.

 

Expecting this document too would be of use to many members from mainly from EAM and QM spaces.

 

Related content

User-fields in Catalog Tabs of Notifications



*Author's other Posts




Thank you

KJogeswaraRao

Catalogs & Codes: An Important Knowledge Piece

$
0
0

Foreword

The author believes that the tip given in this document  simplifies and drastically cuts down the amount of data upload to QS41 transaction, In fact this tip should be made use of invariably by every-one who designs the Catalogs & Codes to the Equipments. 


What is it?

An addition of character ‘&’ at the end of Code Group Description helps the Code-text (kurztext) to be very short, but while using the Code-texts  are prefixed by Code Group Texts giving full meaning.

 

This is being explained through Screen-captures in the following example .

 

QS41:

 

1.Object part Code Group ‘MOTOR

  Description : ‘MOTOR &

1.JPG

Codes

1.JPG

 

 

 

 

 

 

 

2a. Damage Code Group:  ‘SHFT

Description :  ‘SHAFT&’

 

1.JPG

 

Codes

1.JPG

 

 

 

 

 

 

2b. Damage Code Group:  ‘FNDN

Description :  FOUNDATION &

 

1.JPG

 

Codes

  1.JPG

 

 

 

 

 

 

 

OQN6:

3. Catalog Profile

1.JPG

 

 

 

 

 

 

 

The result in IW21 / IW22

1.JPG

 

 

Note:

1. The above explanation is applicable for all Catalogs (B,C,2,5, A &  others).

2. Because this is a change in Description field, it is applicable to the Code Groups created and used earlier. Accordingly, the Code-Texts will  be modified in all History Notifications.

 

 

Hope members find this article useful.

Thank you

KJogeswaraRao

Viewing all 842 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>