SAP Knowledge Base Article - Preview

1852009 - Error: ‘/CRYSTAL/OSQL_EXECUTE_QUERY…’ when refreshing reports based off SAP Tables in Crystal Reports

Symptom

  • Some reports generate the error: 

    "Database Connector Error: ‘/CRYSTAL/OSQL_EXECUTE_QUERY returned: subrc: 4.
     Message: Incorrect nesting: Before the statement “ENDFORM”, the structure introduced by “IF” must be concluded with “ENDIF”… Line: 174/ Word:0’"
     
  • When refreshing reports based off SAP Tables in Crystal Reports, it generates an error.
  • After applying a product update to Crystal Reports, some reports that uses linked SAP Tables fails with an error.


Read more...

Environment

  • SAP Crystal Reports 2008 with Fix Pack 5.3 and above
  • SAP Crystal Reports 2011
  • SAP Crystal Reports 2013

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports 2011 ; SAP Crystal Reports 2013

Keywords

CR, ERP, ECC , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.