I tried to use the IAM API to connect SAP with a NW Java application, I added an HTTP Connection in SM59 with type G (HTTP Connection to External Serv).
And when I call the BAPI BAPI_USER_GETLIST, the program dumps with error:
Illegal destination type 'G'.
Here is the used code :
* Call the API
call function 'BAPI_USER_GETLIST' destination rfcdest
exporting
* max_rows = 0
with_username = withname
importing
rows = sel_rows
tables
selection_range = sel_range
* selection_exp =
userlist = user_list
return = return_tab.
The error :
I would like to know if there is a way to fix this issue ?