Hi Experts,
I am trying to insert records in database table, but its failing.
When I debug the statement, the CALL C_DB_FUNCTION returns sy-subrc 12.
Here is my code for insertion :
Create the SQL statement object
lo_sql_statement = lo_sql_connection->create_statement( ).
* To insert the records from internal table
lo_sql_statement->set_param_table( REF #( lt_materialid ) ).
* Prepare the SQL Statement
CONCATENATE 'INSERT INTO' c_tab_name 'VALUES( ?,? )' INTO
lv_sql_statement SEPARATED BY space. " #EC NOTEXT
* Execute the SQL statement
TRY .
lv_rows_processed = lo_sql_statement->execute_update( lv_sql_statement ).
CATCH cx_root INTO lx_root .
EXECUTE_UPDATE Method is not working.
Any reviews in this??
Thanks,
Sumit