SAP Function Modules

Share |

POPUP_TO_CONFIRM_STEP SAP Function module - Do not use! Please use POPUP_TO_CONFIRM.

Pattern for FM POPUP_TO_CONFIRM_STEP - POPUP TO CONFIRM STEP
Associated Function Group: SPO1
Released Date: Not Released
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "Do not use! Please use POPUP_TO_CONFIRM.
  EXPORTING
*   defaultoption = 'Y'         "               Positioning the cursor on answer yes or no
    textline1 =                 "               first line of dialog box
*   textline2 = SPACE           "               second line of dialog box
    titel =                     "               Title line of dialog box
*   start_column = 25           " sy-cucol      Start column of the dialog box
*   start_row = 6               " sy-curow      Start line of the dialog box
*   cancel_display = 'X'        "               Display cancel button
  IMPORTING
    answer =                    "               selected answer of end user
    .  "  POPUP_TO_CONFIRM_STEP

SAP Documentation for FM POPUP_TO_CONFIRM_STEP


Functions


The function module provides a dialog box with a question and the response alternatives "Yes" and "No" (one is preselected), where the user must confirm a processing step.
The dialog box appears on the screen with a fixed size.
TITEL is displayed in the title bar, TEXTLINE1 and TEXTLINE2 are displayed in the second or third line of the dialog box. The title is displayed in the center and must not be longer than 70 characters. Lines that are longer than 70 characters are truncated.
In order to make the variable text translatable note the following points (also see example):
  • Use sequentially numbered text symbols, so that the translator can recognize which texts belong together.

  • Do not use sentence parts again in other places. Create them anew in the text pool each time.

  • When adjusting the text pool you must specify the maximum permitted text length. There is a length of 70 characters per line.

  • You can also indicate the permitted length with a double semicolon (see example).

  • It is preferable when you indicate corresponding sentence parts for the translator (see example)


  • Examples

  • Example window "Return"

  • Example of questions
  • "Should the entered document be posted beforehand?"
    
  • Example window "Confirmation action without data loss"

  • Examples of questions
  • "Should the document be copied?"
    "Do you want to change the rules for account determination?"
    
  • Example windows "Confirmation of an action with data loss"

  • Examples of questions
  • "Should the held document be deleted?"
    "Should the available components be deleted beforehand
    ?"
    "Should the selected items be deleted?"
    "Do you want to delete the documentation?"
    

    Example call:


    DATA: ANTWORT(1) TYPE C.

    CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
    EXPORTING
    TITEL      = 'end G/L document'                  ;;'(A01)
    TEXTLINE1  = 'Should the entered document'       ;;->A03'(A02)
    TEXTLINE2  = 'be posted beforehand'              ;;'(A03)
    IMPORTING  ANSWER     = ANTWORT.
    
    Documentation extract taken from SAP system, Copyright (c) SAP AG






    Share |