Skip to Content

Introduction

Catalog-coding functionality covers wide range of applications, hence configured in many different ways to suit the  individual requirements.

In this document one such situation has been dealt, where user would like to filter the F4 help of other catalogs as soon as he selects a code-group in object-part (Catalog B).

The End-result of this document

In a Notification, the F4 help in Catalog&Codes tabs Causes, Tasks and Activity, will automatically present the respective codes related to the item selected in the first tab (Object part/Damage). This is done using User-Exit QQMA0015

First, Let’s see what is the feature we are talking about:

Select a Code & Code Group  in the Catalog-codes tab of a notification.

(Say we have selected ‘DRIVE-SET’)

Capture.JPG

Upon selecting the ‘DRIVE-SET’ in the Object Part, the filter effect will be activated in the F4 help of all
other catalogs, by showing only the Codes of the Code Group with same name (selected in catalog B).

Here on, this is how the F4 help is presented for other Catalogs (Catalog C is demonstrated here)

Capture1.JPG

Previously, without this filter, all the Code-Group folders were appearing from where you were required

to open the respective folder to select the desired Code.

Similar F4 help filter will be seen in all the other catalog tabs. (namely 5,2 and A).

Note:

In spite of this arrangement, if one needs to override this, he can simply type the name of the other

desired Code Goup (say CG1 or CG2) in the Code Group cell and press Enter. The respective codes

will be appearing.

Find Useful? Then the following section will help you achieve this

Let’s  suppose we have a coding data as under.

1.JPG

QS41:

  – Create Code Groups with same names across the 5 catalogs (Here these are CG1, CG2, CG3)

  – In Object part (B) maintain single code for each group ie., the part itself as shown below (QS41).

a.JPG

–  Complete other Coding (QS41) as per the above Excel-sheet data.

OQN6:

– Create a Profile as shown below.

prof.JPG

And assign this Profile (PUMPASSLY) to the respective Equipments.

The F4 help Filter

Write the following Code in the include ZXQQMU21 of user-exit QQMA0015.


FIELD-SYMBOLS : <L_EBENE> TYPE ANY.
IF I_VIQMEL-RBNR = 'PUMPASSLY'.
   ASSIGN ('(SAPMIWO0)VIQMFE-OTGRP') TO <L_EBENE>.
   IF SY-SUBRC = 0.
     IF I_EBENE = 'OT' .
       MOVE I_CODEGRUPPE TO E_CODEGRUPPE.
     ELSE.
       MOVE <L_EBENE> TO E_CODEGRUPPE.
     ENDIF.   ENDIF.
ENDIF.


——————————————————————————————————-

Now the desired F4 help filter will be available.

Added on 08/07/2013

If in some situation the user needs the filter to be on Damage code groups too,

i.e. When a code group is selected either in Object part or in Damage further catalogs will be automatically presenting the respective Code Groups only.

A code similar to this would satisfy this need.


  DATA: C(50) TYPE C VALUE '(SAPMIWO0)VIQMFE-FEGRP'.

   FIELD-SYMBOLS:  <FS1>     TYPE C.
   FIELD-SYMBOLS : <L_EBENE> TYPE ANY.

   ASSIGN ('(SAPMIWO0)VIQMFE-OTGRP') TO <L_EBENE>.
   ASSIGN ('(SAPMIWO0)VIQMFE-FEGRP') TO <FS1>.

   IF SY-SUBRC = 0.
     IF I_EBENE = 'OT' OR I_EBENE = 'FE'.
       MOVE I_CODEGRUPPE TO E_CODEGRUPPE.
       IF <L_EBENE> IS NOT INITIAL .
         MOVE <L_EBENE> TO E_CODEGRUPPE .
       ELSEIF <FS1> IS NOT INITIAL.
         MOVE <FS1>     TO E_CODEGRUPPE.
       ENDIF.
     ELSE.
       IF <L_EBENE> IS NOT INITIAL .
         MOVE <L_EBENE> TO E_CODEGRUPPE .
       ELSE.
         MOVE <FS1> TO E_CODEGRUPPE.
       ENDIF.
     ENDIF.
   ENDIF.


Thank you

Jogeswara Rao K

To report this post you need to login first.

18 Comments

