‎2011 Jan 20 9:09 AM
[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?
‎2011 Jan 20 9:49 AM
[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.
‎2011 Jan 20 2:01 PM
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.