`
icfsx
  • 浏览: 21631 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

function to read text structure

阅读更多

//function to read text structure

FORM GET_TITLE USING  TEXT_ID T_NAME LIKE THEAD-TDNAME OBJ_ID CHANGING
 C_TEXT.
   DATA: G_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.
   DATA: T_I TYPE I.
   CALL FUNCTION 'READ_TEXT'

        EXPORTING
            CLIENT                  = SY-MANDT
             ID                      = TEXT_ID
             LANGUAGE                = SY-LANGU
             NAME                    = T_NAME
             OBJECT                  = OBJ_ID
*          ARCHIVE_HANDLE          = 0
*    IMPORTING
*         HEADER                  =
        TABLES
             LINES                   = G_LINES
           EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
             REFERENCE_CHECK         = 6
             WRONG_ACCESS_TO_ARCHIVE = 7
             OTHERS                  = 8.
   CLEAR C_TEXT.
   IF SY-SUBRC = 0.
     DESCRIBE TABLE G_LINES LINES T_I.
     IF T_I > 0.
       READ TABLE G_LINES INDEX 1.
       C_TEXT = G_LINES-TDLINE.
     ENDIF.
   ENDIF.

===============================================

 call function 'READ_TEXT'
       exporting
            CLIENT                  = SY-MANDT
            id                      = 'ZC31'
            language                = sy-langu
            name                    = u_name
            object                  = 'VBBP'
       tables
            lines                   = g_line
       exceptions
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            others                  = 8.

分享到:
评论

相关推荐

    数位板压力测试

    This specification is intended to be an open standard, and as such the text and information contained herein may be freely used, copied, or distributed without compensation or licensing restrictions. ...

    UE(官方下载)

    The benefit of a column maker is that it can help you to format your text/code, or in some cases to make it easier to read in complex nested logic. Quick Open UltraEdit and UEStudio provide multiple ...

    json.js_json2.js

    easier to read. If the space parameter is a non-empty string, then that string will be used for indentation. If the space parameter is a number, then the indentation will be that many spaces. ...

    Using LUA with Visual C++ (Introduction)

    The first one is the pointer to the LUA state, the second one is a pointer to a user-defined reader function, the third pointer is a user-defined value that the reader function will receive, and the ...

    CE中文版-启点CE过NP中文.exe

    Added an automated structure compare for two groups of addresses to find ways to distinguish between them lua: added automatic garbage collection and settings to configure it added new functions: gc_...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: The PointOnLine() function calulations have "single" type numbers overflow problem (changed to "double"). - FIX: The pfJoin and pfClose flags incorrectly calculates in GetEditPathCaps(). ...

    Lerner -- Python Workout. 50 Essential Exercises -- 2020.pdf

    - **Objective:** Create a function that converts English words to Ubbi Dubbi. - **Key Concepts:** - Replacing 'b' with 'ub'. - Iterating through characters in a string. 8. **Sorting a String** -...

    Intermediate Perl.pdf

    You should read this book from front to back, stopping to do the exercises. Each chapter builds on preceding chapters, and we'll assume that you know the material from those chapters as we discuss ...

    UNIX Network Programming Volume 1, Third Edition (Unix网络编程卷1第3版英文版)

    Roadmap to Client/Server Examples in the Text Section 1.7. OSI Model Section 1.8. BSD Networking History Section 1.9. Test Networks and Hosts Section 1.10. Unix Standards Section 1.11. 64-...

    R for beginner

    For more advanced customization, low-level plotting commands like `points()`, `lines()`, `text()`, and `polygon()` can be used to add elements to existing plots. ##### Graphical Parameters You can ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Parameters to C/C++ functions are either input to the function, output from the function, or both. Input parameters are usually values or const references, while output and input/output parameters ...

    ehlib_vcl_src_9_3.26

    Allows to hold KeyValue and Text as not affecting to each other values. Take effect when KeyField, ListField, ListSource, DataField and DataSource properties is empty. Drop down list can: Show ...

    EhLib 9.1.024

    Allows to hold KeyValue and Text as not affecting to each other values. Take effect when KeyField, ListField, ListSource, DataField and DataSource properties is empty. Drop down list can: Show ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    Allows to hold KeyValue and Text as not affecting to each other values. Take effect when KeyField, ListField, ListSource, DataField and DataSource properties is empty. Drop down list can: Show ...

    C Programming

    - **Calling a Function**: Explanation of how to invoke a function and pass arguments to it. - **Scope**: Discussion on variable scope and lifetime, including local and global variables. - **Variables ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    Allows to hold KeyValue and Text as not affecting to each other values. Take effect when KeyField, ListField, ListSource, DataField and DataSource properties is empty. Drop down list can: Show ...

    go系统编程(英文版)

    Chapter 6, File Input and Output, shows you how to read the contents of a file, how to change them, and how to write your own data to files! In this chapter, you will learn about the io package, the ...

    Senfore_DragDrop_v4.1

    Delphi's THandle type when a HWND is passed to a function. E.g.: if (DragDetectPlus(THandle(MyControl->Handle), Point(X, Y))) { ... } * Virtual File Stream formats can only be pasted from the ...

    UNIX Network Programming Volume 2(Unix网络编程卷2英文版)

    1.8 road map to ipc examples in the text 15 1.9 summary 16 chapter 2. posix ipc 2.1 introduction 19 2.2 ipc names 19 2.3 creating and opening ipc channels 22 2.4 ipc permissions 25 2.5 summary...

Global site tag (gtag.js) - Google Analytics