Skip to Content

Rollback problem in pop-up screen of FM

I have ALV report with a custom button. When it is clicked FM to create new measurement document (MEASUREM_DOCUM_DIALOG_LIST_1 ) is performed with a dialog screen, where user can fill in details of the measurement document. If user saves changes everything is OK - a new document is created and the program returns to ALV report. The problem is when after filling in the form user leaves the popup window of FM by using the cancel button and then presses again the same custom button to enter a measurement document. Then during filling in the form there is the message "Measurement document <number> already exist at the measurement time you have entered".

I guess that statement "Rollback work" could help here, but I have no idea how to use it in this issue.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 12, 2017 at 08:01 AM

    Perform a where-used search on the FM, you should notice that the commit/rollback is executed by most callers. Then the answer depends on your context, have you already set some lock or schedule some updates before the call, etc.

    (You MUST ALWAYS perform such search before even considering using an unreleased FM and provide some documentation for the guy who will maintain this program later, like a '* Code copied from MEASUREM_DOCUM_RFC_SINGLE_001' or so.)

    Add comment
    10|10000 characters needed characters exceeded