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: 

Use of DD_DATABASE_UTILITY in loop

0 Kudos

Hi,

I have a scenario where a certain buffer z table needs to be cleared (all entries should be deleted). A RFC FM calls (call from CRM) several FMs one after another on BI. At the end of every called FM on BI this z table is being cleared by 'DD_DATABASE_UTILITY'. However on the first FM run on BI the buffer is locked & 2nd FM run gives a dump : "A newer version of data type "ZDE_MSA_BUFFER" was found than one required ". Now i use delete from z-table and it seems to work.

Is there a better way to handle this ? I have tried using lock objects-unlock & etc...but in vain.

Please let me know.

Best Regards

Neeraj

1 REPLY 1

Sm1tje
Active Contributor
0 Kudos

Deleting data from your own Z-table (beware for foreign keys if available, direct relations with other transparant tables) using the DELETE statement is fine.