Skip to Content

String array in structure for BAPI

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 ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 11:34 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 11:46 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.