cancel
Showing results for 
Search instead for 
Did you mean: 

Data from Table to Backend

former_member720137
Active Participant
0 Kudos

Hi Guys

I want to insert data from a Table( in a View ) to R3.. Though data is getting inserted but only one Row... I want all the Rows to be inserted.. Plz help...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Puneet,

I feel this is a question more on BAPI front !!

I mean the Functionmodule that you are calling should allow this kind of multirow update.Did you test the FM in the backend ??

Check this thread https://forums.sdn.sap.com/click.jspa?searchID=1107779&messageID=2739910

Regards,Anilkumar

former_member720137
Active Participant
0 Kudos

HI Anil...

Actaully i want to pass element from table one by one to Backend.. I wanted to know how to do this... FM is workin fine...

Thanks

Puneet

Former Member
0 Kudos

Hi,

In that read the table context elements one by one.

for(int i=0;i<wdCOntext.nodeTable().size();i++)

{

wdContext.nodeTable.getElementAt(i); //Read eleement

//Read the attributes by using Get wdContext.nodeTable.getElementAt(i).getAttributeValue("<<AtrtibuteName>>);

//Now set the Inputparameters to FM and execute

}

Regards, Anilkumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anil

I went through the link..

It says all about how to insert one row of data but not how to insert multiple rows.

i am able to insert one row of data bt not able to insert multiple rows of data at a time so that only one requsition number is generated for all the rows..

Thanks

Monika

Former Member
0 Kudos

Hi Anil

The code u have given i guess will call the bapi n number of times..

wat if i want to want to call the bapi once and want all the rows inserted..

m also doing the same one..

Thanks

Monika

Former Member
0 Kudos

Hi,

I found one thread which is answered the same.

Regards, ANilkumar