Skip to Content
Former Member
Mar 23, 2012 at 05:24 PM

CRYSTAL/OSQL_EXECUTE_QUERY returned: subrc: 4( Crystal Reports 2008 against ECC FMs)


Dear Community,

We are on BOBJ 3.1 SP3. Build Number: 812 Product Version:

Out of curiosity, Is there a limit in Crystal Reports in handling ABAP function based long text fields. We have close to 10 long text fields required for reporting.

I was able to extract 9 long text fields to the report. The 10th long text gave the error:

Error: "Database Connector Error: '/CRYSTAL/OSQL_EXECUTE_QUERY returned: subrc:4. Message: The size of structure(540016 bytes) exceed the maximum length of 52487 bytes..Line 48. Word:0.'

Here the specifics of the Function Module if this helps.

Input parameters - Project ID

10 Export parameters of datatype Char with length-30000

I found certain posts in the community on error message above, but didnt find a specific post or SAP note regarding the structure size.