cancel
Showing results for 
Search instead for 
Did you mean: 

Change data via RFC

Former Member
0 Kudos

Hi,

in my application, i have a view which shows a data in a form. This data is shown as disabled. When user clicks on button "edit" it's changed to enabled and user can change values. After changing he can save the data with "save".

Now i need a "concept" doing the database access.

My idea is to "lock" the database row when user is clicking on "edit" button (are there standard rfc doing that??), on "save" button, data is transfer to the system and updated via update command in abap code. after this i need a commit work, right?

i user clicks "cancel" button or close the window and leave the application, i need to unlock the row, right?

Hope you can help to me to get the standard logic to it.

Kind regards,

Christopher

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can call an RFC function to lock your row.

then if the user saves the data, you call another RFC function to update data it will unlock your objects when you commit.

If the user chooses to cancel it's work, call another RFC function to unlock your objects.

You need 3 RFC functions.

regards

Former Member
0 Kudos

Thx for your answer, that was exactly my idea and how i have done this.