Application Development and Automation 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: 
Read only

Convert RAWSTRING(compressed )

Former Member
1,967

Does any one know how to display and download the contents of table REPOSRC-DATA (field). This field holds the source code in compressed mode. I don't want to use the READ REPORT command.

Can any one suggest a alternate solution.

Thanks.

3 REPLIES 3
Read only

rejish_balakrishnan
Contributor
0 Likes
1,147

HI,

Use the following code :

DATA : t_itab TYPE TABLE OF reposrc,

fs_itab LIKE LINE OF t_itab.

SELECT data FROM reposrc INTO CORRESPONDING FIELDS OF TABLE t_itab WHERE progname = 'YH1319'.

LOOP AT t_itab INTO fs_itab.

WRITE / :fs_itab-data.

ENDLOOP

Read only

0 Likes
1,147

Hi RBK,

With your code the output looks like

eg. FF00E40900121F9D0269DF4C9BDB489234ED3F05CD356.....................................

The ouput is already in RAWSTRING format. I need help to convert it to TEXT, so that I am able to display and download it.( it should look same as abap source code ).

Thanks for your efforts.

Read only

Former Member
0 Likes
1,147

I've been looking into this myself recently and I've found this utility on the internet. It works well so far and should do the same for you, it even includes an abap program to down the content from SAP to disk.

Decompress ABAP source code from table REPOSRC