cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a list of Input Parameters ? (BAPI)

diegohs
Active Participant
0 Kudos

Hi guys,

I'm executing a BAPI in my webdynpro app, the Bapi has various input parameters (simple and structure).

I needed to fill an input structure, and that was ok... BUT, now I need to create and fill dynamically the same input structure but with more than 1 record.

Example

-->MyBAPI

-


>MyStructure (1)

-


>MyStructure (2)

-


>MyStructure (3)

-


>MyStructure (...n)

I have tried to create nodes dynamically but I just receive errors.. =(

Could you recommend me anything ?

Thanks and regards

Diego

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You could use one of the following methods to add more than one element to a node of upper cardinality greater than one.

MyBAPI.MyStructure.addElement(int arg0, IWDNodeElement arg1)

MyBAPI.MyStructure.addElement(IWDNodeElement arg0)

Incase the MyBAPI node is a model node you could also use

MyBAPI.MyStructure.bind(Collection arg0)

Thanks and Regards,

Sam Mathew

diegohs
Active Participant
0 Kudos

Ey Sam, good hint 😃 It solved my problem, I created a collection and then bind it

Thanks !

10 well earned points

Answers (0)