cancel
Showing results for 
Search instead for 
Did you mean: 

How to save in database

Former Member
0 Kudos

Hi,

I was new to web dynpro..I want to design a screen with 10 fields which on clicking a button,it wnt to save in the Database table..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi mahesh......

consider your field names in the database as f1, f2, f3...... f10.

your table name is ztable.

you have 10 input fields i1,i2,i3.........i10.

all you have to do is:

ztable-f1 = i1.

ztable-f2 = i2.

ztable-f10 = i10.

insert ztable.

---regards,

alex b justin

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks

former_member205703
Participant
0 Kudos

Hi Mahesh,

When the save action is performed , in the action handler method read the node

to get the value of the input fields into the structure of the table in which you want to save this data.

Create a function module to save the data , having following code.

Modify <tabname> from <im_struct>.

Then call this function module in the action handler method.

Regards

Amol Deshmukh