Problems when trying to send a smartform through fax

Hi,
Im currently confronting a problem when sending smartforms through fax to multiple recipients.
This is the scenario Im working on:
The client needs to be able to send a document, could be a PO or invoices, to diferent recipients at the same time. So far in case of purchase orders, we have been able to find the respective faxes and emails for each of the partner functions.
Functionality for email is working as desired but when sending faxes I have problems.
Reviewing the output through SOST I get all my receipients which are email and faxes. Emails are fine since it creates a PDF attachment with the order and all of its details.
For fax I get the same even though the paramenters are set for fax.
Here is my code if you could please help me here on this one.
SELECT lifn2 FROM EkPA into l_ekpa-lifn2
             WHERE EBELN = a_EBELN.
    APPEND l_EKPA.
  ENDSELECT.
  SELECT adrnr
    FROM lfa1
    INTO itab-q_adrnr
    FOR ALL ENTRIES IN l_ekpa WHERE lifnr = l_ekpa-lifn2.
    APPEND itab.
  ENDSELECT.
*& End of partner address
*& Selection of Address or Fax number from ADR3 & ADR6 according to ADRNR
*& Nato
  IF sy-subrc EQ 0.
    loop at itab.
      SELECT SINGLE smtp_addr INTO (itab-q_mail)
   from adr6 where addrnumber = itab-q_adrnr and flg_nouse eq space.
      IF itab-q_mail ne Space.
        Move 'U' to itab-q_typ2(1).
        Move 'X' to itab-q_express(1).
      Move 'EXT' to itab-XOBJT.
      ENdIF.
   SELECT SINGLE FAXNR_LONG INTO (itab-q_fax)
      SELECT SINGLE country FAX_NUMBER INTO (itab-q_cty, itab-q_fax )
   from adr3 where addrnumber = itab-q_adrnr and flg_nouse eq space.
      If itab-q_fax ne space.
        Move 'F' to itab-q_typ(1).
        Move 'TELEFAX' to itab-q_com.
      Endif.
      Modify itab.
    endloop.
*&  END of ITAB
    CLEAR : DOC_CHNG.
    REFRESH LINES.
    IF NAST-NACHA eq '7'.
* Fill both the fax & email Receiver lists
      clear:   reclist, reclist2.
      refresh: reclist, reclist2.
*& loop table itab to update receipient list in table Reclist
*& Nato
      loop at itab.
        IF not itab-q_typ is initial.
         concatenate itab-q_cty itab-q_fax into reclist2-RECNAM separated by space. "FAX NUMBER
          move itab-q_fax to reclist2-receiver. "FAX NUMBER
*&>>>>>>>>>>>>>>>>>>>new entry for testing nato 080206<<<<<<<<<<<&
          move itab-q_cty to RECLIST2-COUNTRY.        "Country Code
          move itab-q_fax to Reclist2-FAX.            "Fax number
*&>>>>>>>>>>>>>>ENd of entry<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<&
          move itab-q_typ to REClist2-REC_TYPE.  "Communication type for fax
      move itab-q_EXPRESS to Express.        "comment for testing
          move itab-q_com to REClist2-COM_TYPE.
          Move 'X' to reclist2-NOTIF_DEL.
         Move 'TELEFAX' to reclist2-SNDART.    "TYPE OF DEVICE
          Move a_ebeln to sood-OBJDES.              "new addition for testing nato
          append Reclist2.
        endif.
        IF not itab-q_typ2 is initial.
          move itab-q_mail to REclist-receiver.  "SMT ADDRESS
          move itab-q_typ2 to REClist-REC_TYPE.
          move itab-q_EXPRESS to REClist-express.
          move 'X' to reclist-TO_ANSWER.
          Move a_ebeln to sood-OBJDES.              "new addition for testing nato
      move itab-q_com to REClist-COM_TYPE.   "comment for testing only
          append Reclist.
        Endif.
        move reclist-receiver to address.
      endLoop.
*& END OF RECipient
    ENDIF.
    DOC_CHNG-OBJ_DESCR  = nast-objky.
  ELSE.
    IF RECLIST IS INITIAL.
     LOOP AT reclist INTO RECIPIENT .        " This logic might get commented or deleted. Nato 08/01/06
     ENDLOOP.
    ENDIF.
    DOC_CHNG-OBJ_DESCR  = L_TITLE.
  ENDIF.
  IF RECLIST[] IS INITIAL.
    MESSAGE E573(VE) RAISING RECEIVER_NOT_FOUND.
  ENDIF.
*& New entry to determine path according to communication
*& type
*& If comm type eq U follow convert_otf
*& then Read text, finaly send API
*& If comm type eq F follow path to "Convert OTF & FAX
*& Nato 080106
  REFRESH : HOTFDATA, LT_SOLIX, OBJBIN.
  LOOP AT JOB_OUTPUT_INFO-OTFDATA INTO HOTFDATA.
    APPEND HOTFDATA.
  ENDLOOP.
