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: 

Download data from STXL table.

Former Member
0 Kudos

Hi,

I have to download data from table STXL.

I am using WS_DOWNLOAD.

STXL had a field CLUSTD of length 7902 with type LRAW.

After downloading i am getting the following result.

240 TX HRHAP00 01DDE70A8DD295CFF1B00500156004350500000018FAPP NOTE E 0 217 *

CLUSTD is not coming instead * is coming.

Please suggest how to download data from STXL table.

Thanks,

Ramotar.

5 REPLIES 5

viquar_iqbal
Active Contributor
0 Kudos

Hi

i have downloaded data sucessfully from STXL into excel sheet with clustd feild containing values as in table.

i just selected edit->download->spreadsheet format in se11 data browser.

Thanks

Viquar Iqbal

Former Member
0 Kudos

first u fetch all the data into a internal table except the field CLUSTD

then loop the internal table and use FM "READ_TEXT" to fetch the field CLUSTD

Former Member
0 Kudos

Hi,

You are not supposed to fetch the texts directly from the STXL table as it is stored in RAW format. You should use FM READ_TEXT to read the texts in program , then download as you are doing currently.

Search Forum to see sample codes for READ_TEXT FM or see the FM documentation.

Regards

Karthik D

Former Member
0 Kudos

hi try this. put the cursor in the starting entries of your field . so as per your requirement clustid field. and press ctrl+y after that just drag the mouse up to the last entries .. right click ->copy text start->run->excel paste it. i hope it will aid u. regards suren.s

Former Member
0 Kudos

using READ_TEXT U donwload data see the following example

data:tdid like stxl-tdid.

tdid = '0001'.

call function 'READ_TEXT'

exporting

  • CLIENT = SY-MANDT

id = tdid

language = 'E'

name = saletext

object = 'MVKE'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = lines1

exceptions

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

others = 8

.