Application Development 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: 

How to delete duplicate entries in match code

Former Member
0 Kudos

I want to delete duplicate entries in match code.

5 REPLIES 5

Former Member
0 Kudos

Are you talking about match codes or search helps? If search help, is it a customsied search help or a bespoke one?

Larissa

0 Kudos

You could create a custom MatchCode, the you pass the internal table with the neccesary info...Use this FM:

<b>F4IF_INT_TABLE_VALUE_REQUEST</b>

Greetings,

Blag.

andreas_mann3
Active Contributor
0 Kudos

hi,

you've to analyse the corresp. view (selection method)

with TA SE11 and correct / delete entries

Andreas

former_member188685
Active Contributor
0 Kudos

you should go with search help exit for this kind of requirement...

http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm

Regards

vijay

Former Member
0 Kudos

If you go down the search exit route, using function module F4_IF_SHLP_EXAMPLE or function module F4_IF_SHLP_EXIT as a template you want it where callcontrol-step = 'DISP'. You would sort the table: SORT RECORD_TAB BY STRING and then delete adjacent duplicates. If this does not wok because of the fields you have in your search help, you will need to select the data into another internal table and match the relevant entries from your internal table with the relevant position in field STRING of RECORD_TAB. The positions in STRING will be as per the order of the parameters you have defined in the search help.

Hope this helps.

Regards

Larissa