*& Prepare content to be converted to PDF format
*& nato
  CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
            FORMAT                = 'PDF'
                MAX_LINEWIDTH         = 132
       IMPORTING
            BIN_FILESIZE          = DOC_SIZE
            BIN_FILE              = LD_BINFILE
       TABLES
            OTF                   = HOTFDATA
            LINES                 = HTLINE
       EXCEPTIONS
            ERR_MAX_LINEWIDTH     = 1
            ERR_FORMAT            = 2
            ERR_CONV_NOT_POSSIBLE = 3
            OTHERS                = 4.
*& new entry just for test today 080306
*&nato
*endif.
*&--end of entry--
  I = 0.
  N = XSTRLEN( LD_BINFILE ).
  WHILE I < N.
    LT_SOLIX-LINE = LD_BINFILE+I.
    APPEND LT_SOLIX.
    I = I + 255.
  ENDWHILE.
*& end of convertion pdf
  LOOP AT LT_SOLIX INTO WA_SOLIX.
    CLEAR WA_SOLI.
    ASSIGN WA_SOLI TO <PTR_HEX> CASTING.
    MOVE WA_SOLIX TO <PTR_HEX>.
    APPEND WA_SOLI TO OBJBIN.
  ENDLOOP.
*& Prepare send mail
  CLEAR : NAME, DOCNAME.
  REFRESH : OBJTXT, OBJPACK.
  CONCATENATE NAST-KAPPL NAST-KSCHL INTO NAME.
  CONDENSE NAME.
  IF NAST-NACHA NE '7'.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
  CLIENT                        = SY-MANDT
        ID                            = 'STAM'
        LANGUAGE                      = SY-LANGU
        NAME                          = NAME
        OBJECT                        = 'OCS'
  ARCHIVE_HANDLE                = 0
  LOCAL_CAT                     = ' '
IMPORTING
  HEADER                        =
      TABLES
        LINES                         = LINES
   EXCEPTIONS
     ID                            = 1
     LANGUAGE                      = 2
     NAME                          = 3
     NOT_FOUND                     = 4
     OBJECT                        = 5
     REFERENCE_CHECK               = 6
     WRONG_ACCESS_TO_ARCHIVE       = 7
     OTHERS                        = 8
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
  ENDIF.
  CONCATENATE NAST-OBJKY '.PDF' INTO DOCNAME .
  CONDENSE DOCNAME.
*endif.      "temp nato -080406
  if reclist-rec_type eq 'U'.
    DOC_CHNG-OBJ_NAME   = 'Delivery'.
    LOOP AT LINES.
      OBJTXT = LINES-TDLINE.
      APPEND OBJTXT.
    ENDLOOP.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    IF TAB_LINES > 0.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE  = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    ENDIF.
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'RAW'.
    APPEND OBJPACK.
    DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    OBJHEAD            = DOCNAME.
    APPEND OBJHEAD.
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 1.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'PDF'.
    OBJPACK-OBJ_NAME   = 'Delivery'.
OBJPACK-OBJ_DESCR  = NAST-OBJKY.
    OBJPACK-OBJ_DESCR  = A_EBELN.
    OBJPACK-DOC_SIZE   = TAB_LINES * 255.
    APPEND OBJPACK.
    break nhernandez.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
         DOCUMENT_DATA                    = DOC_CHNG
    PUT_IN_OUTBOX                    = 'X'
  COMMIT_WORK                      = ' '
IMPORTING
  SENT_TO_ALL                      =
  NEW_OBJECT_ID                    =
      TABLES
       PACKING_LIST                     = OBJPACK
       OBJECT_HEADER                    = OBJHEAD
       CONTENTS_BIN                     =  OBJBIN
       CONTENTS_TXT                     =  OBJTXT
  CONTENTS_HEX                     =
  OBJECT_PARA                      =
  OBJECT_PARB                      =
        RECEIVERS                        =  RECLIST
  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
   OTHERS                           = 8
    IF SY-SUBRC <> 0.
      MESSAGE E081(ZGLO) WITH SY-SUBRC RAISING MAIL_SENDING_ERROR.
    ENDIF.
  endif.
AM I missing something?

Hi Nat,
You can check this link which shows how to use the PRINT_TEXT for sending fax.
http://www.sap-img.com/abap/sending-fax-from-abap.htm
Also you can check these
Smartforms
Sending Smartforms through Fax
Sending SMARTFORM output to FAX gateway
How to fax a smartform?
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
ftp
Cheers
VJ

