I am creating an app for storing user registration information via BAPI calls. The BAPI ZSD_PORTAL_REGISTRATION_INSERT has a table parameter DIVISION_INFO that gets populated with data from the view controller. When I execute the BAPI the response tells me the table was empty, as the ABAP code "IF DIVISION_INFO IS NOT INITIAL" check fails.
The class representation of the table parameter is Zzsd_Pt_Div_Reg. I tried the following code to hard-code data in the customer controller and still it fails...
Zsd_Portal_Registration_Insert_Input input = new Zsd_Portal_Registration_Insert_Input();
Zsd_Pt_Div div = new Zsd_Pt_Div();
Zzsd_Pt_Div_Reg div_reg = new Zzsd_Pt_Div_Reg();
div_reg.setDivision_Id("3A");
div_reg.setStatus("11");
Zzsd_Pt_Div_Reg_List lst = new Zzsd_Pt_Div_Reg_List();
lst.addZzsd_Pt_Div_Reg(div_reg);
//input.addDivision_Info(div_reg);
input.setDivision_Info(new Zzsd_Pt_Div_Reg_List());
wdContext.nodeZsd_Portal_Registration_Insert_Input().bind(input);
Any idea why the table parameter is not getting thru to the ABAP function module ? Please advise.