07-23-2008 12:26 PM
Hi,
I am defining my fields for a structure (import). The field that I need in the structure is to received search words from a website for instance 3 separate words for each entry. How can I define this field in my structure ?
07-23-2008 12:34 PM
Hi,
Try to declare the strcuture with Char type-
types:
begin of .....
word(70) type c.
end of ......
Once you get the whole string, split the string based on separators gievn in the search crtieria.
use SPLIT statement to get the words in a given search string
Please cehck the ABAP DOCU on this splitting a given string into words. There are many pattern optiions for strings.
we can declare internal table based on this structure.
Thanks & Regards,
Chandralekha.
07-23-2008 12:34 PM
Hi,
Try to declare the strcuture with Char type-
types:
begin of .....
word(70) type c.
end of ......
Once you get the whole string, split the string based on separators gievn in the search crtieria.
use SPLIT statement to get the words in a given search string
Please cehck the ABAP DOCU on this splitting a given string into words. There are many pattern optiions for strings.
we can declare internal table based on this structure.
Thanks & Regards,
Chandralekha.
07-23-2008 12:46 PM
hi do like this..
pass the data to char and split if needed ..
here is the example...
data: char(200) type c value 'helloboss' .
write:/ char1(2) , char3(2) , char+5(2) .