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

Function Module Export Parameters - Table in Table (array of arrays)

Former Member
0 Likes
622

[webmethods export parameter table in table|http://picasaweb.google.com/lh/photo/m4xitSkn7Pmih1kewKM9Wg?feat=directlink ]

Hi Abapers,

my problem is to find a suitable export parameter definition for the given webmethods parameters.

I am given from webmethods a

- key table KEY

- within the key table is a table of attributes: mapAttributes defined,

with the data elemtents: - SystemName

- attributeName

- attributeLanguage

- columnHeader

- attributeValue

I tried already to define

keys with a tabletype ty_keys

which was of linetype zty_mapAttributes

which has the structure zs_mapAttributes.

If this definition is generated in webmethods from the function module, it just returns a single table and not the structure shown in the picture.

Trying to define a table in a table in the data dictionary is not applicable, because I can't define the keys of the structure. (I don't know the lenghts of the given keys from webmethods). The table in the table can't be created in the database.

Trying to change the tabletype into a real table doesn't work, too.

Question: Did anyone encounter this kind of data definition problem with a business middleware (maybe this could happen with PI/XI too?)?

Is there a solution for this problem, or is it simply not possible to design an array of arrays in the function module parameters?

2 REPLIES 2
Read only

Former Member
0 Likes
470

[Generated Export Parameters|http://picasaweb.google.com/lh/photo/HxSzK1MSPjQQZ1Dmpex2qQ?feat=directlink ]

This is the view at the generated export parameters, which differs from the view at the original parameters on webmethods.

With this definition of the export structure it would not be possible to take the data back.

Read only

Former Member
0 Likes
470

It's solved,

the defintion in the export parameters of the function module is done as follows:

PET_KEY with the TYPE ZTY_GP_BIS_KEY

ZTY_GP_BIS_KEY has got line type ZSGP_BIS_LIST

Structure ZSGP_BIS_LIST has got one component:

MAP_ATTRIBUTES is of table type ZTY_GP_BIS_MAP_ATTR_IN

ZTY_GP_BIS_MAP_ATTR_IN has got line type ZSGP_BIS_MAP_ATTR_IN

Structure ZSGP_BIS_MAP_ATTR_IN has got the components:

SYSTEM

ATTRIBUTE

ATTRIBUTE_LANG

COLUMN_HEADER

ATTRIBUTE_VALUE.

The desired structure as shown before could be generated.