You must be Logged on to comment or reply to a post.

  1. Thyagarajan Krishnamurthy

    hi

    Thanks for sharing the infiormatiom. Other option i think you can create the separate code group for Pump,Motor ( naming convention can be different) , group all those by creating the catalog profile ( pump, motor ) and assign the same in master record

    Regards

    Thyagarajan

    (0) 
    1. K Jogeswara Rao Post author

      Yes Thyagarajan ji,

      That is definitely an option.

      In fact present filter option was discovered to meet user friendliness demands, for a scenario where there are too many code groups in a profile, and user had to search and go to the code group folder.

      Here what happens is when one codegroup is selected in ‘Object part’, the respective folder automatically opens for other catalogs (C,5,2,A).

      Thank you for going through this document.

      Regards

      Jogeswara Rao K

      (0) 
  2. Tehsin Ullah Khan

    Hi Jogeswara Rao K,  It is useful but I think that lines of code will be increased by (current number of code lines * number of catalogue profiles) if we have more than one catalogue profiles.  Cheers! Tehsin

    (0) 
    1. K Jogeswara Rao Post author

      That is the idea. This is just a sample code.

      In fact at my place we design profiles as per this arrangement and we do not mention ‘IF’ condition for profile (RBNR), so that the filter effect is available by default.

      In some cases, this filters not required. So to take care of such profiles, we use the ‘IF NOT’ condition and mention the RBNR value.

      Jogeswara Rao K

      (0) 
      1. Akhilesh Singh

        Hi Jogesh,

                         This is very useful documents and from this code we can design selection parameter with an easiness for PM user.

        (0) 
  3. Sonali Deshmukh

    Hi Jogeswara Rao K,

    This document is really very helpful. My requirement is similar to this , but up to the Code level. I am maintaining the values for code group and codes for (Object Parts, Damage, Causes, Activities and Coding Code.) in one z table.

    First, user will enter the Object parts and then based on Objects parts I have restricted f4 help for Damage , and then based on Objects parts and Damage I have restricted for causes and so on by passing the code groups from z table to the Export Parameter E_CODEGRUPPE.

    But my requirement is I want to pass the combination of ( code group and code ) from the z table.

    For e.g.. I have maintained value for Damage as Code group- PM1 and Code = 1 in the z table.

    Now there are two Codes for PM1 i.e 1 and 2.

    Currently my code is showing f4 help as below:

    F4-help.PNG

    But I want to show only PM1

                                              -> 1 Damage 1.

    Could you please suggest me how can I achieve this requirement.

    Thanks & Regards,

    Sonali Deshmukh

    (0) 
  4. Sonali Deshmukh

    Hi,

    Thank you for the quick reply. I have tried various possibilities…but not able to achieve it.

    I am not getting the clue that how can I pass Code group + Code to the export parameter.

    Thanks & Regards,

    Sonali Deshmukh

    (0) 
      1. Sonali Deshmukh

        Hi,

        Thank you for the reply. Yes we have understood that this exit is for filtering code groups only.

        Now we are facing an another issue like from z table we want to pass multiple code groups.

        For e.g. If we have two entries for Damage code group in z table based on the Object Part, then both these code groups should be shown on f4 help of Damage.

        As the export parameter e_codegruppe is an variable we can pass only one value. So in the loop we are trying to pass both the values to the table T_RIWO020TAB and in the exit this table is getting filled with the values we want.

        But once we are out of exit the standard table G_RIWO020TAB in the FUNCTION ‘CATALOGUE_SELECTION’ is having values as per standard configuration and we are not able to get the values we want.

        Could you please suggest on the above mentioned requirement. This will be really helpful for us.

        Thanks & Regards,

        Sonali Deshmukh

        (0) 
        1. K Jogeswara Rao Post author

          Hello Sonali,

          The area of your query is new to me. I never worked with Z-tables in this area. You might get good help if you post this query as a new discussion preferably in ABAP forum.

          Best of Luck

          KJogeswaraRao

          (0) 
  5. Marcos Ratilla Jr

    hi all,

    good day to all.

    i am new here, can anyone give me a standard list of catalog profile? our company is about to start the SAP this coming year.

    object, fault codes, causes, tasks and activities is all i need so please i need help out there.

    Thanks,

    Marcos

    (0) 
    1. K Jogeswara Rao Post author

      Hello Marcos,

      Present posts or threads are not the right places for posting your Queries. Please post your query as a new Discussion, by clicking on Create –> Discussion as shown in th picture below.

      /wp-content/uploads/2014/12/untitled1_599451.jpg

      (0) 

Comments are closed.