cancel
Showing results for 
Search instead for 
Did you mean: 

Problems when creating a new instance of an Input parameter for a REM

Former Member
0 Kudos

I am working in a small demo which calls a Remote Enable Function Module in order to read data from the back end system. Since the function module I need to call ("BP_BUPA_SEARCH_BY_USER") is not Remote Enable I created a copy of it and made it Remote Enable ("Z_BUPA_SEARCH_BY_USER"). I have created the model within webdynpro without any problems but when my application reaches the line where I create a new instance of the object Z_Bupa_Search_By_User_Input (see below the source code), just before to call the remote function, the application stops there. I have exactly the same code in another bapi calls and it works fine. I am wondering if my problem has anything to do with the fact the function module i am calling is the function module I created. Any advice is very welcome.

Regards,

Diego.

Source Code:

msg.reportSuccess("------>>>"); "THIS LINE IS PRINTED

Z_Bupa_Search_By_User_Input searchByUser =

new Z_Bupa_Search_By_User_Input(); "PROGRAM STOPS HERE

msg.reportSuccess("<<<------"); "THIS LINE DOES NOT

wdContext.nodeZ_Bupa_Search_By_User_Input().bind(searchByUser);

msg.reportSuccess("<----


");

msg.reportSuccess("if (Internet_User != null)");

if (Internet_User != null) {

Usselmodbe ir_user = new Usselmodbe();

ir_user.setSign("I");

ir_user.setOption("EQ");

ir_user.setLow(Internet_User);

searchByUser.addIr_User(ir_user);

}

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to get some more error info, e.g. like this:

try {

Z_Bupa_Search_By_User_Input searchByUser =

new Z_Bupa_Search_By_User_Input(); "PROGRAM STOPS HERE
} catch (Exception e) {
    msg.raiseException(e.getMessage(), true);
}

msg.reportSuccess("<<<------"); "THIS LINE DOES NOT

good luck,

Roelof

Answers (1)

Answers (1)

sridhar_k2
Active Contributor
0 Kudos

Hi,

It seems to be problem with Generated classes. Why don't try with the process once again.

Your code seems to be fine. I am using the same. It is working for me.

Regards,

Sridhar