Skip to Content

Delete user table - Filed

Can anyone tell me how to delete the TABLE and FIELD i created .... using code.

PLEASE TELL ME TO WRITE THE CODE

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2010 at 10:25 AM

    Hello

    Use the Remove method .

    Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
            oUserTablesMD = oCompany.GetBusinessObject(BoObjectTypes.oUserTables)
    
            If oUserTablesMD.GetByKey("TABLE") Then
                oUserTablesMD.Remove()
            End If

    Regards

    János

    Add a comment
    10|10000 characters needed characters exceeded

    • no use.

      My concept is this..

      i have an excel file...with the table name and field name.

      i wrote the code to read the data from the excel file and also find the FIELD ID from the table.

      now i have both th table name and id in a string and int.

      Now i used your methos to delete the field but it doesnt work...

      Edited by: vibinvarghese on Sep 11, 2010 8:06 AM

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.