• SAP 文本框多行输入


    REPORT zjw_test01.
    CONSTANTS: gc_text_line_length TYPE i VALUE 72.
    TYPES: text_table_type(gc_text_line_length) TYPE c OCCURS 0.
    DATA: gv_splitter TYPE REF TO cl_gui_easy_splitter_container.
    DATA: gv_custom_container TYPE REF TO cl_gui_custom_container.
    DATA: gv_text_editor TYPE REF TO cl_gui_textedit.
    DATA: lt_text_table                         TYPE text_table_type,
          ls_text_table_wa(gc_text_line_length) TYPE c,
          gv_xthead_updkz                       TYPE i.
    CALL SCREEN 100.
    
    MODULE splitter_control_vorbereiten OUTPUT.
    
      IF gv_splitter IS INITIAL.
        CREATE OBJECT gv_custom_container
          EXPORTING
            container_name = 'SPLITTER_CONTAINER'.
    
        CREATE OBJECT gv_splitter
          EXPORTING
            parent        = gv_custom_container
            orientation   = 1
            sash_position = 39.
    
      ENDIF.
    
      IF gv_text_editor IS INITIAL.
        CREATE OBJECT gv_text_editor
          EXPORTING
            parent                     = gv_splitter->bottom_right_container
    *       wordwrap_mode              = cl_gui_textedit=>wordwrap_at_windowborder
            wordwrap_to_linebreak_mode = cl_gui_textedit=>false
          EXCEPTIONS
            error_cntl_create          = 1
            error_cntl_init            = 2
            error_cntl_link            = 3
            error_dp_create            = 4
            gui_type_not_supported     = 5.

        CALL METHOD gv_text_editor->set_readonly_mode
          EXPORTING
            readonly_mode = cl_gui_textedit=>true.
    ENDIF. ENDMODULE. " SPLITTER_CONTROL_VORBEREITEN OUTPUT *&---------------------------------------------------------------------* *& Module STATUS_0100 OUTPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE status_0100 OUTPUT. SET PF-STATUS 'STATUS_0100'. * SET TITLEBAR 'xxx'. ENDMODULE. *&---------------------------------------------------------------------* *& Module EXIT INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE exit INPUT. LEAVE TO SCREEN 0. ENDMODULE. *&---------------------------------------------------------------------* *& Module USER_COMMAND_0100 INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE user_command_0100 INPUT. DATA t_tdline1 TYPE TABLE OF STANDARD . * Texttabelle aus Control abholen CALL METHOD gv_text_editor->get_text_as_stream IMPORTING text = lt_text_table is_modified = gv_xthead_updkz EXCEPTIONS error_dp = 1 error_cntl_call_method = 2 OTHERS = 3. IF sy-subrc = 0. ENDIF. CALL METHOD gv_text_editor->get_text_as_r3table IMPORTING table = t_tdline1. IF sy-subrc = 0. ENDIF. ENDMODULE.

    屏幕

    PBO /PAI

  • 相关阅读:
    Mysql添加远程访问权限
    Android下安装应用不成功解决
    Unity 编译apk启动出异常
    Java 实现函数回调
    C# 实现函数回调
    北京数字认证无领导小组讨论总结
    深圳市共进电子 嵌入式软件工程师笔试题
    北京君正和博彦科技笔试体会及总结
    9月5日 华为2014校园招聘的机试题目_C语言版答案
    ios客户端base64上传图片到java服务器遇到的问题
  • 原文地址:https://www.cnblogs.com/JackeyLove/p/13646127.html
Copyright © 2020-2023  润新知