cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Add On Issue

Former Member
0 Kudos

HI Experts,

After execution/start of my add on and whenever i press TAB button, i am getting attached error.

Please let me know how to rectify this error.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

AdKerremans
Active Contributor
0 Kudos

Hi,

Can you pls add the attachment?

Regards

Ad

Former Member
0 Kudos
AdKerremans
Active Contributor
0 Kudos

Hi,

Can you post the code that executed when you start the addon?

Is the last command

System.Windows.Forms.Application.Run();

Regards

Ad

Former Member
0 Kudos

Hi Ad kerremans,

Thanks for reply....!

    static class Program

    {

        /// <summary>

        /// The main entry point for the application.

        /// </summary>

        [STAThread]

        static void Main()

        {

            //Application.EnableVisualStyles();

            //Application.SetCompatibleTextRenderingDefault(false);

            //Application.Run(new PurchaseRequisition());

            PurchaseProposal oPP = null;

            oPP = new PurchaseProposal();

            System.Windows.Forms.Application.Run();

        }

    }

}

Please find the above statement.

AdKerremans
Active Contributor
0 Kudos

Hi,

the code itself looks good, what does

oPP = new PurchaseProposal();


do?


Regards


Ad

Former Member
0 Kudos

Please find below statements for method PP fucntionality

        public PurchaseProposal()

        {

            SetApplication();

            if (SetConnectionContext() != 0)

            {

                SBO_Application.MessageBox("Failed setting a connection to DI API", 0, "ok", "", "");

            }

            if (ConnectToCompany() != 0)

            {

                SBO_Application.MessageBox("Failed connecting to the company's Data Base", 0, "ok", "", "");

            }

            SBO_Application.SetStatusBarMessage("RFQ Add On is initialising", SAPbouiCOM.BoMessageTime.bmt_Short, false);

            AddMenus();

            SetFilters();

            SBO_Application.MenuEvent += new SAPbouiCOM._IApplicationEvents_MenuEventEventHandler(SBO_Application_MenuEvent);

            SBO_Application.ItemEvent += new SAPbouiCOM._IApplicationEvents_ItemEventEventHandler(SBO_Application_ItemEvent);

            SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(SBO_Application_FormDataEvent);

            SBO_Application.RightClickEvent += new SAPbouiCOM._IApplicationEvents_RightClickEventEventHandler(SBO_Application_RightClickEvent);

            SBO_Application.SetStatusBarMessage("RFQ Add On Connected Successfully", SAPbouiCOM.BoMessageTime.bmt_Short, false);

        }

AdKerremans
Active Contributor
0 Kudos

Hi,

If you run in it your development environment do you also get an error or does  everything work fine?

Regerds

Ad

Former Member
0 Kudos

If i use/run the source code i am getting the error"Add-on 9000009 failed with exception; Event Type: 2" after pressing tab button.

If i make an ard file and run through addon, after pressing tab button i am getting above attached dialog box.

With Regards

AdKerremans
Active Contributor
0 Kudos

Hi,

I recommend to first find out what the error code in development mode means

"Add-on 9000009 failed with exception; Event Type: 2" "

Regards

Ad

edy_simon
Active Contributor
0 Kudos

Hi,

Get a B1 Event Listener to see what are the events thrown.

And check every code in all the events thrown after you pressed the tab button.

ie. Key Pressed, etValidate, etLostFocus, etGotFocus,

Regards

Edy