Skip to Content
Former Member
Aug 04, 2009 at 03:15 PM

Help in design methods


HI ,

i want to know if there is performance aspects and good design i do the operation in good way ,

this is regards insert , update , modify

I do read opration from the DB tables and i need to create or update the value

1. if sy-subrc = 0 i check if the data that i get form the

DB is equel to the data that i have, if yes dont do anything .

2. if sy-subrc = 0 and some records are different - > do update

3. if sy-subrc <> 0 - > insert the records to the DB via insert commend

i know that modify do both update and insert but my question if for my case

its good to separate the operation for two method despite i can do that in same method

1. methods handle insert

2. method Handle update