<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Function Module to convert Spool to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995769#M954624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module which converts spool data to internal table.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Urgent!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 10:02:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-16T10:02:58Z</dc:date>
    <item>
      <title>Function Module to convert Spool to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995769#M954624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module which converts spool data to internal table.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Urgent!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 10:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995769#M954624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T10:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to convert Spool to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995770#M954625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0003 .

data: list type table of abaplist with header line.
data: ascilines(1024) type c occurs 0 with header line.

start-of-selection.

do 100 times.

write:/ sy-index.

enddo.

call function 'SAVE_LIST'

    * EXPORTING
    * LIST_INDEX = '0'

tables
listobject = list
exceptions
list_index_invalid = 1
others = 2
.
if sy-subrc 0.

    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

call function 'LIST_TO_ASCI'
tables
listobject = list
listasci = ascilines
exceptions
empty_list = 1
list_index_invalid = 2
others = 3.

check sy-subrc = 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 10:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995770#M954625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to convert Spool to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995771#M954626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data i_msg type standard table of soli initial size 0 with header line.

loop at ascilines.
move ascilines to i_msg-line.
append i_msg.
endloop.

In the previous call to LIST_TO_ACSI we are passing LIST and getting ASCILINES back from it.


call function 'LIST_TO_ASCI'
tables
listobject = list &amp;lt; Passing
listasci = ascilines &amp;gt; Getting
exceptions
empty_list = 1
list_index_invalid = 2
others = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikr4anth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 10:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995771#M954626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T10:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to convert Spool to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995772#M954627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Ztest.

*Type Declarations
TYPES: BEGIN OF ty_rdidata,
line(1000) TYPE c,
END OF ty_rdidata.

DATA: ws_spool LIKE tsp01-rqident,
i_rdidata TYPE STANDARD TABLE OF ty_rdidata,
wa_rdidata TYPE ty_rdidata.

PARAMETERS: p_sp TYPE tsp01-rqident.

ws_spool = '0000019125'.


CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB_RAW'
EXPORTING
rqident = ws_spool


FIRST_LINE = 1 
LAST_LINE = 
TABLES
buffer = i_rdidata
EXCEPTIONS
no_such_job = 1
not_abap_list = 2
job_contains_no_data = 3
selection_empty = 4
no_permission = 5
can_not_access = 6
read_error = 7
OTHERS = 8
.
IF sy-subrc 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno 
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. 
ENDIF..&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 10:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995772#M954627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T10:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to convert Spool to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995773#M954628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Look into RSTXPDFT4 (program - SE38), you could get the useful information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 10:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995773#M954628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T10:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to convert Spool to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995774#M954629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending you link of the function module, so go through that one and check it , you will find there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/functions.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Nikunj shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 11:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-spool-to-internal-table/m-p/3995774#M954629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T11:25:31Z</dc:date>
    </item>
  </channel>
</rss>

