10-20-2015 3:12 PM
Hey,
I need to raise an event in vb.net and handle it in a SAP Dynpro.
For some reason SAP doesn't get the event. I tried to register it, but didn't work out by now.
Maybe someone got an idea how to handle this?
10-20-2015 3:19 PM
Hi,
What is the exact requirement?
If you register any event in .NET it does not get to SAP by default. For me you have to call an RFC/Webservice if you want to interact with SAP from .NET. Then if you need to raise any Event (Workflow)inside SAP there are standard FM like SWE_EVENT_CREATE for this which can be called from that RFC/Webservice.
R
10-20-2015 3:25 PM
Hey,
For the beginning I just want a event handled in SAP.
So by now I'm pressing a button in my Dynpro which calls a sub in vb.net. This sub calls 'RaiseEvent controlEvent()' with controlEvent() as an event I created on my own.
Now SAP should just handle the event and do something like a pop-up message "event handled".
By now I created an event in VB.net and raised it there. In SAP I added an event with the same name, and registered it with `set_registered_events`. But that doesn't work out.
10-20-2015 3:31 PM
What type of dynpro it is where the button is located. Is is SAP Module pool dynpro? Or ABAP Webdynpro? BSP? Or some custom dynpro written in JSP/ASP/Javascript/HTML?
10-20-2015 3:34 PM
10-20-2015 3:41 PM
Then as soon as the button is clicked, that can be classified as the event. Sorry but I am not sure why you want to register an event in SAP? What are going to do with that that event?
Or if you want to perform some action on the VB side and based on some condition you want to do something back in SAP then still it makes sense to me and can be achieved via what I have said already in my first post.
10-21-2015 7:33 AM
We embedded a user control (written in vb.net) in a sap dynpro. Now we want that events triggered on the control to be handled in SAP. Such as leaving a textbox triggers an event that checks the value in it or something.
In vb.net I can raise and handle the event, but it is necessary to handle the event in SAP.
10-21-2015 9:54 AM
It does not happen automatically. From .NET you can trigger an RFC to do the job or simply raise an event by ABAP coding inside RFC.
So when you raise the vent in vb.net you also call an RFC which should do the job for you.
R