Skip to Content

OTF Format of Purchase Order in email unreadable

We have setup emailing of purchase orders and this is working fine. However, the file that is sent to the vendor is in format .OTF

How is this file read? Is it possible to send a different format? We can see the order in SOST, but the email that the vendor receives can not be read.

Can someone help please.

Thank you

Karen

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2006 at 09:59 AM

    Karen ,

    u have to convert OTF into other Formats like PDF .etc.

    check FMs convert_otf*.

    Regards

    prabhu

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2006 at 10:06 AM

    Goto SE80, In the Navigation path select Package and give STDX in the package name, press enter you see all the components asociated with SAP Scripts there, probably this would be helpfull for you.

    Regards:

    Santosh

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2006 at 10:09 AM

    hi Karen,

    USE following FM to convert OTF to PDF.

    *-- Read OTF from memory

    CALL FUNCTION 'READ_OTF_FROM_MEMORY'

    EXPORTING

    memory_key = nast-objky

    TABLES

    otf = lt_otf

    EXCEPTIONS

    memory_empty = 1

    OTHERS = 2.

    IF sy-subrc = 0.

    *-- Convert the OTF data to PDF data

    CALL FUNCTION 'CONVERT_OTF_2_PDF'

    EXPORTING

    use_otf_mc_cmd = 'X'

    IMPORTING

    bin_filesize = v_bin

    TABLES

    otf = lt_otf

    doctab_archive = it_doctab

    lines = lt_pdfdata

    EXCEPTIONS

    err_conv_not_possible = 1

    err_otf_mc_noendmarker = 2

    OTHERS = 3.

    Add comment
    10|10000 characters needed characters exceeded