2007 Mar 16 9:19 AM
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.
2007 Mar 16 9:20 AM
Hi
The way is you have to split the data several and concatenate after that.
Regards,
kumar
2007 Mar 16 9:22 AM
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.