cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete in backend?

Former Member
0 Kudos

Hi all,

How to delete rows in backend by using webdynpro java?

Please provide code?

Regards,

Srini

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

jygft

Former Member
0 Kudos

Hi,

Please let us know following details:

a) What is the back end from which you want to delete rows?

b) Are you able to connect to DB from Web Dynpro application?

regards,

ganga

Former Member
0 Kudos

Hi,

I need to delete one row in table.If i delete that row the data in Bapi table ashould also need to delete.

Former Member
0 Kudos

Hi,

On the delete event call a BAPI which takes an import parameter (some unique key) in the table and code in your BAPI to delete that particular row. Once, the deletion from the backend is successful just delete the particular row from your context too so that it would not appear in the list on front end.

Regards,

Murtuza

Former Member
0 Kudos

Hi,

Please provide code.

Former Member
0 Kudos

Hi,

Code for which case do u need:

A) BAPI to delete that particular row

B) delete the particular row from your context

regards,

ganga

Former Member
0 Kudos

Hi,

code for A.

Former Member
0 Kudos

Hi Srinivasulu,

First you will have to import the BAPI into the web dynpro component.

Add the model to the used models of the component.

Create a binding between the model and component controller.

In the component controller instaniate the model class and bind it to the model node.

Create a method for the execution of the bapi.

You can access the following link for more information on how to call RFCs from Web Dynpro:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10c2c440-7f8c-2b10-7db0-dce34360...

In your case you can have a single model and import all the BAPIs in the same model.

Create the binding between the component controller and model. Create the model nodes for the BAPIs.

Create methods to execute the BAPIs.

On the action like approve or reject or save, parameters of the BAPI are set in the model node and the method which executes the required BAPI is called.

Regards,

Kartikaye

Former Member
0 Kudos

Hi,

Delete operation can be performed in RFC only.

Pass the table row that is to be deleted from WDJ to RFC and write the code for performing delete operation in the RFC.

Regards

Shruti