on 03-18-2009 10:22 AM
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
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.