Application Development and Automation 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: 
Read only

array of strings as import parameter...

Former Member
0 Likes
2,333

Hi,

I want to create an array of strings as import parameter for a function module. Any hints on how to proceed ?

thanks,

Rolf

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,423

Hi Rolf,

Create a table parameter in your FM with a structure containing a single field of type string.

then use this table in your FM.

Reward points if found useful...!

Cheers

Abhishek

7 REPLIES 7
Read only

Former Member
0 Likes
1,424

Hi Rolf,

Create a table parameter in your FM with a structure containing a single field of type string.

then use this table in your FM.

Reward points if found useful...!

Cheers

Abhishek

Read only

Former Member
0 Likes
1,423

In the tables tab of the fm buider(se37),

you can simply use

itab type string

if it doesn't work,

you can use

itab type standard table.

Regards,

Ravi

Read only

Former Member
0 Likes
1,423

In the TABLES parameter declare one ITAB of TYPE STRING

and checkout if it works

Read only

Former Member
0 Likes
1,423

Thanks.

But in the FM builder in tab 'Tables', i enter 'type' and associated type 'string' and while trying to save or activate it gives a message 'type string is unknown' and the FM is not activated.

Read only

Former Member
0 Likes
1,423

try...giving...

parameter name : <table name>

Type Spec: Type

Associated Type: String

This is working for me.

Read only

Former Member
0 Likes
1,423

Thanks. It didn't work though. Had to create a table to use as a type. Thanks for all the answers.

Read only

1,423

you can use import parameter of type "STRING_TABLE" where string table is a table type . (array of string)

<b>strings type STRING_TABLE .</b>

Raja