[go: up one dir, main page]

0% found this document useful (0 votes)
43 views1 page

Get Data From Spool SAP Community

Get data from spool

Uploaded by

Japan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Get Data From Spool SAP Community

Get data from spool

Uploaded by

Japan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Community

SAP Community Log-in Update 


In a few months, SAP Community will switch to SAP
Universal ID as the only option to login. Create your
SAP Universal ID now! If you have multiple S- or P-
accounts, use the Consolidation Tool to merge your
content.

Get started with SAP Universal ID

Ask a Question Write a Blog Post Login / Sign-

Search Questions and Answers

Former Member
Aug 31, 2009 at 07:12 AM

Get data from spool


1583 Views
0

Follow RSS Feed

Hi everybody,

I just asking to !nd a solution for my project.

I want to use some data in R/3 report, which is running in


background.

Is it possible we get data directly from spool (TX: SP01) and use
it program?

Regards,

Steph

Add a Comment | Alert Moderator

Assigned Tags

ABAP Development

Similar Questions 
Issue with job and its spool
Former Member Mar 26, 2014

ABAP spool to email not working properly !!


Former Member Sep 18, 2014

3 Answers

Sort by: Votes | Newest | Oldest

Best Answer

Former Member
Aug 31, 2009 at 08:26 AM
yes this is possible, you can take spool number
from table TSP01 and read the spool data as
2
follows:

SUBMIT rspolst2 EXPORTING LIST TO MEMORY


AND RETURN

WITH rqident = Spool Number

WITH !rst = '1'

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = mem_tab (LIKE TABLE OF


abaplist)

IF NOT mem_tab[] IS INITIAL.

CALL FUNCTION 'LIST_TO_ASCI'

EXPORTING

List_index = -1

TABLES

listasci = g_t_text (table type c length 5000)

listobject = mem_tab

ENDIF.

by this way your spool data will come into table


g_t_text .

Add a Comment | Alert Moderator | Share

 1 comment

Former Member Sep 01, 2009 at 02:36 AM

Thanks Sheelesh, it's work, eventhough I must separated the


data one by one

it very plain text, but still separated by delimiter so that's ok...

Regards,

Steph

Like 0 | Share | Alert Moderator

Venkat O
Aug 31, 2009 at 07:15 AM
Hi Steph, <li>Yes It is possible to use in your
program. Use below function module to read
0
spool

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'


EXPORTING
src_spoolid = g_spool_no
no_dialog = ' '
IMPORTING
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
TABLES
pdf = i_pdf

Thanks Venkat.O

Add a Comment | Alert Moderator | Share

nagaraj kumar nishtala


Aug 31, 2009 at 07:21 AM
Hi,

0 First get the spool number from TSP01 table and


then use the FM
'CONVERT_ABAPSPOOLJOB_2_PDF'.

Regards,

Nagaraj

Add a Comment | Alert Moderator | Share

 1 comment

Former Member Sep 01, 2009 at 02:31 AM

Sorry Nagaraj and Venkat,

Is this FM use to convert spool result into PDF !le?

Regards,

Steph

Like 0 | Share | Alert Moderator

Before answering

You should only submit an answer when you are


proposing a solution to the poster's problem. If you
want the poster to clarify the question or provide more
information, please leave a comment instead,
requesting additional details. When answering, please
include speci!cs, such as step-by-step instructions,
context for the solution, and links to useful resources.
Also, please make sure that your answer complies with
our Rules of Engagement.

Rules of Engagement 

Know someone who can answer? Share a link to this


question.

You must be Logged in to submit an


answer.

Please provide a distinct answer and use the comment


option for clarifying purposes.

10 characters required.

Submit your Answer

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

You might also like