cancel
Showing results for 
Search instead for 
Did you mean: 

my requirement is to update a Backend table of r3

Former Member
0 Kudos

hii EP gurus

i need to update a backend r3 table with the values which are modified in the table which i m showing in the Webdynpro java. I have got the table as the export parameter in my bapi

Plz let be know how can i update the table

thanks in advance

johny

Accepted Solutions (0)

Answers (3)

Answers (3)

pravesh_verma
Active Contributor
0 Kudos

Hi Johny,

For such kind of requirement you need to have a BAPI written in the backend which can take some input parameters and can update the valeus in teh back end. Once you have such a kind of BAPI in plcae you can easily create a Adaptive RFC model using the model wizard provided by webdynpro.

Create a RFC model and call the save funtion with the inpur values.

Creation of Adaptive RFC model is really very easy. Please refer to following links for furtehr help on creation of adaptive RFC model:

1) https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c2....

2) [original link is broken]

3) http://help.sap.com/saphelp_nw70/helpdata/EN/6a/11f1f29526944e8580c5e59333d96d/frameset.htm

I hope this helps you! If you need any furtehr clarification please let me know.

Thanks and Regards

Pravesh

Former Member
0 Kudos

Hi Gurus,

if you want to updated singel row..you should follow lead silection of that row..

firstly you just insttiated your internal table ..

suppose-your bapi model-Zcup_updateData_input --

your Action --onupdateAction..

//if you wnat to update the backend(R3)

Public void onUpdateAction(Event){

Zcup_updateData_input inp=new Zcup_updateData_input ();

wdContext.nodeUpdateData().bind(inp);

//create internal Class..where you set data as dynamicaly update R3 table

zup_update inm =new zup_update ();

inmot .setName(wdcontext.node<yourcustom node>Element().get<yournode>ElementAt(leadselslection).getName();

inm .setCity(wdcontext.node<yourcustom node>Element().get<yournode>ElementAt(leadselslection).getCity();

//Update_node--here you set the data...and modify

inp.addUpdate_node(inmot );

wdContext.currentZcup_updateData_inputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

thanks

jati

Former Member
0 Kudos

hi

fetch the modified values from the table and set them to the R/3 table .

catch the size of the table .

for(int i=0;i<tablesize;i++)

{

if(wdcontext.node<tablename>.isSelected() )

String abc=wdcontext.currentcontext.getelementatindex(i).get<elementname>;

lly fetch all the values .

then set the values to the r/3 table as

ZExportTable etble = new ZExportTable().

etble.set(abc).

then bind to the table.

Former Member
0 Kudos

My requirement is i will be displaying a table in webdynpro with respect to the Id the user enters

what ever field the user modifies in table has to update in Backend r3 , means a set of values at a time.

and my bapi is having that this table in 'tables' tab in R3 the bapi is BAPI_PROJECT_GETINFO

thanks in advance

johny