Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

database tables

Former Member
0 Likes
1,204

how to modify data of a database table through screens

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
1,186

Hi ..

To modify DB table you have to code the SQL statements in the module pool.

INSERT <DBTABLE> FROM <WA>.

UPDATE <DBTABLE> SET field = <wa-field>

where <condition>.

here the WA is the work area of the Screen fields.

Hope this helps u.

<b>Reward if so.</b>

11 REPLIES 11
Read only

Former Member
0 Likes
1,186

hi

once u modufy ur screen... say the user clicks on a check box... then this will be stored in the screen work area... modify the corresponding entry in the internal table... and then finally update ur database table... use lock table concept while doing this

<b>

please reward points if useful</b>

regards,

raksha

Read only

0 Likes
1,186

can u plz send me any data abut lock table concept..

Read only

0 Likes
1,186

the below link can provide you thr concept of locking table

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eef3446011d189700000e8322d00/frameset.htm

Read only

0 Likes
1,186

thanx 4 sending d link

Read only

former_member196299
Active Contributor
0 Likes
1,186
Read only

varma_narayana
Active Contributor
0 Likes
1,187

Hi ..

To modify DB table you have to code the SQL statements in the module pool.

INSERT <DBTABLE> FROM <WA>.

UPDATE <DBTABLE> SET field = <wa-field>

where <condition>.

here the WA is the work area of the Screen fields.

Hope this helps u.

<b>Reward if so.</b>

Read only

Former Member
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,186

Hi,

If table maintenace is allowed, use SM30 for that.Otherwise in SE16, select the particular record in output.Double click it and then put /h for debugging.In debugging mode press F7 until it reaches code value = SHOW.Then in debugging change code = EDIT.Then F8, you can change the values.

Hope it helps you and it is not for standard tables.

Kindly reward points by clicking the star on the left of reply,if it helps.

Read only

Former Member
0 Likes
1,186

Hi Karthik,

Use Table Maintainance generator.

Go to se11 and display the table .

From the menu --> Utilities --> Table maintainance generator

Regards

Arun

Read only

former_member188827
Active Contributor
0 Likes
1,186

hi

collect data from screen into a work area and den use

modify<table> from wa.

Read only

Former Member
0 Likes
1,186

Hi Karthik,

Once you develop Screens using PARAMETERS or SELECT-OPTIONS or through customized SCREENS, you get the data entered by the user and store them in your dta objects.

After that create Internal Tables or a Work Area according to the Row Type of the Database Table and pass the data provided by the user on the screen.

You can use OPEN SQL statements, to update the database.