cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to store data into the Table(R/3)

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

check with your ABAPer and also SM21, SM13 etc for more info.

Former Member
0 Kudos

Hi manoj,

I think i got a clue, it seems that i did not have permissions to modify the Z-table from portal.

how can i assign permissions to the table to store data remotely.

Thanks

vijay

Former Member
0 Kudos

Hi manoj,

I think its not the permission issue.

can u share the java code to update multiple records into the table thru the RFC.

Thanks

vijay

Answers (1)

Answers (1)

Former Member
0 Kudos

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);