<?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 Re: Function Module Call CONVERT_OTF_AND_FAX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-convert-otf-and-fax/m-p/8296557#M1635293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that I cannot publish a spool to any printer and expect CONVERT_OTFAND_FAX to do the OTF conversion and fax. Only some specific printers can be used for FAX ( I am still a bit fuzzy on how this works), I used LP01 to generate the spool and then used the function module CONVERT_OTF_AND_FAX to generate the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code worked -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_otf LIKE soli OCCURS 0,
      la_fax  TYPE itcpp,
      l_faxok.

la_fax-tddevice = 'TELEFAX'.
la_fax-tddest   = 'LP01'.
la_fax-tdcopies = 1.
la_fax-tdgetotf = ''.
la_fax-tdcover  = space.
la_fax-tdimmed  = 'X'.
la_fax-tddelete = 'X'.
la_fax-tdteleland = 'US'.
la_fax-tdtelenum  = 'XXX-XXX-XXXX'.

CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
  EXPORTING
    rqident              = XXXX
    desired_type         = 'OTF'
  TABLES
    buffer               = it_otf
  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.

CALL FUNCTION 'CONVERT_OTF_AND_FAX'
  EXPORTING
    faxoptions         = la_fax
    user               = sy-uname
 IMPORTING
   fax_ok             = l_faxok
  TABLES
    otf                =  it_otf
          .

COMMIT WORK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 14:23:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-05T14:23:25Z</dc:date>
    <item>
      <title>Function Module Call CONVERT_OTF_AND_FAX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-convert-otf-and-fax/m-p/8296556#M1635292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could someone please explain how to use this FM, it is unable to generate a fax for me and I always get a conversion error in SOST, following is the code. I have searched this forum and internet and usage in standard SAP includes but still could not find a good example for this function module with all the parameters explained. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I was able to get till this point, please let me know if I am missing anything -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT y_bcs_example_6.

DATA:it_otf LIKE soli OCCURS 0 WITH HEADER LINE.

DATA: la_fax  TYPE itcpp,
      l_faxok,
      lt_otf  TYPE TABLE OF itcoo.

la_fax-tddevice = 'TELEFAX'.
la_fax-tdgetotf = 'X'.
la_fax-tdcover  = space.
la_fax-tdimmed  = 'X'.

la_fax-tdteleland = 'US'.
la_fax-tdtelenum  = 'XXX-XXX-XXXX'.


CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
  EXPORTING
    rqident              = '81228'
    desired_type         = 'OTF'
  TABLES
    buffer               = it_otf
  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.

CALL FUNCTION 'CONVERT_OTF_AND_FAX'
  EXPORTING
    faxoptions         = la_fax
    user               = sy-uname
 IMPORTING
   fax_ok             = l_faxok
*   OFFICE_OBJID       =
*   MSGID              =
*   MSGNO              =
*   MSGV1              =
*   MSGV2              =
*   MSGV3              =
*   MSGV4              =
  TABLES
    otf                =  it_otf
          .

COMMIT WORK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 22:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-convert-otf-and-fax/m-p/8296556#M1635292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-03T22:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Call CONVERT_OTF_AND_FAX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-convert-otf-and-fax/m-p/8296557#M1635293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that I cannot publish a spool to any printer and expect CONVERT_OTFAND_FAX to do the OTF conversion and fax. Only some specific printers can be used for FAX ( I am still a bit fuzzy on how this works), I used LP01 to generate the spool and then used the function module CONVERT_OTF_AND_FAX to generate the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code worked -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_otf LIKE soli OCCURS 0,
      la_fax  TYPE itcpp,
      l_faxok.

la_fax-tddevice = 'TELEFAX'.
la_fax-tddest   = 'LP01'.
la_fax-tdcopies = 1.
la_fax-tdgetotf = ''.
la_fax-tdcover  = space.
la_fax-tdimmed  = 'X'.
la_fax-tddelete = 'X'.
la_fax-tdteleland = 'US'.
la_fax-tdtelenum  = 'XXX-XXX-XXXX'.

CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
  EXPORTING
    rqident              = XXXX
    desired_type         = 'OTF'
  TABLES
    buffer               = it_otf
  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.

CALL FUNCTION 'CONVERT_OTF_AND_FAX'
  EXPORTING
    faxoptions         = la_fax
    user               = sy-uname
 IMPORTING
   fax_ok             = l_faxok
  TABLES
    otf                =  it_otf
          .

COMMIT WORK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 14:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-convert-otf-and-fax/m-p/8296557#M1635293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T14:23:25Z</dc:date>
    </item>
  </channel>
</rss>

