Skip to end of metadata
Go to start of metadata

POPUP_TO_CONFIRM_LOSS_OF_DATA

Creates a warning popup that advice you that data could be lost.

CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA'
EXPORTING
TEXTLINE1 = text-001
*   TEXTLINE2 = ' '
TITEL = text-002
*   START_COLUMN = 25
*   START_ROW = 6
*   DEFAULTOPTION = 'N'
* IMPORTING
*   ANSWER =
.

CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = text-002
DIAGNOSE_OBJECT = 'CACS_CONFIRM_LOSS_OF_DATA'
TEXT_QUESTION = text-001
DISPLAY_CANCEL_BUTTON       = ' '
POPUP_TYPE                  = 'ICON_MESSAGE_WARNING'.

Some optional parameters are used in order to generate a more similar popup:

DIAGNOSE_OBJECT => "The diagnosis text must be created as a 'Text in Dialog' in the maintenance transaction SE61. This ensures translation. There is only limited support of formatting (headings, paragraphs and lists). Links are not supported. The document name is transferred in the interface of the function module. Line feed is performed by the function module. If the stored text cannot be found in English or German, the exception TEXT_NOT_FOUND is triggered." (SAP online help)

In this case a standard diagnose text CACS_CONFIRM_LOSS_OF_DATA, that generates the same message "Data will be lost.", could be used.

1 Comment

  1.  CACS_CONFIRM_LOSS_OF_DATA doesn't exist. Try  CPE_DATA_LOSS