on 08-10-2007 2:36 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.