Invoice output to be send by fax

Dear Guru's
     My requirment is Once invoice has been created we want send it through e-mail or fax to the client is it possible in sap output. what all the configaretion required for this, please update soon.
Regards,
Bhanu.

Hi,
System output is used for exchanging information between business partners.  Examples of output are: 
Sold-to:  Order confirmation
Ship-to:  Shipping document
Employees:  Mail
Output can be issued from various sales documents such as:
Order
Delivery
Billing
Output determination can be configured based on either the customer master record or the condition technique.
if you have done Output determination then maintain the records
Path For Output Determination For Sales Documents: Logistics Sales/distribution Master data Output  Sales Document Create (t-code VV11)
Path for Output Determination for Delivery Documents :
Logistics Sales/distribution Master data Output  shipping Create ( t-ode VV21)
Path for Output Determination for Billing Documents : Logistics Sales/distribution Master data Output  Billing Document Create ( t- code VV31)
And if you want to learn more about output please follow the link
http://help.sap.com/saphelp_46c/helpdata/en/30/c6853488601e33e10000009b38f83b/frameset.htm
Hope this will help.
Reward point if helpful.
Thanks,
Raja

Similar Messages

  • Triggering Invoice Output only first time

    Hi,
    I want to trigger an Invoice output(Email : External Send medium)  only when it is created for the first time.
    The reason for doing this :  The document generated is a contract invoice  and some additional warranty info needs to be in body of the email for the partner types maintained in the contract.
    Also is there a way we can get the Bold Text in the email. I am using some standard texts to build email body and then calling
    SO_NEW_DOCUMENT_ATT_SEND_API1u2032 .
    e.g. Contract Number:  12345
    Appreciate if anyone has worked on such scenario.  I am considering  using routines.
    Thanks,
    Rao

    To Issue output only once, do the following setting
    Go to Transaction code NACE -> Select the Application (V3-for Billing -> Click on Output types -> Select the required output type -> Click on View Button -> Remove the Tick mark from the option "Multiple Issuing".
    Regards
    Vinod

  • Sending Mail Via Invoice Output

    Dear Friends,
    We have a requirement of sending invoice data in excel, which has to be sent via invoice output, soon as we save the invoice. (like we fire print output or IDOC).
    We have written an ABAP program which generates such an excel file. Addtionally we have tried multiple options using Transmission medium like "Simple Mail" & "External Send", but in vain.
    It seems the standard functionality support sending the data in PDF format which we are able to do. But our requirement is it should be sent as an attachment in excel.
    Please help.
    Regards,
    Dhananjay

    Hi Dhanajya,
    http://wiki.sdn.sap.com/wiki/display/sandbox/ConversionofSpoolRequestDataintoPDFandExcelFormatandSenditintoMail. Given by MANSI ASNANI.
    Regards,
    Madhu.

  • Invoice output triggered once but sending multiple mails from the output

    Hello Experts,
    Need your help with a tricky issue in our system.
    We have an output type defined to send invoice output as email. Lately we have an issue with this.
    If we trigger the output in foreground it works fine. But when we create the invoices from batchjob it is triggering multiple emails for the same invoice. When we check the output in invoice it was triggered only once. Even in NAST also we have only one entry for these invoices. This issue is happening randomly not for all the invoices created through batch.
    To nailed down the issue we have added code to update the application log in the output program. It wil update the application log in SLG1 transaction when ever the output program was called. Surprisingly even for the cases where the mail triggered multiple times we have only one entry in the log. It means even though the mail sent multiple times, it is calling the output porgam only once.
    We are not able to replicate this issue even after mulitple trails.
    Please suggest how we can find the root cause for this issue. All the ideas are welcome.
    Thanks,
    Srini

    Hi
    The problem could be in SO_DOCUMENT_SEND_API1 or in the program called to send the mail
    SO_DOCUMENT_SEND_API1 places the mail in SOST (how many messages you can see there?)
    If you see only one message the problem could be in the program to send the mail
    Max

  • Convert SAPSCRIPT to PDF and send to FAX

    Hi All,
    Currently i am having customized sapscript.
    1.) I have to convert it to PDF. How to convert to PDF.
    2.) Then i need to send PDF to FAX. How.
    What are the code required to change and add.
    What is OTF output, which is easier to fax. PDF or OTF output.
    With Regards,
    Vinoth

    Hi Code,
    Refer this sample code.
    DATA: t_otf LIKE itcoo OCCURS 100 WITH HEADER LINE,
          t_pdf LIKE tline OCCURS 100 WITH HEADER LINE,
          t_opt like itcpo occurs 0 with header line.  
    data:
       w_flag     type i,                   " Temporary flag
      w_control  type ssfctrlop,           " Control parameters
      w_output   type ssfcompop,           " Output options
      w_return   type ssfcrescl,           " Job output info
      w_filesize type sood-objlen,         " Bin file size
      w_string   type string,              " To convert from 132 to 255
      w_msg      type i,                   " Message length
      w_docdata  type sodocchgi1,          " Document data
      w_objbin   type i,                   " Contents bin
      w_sender   type soextreci1-receiver. " Sender
    t_opt-TDGETOTF = 'X'.
    append t_opt.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       APPLICATION                       = 'TX'
       FORM                              = 'ZTEST_SCRIPT1'
       LANGUAGE                          = SY-LANGU
       OPTIONS                           = t_opt 
    EXCEPTIONS
       CANCELED                          = 1
       DEVICE                            = 2
       FORM                              = 3
       OPTIONS                           = 4
       UNCLOSED                          = 5
       MAIL_OPTIONS                      = 6
       ARCHIVE_ERROR                     = 7
       INVALID_FAX_NUMBER                = 8
       MORE_PARAMS_NEEDED_IN_BATCH       = 9
       SPOOL_ERROR                       = 10
       CODEPAGE                          = 11
       OTHERS                            = 12
    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 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TEXT'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'HEADER'
    * IMPORTING
    *   PENDING_LINES                  =
    * EXCEPTIONS
    *   ELEMENT                        = 1
    *   FUNCTION                       = 2
    *   TYPE                           = 3
    *   UNOPENED                       = 4
    *   UNSTARTED                      = 5
    *   WINDOW                         = 6
    *   BAD_PAGEFORMAT_FOR_PRINT       = 7
    *   SPOOL_ERROR                    = 8
    *   CODEPAGE                       = 9
    *   OTHERS                         = 10
    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 'CLOSE_FORM'
    * IMPORTING
    *   RESULT                         =
    *   RDI_RESULT                     =
    TABLES
       OTFDATA                        = t_otf
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       SPOOL_ERROR                    = 4
       CODEPAGE                       = 5
       OTHERS                         = 6
    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 'CONVERT_OTF'
    EXPORTING
       format                      = 'PDF'
    *   MAX_LINEWIDTH               = 132
    *   ARCHIVE_INDEX               = ' '
    *   COPYNUMBER                  = 0
    *   ASCII_BIDI_VIS2LOG          = ' '
    *   PDF_DELETE_OTFTAB           = ' '
    * IMPORTING
    *   BIN_FILESIZE                =
    *   BIN_FILE                    =
      TABLES
        otf                         = t_otf
        lines                       = t_line
    EXCEPTIONS
       ERR_MAX_LINEWIDTH           = 1
       ERR_FORMAT                  = 2
       ERR_CONV_NOT_POSSIBLE       = 3
       ERR_BAD_OTF                 = 4
       OTHERS                      = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
        loop at t_line.
          concatenate w_string t_line into w_string.
        endloop.                           " LOOP AT T_LINE
    *" convert the 132 line character to 255 character ....................
        do.
          t_attach = w_string.
          append t_attach.
          shift w_string left by 255 places.
          if w_string is initial.
            exit.
          endif.                           " IF W_STRING IS INITIAL
        enddo.                             " DO
        t_objbin[] = t_attach[].
    *" Body of the mail..................................................
        clear t_message. refresh t_message.
        t_message = 'This is a mail from SAP ECC6'.
        append t_message.
        t_message = 'Thanks and Regards'.
        append t_message.
        t_message = 'Sravanthi'.
        append t_message.
        describe table t_message lines w_msg.
    *" Document data.......................................................
        w_docdata-obj_name = 'SAPRPT'.
        w_docdata-expiry_dat = sy-datum + 10.
        w_docdata-obj_descr = 'This mail from Sravanthi'.
        w_docdata-sensitivty = 'F'.
        w_docdata-doc_size = w_msg * 255.
        w_docdata-obj_langu = sy-langu .
    *" Fill the packing list...............................................
        clear t_packing_list. refresh t_packing_list.
        t_packing_list-transf_bin = space.
        t_packing_list-head_start = 1.
        t_packing_list-head_num = 0.
        t_packing_list-body_start = 1.
        t_packing_list-body_num = w_msg.
        t_packing_list-doc_type = 'RAW'.
        append t_packing_list.
        t_packing_list-transf_bin = 'X'.
        describe table t_objbin lines w_objbin.
    *" doc_size = (lines in pdf table) * 255...............................
        t_packing_list-doc_size = w_objbin * 255.
        t_packing_list-body_num = w_objbin.
        t_packing_list-doc_type = 'PDF'.
        t_packing_list-obj_name = 'smart'.
        t_packing_list-obj_descr = 'test'.
        append t_packing_list.
    *" Fill the receiver parameters........................................
        if p_mail eq 'X'.
          clear t_receivers.
          t_receivers-receiver = p_mailid.
          t_receivers-rec_type = 'U'.
          append t_receivers.
    *" Fax.................................................................
        elseif p_fax eq 'X'.
          clear t_receivers.
          t_receivers-receiver = p_faxno.
          t_receivers-rec_type = 'F'.
          t_receivers-com_type = 'FAX'.
          append t_receivers.
        endif.                             " IF P_MAIL EQ 'X'
        w_sender = 'SAPDEV02'.
    *  FUNCTION MODULE SO_DOCUMENT_SEND_API1                              *
    *  This function module enables you send a new document including any *
    *  existing attachments. The document and the attachments are         *
    *  transferred in the same table. They are created when sent and can  *
    *  also be placed in the sender's outbox.                             *
        call function 'SO_DOCUMENT_SEND_API1'
          exporting
            document_data              = w_docdata
            put_in_outbox              = 'X'
            sender_address             = w_sender
            commit_work                = 'X'
          tables
            packing_list               = t_packing_list
            contents_bin               = t_objbin
            contents_txt               = t_message
            receivers                  = t_receivers
          exceptions
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7.
        if sy-subrc ne 0.
          write:/ 'Error When Sending the File', sy-subrc.
        else.
          write:/ 'Mail sent'.
        endif.
      elseif p_fax eq 'X'.
      endif.
    Regards,
    Sravanthi

  • Sending of FAX

    Hi Experts,
    We are trying to send a FAX using RFC using third party vendor RIGHT FAX to 10 different FAX numbers.
    We need to send a letter with some fix texts & few variable values .
    How will the letter be formated and how will it go to different end users ?
    Any relevant documentation would be helpful.
    Thanks,

    Hi
    Sending FAX means it s nothing but sending some Output to the external partner
    So similar to scripts/smartforms design the Output form with the relative data and use an Output type with proper output device (fax)  similar to sending a PO to a vendor using the Medium 2 (FAX).
    Configure the settings in SPAD and take the help of a Basis person and if needed try to use the same logic as that of a Std driver program of a script  or smartform.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Issue in Invoice Output

    Hi All,
    I am in the process of preparing Functional Specs. Excise Invoice number should print in Invoice output. Kindly help me writing a logic.
    Regards,
    Raju

    Hi Yadav,
    Thanks for your reply. Please modify the below logic and send it to me. We are having Depot sales and Shipment also.We don't have proforma invoice process.Kindly find the details below and help me writing the logic.
    The Excise Invoice is in J_1IEXCHDR-EXNUM
    Need the value in Invoice Output , So VBELN - Billing Document
    Logic
    Select VBRP-VGBEL where VBRP-VBELN EQ Billing document number*......( select delivery number)
    Then
    Select VBFA-VBELN where VBFA-VBELV EQ VBRP-VGBEL (from above step)
    And VBFA-VBTYP_N EQ U....................( Select Proforma Invoice F8 wrt delivery no)
    Then
    Select J_1IEXCHDR u2013EXNUM where J_1IEXCHDR-RDOC EQ VBFA-VBELN (From above step)
    Regards,
    Raju

  • Send a FAX through F110 transaction

    hELLO ,
    I.m a FI Consultant and I don´t know very much about programming , so I have to know how to send a FAX through the F110 transaction and I imagine I need to use programming, so please could you help me telling the response step by step?
    Thank you very much.
    Best Regars
    Olga

    Hi,
    Copy the standard program that generates the output (probably RFFOUS_T) to a custom program.
    Change the print program name in FBZP from RFFOUS_T to your custom program.
    One option: you can add a communication method in the selection screen of this custom program and based on that modify the code in the program to send the output as a fax.
    or even without the Communication method on the selection screen, modify the code in the program to read the communication type and number from the Vendor Master record and use the standard func module SO_NEW_DOCUMENT_ATT_SEND_API1 to send fax.
    Regards,
    Subramanian

  • M a i l - Invoice Outputs

    Hi experts,
    I have a requirement to send invoice outputs via electronic mail. I am on SAP 4.7
    I created a output type Z1DE --> assigned transmission medium = 7(simple mail)  --> assigned print program and form that we use for printing outputs. Assigned the output type to access seq, procedure and F2 doc type.
    Then created condition record in VV31 --> for BP and Message transmission medium = 7 and entered my e mail address in partner field. I also maintained same e mail address in customer master field.
    When I create invoice I get the output with error message "Message no. SVN000,  Message type Z1DE should be sent with communication type ."
    I also tried using CS01 in NACE in communication strategy. This doesn't help !
    Thanks !
    Output type, Billing output, email, pdf, invoice

    Hi Ron,
    PLease check the below links and see if it helps you. This was for delivery but you can get some idea.
    SD Delivery Output - External Send
    http://www.sapfans.com/forums/viewtopic.php?f=5&t=187777
    If it still does not solve your issue, let us know.
    Regards,
    SB
    Edited by: Satish Bharambe on Jun 22, 2011 7:07 PM

  • ABAP coding required in order to send Output via External Send (5)

    Hi
    I require some coding to an ABAP program in order for my SD output to be succesfully sent by 'external send'
    I have a shipping output type.
    assigned Partner functions and applicable mediums - 1, 2 and 5
    however when trying to produce output via comm method 5, external send, i am gettting red error messages/ traffic ligh
    processing log is as follows:-
    "processing log for program xxxxxxxx routine ENTRY
    Please enter an address number
    communication type      cannot be used"
    all outputs for medium types 2 Fax and 1 print are all OK for all Partner functions involved
    I have changed to another output which works fine,:- altho as this was written specifically for another outut,and form, so there is a lot of data missing on the form with this program.
    we have tried to deciper the coding on the program that does work, but to no avail
    Many thanks for your help on this matter
    Tony

    You need to maintain/fill ADDR_KEY structure in the print program....

  • Send mail/fax/print SAPSCRIPT

    Hi Experts,
    I need to modify SAPSCRIPT in transaction F.64.
    This Layout I need to send as Email/fax/print as per user requirement.
    Could give me sample code tht i need to modify in Print program to achieve the above functionality///.............
    Its Urgent.........Answers will be rewarded...

    Hi,
    For mail attachemnt:
    REPORT Z_SCRIPT .
    DATA: itcpo LIKE itcpo,
    tab_lines LIKE sy-tabix.
    Variables for EMAIL functionality
    DATA: maildata LIKE sodocchgi1.
    DATA: mailpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: mailhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    DATA: mailbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: mailtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: mailrec LIKE somlrec90 OCCURS 0 WITH HEADER LINE.
    DATA: solisti1 LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    *PERFORM send_form_via_email.
    FORM SEND_FORM_VIA_EMAIL *
    FORM send_form_via_email.
    CLEAR: maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
    REFRESH: mailtxt, mailbin, mailpack, mailhead, mailrec.
    Creation of the document to be sent File Name
    maildata-obj_name = 'TEST'.
    Mail Subject
    maildata-obj_descr = 'Subject'.
    Mail Contents
    mailtxt-line = 'Here is your file'.
    APPEND mailtxt.
    Prepare Packing List
    PERFORM prepare_packing_list.
    Set recipient - email address here!!!
    mailrec-receiver = 'email.COM'.
    mailrec-rec_type = 'U'.
    APPEND mailrec.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = maildata
    put_in_outbox = ' '
    TABLES
    packing_list = mailpack
    object_header = mailhead
    contents_bin = mailbin
    contents_txt = mailtxt
    receivers = mailrec
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99.
    ENDFORM.
    Form PREPARE_PACKING_LIST
    FORM prepare_packing_list.
    CLEAR: mailpack, mailbin, mailhead.
    REFRESH: mailpack, mailbin, mailhead.
    DESCRIBE TABLE mailtxt LINES tab_lines.
    READ TABLE mailtxt INDEX tab_lines.
    maildata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( mailtxt ).
    Creation of the entry for the compressed document
    CLEAR mailpack-transf_bin.
    mailpack-head_start = 1.
    mailpack-head_num = 0.
    mailpack-body_start = 1.
    mailpack-body_num = tab_lines.
    mailpack-doc_type = 'RAW'.
    APPEND mailpack.
    Creation of the document attachment
    This form gets the OTF code from the SAPscript form.
    If you already have your OTF code, I believe that you may
    be able to skip this form. just do the following code, looping thru
    your SOLISTI1 and updating MAILBIN.
    PERFORM get_otf_code.
    LOOP AT solisti1.
    MOVE-CORRESPONDING solisti1 TO mailbin.
    APPEND mailbin.
    ENDLOOP.
    DESCRIBE TABLE mailbin LINES tab_lines.
    mailhead = 'TEST.OTF'.
    APPEND mailhead.
    Creation of the entry for the compressed attachment
    mailpack-transf_bin = 'X'.
    mailpack-head_start = 1.
    mailpack-head_num = 1.
    mailpack-body_start = 1.
    mailpack-body_num = tab_lines.
    mailpack-doc_type = 'OTF'.
    mailpack-obj_name = 'TEST'.
    mailpack-obj_descr = 'Subject'.
    mailpack-doc_size = tab_lines * 255.
    APPEND mailpack.
    ENDFORM.
    Form GET_OTF_CODE
    FORM get_otf_code.
    DATA: BEGIN OF otf OCCURS 0.
    INCLUDE STRUCTURE itcoo .
    DATA: END OF otf.
    DATA: itcpo LIKE itcpo.
    DATA: itcpp LIKE itcpp.
    CLEAR itcpo.
    itcpo-tdgetotf = 'X'.
    Start writing OTF code
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = 'Z08V3_COLLI'
    language = sy-langu
    options = itcpo
    dialog = ' '
    EXCEPTIONS
    OTHERS = 1.
    CALL FUNCTION 'START_FORM'
    EXCEPTIONS
    error_message = 01
    OTHERS = 02.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    window = 'MAIN'
    EXCEPTIONS
    error_message = 01
    OTHERS = 02.
    Close up Form and get OTF code
    CALL FUNCTION 'END_FORM'
    EXCEPTIONS
    error_message = 01
    OTHERS = 02.
    MOVE-CORRESPONDING itcpo TO itcpp.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    result = itcpp
    TABLES
    otfdata = otf
    EXCEPTIONS
    OTHERS = 1.
    Move OTF code to structure SOLI form email
    CLEAR solisti1. REFRESH solisti1.
    LOOP AT otf.
    solisti1-line = otf.
    APPEND solisti1.
    ENDLOOP.
    ENDFORM
    For FAx Attaxhment:
    REPORT RSKSENDF MESSAGE-ID SK.
    Test report to send a test fax
    sends a fax to the number <TO_CNTRY>-<TO_NMBER>
    containing an automatically generated message text.
    TABLES: USR03.
    PARAMETERS: TO_CNTRY LIKE T005-LAND1 OBLIGATORY,
    TO_NMBER LIKE TSP01-RQTELENUM OBLIGATORY,
    FROM_USR(30) TYPE C DEFAULT SY-UNAME,
    TO_RECIP(30) TYPE C DEFAULT SY-UNAME.
    SAPscript content ITAB
    DATA: BEGIN OF TEST_DOC OCCURS 10.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF TEST_DOC.
    SAPscript header struct
    DATA BEGIN OF HEADER.
    INCLUDE STRUCTURE THEAD.
    DATA END OF HEADER.
    INITIALIZATION.
    get county from user addres in usr03
    system->user profile->user address
    check if not empty
    SELECT SINGLE * FROM USR03 WHERE BNAME = SY-UNAME.
    IF SY-SUBRC = 0 AND USR03-LAND1 <> SPACE.
    TO_CNTRY = USR03-LAND1.
    ENDIF.
    START-OF-SELECTION.
    PERFORM FILL_UP_TEST_DOC.
    PERFORM SHOW_TEST_DOC.
    AT PF08.
    PERFORM SEND_FAX TABLES TEST_DOC USING TO_CNTRY
    TO_NMBER.
    AT SELECTION-SCREEN ON TO_NMBER.
    PERFORM CHECK_NUMBER USING TO_CNTRY TO_NMBER.
    *& Form CHECK_NUMBER
    FORM CHECK_NUMBER USING
    COUNTRY
    NUMBER.
    DATA: SERVICE LIKE TSKPA-SERVICE VALUE 'TELEFAX',
    LEN LIKE SY-FDPOS.
    FIELD-SYMBOLS <P>.
    windows GUI push the ? from mandatory input instead
    of overwriting it
    LEN = STRLEN( TO_NMBER ).
    IF LEN > 1.
    SUBTRACT 1 FROM LEN.
    ASSIGN TO_NMBER+LEN(1) TO <P>.
    IF <P> = '?'.
    <P> = SPACE.
    ENDIF.
    ENDIF.
    official check FM
    CALL FUNCTION 'TELECOMMUNICATION_NUMBER_CHECK'
    EXPORTING
    COUNTRY = COUNTRY
    NUMBER = NUMBER
    SERVICE = SERVICE.
    on old 21?/22? release you may have to handle the
    exception
    because the Function uses RAISE instead of
    MESSAGE... RAISING....
    ENDFORM. " CHECK_NUMBER
    *& Form FILL_UP_TEST_DOC
    fills test text in itab TEST_DOC *
    real life example needs to get real life data *
    FORM FILL_UP_TEST_DOC.
    DATA: DATUM(12) TYPE C,
    UZEIT(10) TYPE C.
    SAPscript initialization
    of course, you may want to set a few parameter
    (FORM,LAYOUT,....)
    CALL FUNCTION 'INIT_TEXT'
    EXPORTING
    ID = 'ST '
    LANGUAGE = SY-LANGU
    NAME = 'FOO-BAR'
    OBJECT = 'TEXT'
    IMPORTING
    HEADER = HEADER
    TABLES
    LINES = TEST_DOC
    EXCEPTIONS
    OTHERS = 1.
    IF SY-SUBRC <> 0.
    MESSAGE A400 WITH 'INIT_TEXT'.
    ENDIF.
    PERFORM ADD_EMPTY_LINE.
    WRITE: SY-DATUM TO DATUM.
    WRITE: SY-UZEIT TO UZEIT.
    PERFORM ADD_LINES USING 'This is test Telefax'(001)
    DATUM UZEIT.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING 'From: &'(002) FROM_USR SPACE.
    PERFORM ADD_LINES USING 'To: &'(003) TO_RECIP SPACE.
    PERFORM ADD_LINES USING 'Fax number: & &'(004)
    TO_CNTRY TO_NMBER.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING
    'This is a test fax send by Report RSKSENDF'(005)
    SPACE SPACE.
    PERFORM ADD_LINES USING 'on SAP system & '(006)
    SY-SYSID SPACE.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING
    'the quick brown fox jumps over the lazy dog.'(101)
    SPACE SAPCE.
    PERFORM ADD_LINES USING
    'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.'(102)
    SPACE SAPCE.
    PERFORM ADD_EMPTY_LINE.
    PERFORM ADD_LINES USING 'End of test'(007) SPACE
    SPACE.
    ENDFORM. " FILL_UP_TEST_DOC
    *& Form ADD_LINES
    printf a line an appends it in test_doc *
    --> cformat format.
    --> p1 param1
    --> p2 param2
    FORM ADD_LINES USING CFORMAT P1 P2.
    TEST_DOC-TDFORMAT = '/'.
    TEST_DOC-TDLINE = CFORMAT.
    IF TEST_DOC-TDLINE CA '&'.
    REPLACE '&' WITH P1 INTO TEST_DOC-TDLINE.
    IF TEST_DOC-TDLINE CA '&'.
    REPLACE '&' WITH P2 INTO TEST_DOC-TDLINE.
    ENDIF.
    ENDIF.
    APPEND TEST_DOC.
    ENDFORM. " ADD_LINES
    *& Form ADD_EMPTY_LINE
    appends an empty line to test_doc *
    FORM ADD_EMPTY_LINE.
    TEST_DOC-TDFORMAT = '/'.
    CLEAR TEST_DOC-TDLINE.
    APPEND TEST_DOC.
    ENDFORM. " ADD_EMPTY_LINE
    *& Form SHOW_TEST_DOC
    lists the test doc for aproval *
    *>>>> this is for fun only because PRINT_TEXT also
    offers a preview *
    FORM SHOW_TEST_DOC.
    FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
    WRITE: / 'Test fax would look like this:'(020).
    ULINE.
    SKIP.
    LOOP AT TEST_DOC.
    IF TEST_DOC-TDLINE <> SPACE.
    WRITE:/ TEST_DOC-TDLINE.
    ELSE.
    SKIP.
    ENDIF.
    ENDLOOP.
    SKIP.
    ULINE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE: 'Press PF8 to send it'(021).
    ENDFORM. " SHOW_TEST_DOC
    *& Form SEND_FAX
    send fax by calling SAPscript *
    Note: Instead of using PRINT_TEXT you may also *
    call OPEN_FORM / WRITE_FORM_LINES / CLOSE_FORM, *
    this allows you to use a similar program structure *
    as with NEW-PAGE PRINT ON / WRITE / NEW-PAGE PRINT
    OFF *
    FORM SEND_FAX
    TABLES DOC2FAX STRUCTURE TEST_DOC
    USING COUNTRY
    NUMBER.
    DATA: SID(5) TYPE N.
    DATA BEGIN OF POPT.
    INCLUDE STRUCTURE ITCPO.
    DATA END OF POPT.
    DATA BEGIN OF PRES.
    INCLUDE STRUCTURE ITCPP.
    DATA END OF PRES.
    CLEAR POPT.
    POPT-TDCOPIES = 1. " one copy
    POPT-TDDEST = " done internaly by script,
    POPT-TDPRINTER = " do not fill !!!
    POPT-TDNEWID = 'X'. " do not reuse old spool request
    POPT-TDDATASET = 'TEST'(022). " fill as you want
    POPT-TDSUFFIX1 = 'FAX'(023). " fill as you want
    POPT-TDSUFFIX2 = SY-UNAME. " fill as you want
    POPT-TDIMMED = 'X'. " send now
    POPT-TDLIFETIME = 8. " keep 8 days in spool
    POPT-TDTELENUM = NUMBER. " number without country code
    POPT-TDTELELAND = COUNTRY. " country of recipient
    POPT-TDCOVER = 'test fax'(024).
    POPT-TDCOVTITLE = 'test fax'(024).
    POPT-TDIEXIT = 'X'.
    CALL FUNCTION 'PRINT_TEXT'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX = ' '
    ARCHIVE_PARAMS = ' '
    DEVICE = 'TELEFAX' "<<< here we say: fax it !
    DIALOG = 'X'
    HEADER = HEADER
    OPTIONS = POPT
    IMPORTING
    RESULT = PRES
    TABLES
    LINES = DOC2FAX
    EXCEPTIONS
    OTHERS = 01.
    do not bother with exception in sample code
    CANCELED = 01
    DEVICE = 02
    FORM = 03
    OPTIONS = 04
    UNCLOSED = 05
    UNKNOWN = 06
    FORMAT = 07
    TEXTFORMAT = 08
    EXTERNAL = 09.
    IF SY-SUBRC = 0.
    arriving here means we could send:
    SID = PRES-TDSPOOLID.
    IF SID > '00000'.
    MESSAGE S433 WITH SID.
    ENDIF.
    LEAVE .
    ELSE.
    do not bother with exception in sample code
    MESSAGE A400 WITH 'PRIN_TEXT'.
    ENDIF.
    ENDFORM. " SEND_FAX
    TESTING:
    You can check with the transactions SOST or SOSB to monitor the outputs sent out from SAP.
    Regards,
    Shiva Kumar

  • Fatal Error while sending a fax

    Hello
    I'm having this problem with one of my users the company.
    we have a fax server that is working almost fine for everyone but one specific user, whenever she tries to send a fax from her client computer, after dialing and when it says Transmitting...a Fatal Error comes up,, Event
    ID 32028
    I did all the suggested actions by Microsoft and other people in the forum, no luck
    today i tried something else, send a fax with same user on another client computer...same error
    so this is a user problem..i checked all the permissions and FAX USERS group, it is the same like others
    please help!! 

    Hi,
    For Event ID 32028, please refer to following article and check if can help you to troubleshoot this issue.
    Event ID 32028 — Sent Fax Status
    Meanwhile, please open Registry Editor and follow the path:
    HKEY_CURRENT_USER\Software\Microsoft\Fax folder when the problematic user account logon, then compare with other user accounts which can be used to send fax as normal. Any difference?
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why does my printer automatically go to send a fax when I just want to print?

    Why does my printer automatically go to send a fax when I just want to print?
    This question was solved.
    View Solution.

    Hi pa_tom,
    In your printers folder on your computer, is the default printer set to your printer, or your printer- fax?
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Delayed Payment charges and Arrears in the Invoice output

    Hi,
    can we show Delayed Payment charges and Arrears in the Invoice output in case of SD invoice. From where can i take those. suggest.

    Hi,
    Please check whether the SMARTFORM/SAP SCRIPT  was created in the DE login langage, if so then you have to maintain the Language conversion using SE63 transaction
    Goto SE63 and in that transaction you have option to convert the TEXT to different langage.
    Use transaction SE63 (translations). From the menu select:
    Translation - Logntexts - Sapscript - Forms
    From this point on you can translate both the descriptions and the
    window texts. This transaction also checks if you don't forget to
    translate a part of the script.
    Hope it is clear
    cheers,
    santosh

  • How do I use my networked HP Officejet to send a fax from my Macbook Pro?

    I have a Macbook Pro which I use in my office running OS X 10.7. We have a networked HP Officejet 6500 E710n-z. Ideally, I would like to be able to fax directly from Microsoft Word using this printer using the Fax PDF option. However, I cannot seem to figure out how to do this. Any help would be greatly appreciated.

    In order to send and receive a fax you need a fax machine connected to a phone line. What you are likely seeing is an efax. There are many efax services, some free. Efax allows you to send and receive faxes to your computer without using a fax machine or phone line. Using efax you can send a fax to a fax machine connected to a phone line.
    Do a search for efax.

Maybe you are looking for