How to add multiple table when creating add on using b1de

Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
Thanks

Hi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
        Try
            Dim lRetCode As Long
            Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
            oUDT.TableName = TableName
            oUDT.TableDescription = TableDescription
            oUDT.TableType = TableType
            lRetCode = oUDT.Add
            '// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
            If lRetCode <> 0 Then
                oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
            End If
        Catch ex As Exception
            oApplication.MessageBox(oCompany.GetLastErrorDescription)
        Finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
            oUDT = Nothing
            lRetCode = Nothing
            GC.Collect()
        End Try
Add User Field
Try
            Dim lRetCode As Long
            Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            oUDF.TableName = TableName
            oUDF.Name = FieldName
            oUDF.Description = FieldDescription
            oUDF.Type = FieldType
            lRetCode = oUDF.Add
            '// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
            If lRetCode <> 0 Then
                oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
            End If
        Catch ex As Exception
            oApplication.MessageBox(oCompany.GetLastErrorDescription)
        Finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
            oUDF = Nothing
            lRetCode = Nothing
            GC.Collect()
        End Try
Regards,
Vítor Vieira

Similar Messages

  • How to hide multiple XsltListViewWebPart when they are empty using OOTB or script?

    Hello,
    I have a SharePoint 2013 page that displays a few XsltListViewWebParts i.e.(Lists).
    All the lists contains rows of data when we open: 
    http://Server/Pages/MyPage.aspx
    But, We have some customized filters and views in place, and when we open e.g.: http://Server/Pages/MyPage.aspx?FilterField1=LinkTitle&FilterValue1=250
    The page opens correctly, But all the XsltListViewWebParts which do not meet the filtering will still be shown but as empty web parts - How to hide those?
    In other words, In my SharePoint 2013, How to fully hide multiple XsltListViewWebParts on a page when they are empty ?
    I have already tried:
    http://mmman.itgroove.net/2014/06/22/hiding-empty-sharepoint-web-parts-using-javascriptjquery-on-a-dashboard-page/
    http://sharepoint.stackexchange.com/questions/340/setting-displaynone-for-empty-web-part-zones
    https://social.technet.microsoft.com/Forums/en-US/f26383dd-b53d-4ffa-8075-0ef8e46ab0b1/hide-list-view-web-part-when-list-is-empty?forum=sharepointgenerallegacy
    Nothing works - Am I doing it incorrectly or am I missing anything ?
    I would be thankful for your suggestions !

    Hi,
    The problem was due to JQuery is not loaded in the page.
    Please follow the steps given in the URL :http://mmman.itgroove.net/2014/06/22/hiding-empty-sharepoint-web-parts-using-javascriptjquery-on-a-dashboard-page/ 
    Instead of referring the JQuery link provided in that page, use the Google CDN (<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> )Link in script editor before calling 
    $(document).ready(function(){
         setTimeout(waitForSPReady, 100);
    Thanks.
    A'Kumar

  • How to see multiple tables on the same screen using Mac Numbers?

    I'm working with a spreadsheet on Numbers (iWork '08) on my Mac. I have three worksheets that each have one table in them. I'd like to be able to see two of the tables simultaneously. Similar to the "Tile" function that I used to use in Microsoft Word. Does anyone know if something like this exists? Googled for it until I was blue in the face and went back at least 500 threads here!!!

    Jon,
    This will seem so easy once you get it. In the Sheets Pane, drag tables from one sheet to another until you have all three in one sheet. Then go to that sheet and arrange the tables to your liking.
    I should note that you will need to make sure that the Sheet icons are expanded: click on the triangle next to the Sheet icon until it points downward and reveals the sheet content.
    Regards,
    Jerry
    Message was edited by: Jerrold Green1

  • How do i add photos to the photo array when creating a book using iphoto 8.1.2?  the book doesn't accept the albums and foldlers i drag and drop.

    how do i add photos to the photo array when creating a book using iphoto 8.1.2?  the book doesn't accept the albums and foldlers i drag and drop.

    I'd suggest you ask this question in the iPhoto forums:
    iPhoto
    Posting here is unnecessarily limiting the people who'll see your question to those running iMacs.
    Regards.

  • How enter the values in to table when create entries option is not working

    hi everyone,
         can u please tell me How enter the values in to table when create entries option is not working.
    it's urgent.
    thanking u all

    Hi Shree,
    how many entries u want to insert ,,
    is it a ztable or custom table ..
    just tell me ur clear requirement ..
    clarify the same ..
    if no options avaliable then if its less entries or some value u can do it through debugging ..
    if its bulk entries then u can write a program ..
    just let me know ..
    regards,
    VIjay

  • Is it possible to add additional fonts when creating an iPhoto book?

    Is it possible to add additional fonts when creating an iPhoto book?
    I have some additional fonts that would add a lot to the overall appearance of my i Photo book but cannot find a method for installing them into iPhoto.
    Thanks for your assistance.
    <Email Edited By Host>

    Use the Edit ➙ Shot Fonts menu option to bring up the Fost selection pane. 
    From there you can select any font you have installed on your Mac.
    OT

  • How to handle multiple tables data in Entity Beans?

    How to handle multiple tables data in Entity Beans?
    i mean, my bean (non trivial) is responsible for frequent
    insertion in one table and some deletion on another table.
    Can anyone of you...please..?

    Is your data model right? If you are adding in one and deleting in another it sounds to me more like a process that an entity, in which case you may revisit your data model and simplify it, add in a session bean with the process method to co-ordinate between the two.
    However, if you want to map multiple different tables within a single entity bean it is possible and just part of the mapping. How you actualyl specify it depends on which implementation you are working with.
    Cheers,
    Peter.

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

  • How to display multiple tables from database using netbeans swing gui

    plz reply asap on how to display multiple tables from database using netbeans swing gui into the same project

    Layered Pane with JTables or you can easily to it with a little scripting and HTML.
    plzzzzzzzzzzzzzzzzz, do not use SMS speak when posting.

  • How to drop multiple tables in SQL Workshop

    Hi,
    I'd like to drop multiple tables in one time but
    SQL command processor returnes error message: ORA-00933.
    Could you please tell me how to drop multiple tables in
    one time?
    My trial was follows
    Drop table "table1", "table2"
    Result
    ORA-00933: SQL command not properly ended
    Regards,
    Hideki Sakamoto

    Hideki,
    SQL syntax permits you to specify only one table in a DROP TABLE command.
    The SQL Command Processor permits you to run one statement or PL/SQL block per submission.
    So there are at least two ways you can do this. You could either upload or create a SQL script in SQL Workshop which contains your multiple statements:
    drop table "table1"
    drop table "table2"
    or you could execute a single anonymous PL/SQL block in the SQL Command Processor, as in:
    begin
    execute immediate 'drop table "table1"';
    execute immediate 'drop table "table2"';
    end;
    Joel

  • How to register the recipient when create job by function

    I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
    Can you tell me how to register the recipient when create the job.
    ( in sm36, it is easily to do but how to do in coding? )
    regards,
    slam

    Hi
    I think in Back ground using the above fun modules you can't send a mail to the receipient.
    see the use of the above fun modules;
      IF p_bjob = 'X'.
        CONCATENATE sy-cprog sy-datum sy-uzeit
                    INTO jobname SEPARATED BY '_'.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = jobname
          IMPORTING
            jobcount         = jobcount
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          IMPORTING
            out_archive_parameters = arc_params
            out_parameters         = print_params
            valid                  = valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF valid = chk.
          SUBMIT ybrep
                          WITH < sel Screen>
                          AND RETURN
                          USER               sy-uname
                          VIA JOB            jobname
                          NUMBER             jobcount
                          TO SAP-SPOOL
                          SPOOL PARAMETERS   print_params
                          ARCHIVE PARAMETERS arc_params
                          WITHOUT SPOOL DYNPRO.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = jobcount
              jobname              = jobname
              strtimmed            = 'X'
            EXCEPTIONS
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              invalid_target       = 8
              OTHERS               = 9.
          IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            MESSAGE i029 WITH jobname.
          ENDIF.
        ELSE.
          MESSAGE s000 WITH text-003.
          STOP.
        ENDIF.
      ENDIF.
    Reward points if useful
    Regards
    Anji

  • How to lock a table when i insert a row

    hi, friends,
    how to lock a table when i insert a row, then unlock the table

    If you want to lock the whole table so that no-one else can do DML then you go LOCK TABLE <table> IN EXCLUSIVE MODE. This lock remains in force until you commit or rollback.
    There are less powerful locking modes available, but you can look those up in the OTN online documentation.
    APC

  • HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLY

    hello i m new to sqldeveloper so plz dnt laugh if m asking silly question
    HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLY

    Use the 'pin' on your table editor
    http://www.thatjeffsmith.com/archive/2011/11/sql-developer-quick-tip-pin-query-result-sets-and-plans/
    Then open your 2nd table. If you want to see both at the same time, right-click on the table editor tab and select 'New Editor Tab Group'
    Not a silly question, but no need to shout :)

  • How significant is the yellow hazard warning for pictures when creating an album using IPhoto?

    How significant is the yellow hazard warning message for pictures when creating an album using IPhoto?

    Are you talking about making a Book?
    How siginificant depends on how low resolution the photo is and how sensative you are to poor prints - it displays when a -photo will print below 180 dpi - what is the DPI of the photos that is givingyou the warning (the photo size divided byt the pixel size)
    LN

  • HT4199 how do I fix it when "another device is using computer IP address" and I can't get wireless to work anymore? It used to work fine.

    How do I fix it when "another device is using computer IP address"? Airport used to work fine. I've already tried turning everything on and off several times.

    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    Power-up the modem; wait at least 10-15 minutes to allow it adequate time to initialize.
    Power-up the AirPort base station; wait at least 5-10 minutes. Note: The AirPort's status light may continue to flash amber after it has intialized. That is because, there may be some additional configuration items necessary, like setting up wireless security, before the overall setup is completed to get a green status.
    Power-up your computer(s).
    If the above steps do not solve the problem, start over with step 1 above, but then perform the next steps between steps 1 & 2. above.
    Disconnect the AirPort base station from the Internet broadband modem.
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Reconnect the AirPort base station to the Internet broadband modem. For the Extreme and Time Capsule, be sure to connect the cable to the base station's WAN (circle-of-dots) port.
    Continue with step 2 in the first set of steps.
    In this basic configuration, the AirPort base station will broadcast an unsecured wireless network with a Network Name (SSID) of Apple Network NNNNNN. Network clients, connected to the base station either by wire or wireless, should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options. Please post back your results.

