Skip to Content
0
Former Member
Sep 09, 2009 at 08:10 AM

Not able to update database?

25 Views

Hello gururs,

i have created a structure which contains data from mara and makt tables. now i want to data of this structure to my own created database table starting with 'z'. program is done in module screen, where user enters data. so when user hits save button, it select data from mara and makt and save it in 'z' database. now data is coming in strcure not passing it to database..

for that i have used following code.

data : i_tab type ztest_cm(standard table).

WHEN 'SAVE'. status in program

PERFORM UPDATE_DB.

SELECT SINGLE * FROM MAKT INTO CORRESPONDING FIELDS OF ZSTRUC_CM(structure) working

WHERE MATNR = ZSTRUC_CM-MATNR.

SELECT SINGLE MEINS FROM MARA INTO CORRESPONDING FIELDS OF ZSTRUC_CM working

WHERE MATNR = ZSTRUC_CM-MATNR.

MOVE-CORRESPONDING ZSTRUC_CM TO I_TAB. not working

UPDATE ZTEST_CM FROM ZSTRUC_CM. not working