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

read text from va22

Former Member
0 Likes
978

Hi all,

can i know how to get the text from va22 to display it at form .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
859

Hi,

Use READ_TEXT fm..with proper input

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = 'Z999'

LANGUAGE = 'E'

NAME = GF_TDNAME (SO,PO)

OBJECT = 'VBBP' or 'VBBK' (table)

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = TLINES

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8

.

ENDIF.

READ TABLE TLINES INDEX 1.

Thanks and Regards,

Krishna Chaitanya Guggilla

Hi all,

can i know how to get the text from va22 to display it at form .

4 REPLIES 4
Read only

Former Member
0 Likes
859

use FM :READ_TEXT

Please search.

Read only

Former Member
0 Likes
860

Hi,

Use READ_TEXT fm..with proper input

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = 'Z999'

LANGUAGE = 'E'

NAME = GF_TDNAME (SO,PO)

OBJECT = 'VBBP' or 'VBBK' (table)

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = TLINES

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8

.

ENDIF.

READ TABLE TLINES INDEX 1.

Thanks and Regards,

Krishna Chaitanya Guggilla

Read only

0 Likes
859

Hi Krishna,

thank you very much.

Read only

former_member191735
Active Contributor
0 Likes
859

You can use read_text function module or if it is on SAP Script, you can use include text (read help on include text) or if it is in smartform, you can have a text element which is type if include text then you have to specify the required parameters. The required parameters can be found on text module itself in VA22 or wherever the text is defined .....

Double click on the text - this takes you to text editor - on application toolbar - go to - Header

Here you can see all the parameters that you would need to read text. these same parameters are used to read_text function module or include text in sapscript or include text in smartforms

Good luck