Application Development 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_text fm

Former Member
0 Kudos

In my smart form

i have to include some text

when we write a heading for main window(header)

-


posnr material descriptio----


> text to be included

_________________________

or somethins like

ship-to-party (text to be included): value

is this possible by maintaining all values in so10 ..

than reading in ur form by read_text fm (that is passing ur interanal table filled with all values in form interface) and than we go to particular node and include text and we process internal table values on basis on object id and particular line no and language.......my doubt is like if we have to do implementation in german

than do we need to include all text for german language as we did for english

and include all german text now in program instead of english language(so language should be an selection screen parameter)?????

>>>>moreover how to acess header data for any order in va03(header overview),item text(which appears for item details)

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

If you maintain the text into SO10 than you don't have to read the text using the READ_TEXT. You can include that text directly into the text.

In your text, chagne the Text type to I under the General Attributes. And then give the name of the text and other parameters.

Regards,

Naimesh Patel

Former Member
0 Kudos

use this function

CONCATENATE it_ekko-ebeln it_ekpo-ebelp INTO nmebeln.

REFRESH tline.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'F04'

language = sy-langu

name = nmebeln

object = 'EKPO'

TABLES

lines = tline

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

IF sy-subrc <> 0.

ENDIF.

LOOP AT tline.

IF tline-tdline IS NOT INITIAL.

del_text = tline-tdline.

ENDIF.

CONDENSE del_text.

ENDLOOP.

Former Member
0 Kudos

SO WE GET TLINE AS TABLE WHICH HAS ALL VALUES(which maintains text)......NOW

TLINE HAS VALUES LIKE MATERIAL POSNR OBJNR BLA BLA....

we can display the respective values by writing in the nodes

the content of the work area......like we need to dislpay only material

than we write that particular content in that node.....and so on ....just wanted to confirm and similarly for german we pass language id as 'de'.