In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to use SAP GUI drawing," interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "How to use SAP GUI drawing"!
The programming classes after 80 in China should have learned Logo:
Logo is a language designed specifically for teaching programming, invented in 1967 by Wally Feurzeig, Seymour Papert and Cynthia Solomon.
Below is a picture drawn in Logo language.
Perhaps I practiced it in Pentium 386? I could not remember it clearly.
Also, a very old ABAP package was found in SAPGUI, last modified 22 years ago in 1995. That's older than many of SAP Chengdu's new colleagues.
This package provides an HPGL interface. Hewlett-Packard Graphics Language (HPGL) is a printer control language designed by Hewlett-Packard.
Here is an HPGL console I wrote in ABAP code that calls GRAPH_HPGL to draw on the screen like I did when I was a kid using Logo.
REPORT z.DATA: go_text_edit TYPE REF TO cl_gui_textedit, go_cust_container TYPE REF TO cl_gui_custom_container, ok_code TYPE sy-ucomm.DATA lt_text(256) TYPE c OCCURS 0.DATA: BEGIN OF lt_hpgl OCCURS 1, entry(128), END OF lt_hpgl.CALL SCREEN 0101.MODULE status_0101 OUTPUT. SET PF-STATUS 'JERRY_CONSOLE'. SET TITLEBAR 'JERRY_TITLEBAR'. IF go_cust_container IS INITIAL. go_cust_container = NEW #( container_name = 'CUSTOM_CONTROL' ). CREATE OBJECT go_text_edit EXPORTING parent = go_cust_container wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position wordwrap_to_linebreak_mode = cl_gui_textedit=>false. ENDIF.ENDMODULE.MODULE user_command_0101 INPUT. ok_code = sy-ucomm. CASE ok_code. WHEN 'BACK' OR 'QUIT' OR 'EXIT'. LEAVE TO SCREEN 0. WHEN 'EXECUTE'. CLEAR: lt_text, lt_hpgl[]. go_text_edit->get_text_as_r3table( IMPORTING table = lt_text ). LOOP AT lt_text ASSIGNING FIELD-SYMBOL(). APPEND INITIAL LINE TO lt_hpgl ASSIGNING FIELD-SYMBOL(). -entry = . ENDLOOP. CALL FUNCTION 'GRAPH_HPGL' TABLES data = lt_hpgl. WHEN OTHERS. ENDCASE.ENDMODULE.
The PBO and API for screen 101:
The layout of screen 101 requires manually creating a control called CUSTOM_CONTROL.
The screen status:
To execute this report, click Load Local file to load Doraemon.txt file locally, the content can be obtained from the end of the text.
You can download it from my github:
After execution, the gnhpx.exe file located in the local installation directory will render graphics according to the instructions in txt:
"C:\Program Files (x86)\SAP\FrontEnd\SAPgui\gnhpx.exe"
If everything works correctly, you can see a rendered robot cat (Doraemon).
At this point, I believe everyone has a deeper understanding of "how to use SAP GUI drawing," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.