Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 12, 2009 at 10:22 AM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Oct 15, 2009 at 11:11 AM

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

    Add comment
    10|10000 characters needed characters exceeded