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

Problem use SQL query in coding report with SBO

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 hix hix! .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 08, 2007 at 09:08 AM

    but whatz the error???

    --Ragu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Raguraman Chandrasekar

      Hi!

      Problem is use two that query on .net platform in SAP application. So primary .net application is no problem. Did ExecuteQuery in SAP don't support "Delete and Select...From ...Into"???

      Help me, thanks so much!

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.