2011 Mar 08 1:42 PM
Hi Expert,
I want content of table in event of table maintenance generator (Event 01 - Before Saving Data in Database).
can you please tell me that how can i achieve this value of whole table in this event.
Regards,
Chintan Shah
2011 Mar 08 1:51 PM
Hi,
If you have created the procedure (form) for the 01 event, then you can access a structure with the same name as the table will hold the data. For example, if the table is ZTEST and has the field MATNR you can access ZTEST-MATNR inside the procedure.
Regards,
Ozcan.
2011 Mar 08 1:51 PM
Hi,
If you have created the procedure (form) for the 01 event, then you can access a structure with the same name as the table will hold the data. For example, if the table is ZTEST and has the field MATNR you can access ZTEST-MATNR inside the procedure.
Regards,
Ozcan.
2011 Mar 09 5:09 AM
Hi,
Thank you for your reply ZTEST-MATNR contains current value. I want whole data(All the value of matnr of table) of table in 01 event.
Regards,
Chintan Shah
2011 Mar 09 5:20 AM
Hello,
In Event 01 of the TMG you've access to a special internal table "TOTAL" which will contain the data which has been read, changed, created.
Alternatively if you want to find the "existing" records you can use the FM 'VIEW_GET_DATA'.
BR,
Suhas
2011 Mar 09 8:39 AM
Hi suhas,
By using VIEW_GET_DATA i got data of table. but when i m using error message in event 01 it will directly end current
table maintaince generater screen.
e.g. MESSAGE 'Dulicate Record Exist' TYPE 'E'.
Regards,
Chintan Shah
2011 Mar 09 8:51 AM
Hi ,
Try this..
In event 01
MESSAGE 'Dulicate Record Exist' TYPE 'S' display like 'E'.
*--->It will stop save functionality
vim_abort_saving = 'X' .