Skip to Content
author's profile photo Former Member
Former Member

FAX Sazpscript using SO_DOCUMENT_SEND_API1


Im using SO_DOCUMENT_SEND_API1 FM to sned the sapscript thru fax...

I have just a question about the FROM and TO fields on the cover of the fax...

Currently my output has no value on the said fileds... I want to put values on those fields... How am I going to do that?

Thanks a lot!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 11, 2008 at 06:49 AM

    check this link for all your querries


    Please Check this one:

    SAP Script->PDF->Email

    have alook at this code also

    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'


    src_spoolid = mi_rqident

    no_dialog = c_no

    dst_device = c_device


    pdf_bytecount = gd_bytecount


    pdf = it_pdf_output


    err_no_abap_spooljob = 1

    err_no_spooljob = 2

    err_no_permission = 3

    err_conv_not_possible = 4

    err_bad_destdevice = 5

    user_cancelled = 6

    err_spoolerror = 7

    err_temseerror = 8

    err_btcjob_open_failed = 9

    err_btcjob_submit_failed = 10

    err_btcjob_close_failed = 11

    others = 12.

    check sy-subrc = 0.

    Transfer the 132-long strings to 255-long strings

    loop at it_pdf_output.

    translate it_pdf_output using ' ~'.

    concatenate gd_buffer it_pdf_output into gd_buffer.


    translate gd_buffer using '~ '.


    it_mess_att = gd_buffer.

    append it_mess_att.

    shift gd_buffer left by 255 places.

    if gd_buffer is initial.




    then call FM after populating attachment data

    call function 'SO_DOCUMENT_SEND_API1'


    document_data = w_doc_data

    put_in_outbox = 'X'

    sender_address = ld_sender_address

    sender_address_type = ld_sender_address_type

    commit_work = 'X'


    sent_to_all = w_sent_all


    packing_list = t_packing_list

    contents_bin = t_attachment

    contents_txt = it_message

    receivers = t_receivers


    too_many_receivers = 1

    document_not_sent = 2

    document_type_not_exist = 3

    also u can chk sample programe.

    Refer to the code in the following link:

    do reward if helpful

    Add a comment
    10|10000 characters needed characters exceeded

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 specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.