Maybe you are looking for

  • How can I edit my "identity email" in iCloud?

    I accidently logged into icloud thur my ipad first. Not realizing  this would cause me problems. Now the new me.com account I created is the primary identity for the cloud. I cannot edit or remove that me.com to primary account of hotmail.com. When I

  • Quicktime no longer plays my mp4's smoothly since i updated my system, any thoughts ?

    I have been enjoying my Gopro Hero and playing mp4's on my Macbook. I updated the book from 10.5.8 to 10.7.5. With the upgrade Quicktime got upgraded to 10.1. All other aspects of the upgrade work fine however mp4s that played smoothly before are now

  • How to create a URL in CRM 2007?

    Hi, Please guide me on how do I create a URL in SAP CRM 2007? Which transaction codes? Regards, Rohit

  • Beginner needs Java applet Help!!!

    I would be greatful if someone could answer any of the questions below following the description, thank you: Description: There are 3 textFields, 3buttons(add,delete,display), and 1 textArea on my applet. User types their "name" in the first textFiel

  • System Monitoring - KASEYA vs LABTECH vs OTHER?

    I am evaluating different monitoring applications and am wondering what Spiceworks Users have to say (or what vendors will promote / push ;-) )In particular, I want to be able to CENTRALLY monitor at the minimum the following across multiple client s