Skip to Content
avatar image
Former Member

How to close SAP B1 Confirmation windows using UIAPI

How to close SAP B1 Confirmation windows using UIAPI.I have wrote below code in c#.net

((SAPbouiCOM.FormClass)(((SAPbouiCOM.FormsClass)(((SAPbouiCOM.ApplicationClass)(SBO_Application)).Forms)).ActiveForm)).Items.Item("1").Click(BoCellClickType.ct_Regular);

alert window is("You cannot change this document after you have added it. Continue?") yes or no.

I want to open the sap b1 document and close automatically using .net web application.

I am unable to close this windows.please help me.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 09, 2017 at 11:08 AM

    Hi Narasimha,

    I use this and works fine.

                    SAPbouiCOM.Form oForm = SBO_Application.Forms.ActiveForm;
                    oForm.Items.Item("1").Click();
    

    Did you receive any error on your code?

    Hope it helps.

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded