XQL query to discover the metadata for the FIELDS of SAP Query ZTHEOSQUERY.

DESCRIBE QUERY 'G|ZTHEO1|ZTHEOSQUERY' GET FIELDS

XQL query to execute SAP function module SD_RFC_CUSTOMER_GET using the Export parameter KUNNR. The SAP table CUSTOMER_Twilldurch die Syntaxbeschreibung INTO @RETVAL definiert.

EXECUTE FUNCTION 'SD_RFC_CUSTOMER_GET' 
EXPORTS KUNNR='0000003340' 
TABLES CUSTOMER_T INTO @RETVAL;