[midPoint] SAP connector advice

InformationSecurity information.security at chl.lu
Wed Jun 11 12:02:10 CEST 2025


Hello,

We are using the SAP Connector documented here : https://docs.evolveum.com/connectors/connectors/com.evolveum.polygon.connector.sap.SapConnector<https://docs.evolveum.com/connectors/connectors/com.evolveum.polygon.connector.sap.SapConnector/>

We have successfully connected our SAP environment and are able to fetch the default data (accounts, profiles and activity groups). Now we are trying to fetch data from an arbitrary table, which we understood is supported using tables tag. Our issue is that one of the fields have data of variable length, i.e., descriptions, and we don't understand how to specify that this field can have values of different size and can be empty.

The SAP definition of the table is here: https://www.sapdatasheet.org/abap/tabl/agr_texts.html
Our definition in the connector: AGR_TEXTS as DESCRIPTION=MANDT:3:IGNORE,AGR_NAME:30:KEY,SPRAS:1,LINE:5,TEXT:80
Behaviour: any value in TEXT field smaller than 80 digits triggers an error "StringIndexOutOfBoundsException". If we remove the TEXT field from the definition it works perfectly, just of course without the TEXT value. If we use a smaller value, e.g., 30, then all TEXT values smaller than 30 trigger the error.

Can anyone help us on this subject please ?
Kind regards,
Thomas LARCHER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20250611/d54ec6da/attachment.htm>


More information about the midPoint mailing list