Common Implementation of popup dialog in SAP (pop-up dialog box)

Source: Internet
Author: User
 
Method 1:
FM: popup_to_confirm (Standard dialog pop-up message)
There are three buttons: YES-NO-CANL, the corresponding logical judgment can be carried out
You can set the title and description, and it is not convenient to text line breaks or other typographical la S. The size of the pop-up box cannot be changed.
 
Method 2:
FM:POPUP_CONTINUE_YES_NO
There are two buttons: J-N (yes-no), you can determine the corresponding Logic
You can set the title. It can only contain up to two lines of text per hour. It is not convenient to typeset the text of more than two lines, and the size of the pop-up box cannot be changed.
 
Method 3:
Internal data, output by traveling in the text editor
FM:ADA_POPUP_WITH_TABLE(Popup to display internal table data)
You can set the title to display a lot of data in the text editor UI in the pop-up box. You can only control the position of the pop-up box and cannot change the size of the pop-up box.
 
Method 4:
FM: popup_with_table_display (display data as table data)
There are two buttons: select-cancel-(double-click)
You can set a title to display a lot of data by row. You can also select a function to return the selected number of rows. You can control the position of the pop-up box and change the size of the pop-up box.
 
Method 5:
FM:POPUP_WITH_TABLE_DISPLAY_OK
There are two buttons: select-cancel
It is similar to the function popup_with_table_display, but the function is not selected, and the title is always 'register 'and cannot be changed. You can control the position of the pop-up box and change the size of the pop-up box.
 
Method 6:
Write your own code
Copy the SAP standard program and rewrite the detail display implementation method in ALV using the OO method,
The implementation method is as follows:
 
CALL SCREEN 0101 STARTING AT STARTPOS_COL STARTPOS_ROW                   ENDING AT ENDPOS_COL ENDPOS_ROW.
 
*&---------------------------------------------------------------------**& Module STATUS_0101 OUTPUT*&---------------------------------------------------------------------** text*----------------------------------------------------------------------*MODULE status_0101 OUTPUT.  SET PF-STATUS ‘101‘.  SET TITLEBAR ‘101‘.
ENDMODULE. " STATUS_0101 OUTPUT*&---------------------------------------------------------------------**& Module USER_COMMAND_0101 INPUT*&---------------------------------------------------------------------** text*----------------------------------------------------------------------*MODULE user_command_0101 INPUT.  IF ok_code = ‘CANCEL‘.*   LEAVE PROGRAM.    LEAVE TO SCREEN 0.  ELSEIF ok_code = ‘CANCEL‘.*   LEAVE PROGRAM.    LEAVE TO SCREEN 0.  ENDIF.ENDMODULE. " USER_COMMAND_0101 INPUT
 
Important: Call screen 0101 starting at ending.
 
 
You will understand this syntax, so it is a waste of effort to find the poppup function. Of course, if you know, you don't have to write it yourself.
 
 

Common Implementation of popup dialog in SAP (pop-up dialog box)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.