Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to read data from structure RSTXT

Former Member
0 Likes
3,874

Hi Everyone..

I have some problem with read data from structure RSTXT.

I am using transaction code vl02n -> for delivery select <b>Item</b> in item

overview tab -> Go to -> Item -> text.

I want display "<b>RSTXT-TXLINE</b>" field in <b>ALV</b> report how it can be possible?

If anyone knows about it plz reply me with example.

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,124

Hi,

Use FM READ_TEXT

( Once on the text, plz display it in plain page mode :

then > Go To> header : Here you'll get the FM parameters : ID, Object, Name, ... )

Sample code :


  DATA: BEGIN OF TTLINE OCCURS 0.
          INCLUDE STRUCTURE TLINE.
  DATA: END OF TTLINE.


  CALL FUNCTION 'READ_TEXT'
       EXPORTING
            CLIENT                  = SY-MANDT
            ID                      = L_ID
            LANGUAGE                = L_LANGUE
            NAME                    = L_BL
            OBJECT                  = 'VBBK'
       TABLES
            LINES                   = TTLINE
       EXCEPTIONS
            ID                      = 1
            LANGUAGE                = 2
            NAME                    = 3
            NOT_FOUND               = 4
            OBJECT                  = 5
            REFERENCE_CHECK         = 6
            WRONG_ACCESS_TO_ARCHIVE = 7
            OTHERS                  = 8.

Regards,

Erwan

Hi Everyone..

I have some problem with read data from structure RSTXT.

I am using transaction code vl02n -> for delivery select <b>Item</b> in item

overview tab -> Go to -> Item -> text.

I want display "<b>RSTXT-TXLINE</b>" field in <b>ALV</b> report how it can be possible?

If anyone knows about it plz reply me with example.

Thanks in Advance.

3 REPLIES 3
Read only

Former Member
0 Likes
2,125

Hi,

Use FM READ_TEXT

( Once on the text, plz display it in plain page mode :

then > Go To> header : Here you'll get the FM parameters : ID, Object, Name, ... )

Sample code :


  DATA: BEGIN OF TTLINE OCCURS 0.
          INCLUDE STRUCTURE TLINE.
  DATA: END OF TTLINE.


  CALL FUNCTION 'READ_TEXT'
       EXPORTING
            CLIENT                  = SY-MANDT
            ID                      = L_ID
            LANGUAGE                = L_LANGUE
            NAME                    = L_BL
            OBJECT                  = 'VBBK'
       TABLES
            LINES                   = TTLINE
       EXCEPTIONS
            ID                      = 1
            LANGUAGE                = 2
            NAME                    = 3
            NOT_FOUND               = 4
            OBJECT                  = 5
            REFERENCE_CHECK         = 6
            WRONG_ACCESS_TO_ARCHIVE = 7
            OTHERS                  = 8.

Regards,

Erwan

Read only

Former Member
0 Likes
2,124

DATA: BEGIN OF TLINE OCCURS 0.

INCLUDE STRUCTURE TLINE.

DATA: END OF TLINE.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = L_ID

LANGUAGE = SY-LANGU

NAME = L_BL

OBJECT = 'VBBK'

TABLES

LINES = TTLINE

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

Read only

Former Member
0 Likes
2,124

hi

good

go through this link which ll give you detail idea about RSTXT.

http://sap4.com/wiki/index.php?title=Programa_que_crea_un_batch-input_de_ordenes_de_ventas

thanks

mrutyun^