<?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 converting Spool list to HTM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905294#M55984</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;Recently we have upgraded our system from 4.6B to 4.7.&lt;/P&gt;&lt;P&gt;we had a program which uses the FM ' SX_OBJECT_CONVERT_ALI_HTM' to convert the ABAP Spool List to HTM. But after the upgrade the parameters in FM have changed and we are forced to make modification in the program. &lt;/P&gt;&lt;P&gt;I get d dump while passing a parameter to CONTENT_BIN. It says type conflict when calling a FM. I have passed the same type of parameter. Kindly let me know where I'm going wrong and how to make this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zptest10 .

DATA: g_doc_type LIKE soodk-objtp VALUE 'ALI',
      tab_lines LIKE sy-tabix,
      doc_size(12) TYPE n,
      len_in(12),

      objbin TYPE soli_tab WITH HEADER LINE,
      objbin_new type solix_tab with header line,

      spool_number LIKE  tsp01-rqident,
      compressed_list LIKE solisti1 OCCURS 0 WITH HEADER LINE.


START-OF-SELECTION.

  spool_number = '2220'.

  CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
      rqident              = spool_number
    IMPORTING
      real_type            = g_doc_type
    TABLES
      buffer               = compressed_list
    EXCEPTIONS
      no_such_job          = 1
      job_contains_no_data = 2
      selection_empty      = 3
      no_permission        = 4
      can_not_access       = 5
      read_error           = 6
      type_no_match        = 7
      OTHERS               = 8.
  IF sy-subrc = 0.
    BREAK-POINT.
    DESCRIBE TABLE compressed_list LINES tab_lines.
    IF tab_lines &amp;gt; 0.

      MOVE compressed_list[] TO objbin[].
      MOVE compressed_list[] TO objbin_new[].

*---convert list to HTM

      doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
      len_in = doc_size.
*
      CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_HTM'
        EXPORTING
          format_src      = 'ALI'
          format_dst      = 'HTM'
          devtype         = 'SMTP'
          funcpara        = ''
        CHANGING
          content_txt     = objbin
          &amp;lt;b&amp;gt;content_bin     = objbin_new&amp;lt;/b&amp;gt;
          len             = len_in
        EXCEPTIONS
          err_conv_failed = 1
          OTHERS          = 2.
      IF sy-subrc = 0.
      ENDIF.

    ENDIF.

Any help is appreciated

Thanks,
Praveen

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2005 21:18:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-08T21:18:20Z</dc:date>
    <item>
      <title>converting Spool list to HTM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905294#M55984</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;Recently we have upgraded our system from 4.6B to 4.7.&lt;/P&gt;&lt;P&gt;we had a program which uses the FM ' SX_OBJECT_CONVERT_ALI_HTM' to convert the ABAP Spool List to HTM. But after the upgrade the parameters in FM have changed and we are forced to make modification in the program. &lt;/P&gt;&lt;P&gt;I get d dump while passing a parameter to CONTENT_BIN. It says type conflict when calling a FM. I have passed the same type of parameter. Kindly let me know where I'm going wrong and how to make this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zptest10 .

DATA: g_doc_type LIKE soodk-objtp VALUE 'ALI',
      tab_lines LIKE sy-tabix,
      doc_size(12) TYPE n,
      len_in(12),

      objbin TYPE soli_tab WITH HEADER LINE,
      objbin_new type solix_tab with header line,

      spool_number LIKE  tsp01-rqident,
      compressed_list LIKE solisti1 OCCURS 0 WITH HEADER LINE.


START-OF-SELECTION.

  spool_number = '2220'.

  CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
      rqident              = spool_number
    IMPORTING
      real_type            = g_doc_type
    TABLES
      buffer               = compressed_list
    EXCEPTIONS
      no_such_job          = 1
      job_contains_no_data = 2
      selection_empty      = 3
      no_permission        = 4
      can_not_access       = 5
      read_error           = 6
      type_no_match        = 7
      OTHERS               = 8.
  IF sy-subrc = 0.
    BREAK-POINT.
    DESCRIBE TABLE compressed_list LINES tab_lines.
    IF tab_lines &amp;gt; 0.

      MOVE compressed_list[] TO objbin[].
      MOVE compressed_list[] TO objbin_new[].

