READ_TEXT FONKSİYONU İLE SO10 OBJESİ OKUMA - READ SO10 OBJECT WITH READ_TEXT FUNCTION

 

SO10 işlem kodu konulu ilk yazımda nasıl SO10 standart metin objesi oluşturabileceğimizi ele almıştık. Bu yazımızda ise oluşturduğumuz SO10 objesini raporumuzda okuyacağız.
( E : In my first article on SO10 transaction code, we discussed how to create an SO10 standard text object. In this article, we will read the SO10 object we created in our report. )

🔸 Oluşturduğumuz standart text aşağıdaki gibidir.
( E : The standard text we created is as follows. )


🔸 Standart text objesinin içeriğini okuyabilmek için READ_TEXT fonksiyonunu kullanabiliriz.
( E : We can use the READ_TEXT function to read the contents of the standart text object. )

CODE 

DATA: lt_lines     TYPE TABLE OF tline,
      ls_line      LIKE LINE  OF lt_lines.

CALL FUNCTION 'READ_TEXT'
  EXPORTING
    client                  = sy-mandt
    id                      = 'ST'
    language                = sy-langu
    name                    = 'ZDEV_TEXT'
    object                  = 'TEXT'
  TABLES
    lines                   = lt_lines
  EXCEPTIONS
    id                      = 1
    language                = 2
    name                    = 3
    not_found               = 4
    object                  = 5
    reference_check         = 6
    wrong_access_to_archive = 7.

LOOP AT lt_lines INTO ls_line.

  WRITE / ls_line-tdline.

ENDLOOP.


OUTPUT




🔸 Aslında SO10 objesi oluştururken belirlediğimiz bu üç parametreyi fonksiyona da veriyoruz.
( E : In fact, we give these three parameters to the function that we determined while creating the SO10 object. )





Teşekkürler 😊
Thank you 😊


Hilal KARAGÖZLÜ
SAP ABAP Consultant












Yorumlar