Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6186209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:50:49+00:00 2026-05-24T01:50:49+00:00

I am creating an SAP Business One add-on payroll application – EIMPayroll. I have

  • 0

I am creating an SAP Business One add-on payroll application – EIMPayroll. I have created an .ard file and I am able to install this add-on in SAP, ie, going to the add on manager and registering the payroll application using the .exe and .ard files.

However, on the machine that I install this add-on on, I have to manually import/create the Microsoft SQL server database "Eim_payroll.bak" on the computer for this add-on to run.

My question is, is there a way I can write the sql query to create the database and tables needed to run this application on a C# file and then package it together into the ard file such that it installs when I install the add-on in SAP?

I create the ard file using Visual Studio 2010 and using the SAP B1 AddOnInstaller .NET Wizard. My add-on is in C#.

Any help will be appreciated, including links on examples of how this is done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:50:50+00:00Added an answer on May 24, 2026 at 1:50 am

    Not sure what exactly you are asking. I believe you want to create user tables and user defined fields when registering the add-on in SAP.

    Try this, it may work. For creating tables:

    ousertable = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
    ousertable.TableName = "OEMP"
    ousertable.TableDescription = "Employee Header"
    lretcode = ousertable.Add
    If lretcode 0 Then
    ocompany.GetLastError(lerrcode, serrmsg)
    sbo_application.MessageBox(serrmsg)
    End If
    

    For creating table fields:

    ouserfield = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
    ouserfield.TableName = "@OEMP"
    ouserfield.Name = "empid"
    ouserfield.EditSize = "5"
    ouserfield.Type = SAPbobsCOM.BoFieldTypes.db_Numeric
    ouserfield.Description = "Employee id"
    lretcode = ouserfield.Add
    If lretcode 0 Then
    ocompany.GetLastError(lerrcode, serrmsg)
    sbo_application.MessageBox(serrmsg)
    End If
    

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I creating a web application using JSF,Hibernate,Spring. I have added a filter for checking
I've created proxy classes using svcutil with a given "SAP CRM" WSDL file. It
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
Creating a Blackberry app. Just a beginner, I have searched but couldn't find a
Creating function to print question, add choices to a list. def print_et_list (): answer_list
Creating a C# install package and I'd like on completed install for the Program
Creating simple php login scripts is easy, with simple one table mysql integration. I
Creating a login page in xcode 4.2 I have the users fill out information
I am building a Payroll application in C# (learning C#) that will integrate into
Creating an Iphone application, I used to perform INSERT QUERY on different databases. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.