cancel
Showing results for 
Search instead for 
Did you mean: 

USER EXIT QQMA0015

jogeswararao_kavala
Active Contributor
0 Kudos

Dear Experts,

Can some one give me the logic (Code to be written inside the include) to filter catalogs, in the user-exit QQMA0015.

Regards

Jogeswara Rao

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use this exit to specify a specific code group(or filter down existing values) to be displayed when you use F4 .


If I_VIQMEL-qmart = 'M1'. " Notification type
  IF I_VIQMEL-qmgrp = 'POLE'. "Header Notification code (Problem code)
    CASE I_EBENE. " Filter for type of Code
      WHEN 'OT'. " Item
        E_CODEGRUPPE = 'UP'.
      when 'SM'. "Task
        E_CODEGRUPPE = 'UP'.
      when 'MA'."Activity
        E_CODEGRUPPE = 'UT'.
    ENDCASE.
  ENDIF.
ENDIF.

Regards

Narasimhan

jogeswararao_kavala
Active Contributor
0 Kudos

Thank you Sri Narasimhan,

I am trying.

Regards

Jogeswara Rao

jogeswararao_kavala
Active Contributor
0 Kudos

Dear Narasimhan,

I have tested your code and working well. i.e. When I put some value in the 'D' catalog field, as per the code the other catalogs are filtered. This is exactly what the 'Catalog Profile' does.

My requirement starts when I select a code in 'B' catalog. On doing so, my expectation is the other catalogs (C, 5, 2, A) should be filtered as per the code.

For ex. initially i tried the follwoing code which was syntactically correct but not working. (This helps in understanding my requirement)

If t_viqmfe-otgrp = 'ACWE05' and t_viqmfe-oteil = '0001'.

E_CODEGRUPPE = 'ACWE12'.

ENDIF.

Request you for further help.

Regards

Jogeswara Rao

Edited by: K Jogeswara Rao on Oct 27, 2010 11:18 AM

Former Member
0 Kudos

The code group "ACWE12" will not be assigned automatically. When you use the F4 on that field, the drop down value will now be restricted to "ACWE12".

Regards

Narasimhan

jogeswararao_kavala
Active Contributor
0 Kudos

My aim is that only. (F4 help restriction only)

The code suggested by you, uses a 'IF' condition on QMGRP (D catalog).

But in my requirement the 'IF' condition is to be used on 'B' catalog (OTGRP)

I request the syntax accordingly.

When I select a Code in 'B' catlog (say Code Group 'ACWE05' and Code '0001'), the Code Groups for C, 5, 2, & A should be restricted to 'ACWE12'

Regards

Jogeswara Rao

Former Member
0 Kudos

The value for that field (I_EBENE. " Filter for type of Code) may vary deepnding on config.I am not sure here.The best way would be to place a breakpoint at the time of entering the FM and they figuring out information.

Regards

Narasimhan

jogeswararao_kavala
Active Contributor
0 Kudos

OK Sir,

Thanks for overall help.

Regards

Jogeswara Rao