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

How to convert raw data that generated by spool

Former Member
0 Likes
1,212

Hi Friends,

I have a problem. I am running reports which has output line more than 255 characters. Firstly I have tried to use RSPO_RETURN_ABAP_SPOOLJOB fm. But I see that I can not get the characters that has index more than 255. So, I wanted to use RSPO_RETURN_ABAP_SPOOLJOB_RAW fm as;



   TYPES: BEGIN OF it_report,
                   precol(1),
                   line(1000),
               END OF it_report.
  DATA: record TYPE STANDARD TABLE OF it_report.
 
  CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB_RAW'
       EXPORTING
              RQIDENT              = RQIDENT
        TABLES
              BUFFER               = record.

Normally my report's line starts with as 'MATERIAL'. But, record[1]-line is as '#COL0N#COL0HMATERIAL'. Now, I don't know anything about how raw data's format. Such as it starts always with '#COL0N#COL0H' ?, or can be other unexpected characters any time?, etc.

I need the result how the report shows without '#COL0N#COL0H' or etc and all of the characters which can be more than 255. Is there any converter the raw data to the data as I mentioned? Or any idea to get real text?

Thanks.

Hi Friends,

I have a problem. I am running reports which has output line more than 255 characters. Firstly I have tried to use RSPO_RETURN_ABAP_SPOOLJOB fm. But I see that I can not get the characters that has index more than 255. So, I wanted to use RSPO_RETURN_ABAP_SPOOLJOB_RAW fm as;



   TYPES: BEGIN OF it_report,
                   precol(1),
                   line(1000),
               END OF it_report.
  DATA: record TYPE STANDARD TABLE OF it_report.
 
  CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB_RAW'
       EXPORTING
              RQIDENT              = RQIDENT
        TABLES
              BUFFER               = record.

Normally my report's line starts with as 'MATERIAL'. But, record[1]-line is as '#COL0N#COL0HMATERIAL'. Now, I don't know anything about how raw data's format. Such as it starts always with '#COL0N#COL0H' ?, or can be other unexpected characters any time?, etc.

I need the result how the report shows without '#COL0N#COL0H' or etc and all of the characters which can be more than 255. Is there any converter the raw data to the data as I mentioned? Or any idea to get real text?

Thanks.

2 REPLIES 2
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
747

Hi

The way is you have to split the data several and concatenate after that.

Regards,

kumar

Read only

0 Likes
747

How to split? what are the rules? I have looked more spool output but there are a lof of undesirable characters in raw data in any order.