Skip to Content
author's profile photo Former Member
Former Member

Reg Field bseg-sgtxt in SAP SCRIPT

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.........


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2008 at 06:33 PM


    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

    > TABLES

    > 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 .



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.