on 11-20-2007 11:32 AM
Hi all,
i want to implement 1)INSERT 2)UPDATE 3)DELETE actions in webdynpro application means i have to add a new record to my R/3 backend and update and delete records from my database
can anyone tell me how to do these actions
Regards
Padma N
Hi,
You need to have BAPIs for performing all the operations.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Padma,
You need to create a seperate BAPI or insert or delete or can incorporate all the things in the same BAPI. Import this BAPI in your WD project and then pass the necessary parameters specified in the BAPI to insert your record.
Your insertion query would be written inside your BAPI.
Regards,
Murtuza
Hi Murtuza ,
I have 2 views in my application.In the first view i enterd some purchaseorder number and clicked serarch button.The items regarding that purchaseorder gets populated in the table which is in second view.All the data is in R/3 backend system.
the code i used to get the details of that particular purchaseorder is
try {
wdcontext.currentZ_Matrls_For_Inputlement().modelObiect.execte();
}
catch(RFCException e){
/* Catch the Exception Here */
}
Here now i want to delete one record of that particular purchaseorder from the database.So Wat should be the code to delete record from R/3 Model
Regards
Padma N
Hi Padma,
You don't have to write the logic for deleting the record from R/3 in your WD application.
Ask ABAP guy to create a BAPI for your which takes in the purchase order number as an input and delete the record from R/3 for the corresponding purchase order number.
The method for executing that BAPI would be same as you have mentioned. You just need to execute the BAPI. All the logic to delete the record in the R/3 would be handled in BAPI itself.
Hope, I am clear now.
Warm Regards,
Murtuza
Hi Padma
You need to write a BAPi to insert, update, and delete your records. In that bapi create one input parameter for insert or update or delete the records. Based on that flag you need to write logic in the ABAP code.
Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.