cancel
Showing results for 
Search instead for 
Did you mean: 

Create Event in webdynpro

former_member186783
Participant
0 Kudos

Hi Experts,

I'd like to create an event in java webdynpro here's the code:

(Of course I created the Model for the Sap_Wapi_Create_Event_Inputbut I didn't bind it anywhere is this a problem? )

Sap_Wapi_Create_Event_Input input = new Sap_Wapi_Create_Event_Input();

input.setObject_Type("ZHCM_ESS");

input.setObject_Key("test43");

input.setEvent("ON_CHANGE_INFO_TYPE");

input.setCommit_Work(true);

try{

input.execute();

}catch(Exception e){

e.printStackTrace();

}

The problem is: this code doesn't do anything. The event is not created by this RFC call. (I tried it in the ABAP side, callled this FM and the event was created)

Am I missed something?

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Ngastanek

You need to bind once you create the model node object for RFC.

Please refer to [Linking Remote Function Call to Web Dynpro|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90?quicklink=index&overridelayout=true] and search on SDN for more details..

Hope it will helps

Regards

Arun Jaiswal

former_member186783
Participant
0 Kudos

Thanks. I searched the net + sdn for some kind of document, but couldn't find anything.

Answers (0)