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: 

Spool files: what's the FM to read TST03 and return lines of a given file?

Former Member
0 Kudos

I'm working with an archivist who is going to give me the "bread-crumb trail" that I need to chase down a spool file tag from an archive run number.

Once I have the spool file tag, he wants me to get the file with that tag and read the first 1000 lines of it (and then do other stuff with these 1000 lines.)

I assume there is a function that will return the lines of the spool file out of the raw

portion of TST03 rows, but I don't know the name of it.

Can someone help with the name of this function?

Sorry if this is a repeat question - I did search on "spool" and "read spool" before I posted it ....

regards

djh

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Hi David. You might want to check out the following function modules.

RSPO_RETURN_ABAP_SPOOLJOB

RSPO_RETURN_ABAP_SPOOLJOB_RAW

Regards,

RIch Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Hi David. You might want to check out the following function modules.

RSPO_RETURN_ABAP_SPOOLJOB

RSPO_RETURN_ABAP_SPOOLJOB_RAW

Regards,

RIch Heilman

0 Kudos

Rich -

"You da man ", as always.

I marked the '10' without even checking the FM's you recommended because I assumed this was a "no-brainer" for you.

Thanks very much again.

Regards

djh

0 Kudos

I did remember that there is a function module to do so, but didn't remember the name either, but I did remember that it started with RS* and had the word SPOOL in it, so my search was liket his.

RS*SPOOL

Then it is simply looking thru the FMs and trying to figure what they do by their name. Of course I tested the first one, and it worked great in my system.

Regards,

Rich Heilman