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: 

Converting RAW1024 data type into String

Former Member
0 Kudos

Hi Guyz,

Please share  your ideas on below scenario .

Using FM  "SCMS_AO_TABLE_GET"  I get the Data on "Tables tab"  -> RAW1024 format (It contains documents .xls,pdf,.txt,msg)

Now i need to upload that table data in Application server & later i need to retrieve it.

How to convert raw1024 data type??

6 REPLIES 6

Sandra_Rossi
Active Contributor
0 Kudos

It's a table of lines of 1024 bytes each. You may convert it into an XSTRING variable, by using function module SCMS_BINARY_TO_XSTRING. You also need to pass the size (number of bytes) so that the result does not contain useless extra bytes.

You write this XSTRING to the application server by a single TRANSFER xstring TO dataset (with of course the OPEN and CLOSE DATASET around).

0 Kudos

thank you giyz

could you show how to convert raw1024 to to X String kindly guideme

0 Kudos

First step : It's a table of lines of 1024 bytes each. You may convert it into an XSTRING variable, by using function module SCMS_BINARY_TO_XSTRING. You also need to pass the size (number of bytes) so that the result does not contain useless extra bytes.

Second step : search the web for SCMS_BINARY_TO_XSTRING.

0 Kudos

thanks a lot

0 Kudos

Thanks. Could you tell more?

PS: as per the The SCN Rules of Engagement, a "like" is better than a "thanks" (what you also did, so double usage).

0 Kudos

Hi Rossi,

I used FM SCM_DOWNLOAD in that  using  "tvarvc" table  i specified the app server path and save it.