Skip to Content
0
Former Member
Aug 10, 2007 at 01:36 PM

Unable to insert through Adaptive RFC

10 Views

Hi

i am sending the code which i implemented in my programme where i am facing problem while inserting into R3 neither i am getting any error nor i am able to insert into R3. through JCO i tried but unable to execute the rfc. i will be greateful if any body provide solution to this issue.

// all binding i am doing inside controller's init

insert_input = new Zhr_Fun_Appl_Emp_Ref_Input();

//create object of structure in RFC

edu=new Zbapieduc();

quali=new Zbapiquali();

emp=new Bapiemploy();

//adding object to the input element

insert_input.addEducation(edu);

insert_input.addQualification(quali);

insert_input.addPrevious_Employment(emp);

//binding inputobject with current context

wdContext.nodeZhr_Fun_Appl_Emp_Ref_Input().bind(insert_input);

//executing the model inside the method which is defined in controller

//setting the value of input parameter and table parameter

try

{

wdContext.currentZhr_Fun_Appl_Emp_Ref_InputElement().modelObject).execute();

wdContext.nodeOutput().invalidate();

}catch(Exception ex)

{

}

//@@bapi objects

Zhr_Fun_Appl_Emp_Ref_Input insert_input=null;

Zbapieduc edu=null;//@@education

Zbapiquali quali=null;//@@Qualification

Bapiemploy emp=null;//@@experience

//@@end