Skip to Content
0
Former Member
Jul 02, 2007 at 10:03 AM

hI

12 Views

Hi,

I am writing a program to update the record

iam getting the following error in the program that

ztab_ac is not expected.

  • TABLES WORK AREA

TABLES: ZTAB_AC.

ZTAB_AC-MANDT = SY-MANDT.

ZTAB_AC-SERAILNUMBER = '00020'.

ZTAB_AC-ACCOUNTNUMBER = 'A100'.

  • INSERTING RECORDS

INSERT ZTAB_AC.

IF SY-SUBRC EQ 0.

WRITE:/ 'NO OF RECORDS INSERTED', SY-DBCNT.

ENDIF.

  • UPDATING RECORDS

UPDATE:/ ZTAB_AC SET ACCOUNTNUMBER = 'AA100', WHERE SERAILNUMBEER = '00020'.

IF SY-SUBRC EQ 0.

WRITE:/ 'NO OF RECORDS UPDATED', SY-DBCNT.

ELSE

WRITE:/ 'NO OF RECORDS UPDATED'.

ENDIF.