Skip to Content
0

how to get SAP b1 system forms action events(Inser/Update Button click) in c# code.

May 09, 2017 at 11:58 AM

315

avatar image
Former Member

Hi ,

I am working on Add-on development for integration of another systems with SAP B1. My synchronization is depends on other add ons form (like Project Managmet --> Project related data Add Button click event ) Insert/update events... How I can access those events ?

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
DIEGO LOTHER May 09, 2017 at 12:05 PM
0

Hi Werner,

If you have the SDK installed on your machine, you can see the sample System Form Manipulation provided by SAP on the sdk folder instalation.

%PROGRAMFILES(x86)%\SAP\SAP Business One SDK\Samples\COM UI\CSharp\11.SystemFormManipulation

Kind Regards,

Diego Lother

Show 9 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi @ DIEGO LOTHER

Above SAP b1 system form(Add Project) Add button click event action need .

0

Hi Werner,

Did you look the sample? With the sample you are able to see how to manipulate the system forms.

Look the sample, and let me know if you have some doubt.

P.S: My sap version 9.1 PL 13 doesn't have this form still. This funcionallity was added on 9.2 version.

Kind Regards,

Diego Lother

0

Hi Werner,

It should be use something as below:

if (pVal.ItemUID == "1" && pVal.FormMode == 3 && pVal.BeforeAction == true && pVal.FormType == 234000045)
{
   // Write your logic here, if you need to validate the logic before adding the document.
}

Hope it helps.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

1
Former Member
ANKIT CHAUHAN

Hi @ANKIT CHAUHAN,

I know this above your given logic , but above i have attached screen shot is system related form , not a user created form. Normally user created forms button click logic, i know how to call button click action event. But here my question is how come know system related forms button click event, like same as below code. How come we know that form UniqId and ItemUID.

  • if (((pVal.ItemUID == "btnAdd") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) & (pVal.Before_Action == false)))
    {
    ClickedEvent();
    }
    Thanks,

0

Hi Werner,

Refer to attached image: (Point your mouse to the 'Add' Button and notice the information in the taskbar)

Hope it helps.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

0
Former Member

Hi Anikit Chauhan,

Yes by clicking View--> System Info, String Information can get Id's and other information.
But here my doubt is ,how come we know in this Add button click action event, once user inserted successful data into database . Like in my application i have created one sample add-on , Now user added project related information using Project system form (above attached image form). Now how come we know , Add button click event action and which data added, by using my sample add-on.

0

Hi Werner,

In that case, you need to use FormDataEvent as defined below:

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

Refer to "Handling Form Data Events" under SDK Help Center for more information on this.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

0
Former Member
ANKIT CHAUHAN

Hi ANKIT CHAUHAN,
Thank you for your suggestion , But i have already refereed this SDK documents about Events , those all information regarding UDF(User Created Forms) related events only.

0

Hi Werner Iten,

There have been too many questions in a single thread. I would request you to please close this thread by marking the correct answer and create a new one mentioning the original issue you are facing at the moment.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

0