Skip to Content
0
Former Member
Oct 26, 2004 at 06:03 AM

How to get all combinations of words in a string to build ABAP search engi

507 Views

How to get all combinations of words in a string to build search

engine in SAP ABAP?

Suppose I have 3 words like "SAP LABS INDIA", How to get all

combinations like

SAP LABS INDIA

SAP INDIA LABS

LABS INDIA SAP

LABS SAP INDIA

INDIA LABS SAP

INDIA SAP LABS

It is not limited to 3 words only, it can be any no. of words.

I need to pass all the possible combination patterns to the database

for the effective search because user can give the words in any

sequence. I would like to know how to get all the combinations in ABAP

only.

Thanks and Regards,

Bhaskar Madugula