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: 

String array in structure for BAPI

former_member210563
Participant
0 Kudos

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 ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

Former Member
0 Kudos

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) .