Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Passing internal table with a field of type string to & from BAPI

Hello ABAP gurus,

I have a simple BAPI which has to send back an internal table.

Internal table structure is as follows

DATA: BEGIN OF itab OCCURS 0,

config_id(8),

blobdata like zstring,

END OF itab.

where zstring is a string of variable length.

When I try to activate the BAPI I get a message

"itab" must be a flat structure. You cannot use internal tables, strings, references or structures as components.

However, just for testing, I changed blobdata to type of char and I can successfully activate and use the BAPI.

But, our requirement is to pass a string of variable length.

How can I resolve this issue? I have searched sdn and other blogs but didn't help so far.

Any feedback on this will be highly appreciated.

Thanks

Ram

replied

Please you have to read what we tell you:

TRANSACTION SE11:

You have to create yourself a table type first. Before you have not defned your table type correctly in SE11, you can not create your function correctly.

Regards

Rene

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question