Showing results for 
Search instead for 
Did you mean: 

Reg Field bseg-sgtxt in SAP SCRIPT

Former Member
0 Kudos

Hi All,

I have to issue with bseg-sgtxt field. In my script i have field item text for this field is bseg-sgtxt. anf this field lenght is 50 char. but problem is i want item text more then 50 char in my script. for that i find long text button... this long text stored in EENO_DYNP and field name is ZEILE , but it is a i have 3 question

1) How can i retrive this long text field in my script

2) How can i concate bseg-sgtxt with EENO_DYNP-ZEILE

3) what i write in SAP SCRIPT???

Can you help me.........


Accepted Solutions (0)

Answers (1)

Answers (1)

Active Participant
0 Kudos


the long text of a document are stored into the standard text table and u can read it with the function READ_TEXT.

call this function in this way

>CONCATENATE bseg-bukrs bseg-belnr bseg-buzei INTO name.



> id = '0001'

> language = sy-langu

> name = name

> object = 'DOC_ITEM' " identified FI document


> lines = t_line


> id = 1

> language = 2

> name = 3

> not_found = 4

> object = 5

> reference_check = 6

> wrong_access_to_archive = 7

> OTHERS = 8.

the id of the text you can find in SPRO transaction under

Financial accounting->Financial accounting Global Settings ->Document->line Item-> Define Text Identifications for Line Items

here you can find all ID of the standard text that are configurated in your system.

now you can concatenate BSEG-SGTXT with the standard text of the document item .



Former Member
0 Kudos

Hi Macro,

Can u give me some more example with coding???