*---convert list to HTM

      doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
      len_in = doc_size.
*
      CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_HTM'
        EXPORTING
          format_src      = 'ALI'
          format_dst      = 'HTM'
          devtype         = 'SMTP'
          funcpara        = ''
        CHANGING
          content_txt     = objbin
          &amp;lt;b&amp;gt;content_bin     = objbin_new&amp;lt;/b&amp;gt;
          len             = len_in
        EXCEPTIONS
          err_conv_failed = 1
          OTHERS          = 2.
      IF sy-subrc = 0.
      ENDIF.

    ENDIF.

Any help is appreciated

Thanks,
Praveen

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2005 21:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905294#M55984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-08T21:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: converting Spool list to HTM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905295#M55985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is in the way you defined your internal table. You defined it as follows&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;objbin_new type solix_tab with header line&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module is not expecting it with a header line. So take out the '&amp;lt;i&amp;gt;with header line&amp;lt;/i&amp;gt;' part of it and you should be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2005 21:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905295#M55985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-08T21:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: converting Spool list to HTM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905296#M55986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;thanks for the nice suggestion, now i dont get any dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2005 22:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905296#M55986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-08T22:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: converting Spool list to HTM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905297#M55987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad it worked. Please mark the question as being answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 05:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905297#M55987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T05:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: converting Spool list to HTM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905298#M55988</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;I need to convert my spool request into a HTML File output format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how to correct this issue. I am getting the below mentioned error when i active my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following error noticed : OBJBIN_NEW and COMPRESSED_LIST are not mutually convertible. In Unicode programs, OBJBIN_NEW must have the same strucutre layout as COMPRESSED_LIST, independent of length of a unicode character.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zptest10 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  g_doc_type      like soodk-objtp value 'ALI',&lt;/P&gt;&lt;P&gt;       tab_lines       like sy-tabix,&lt;/P&gt;&lt;P&gt;       doc_size(12)    type n,&lt;/P&gt;&lt;P&gt;       len_in(12)      type c,&lt;/P&gt;&lt;P&gt;       objbin          type soli_tab with header line,&lt;/P&gt;&lt;P&gt;       objbin_new      type solix_tab,&lt;/P&gt;&lt;P&gt;       spool_number    like tsp01-rqident,&lt;/P&gt;&lt;P&gt;       compressed_list like solisti1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  break vrajaman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  spool_number = '31338'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      rqident              = spool_number&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      real_type            = g_doc_type&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      buffer               = compressed_list&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      no_such_job          = 1&lt;/P&gt;&lt;P&gt;      job_contains_no_data = 2&lt;/P&gt;&lt;P&gt;      selection_empty      = 3&lt;/P&gt;&lt;P&gt;      no_permission        = 4&lt;/P&gt;&lt;P&gt;      can_not_access       = 5&lt;/P&gt;&lt;P&gt;      read_error           = 6&lt;/P&gt;&lt;P&gt;      type_no_match        = 7&lt;/P&gt;&lt;P&gt;      others               = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    describe table compressed_list lines tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if tab_lines &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      move compressed_list[] to objbin[].&lt;/P&gt;&lt;P&gt;      move compressed_list[] to objbin_new[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; doc_size = ( tab_lines - 1 ) * 255 + strlen( objbin ).&lt;/P&gt;&lt;P&gt;      len_in = doc_size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'SX_OBJECT_CONVERT_ALI_HTM'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          format_src      = 'ALI'&lt;/P&gt;&lt;P&gt;          format_dst      = 'HTM'&lt;/P&gt;&lt;P&gt;          devtype         = 'SMTP'&lt;/P&gt;&lt;P&gt;          funcpara        = ''&lt;/P&gt;&lt;P&gt;        changing&lt;/P&gt;&lt;P&gt;          content_txt     = objbin&lt;/P&gt;&lt;P&gt;          content_bin     = objbin_new&lt;/P&gt;&lt;P&gt;          len             = len_in&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;          err_conv_failed = 1&lt;/P&gt;&lt;P&gt;          others          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 19:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-spool-list-to-htm/m-p/905298#M55988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-22T19:48:07Z</dc:date>
    </item>
  </channel>
</rss>

