cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to insert through Adaptive RFC

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sukanta,

First of all u r not calling the transaction commit,If ur bapi has internal commit,then its not a problem but if its doesn't then even if data is getting passed to R/3 system,it will not get saved.

2nd u r telling that u r unable to execute the bapi,have u checked in debug mode whether its going to r/3 or not??

logon to r/3 system->go to se37->put an external breakpoint in that bapi

then execute ur application.So atleast u can find out whether its goin to r/3 or not.

regards

Sumit

Former Member
0 Kudos

Hi Sumit,

thankx for responding

1)There is no internal commit in Bapi so how to do commit in webdynpro externally i dont have any idea as i am new to SAP.

2) i provide external breakpoint by activating in abap but while excuting its not hitting the break poin. ( i am using same userid for model as well as sap gui)

regards

sukanta

Former Member
0 Kudos

Hi Sukanta,

For commit u have to call the commit bapi , but make sure its a part of same model what u r using for inserting the data.

Can u give me the steps what u gave for debugging ??

regards

Sumit

Former Member
0 Kudos

hi

for break point

i am logging in to r/3 system-> then in se37->putting an external breakpoint in that rfc where i am providing same userid which i used while creating model then execute my application.

regards,

sukanta

Answers (0)