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

SQL KEYWORDS

Former Member
0 Likes
598

HI,

How can you write UPDATE and MODIFY statments on data base tables like MARA, EKKO etc...?

4 REPLIES 4
Read only

Former Member
Read only

Former Member
0 Likes
567

MODIFY mara from table it_mara.

insert into mara from table itab.

populate data into internal table n then do above way....

but this is not advisable...

use BDC for that.....as tehy r database tables.....n data should be validated....

using above statements validation is not done....

however if u use BDC validations will be taken care.,...

Read only

Former Member
0 Likes
567

Hi,

UPDATE sflight SET seatsocc = seatsocc + 3

WHERE carrid = 'LH' AND

connid = '0400' AND

fldate = '20010228'.

DATA: wa TYPE scustom.

wa-id = '12400177'.

wa-name = 'Robinson'.

wa-postcode = '69542'.

wa-city = 'Heidelberg'.

wa-custtype = 'P'.

wa-discount = '003'.

wa-telephone = '06201/44889'.

MODIFY scustom FROM wa.

Assign points if useful

Read only

Former Member
0 Likes
567

Yes, but it's bad practice. When SAP updates one of their standard tables, they often update others as well. It's important for them to be kept in sync. Standard SAP transactions or BAPIs are the way to update standard SAP tables.

Rob