Similar Messages

  • Configuration to send the smartform through fax

    Hi,
    I have used CONVERT_OTF_AND_FAX and SO_OBJECT_SEND FM's to send the smartform through fax.After executing SO_OBJECT_SEND function module,I am getting sy-subrc alue as 9(OBJECT_NOT_SEND).I am able to send the document through fax.But when I click on display in SOST transaction it is just printing the output of the smartform.It is not coming in PDF format.
    The code looks fine.I think there is some problem with confuration settings.Is there any configuration to be done to send the smartform  output through fax?
    Please reply.
    Regards,
    Hema

    Hi,
    Actually,my requirement is to send the smartform output through email with medium 'external send'.I have done some coding for that.it is working fine and I am able to send the smartform through email and open the attachment in PDF format.
    But if the email id of the recipient is not present then the smartform output has to be sent through fax with the same medium 'external send'.
    So I have done some coding to send the smartform through fax when the email id is not present.
    I am able to send the output of smartform through fax.But when I clicked on display in SOST transaction,it is not coming in PDF format.It is coming in RAW format.
    Is it possible to send the smartform output through fax with medium 'external send'?
    Regards,
    Hema

  • Problem when trying to Print Statement Print through printer

    Hi ,
    I am facing a serious problem here , I customized the AR Statement Print to PDF output using BI publisher,
    It's working fine in Viewing the output . But when i am trying to pront the output through printer .It's printing XML file.
    Can anyone please help me regarding this.
    Thanks in advance.
    Best Regards,
    Mahesh

    Check style of concurrent program it should be some think like PDF Publisher A4 if DBA has defined any style for BI Publisher reports. normally we can not use styles used for other reports
    Thanks
    Kamalakar

  • Problems when trying to surf the Internet through a SSL VPN tunnel

    Hi,
    I have a small/big problem, I have a customer who have the need for the possibility to surf the internet through the SA500W when they are connected through a SSL VPN tunnel in to their network. I am not using a Split Tunnel. What I have seen until now, when you run IPCONFIG/ALL the default gateway for the SSL VPN IP settings is 0.0.0.0. Is this the problem and if so, how can this be solved?
    Thanks in advance!
    Brg
    Niklas Eklov

    There are various causes for this error, see [[Firefox is already running but is not responding]] for details.

  • Problem when trying to launch my application through jnlp

    when i try to launch my application(written using java swing ) through the browser using JNLP i am getting the following error
    i am using postgres database server running on 7777 (5432 was used by some other service)
    java.lang.ExceptionInInitializerError
    at tools.HibernateUtil.<clinit>(HibernateUtil.java:492)
    at tools.Session.getSession(Session.java:23)
    at reports.LoginFrame.<init>(LoginFrame.java:36)
    at reports.LoginFrame.main(LoginFrame.java:296)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:847)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:807)
    at com.sun.javaws.Launcher.continueLaunch(Launcher.java:685)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:390)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
    at com.sun.javaws.Launcher.run(Launcher.java:167)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:464)
    at java.net.Socket.connect(Socket.java:414)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:421)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:649)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:320)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:281)
    at sun.net.www.http.HttpClient.New(HttpClient.java:353)
    at sun.net.www.http.HttpClient.New(HttpClient.java:334)
    at sun.net.www.http.HttpClient.New(HttpClient.java:329)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:522)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:499)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:620)
    at java.net.URL.openStream(URL.java:913)
    at tools.HibernateUtil.<clinit>(HibernateUtil.java:456)
    ... 14 more

    Have you tried to put the Main-Class under a package (e.g. move LaunchSimulator to org.jyothi.sunke.LaunchSimulator or something)? I'm not sure but it's possible that Main-Class can't be located in the "root package", because the JAR launcher can't address it.
    Always put your stuff in a package, otherwise it can't be addressed by other packaged classes.
    - Erik

  • Problem when trying to send a mail with pdf file attached

    When I use this features from Adobe reader, a new mail is opened with pdf file but my Outlook signature is not set automatically. Note that all is right configure in Outlook 2007 for the signature option...
    Do you have a solution for this problem ?

    someone else reported this (unless it was you) You'll have to insert your sig manually.

  • Problem while sending Smartform through Fax

    Hi Folks,
    I am sending a Smartform through fax by setting the essential Control Parameters and Output Options while calling the function module of the Smartform.
    In SOST I get the status message 710(Message transferred to node FAX(...) ) and later in around 20 minutes the message 812(No delivery to FAX(.......fax no) ) occurs for some requests.
    Only few requests are sent successfully by the same program and same O/P Type and shows the status message 701(Delivered to FAX (................)).
    There is no much time difference between those requests while creating.
    Do you know what could be the problem?
    Can you help me in solving the issue?

    may it be that in those cases where it doesnt work, that you got no fax number?
    Since it works soemtimes, it seems there are no errors, but rather in some cases some important info is missing, fax number may be one of thsoe important info in a FAX scenario.

  • Sending Smartforms through Fax

    Hi,
      Can anybody suggest me, how to send the smartform through FAX? The output need not be printed instead it should be sent as FAX.
    Thanks and Regards,
    Lakshmi

    Hi,
    Check this sample code helps your purpose.If so,kindly reward points by clicking the star on the elft of reply,if it helps.
    The following program shows you how to send a fax from within ABAP/4. The report is delivered
    in the standard system and is used in Transaction SCOM for the function "Send test fax".
    Only the method via the call of SAPscript with DEVICE='TELEFAX', described below, ensures the
    generation of a correct transmission request, independent of the R/3 release and of the used
    fax server solution and its configuration.
    The regular printing (for example, with NEW-PAGE PRINT ON...) on an output device created in
    the spool administration of the device class 'Telefax' does generally not work!
    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

  • How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    Hey tyjox,
    Thanks for the question. After reviewing your post, it sounds like you need to deactivate Find My iPhone on a device that does not work. You will need to work with the family member of the account the iPhone is registered with. I would recommend that you use this article to help you resolve or isolate the issue.
    iCloud: Remove your device from Find My iPhone
    http://support.apple.com/kb/PH2702
    Remove an iOS device you no longer have
    If you no longer have the iOS device because you gave it away or sold it, you need to remotely erase it before you can remove it.
    Sign in to icloud.com/#find with your Apple ID (the one you use with iCloud).If you’re using another iCloud app, click the app’s name at the top of the iCloud.com window, then click Find My iPhone.
    Click All Devices, then select the device.
    Click Erase [device], then enter your Apple ID password. Because the device isn’t lost, don’t enter a phone number or message.If the device is offline, the remote erase begins the next time it’s online. You’ll receive an email when the device is erased.
    When the device is erased, click Remove from Account.All your content is erased and someone else can now activate the device.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Error(-101) encountered when trying to send a mail

    Hi,
    I am trying to send a mail through Business One 2005A. When i click on the email icon, a pop up window appears that asks if i want to attach an edited report with the mail. when i click "Yes", i get an error message error(-101) encountered. but if i click "No", i dont get that error. Can anyone please let me know what this error is all about?
    Regards,
    Harsh

    Hi Fulvia,
    This could be caused by folder permissions. Try creating a new share on the server (I typically create a share off the root of the drive, called something like B1_MAIL or SBO_MAIL), granting Full Control to all domain users and then mapping your attachments path in General Settings to this new folder. If this solves the problem then you can tighten up the security to fit your requirements afterwards.
    Hope this helps,
    Owen

  • "This message cannot be sent at this time."  I have been getting this pop-up for 3 days when trying to send out mail.  I don't know what to do!  I cannot send mail from this account on any ISP. Please help!

    "This message cannot be sent at this time."  I have been getting this pop-up for 3 days when trying to send out mail.  I don't know what to do!  I cannot send mail from this account on any ISP. Please help!

    lots of people seem to be havgin a problem sending email from iCloud webmail.
    does your email address have uppercase characters in it?
    if so, try creating an alias in lowercase (go to preferences in iCloud webmail and select 'accounts') and see if email sends okay from that

  • I am receiving an error message when trying to send an email.

    I recently had to change my email password.  Now when trying to send or forward a message on my Iphone 4s I am receiving an error that my user name or password is incorrect.  My phone service is through AT&T and email is embargmail.com.

    Where did you change the password? Did you go into the email account on your phone and change the password as well? You need to check your SMTP settings, as that is what controls sending mail. If you get an error when trying to receive mail, that is the incoming server.

  • I have received this error message when trying to send a comment to a blog : ERROR: Could not read CAPTCHA cookie. Make sure you have cookies enabled and not blocking in your web browser settings. Or another plugin is conflicting. See plugin FAQ., can any

    I have received this error message when trying to send a comment to a blog : ERROR: Could not read CAPTCHA cookie. Make sure you have cookies enabled and not blocking in your web browser settings. Or another plugin is conflicting. See plugin FAQ., can any...
    Only found one question similar and NO ANSWER to it.

    Same problem here...nothing in my settings have changed since the upgrade and I've checked my cookie settings and they allow 3rd party cookies. What's up Mozilla? I've been faithful to you for years and you let me down now?

  • When trying to send mail, I get a message about rejected by server because it doesn't allow relaying.

    When trying to send mail I get a message the message was rejected by the server because it doesn't allow relaying!  I can send mail to myself but not anywhere else.

    See the previous discussions on the right side of this page under the heading "More Like This" with your same problem.

  • I am getting error message "the recipient was rejected by ther server" when trying yo send an email.

    I am getting error message "the recipient was rejected by ther server" when trying yo send an email.
    How do I fix it??

    Hello, Oldershaw. 
    Thank you for visiting Apple Support Communities. 
    Here is an article I would recommend going through when experiencing issues with mail. 
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Cheers,
    Jason H. 

Maybe you are looking for