34
Views
1
Comments
Solved
Calling SAP BAPIs - trouble setting input parameters (list)
Application Type
Reactive
Service Studio Version
11.53.21 (Build 61476)

Hi everyone, 


I'm trying to call a SAP bapi, which requires me to pass a list containing user details. I want to assign the list with the following details:



BAPI being used:


client action:



So far I haven't been able to call the bapi using my desired paramters. All my calls gives me the msg of "please specific a username", when I've been trying to call the BAPI using VICARST. 
Also try tried appending the list:

But I'm not sure what element is supposed to be filled with? I thought there would be three inputs since my list has 3 attributes but there's only one in the append action? 

I've tried reading this but I don't understand how to append my list properly:
https://www.outsystems.com/forums/discussion/20381/how-to-pass-table-parameter-from-outsystemss-to-sap-remote-functions-bapi/

2019-06-15 21-39-22
Afonso Carvalho
 
MVP
Solution

Hello Christopher,

Appending the element to your list would be a good way to test the BAPI you are invoking.

You created a local variable named "Var1" (I'm assuming that it is of the List type), and you're are trying to append to it. What you can do is create another local variable of the type that your List uses.

Here's an example - you have two variables:

ApplicationList is a List of Applications:

Application is the base element that is used in ApplicationList:

You can set the properties of your base element, and then append it to your List variable. In your example, try checking the data type of the Del_Users_In input - this data type should match your local variable list and local base element.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.