Skip to content

Commit

Permalink
Fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools committed Jun 4, 2024
1 parent 0f4e345 commit 06d8535
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/zcl_persist_apm.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,12 @@ CLASS zcl_persist_apm IMPLEMENTATION.
ls_abappm-luser = sy-uname.
GET TIME STAMP FIELD ls_abappm-timestamp.

INSERT (zif_persist_apm=>c_tabname) FROM ls_abappm.
UPDATE (zif_persist_apm=>c_tabname) FROM ls_abappm.
IF sy-subrc <> 0.
zcx_persist_apm=>raise( |Error saving { iv_key }| ).
INSERT (zif_persist_apm=>c_tabname) FROM ls_abappm.
IF sy-subrc <> 0.
zcx_persist_apm=>raise( |Error saving { iv_key }| ).
ENDIF.
ENDIF.

ENDMETHOD.
Expand Down

0 comments on commit 06d8535

Please sign in to comment.