Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Deleting Matchcodes

Former Member
0 Likes
1,661

As part of a Unicode conversion project, I have to convert the existing matchcodes to search helps and delete the matchcodes.

Before deleting a matchcode, I do a where-used list for programs and screens. It shows that it is not used.

When I try to delete one I get a popup saying Matchcode Object ZZZZ is still used in screens, but at the bottom of the screen, there is a message "Where-used list not supported for Screens".

When I press the "where-used" list button (anyway), it comes back with "Matchcode Object ZZZZis not used in". I assume it means screens. And it repeats the message "Where-used list not supported for Screens".

So I have no idea if the matchcode is used or not.

I've run a trace to try to figure out where it is looking for matchcodes in screens and also debugged the program that is reporting this with no luck. (The program does a lot of PERFORM (XXX) IN PROGRAM (XXXXX) IF FOUND. Many of the forms are not found, so I'm not sure if this is the problem or not.)

I don't see any notes either.

So, does anyone have an idea on this? It seems likely to me that this is a bug in the where-used list and that the matchcode really is not used in screens, but I'd like to be sure before deleting them.

Rob

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,355

> When I try to delete one I get a popup saying Matchcode Object ZZZZ is still used in screens, but at the bottom of the screen, there is a message "Where-used list not supported for Screens".

You can debug this popup using [shortcut method|http://www.google.co.in/url?sa=t&rct=j&q=sap%20debug%20shortcut&source=web&cd=1&ved=0CB0QFjAA&url=http%3A%2F%2Fwiki.sdn.sap.com%2Fwiki%2Fdisplay%2FABAP%2FABAP%2BTip-How%2Bto%2BDebug%2BPop-up%2Bwindow&ei=GTYHT6OdGoHMrQfX5Pj7Dw&usg=AFQjCNFKKlSNEVkyTUnvjwY1xB8k3Np9ag&cad=rja] and

find out what the system is actually checking to throw this message?

In addition you can also find out the message number and put a watch point on SY-MSGNO = <msg no>

7 REPLIES 7
Read only

Former Member
0 Likes
1,356

> When I try to delete one I get a popup saying Matchcode Object ZZZZ is still used in screens, but at the bottom of the screen, there is a message "Where-used list not supported for Screens".

You can debug this popup using [shortcut method|http://www.google.co.in/url?sa=t&rct=j&q=sap%20debug%20shortcut&source=web&cd=1&ved=0CB0QFjAA&url=http%3A%2F%2Fwiki.sdn.sap.com%2Fwiki%2Fdisplay%2FABAP%2FABAP%2BTip-How%2Bto%2BDebug%2BPop-up%2Bwindow&ei=GTYHT6OdGoHMrQfX5Pj7Dw&usg=AFQjCNFKKlSNEVkyTUnvjwY1xB8k3Np9ag&cad=rja] and

find out what the system is actually checking to throw this message?

In addition you can also find out the message number and put a watch point on SY-MSGNO = <msg no>

Read only

0 Likes
1,355

Thanks, but I was already debugging the popup. And the popup makes it impossible to click on the message at the bottom of the screen.

But I could see during debugging where (but not why) the message is produced.

Rob

Read only

0 Likes
1,355

In which case you can try putting watch point on SY-MSGNO NE '' and if you hit a message number you are not looking for you can then change the watchpoint to SY-MSGNO NE <message number>. This way you can hit the message which comes at the bottom of the screen.

Also you can note down the message and go to T100 table and search SPRSL = 'EN' and TEXT = 'message text', once you get the message number and message ID you can come to SE91 and do a where used list or use the message number to debug like above. This way also you may be able to come to the point in the code where this message issues from.

When you debug the popup using short cut method, there should be some IF or other condition based on which the popup is shown. May be you need to dig a bit further back in the call stack to find the root cause?

Read only

0 Likes
1,355

I've debugged the program, but don't see anywhere where it looks for screens.

The question is really how can I tell if the matchcode is used in screens or not.

Rob

Edited by: Rob Burbank on Jan 9, 2012 10:54 AM

Read only

0 Likes
1,355

OK, you can search which screens are associated with which match codes (also search helps) by querying table CROSS, like below

CROSS-TYPE = 'M'
CROSS-NAME = <4 letter match code>
CROSS-PROG = <screen/dynpro number>
CROSS-INCLUDE = <main program name>

Read only

0 Likes
1,355

OK - that seems to be it, although I don't know why CROSS never came up in the trace.

Thanks Vishnu Tallapragada

Rob

Read only

0 Likes
1,355

it appears that the message that the matchcode is still used in screens is correct, but the "where used" list for matchcodes in screens doesn't work, so you know they are still used but have no standard way of finding out where actually! For those who come after, believe the message and search CROSS for the usage.

Rob