Skip to Content
author's profile photo Former Member
Former Member

Help

Hi everyone!

I have problem in execute query to delete and create a report with SQL 2000 in SAP.

Try

oForm.DataSources.DataTables.Item(0).ExecuteQuery("DELETE FROM rptReport")

Catch ex As Exception

End Try

oForm.DataSources.DataTables.Add("TestReport")

oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Number, RefDate, Memo into rptReport FROM dbo.OJDT")

oTable = oForm.DataSources.DataTables.Item("TestReport")

This code is error. I don't know how to execute 2 this sql command. Hope everyone help me

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 09, 2007 at 02:20 AM

    Is this an SAP Query created through SQ01? If it is a custom query created through ABAP commands, ABAP forum may be a better one to get more technical details.Here" target="_blank">https://forums.sdn.sap.com/index.jspa#42">Here is the link.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.