Application Development 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: 

Get value of Table data in Event of Table maintaince generaor

0 Kudos
227

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

1 ACCEPTED SOLUTION

former_member848108
Active Participant
0 Kudos
160

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.

5 REPLIES 5

former_member848108
Active Participant
0 Kudos
161

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.

0 Kudos
160

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

0 Kudos
160

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

0 Kudos
160

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

0 Kudos
160

Hi ,

Try this..

In event 01

MESSAGE 'Dulicate Record Exist' TYPE 'S' display like 'E'.

*--->It will stop save functionality
vim_abort_saving = 'X' .