Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
jogeswararao_kavala
Active Contributor

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’)

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)

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.

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).

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

OQN6:

- Create a Profile as shown below.

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

18 Comments
Labels in this area