SAP Function /SDF/MON_DB_WP_CURRENT_SQL - Get current SQL Statement

Parameter Reference Type Length Default Optional Text
INSTANCE MSNAME2 C 40 X Logical destination (specified in function call)
WP_PID WPINFO-WP_PID C 8 X Work process PID

Parameter Reference Type Length Text
SOURCE_REF PROG_REF_T u 44 Reference to Assignment in ABAP Program
SQL_LEN I I 4 Reference to Assignment in ABAP Program
SQL_TEXT /SDF/CHAR30000 C 30000 Reference to Assignment in ABAP Program

Exception Text
ERROR
ROUTING_ERROR Routing error