Hi,
you normally don't send a SQL towards B1if, you use the Integration Framework (B1if) to send a query towards a third party system.
Please check the embedded B1i Online help for further usage:
- retrieve record via database inbound definition of a scenario step based on an event.
- a SQL call atom during the integration scenario processing.
- handover a SQL statement at the outbound of the integration scenario processing.
Additional information and some examples can be found on the SAP PartnerEdge.
The relevant chapter is Explore the Integration Framework for your business - built your own integration scenarios.
Training material: SAP PartnerEdge
Best regards
Bastian