Skip to Content
0
Oct 02, 2009 at 07:39 AM

Use of DD_DATABASE_UTILITY in loop

35 Views

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