Menu

SAP Function Module DYNSQL_GENERATE_WHERE_CLAUSE

Dynamic SQL Generation (->ADK)

Recommended Now

All-new Echo Dot Smart speaker with Alexa

This bundle includes Echo Dot (3rd Gen) Charcoal and Philips Hue White A19 Medium Lumen Smart Bulb, 1100 Lumens. Built in Smart Home hub. Ask Alexa to control Zigbee-compatible devices. No additional Philips Hue hub required. Two choices for easy smart lighting - Start setting the mood with Hue Smart bulbs and your Echo device, supporting up to 5 Hue Bluetooth & Zigbee smart bulbs. Add the Hue Hub for whole-home smart lighting (up to 50 light points) and bonus features.

Check it out on amazon.com →

The Function Module DYNSQL_GENERATE_WHERE_CLAUSE (Dynamic SQL Generation (->ADK)) is a standard Function Module in SAP ERP and is part of the function group DYNS within the package VZ.

Technical Information

Function Module DYNSQL_GENERATE_WHERE_CLAUSE
Short Text Dynamic SQL Generation (->ADK)
Function Group DYNS
Package VZ
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
FIELDNAME_KEY_1 LIKE Field Label
FIELDNAME_KEY_2 LIKE Field Label
FIELDNAME_VALUE LIKE Field Label
OPERATOR LIKE Operator for FELD3

Exporting Parameters

This function module does not define any EXPORTING parameters.

Changing Parameters

These are the CHANGING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
KEY_1_IS_IN_WHERE_CLAUSE TYPE C Return flag
KEY_2_IS_IN_WHERE_CLAUSE TYPE C Return flag

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ALL_VALUES_KEY_1 LIKE Table with allowed values
ALL_VALUES_KEY_2 LIKE Table with allowed values
CONTROL_TABLE LIKE DSQL5COL Tax table
VALUES_KEY_1 LIKE Table with partial quantity of values 1
VALUES_KEY_2 LIKE Table with partial quantity of values 2
WHERE_CLAUSE LIKE SDIT_QRY Table with generated where-clause

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
DYNSQL_TOO_LARGE Generated where clause is to great
FUNCTION_ALREADY_CALLED Function already called
KEY_VALUES_INCONSISTENT Entries in control tables are inconsistent
NO_ENTRY_FOUND Internal error
WRONG_ENTRY_IN_CONTROL_TABLE Entries in the control table not allowed