on 01-04-2008 6:06 PM
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 structure...so 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.........
Vishal
hi,
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.
>CALL FUNCTION 'READ_TEXT'
> EXPORTING
> id = '0001'
> language = sy-langu
> name = name
> object = 'DOC_ITEM' " identified FI document
> TABLES
> lines = t_line
> EXCEPTIONS
> 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 .
bye
Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.