Skip to Content
0
Former Member
Jan 12, 2012 at 08:00 AM

is there any precautions i need to follow for for database delete in WDA

103 Views

hello gurus,

i am very new to webdynpro for abap. i strucked at one point in my new developement.

first i will explain my requirement.

i developed one component . in that i have header information , item information table and two buttons which are RELEASE AND SAVE.

for this header and item i am getting data from standard BAPI. after that when i am click on RELEASE button it will generate first version like V001 in one field of header information and then next i click on SAVE button what ever the data prsent on the view it wiill stores in custom DATABASE TABLES. now i am going to change some header information data and changed succefully and click on RELEASE button it will automatically generates next version like V002 and click on save button to affect the modification for database. but in database(HEADER & ITEM) always i am going to save latest version details only.for this i have written logic in SAVE button. when i am click on SAVE button it will delete all previous data in HEADER and ITEM table and update the latest version details in both HEADER and ITEM DB tables. some times it is working properly as per my requirement and some times in header it is storing two version details and there is no data in item table.

is there any precautions i need to follow for for database delete and database updates in webdynpro abap.

guys could you pleasse give me a suggetions on this to avoid such a problem. from my side also i am trying strongly.

best regards,

raja