on 10-12-2009 10:20 AM
Dear All,
our requirment is to store few records into the Table in R/3.
We have update RFC which takes input arguments as AbstractList , the following is the code used to store data in the table(R/3)
Zhr_Update input = new Zhr_Update();
AbstractList list= new Zhr_Aprsl_Crs.Zhr_Aprsl_Crs_List();
for(in i=0;i<wdContext.DvelpmntCodes().size();i++)
{
crs= new Zhr_Aprsl_Crs();
crs.setcid(wdContext.DvelpmntCodes().getDvelpmntCodesElementAt(i).getcode(i));
crs.setDesp(wdContext.DvelpmntCodes().getDvelpmntCodesElementAt(i).getcodDesp(i));
crs.setYear(wdContext.DvelpmntCodes().getDvelpmntCodesElementAt(i).getcodeYear(i));
list.add(crs);;
}
input.setcrs_chr_data(list);
wdContext.Zhr_Update_Input().bind(input);
wdContext.nodeZhr_Update_Input().currentZhr_Update_InputElement().modelObject().execute();
The RFC is executing sucessfully without errors but data is not stored in the R/3 table
Thanks,
vijay.
Edited by: vijay krishna on Oct 12, 2009 11:21 AM
check with your ABAPer and also SM21, SM13 etc for more info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the following code to fix the issue
for(in i=0;i<wdContext.DvelpmntCodes().size();i++)
{
crs= new Zhr_Aprsl_Crs();
crs.setcid(wdContext.DvelpmntCodes().getDvelpmntCodesElementAt(i).getcode(i));
crs.setDesp(wdContext.DvelpmntCodes().getDvelpmntCodesElementAt(i).getcodDesp(i));
crs.setYear(wdContext.DvelpmntCodes().getDvelpmntCodesElementAt(i).getcodeYear(i));
input.addcrs_Obj_data(crs);
wdContext.nodeZhr_Update_Input().moveNext();
}
wdContext.Zhr_Update_Input().bind(input);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.