2023 Jun 02 3:04 PM
Hi Expert,
I am trying to create a FM like /SAPDC/RFC_READ_TABLE2 In this table tab we put SQL query in option parameter.
SQL query is in combination of join two or more tables.
Once we pass SQL query which should return data of that tables.
Any one have similar code. please share.
Thank you,
Sumit
2023 Jun 02 3:23 PM
How do you handle security check?
Once this has been established with the administrator and security manager...
2023 Jun 04 7:11 AM
sumit2929
Hello,
Please be sure to use lower case letters in the title.
Regards,
Moshe
2023 Jun 04 9:09 AM
What you are asking is rather complex because you must consider CL_ABAP_DYN_PRG to detect SQL injection attacks. So, you should parse the SQL query to split it in pieces, but then your code might contain vulnerabilities, and consequently I'd advise to not pass a SQL query directly, but a list of structured tokens which are used to build the SQL query and on which you can easily apply CL_ABAP_DYN_PRG.