Needs content not in pdf format

Hi all,,
I have an ABAP program where i could send mails to the recipients.
But the recipients are able to receive the content of the mails only in attached pdf format.
But could not get into the body of the mail.
I had passed packing_list-Document type = 'RAW' in  in so_document_send_API1
What should i need to do in the settings..
will be awarded..

Hi Naveena,
given below is a sample code to send mail with both body and an attachment.
pack-doc_type is RAW for sending the body.
vérifier qu'une adresse a été rentrée
  CHECK NOT s_execut IS INITIAL.
Zone objet du mail
  CLEAR str_docdata.
  str_docdata-obj_name  = text-m01.
  str_docdata-obj_descr = text-m03.
Alim table des destinataires
  LOOP AT s_execut.
    tbl_dest-rec_type = 'U'.
    tbl_dest-receiver = s_execut-low.
    APPEND tbl_dest.
    CLEAR  tbl_dest.
  ENDLOOP.
Alim tbl_text pour corps du mail
"ne pas répondre"
  CLEAR tbl_text.
  REFRESH tbl_text.
  tbl_text-line = text-m02.
  APPEND tbl_text.
  CLEAR tbl_text.
saut de ligne
  APPEND tbl_text.
nb de lignes lues / en anomalie / … qui seront dans le corps du texte
  WRITE p_filpar TO tbl_text-line NO-ZERO LEFT-JUSTIFIED.
  IF tbl_text-line IS INITIAL.
    tbl_text-line = '0'.
  ENDIF.
  CONCATENATE text-cr1 tbl_text-line INTO tbl_text-line
                                    SEPARATED BY space.
  APPEND tbl_text.
  CLEAR tbl_text.
  WRITE p_filali TO tbl_text-line NO-ZERO LEFT-JUSTIFIED.
  IF tbl_text-line IS INITIAL.
    tbl_text-line = '0'.
  ENDIF.
  CONCATENATE text-cr1 tbl_text-line INTO tbl_text-line
                                    SEPARATED BY space.
  APPEND tbl_text.
  CLEAR tbl_text.
  WRITE p_recycl TO tbl_text-line NO-ZERO LEFT-JUSTIFIED.
  IF tbl_text-line IS INITIAL.
    tbl_text-line = '0'.
  ENDIF.
  CONCATENATE text-cr2 tbl_text-line INTO tbl_text-line
                                    SEPARATED BY space.
  APPEND tbl_text.
  CLEAR tbl_text.
  WRITE w_enr_10 TO tbl_text-line NO-ZERO LEFT-JUSTIFIED.
  IF tbl_text-line IS INITIAL.
    tbl_text-line = '0'.
  ENDIF.
  CONCATENATE text-cr3 tbl_text-line INTO tbl_text-line
              SEPARATED BY space.
  APPEND tbl_text.
  CLEAR tbl_text.
  WRITE w_enr_20 TO tbl_text-line NO-ZERO LEFT-JUSTIFIED.
  IF tbl_text-line IS INITIAL.
    tbl_text-line = '0'.
  ENDIF.
  CONCATENATE text-cr4 tbl_text-line INTO tbl_text-line
              SEPARATED BY space.
  APPEND tbl_text.
  CLEAR tbl_text.
  APPEND tbl_text.
  WRITE text-cr5 TO tbl_text-line NO-ZERO LEFT-JUSTIFIED.
  APPEND tbl_text.
  CLEAR tbl_text.
  CLEAR w_lines.
  DESCRIBE TABLE tbl_text LINES w_lines.
  CLEAR tbl_pack.
  REFRESH tbl_pack.
  tbl_pack-head_start = 1.
  tbl_pack-head_num   = 0.
  tbl_pack-body_start = 1.
  tbl_pack-body_num   = w_lines.
  tbl_pack-doc_type   = 'RAW'.
  tbl_pack-obj_name   = text-m01.  "Program name
  tbl_pack-doc_size   = ( w_lines - 1 ) * 255 + STRLEN( tbl_text-line ).
  APPEND tbl_pack.
Alim tbl_text pour pièce jointe
- en-tête des colonnes
  CLEAR tbl_text.
  CONCATENATE text-ti1 text-ti2 text-ti3 text-ti4
              kst_retours
         INTO tbl_text-line SEPARATED BY ';'.
  APPEND tbl_text.
contenu des colonnes
  LOOP AT tbl_compte_rendu.
    CLEAR tbl_text.
    CONDENSE tbl_compte_rendu-text1.
    CONCATENATE tbl_compte_rendu-text1
                tbl_compte_rendu-text2
                tbl_compte_rendu-text3
                tbl_compte_rendu-text4
                tbl_compte_rendu-text5
                tbl_compte_rendu-text6
                kst_retours
           INTO tbl_text-line SEPARATED BY ';'.
    APPEND tbl_text.
  ENDLOOP.
  DESCRIBE TABLE tbl_text LINES w_lines2.
  CLEAR tbl_pack.
  tbl_pack-head_start = 1.
  tbl_pack-head_num   = 0.
  tbl_pack-body_start = w_lines + 1.
  tbl_pack-body_num   = w_lines + w_lines2.
  tbl_pack-doc_type   = 'CSV'.
  tbl_pack-obj_name   = text-m07.
  tbl_pack-obj_descr  = text-m08.
  tbl_pack-doc_size   = ( w_lines2 - 1 ) * 255
                         + STRLEN( tbl_text-line ).
  APPEND tbl_pack.
Envoi du mail
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = str_docdata
      put_in_outbox              = space
      commit_work                = 'X'
    TABLES
      packing_list               = tbl_pack
      contents_txt               = tbl_text
      receivers                  = tbl_dest
    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.
Message was edited by:
        Alvaro Tejada Galindo

Similar Messages

  • Webservice Connection Error: Signed Content not in recognizable format

    Dear SAP experts,
    We're having a webservice connection error, when our trading partner is sending test messages to our server.
    They are getting this specific error,
    service: GIPPullAgent.Util:checkSignatureNoCache
    Error: [ISS.0086.9062] Signed Content not in recognizable format
    [ISS.0086.9062] Signed Content not in recognizable format
    Have you encountered this specific error?
    Kindly advise for any helpful tips.
    Thanks!
    Gerberto

    Hi,
    The issue was already resolved.
    We generated the correct Signature value which is needed in the WSDL.
    Thanks for your support!
    Gerberto

  • I need to change a pdf format to data? help?

    I really need to change a pdf tax return into a data return so I can amend it, the tax program I used will not let me transfer a pdf, I saw some choices when I went to save it under the name but I don't know which one would be data. Thanks hope someone can help,

    That's probably not possible at all. Contact the IRS for advice on how to file a new, correct return.

  • Print PLSQL Dynamic content region in PDF format in Oracle Apex

    Hi All,
    I have created a report region by selecting "PLSQL Dynamic Content".This region calls the procedure with some parameters.So i want this plsql dynamic content to be in PDF format.
    For an easy understanding, I have created an application in Apex.Oracle.Com where i have created a Plsql Dynamic content which calls procedure do display in region.
    Step 1: http://apex.oracle.com/pls/apex/f?p=4550:1:15635986742760:::::
    Step 2: Workspace : dev_dilip
    Username: [email protected]
    Pwd : 123456
    Step 3: Open PRINT_PDF application and Run the application.
    Step 4: Username: [email protected]
    Pwd : 123456
    The procedure code can be viewed by object browser.
    Once user cliks PDF (button inapplication) a new tab should open and that plsql region should in PDF format.
    I kindly request all to check and advice me with your valuable suggestion.
    regards,
    Doddi Dilip.

    SO, you want to print the output of the procedure in pdf format? If so, you can try apex Report Query feature. You can find a number of examples for the same in this forum and in the internet:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/hol08/apexprnt/apexprnt_otn.htm
    Or, have a IR based on a collection; the collection based on a function returning query. And then, use the IR's generic download option to print reports.
    http://www.oracleapplicationexpress.com/tutorials/71

  • Need Smartform materials in PDF Format

    Hi Guys,
    Please give me the links to download the SMARTFORM materials in PDF format.
    I am new to smartforms so i need all the materials to learn SMARTFORMS.
    Regards,
    Chandru

    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Subtotals - Check the link...
    Re: Subtotal with Table Node in smartforms
    Go through these SAP Standard programs also,
    sf_example_01
    sf_example_02
    sf_example_03.

  • Ihave created a script, i need to email in pdf format.

    Hi Experts,
    There are 2 criterias...
    1. criteria
    I have created a script, i need to mail it. Please give me a step by step guide to perform it .. . Please give the comments in all the functional module to be used.
    Do we have to write a separate program to send email or in the same program. i'll post my program along with this mail. I'm using this program to display report after delivery on that particular date.
    REPORT  ZREPORTTOEMAIL LINE-SIZE 400.
    data : count, i  type i.
    TABLES :  VBFA,         "Sales Document Flow
              VBAK,
              KNA1,
              VBKD,
              VBAP,
              LIPS,
              LIKP,
              KONP,
              KOMK,
              KOMP,
              zkna1,
              konv.
    data : l_vbeln like vbfa-vbeln,
           l_posnr like vbfa-posnn,
           l_KNUMV like vbak-KNUMV,
           L_BILL_ITEM LIKE vbfa-posnn ,
           l_netwr like vbrp-netwr,
           l_MWSBP like vbrp-mwsbp.
    DATA: BEGIN OF TKOMV OCCURS 50.
            INCLUDE STRUCTURE KOMV.
    DATA: END OF TKOMV.
    DATA: BEGIN OF TKOMVD OCCURS 50.
            INCLUDE STRUCTURE KOMVD.
    DATA: END OF TKOMVD.
    TYPE-POOLS: SLIS.
    DATA: FIELDTAB TYPE SLIS_T_FIELDCAT_ALV,
          HEADING  TYPE SLIS_T_LISTHEADER,
          LAYOUT   TYPE SLIS_LAYOUT_ALV,
          EVENTS   TYPE SLIS_T_EVENT,
          REPNAME  LIKE SY-REPID,
          F2CODE   LIKE SY-UCOMM VALUE  '&ETA',
          G_SAVE(1) TYPE C,
          G_EXIT(1) TYPE C,
          G_VARIANT LIKE DISVARIANT,
          GX_VARIANT LIKE DISVARIANT.
    DATA: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
    CONSTANTS: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
    DATA: BEGIN OF itab occurs 0,
            kunnr like likp-kunnr,      "ship to party
            NAME2   LIKE  KNA1-NAME1,   "text
            ORT01   LIKE  KNA1-ORT01,   "City
            BSTNK   LIKE  VBAK-BSTNK,   "customer P O
            BSTDK   LIKE  VBAK-BSTDK,   "date
            vbeln like likp-vbeln,      "delivery
            ernam like likp-ernam,      "person
            vstel like likp-vstel,      "shipping point
            vkorg like likp-vkorg,      "sales org
            lfdat like likp-lfdat,      "delivery date
            kunag like likp-kunag,      "sold to party
            NAME1   LIKE  KNA1-NAME1,   "text
            bil_to like VBAK-KUNNR,
            name3 like kna1-name1,
            traid like likp-traid,      "transport/vehicle no
            BOLNR LIKE LIKP-BOLNR,
            wadat_ist like likp-wadat_ist, "good mov. date
            posnr like lips-posnr,      "item
            matnr like lips-matnr,      "material
            arktx like lips-arktx,      "item text
            matkl like lips-matkl,      "mat group
            werks like lips-werks,      "plant
            lgort like lips-lgort,      "stoage location
            lfimg like lips-lfimg,      "del qty
            MEINS LIKE LIPS-MEINS,
            vrkme like lips-vrkme,      "sales unit
            UMVKZ LIKE LIPS-UMVKZ,
            UMVKN LIKE LIPS-UMVKN,
            charg like lips-charg,      "batch
            vgbel like lips-vgbel,      "reference doc
            mtart like lips-mtart,      "mat type
            vkbur like lips-vkbur,      "sales office
            vkgrp like lips-vkgrp,      "sales group
            vtweg like lips-vtweg,      "Distribution Channel
            spart like lips-spart,      "division
            billno like vbak-vbeln,
            basic like komvd-kwert,
            budat like bkpf-budat,
            fin_amt like vbrp-NETWR,
    END OF itab.
    data : begin of jtab occurs 0,
    kunnr like likp-kunnr,
    name2 like kna1-name2,
    vbeln like likp-vbeln,
    zkunnr like zkna1-zkunnr,
    zname like zkna1-zname,
    end of jtab.
    SELECTION-SCREEN SKIP 1 .
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK1 WITH FRAME TITLE TEXT-003.
    SELECT-OPTIONS   : ABC FOR LIKP-WADAT_IST DEFAULT SY-DATUM
                                  NO INTERVALS   .
    SELECT-OPTIONS   : S_MATNR FOR  LIPS-MATNR NO INTERVALS   .
    SELECT-OPTIONS   : S_VKORG FOR  LIKP-VKORG NO INTERVALS.
    SELECT-OPTIONS   : S_VSTEL FOR  LIKP-VSTEL NO INTERVALS.
    SELECT-OPTIONS   : S_VKBUR FOR  LIKP-VKBUR NO INTERVALS.
    SELECT-OPTIONS   : S_VKGRP FOR  LIPS-VKGRP.
    SELECT-OPTIONS   : S_SPART FOR  LIPS-SPART.
    SELECT-OPTIONS   : S_VBELN3 FOR  LIKP-VBELN.
    SELECT-OPTIONS   : S_MATKL FOR  LIPS-MATKL NO INTERVALS,
                       S_KUNAG FOR LIKP-KUNAG.
    SELECTION-SCREEN  END OF BLOCK BLOCK1.
    select * from likp into corresponding fields of itab
                  WHERE  WADAT_IST IN ABC
                  AND    VBELN IN S_VBELN3
                  AND    VKORG IN S_VKORG
                  and VSTEL in S_VSTEL
                  AND VKBUR IN S_VKBUR
                  and lfart like 'Z%'
                  AND    VBTYP = 'J'
                  AND KUNAG IN S_KUNAG.
    select * from lips into corresponding fields of itab
                    WHERE VBELN =  ITAB-VBELN
                    AND   MATNR IN S_MATNR
                    AND   MATKL IN S_MATKL
                    AND VKBUR IN S_VKBUR
                    AND VKGRP IN S_VKGRP
                    AND SPART IN S_SPART.
    IF ITAB-VRKME = 'RM' AND ITAB-MEINS = 'KG'.
    ITAB-LFIMG = ITAB-LFIMG * ( ITAB-UMVKZ / ITAB-UMVKN ).
    ITAB-VRKME = 'KG'.
    ENDIF.
    SELECT SINGLE BSTNK BSTDK INTO (ITAB-BSTNK,ITAB-BSTDK) FROM VBAK
                     WHERE VBELN = ITAB-VGBEL.
    SELECT SINGLE NAME1 ORT01 FROM KNA1 INTO (ITAB-NAME2,ITAB-ORT01)
                                 WHERE KUNNR = ITAB-KUNNR.
    SELECT SINGLE NAME1 FROM KNA1 INTO ITAB-NAME1
                                 WHERE KUNNR = ITAB-KUNAG.
    *select single vbeln POSNN into (itab-billno,L_BILL_ITEM)  from vbfa where VBELV = itab-vbeln
    *and POSNV = itab-posnr and VBTYP_N in ('M','U').
    select vbeln POSNN from vbfa up to 1 rows into (itab-billno,L_BILL_ITEM)   where VBELV = itab-vbeln
    and POSNV = itab-posnr and VBTYP_N in ('M','U') order by vbeln DESCENDING .
    endselect.
    select single * from vbfa where vbelv = itab-billno and posnv = l_bill_item and
    vbtyp_n = 'N'.
    if sy-subrc = 0.
    clear : itab-billno, l_bill_item.
    endif.
    select single budat from bkpf into itab-budat where xblnr = itab-billno and
    blart = 'RV'.
    select single NETWR MWSBP into (l_netwr, l_MWSBP) from vbrp where vbeln = itab-billno
    and posnr = l_bill_item.
    itab-fin_amt = l_netwr + l_MWSBP.
    clear : l_netwr, l_MWSBP.
    select single kunnr from vbpa into itab-bil_to where
    vbeln = itab-BILLNO and PARVW = 'RE'.
    select single name1 into itab-name3 from kna1
    where kunnr = itab-bil_to.
    *select single VBELV POSNV from vbfa into (l_vbeln,l_posnr)
    *where VBELN = itab-vbeln and
    *POSNN = itab-posnr and VBTYP_N = 'J'.
    *select single VBELN POSNN from vbfa into (l_vbeln,l_posnr)
    *where VBELV = itab-vbeln and
    *POSNV = itab-posnr and VBTYP_N = 'M'.
    select VBELN POSNN from vbfa up to 1 rows into (l_vbeln,l_posnr)
    where VBELV = itab-vbeln and
    POSNV = itab-posnr and VBTYP_N = 'M' order by vbeln DESCENDING.
    endselect.
    select single * from vbfa where vbelv = l_vbeln and posnv = l_posnr and
    vbtyp_n = 'N'.
    if sy-subrc = 0.
    clear : l_vbeln, l_posnr.
    endif.
    if sy-subrc = 0.
    *select single KNUMv into l_KNUMv from vbak where vbeln = l_vbeln
    select single KNUMv into l_KNUMv from vbRk where vbeln = l_vbeln
    select * from konv where knumv = l_knumv and kposn = l_posnr and
    kschl in ('ZR00','ZR01','ZR02','ZOBC').
    itab-basic = itab-basic + KONV-KBETR.
    ENDSELECT.
    else.
    *select single KNUMv into l_KNUMv from ekko where ebeln = itab-vgbel.
    *select single KBETR from konv into itab-basic where knumv = l_knumv
    *and kposn = itab-posnr and kschl = 'P101'.
    select single KNUMv into l_KNUMv from VBRK where VBELN = itab-BILLNO.
    select * from konv where knumv = l_knumv and kposn = l_BILL_ITEM AND
    kschl in ('ZR00','ZR01','ZR02','ZOBC').
    itab-basic = itab-basic + KONV-KBETR.
    ENDSELECT.
    *zkna1-zkunnr = itab-kunnr.
    *insert zkna1.
    endif.
         clear : l_vbeln, L_BILL_ITEM, L_POSNR.
    APPEND ITAB.
    clear : itab-basic, itab-lfimg.
         ENDSELECT.
              clear : itab.
    ENDSELECT.
    <b>perform zscript.</b>
    *&      Form  zscript
          text
    -->  p1        text
    <--  p2        text
    FORM zscript .
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
       FORM                              = 'ZREPORT2EMAIL'
       LANGUAGE                          = SY-LANGU
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
      SPONUMIV                          =
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    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.
    LOOP AT ITAB.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'MANU'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    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.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    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.
    ENDFORM.                    " zscript
    The above one is first criteria just to understand how to send mail to the customers.
    <b>Second criteria</b> is i have to send the mail to the particular customer with only their details, the process should continue until it sends to all the customers with their details for that particular date.
    Please help me out.
    I have seen so many posts in the sdn but not able to understand the functional modules, how they declare that and how does it works...
    Please provide me a good material to understand the functional module and to declare them.
    Please solve this query i'll reward them with very good points.
    Thanks in advance.
    A.Rafique.

    Hi babar haroon,
    Thanks for the link.....
    I went through that link, i created smart form but i was not able to get the results because the pgm gets terminated after executing. I'll show u the code, the code is active. Please check out and tell me if  i have missed anything in the code...
    *& Report  ZZZ_TEST3
    REPORT  ZZZ_TEST3.
    *internal table declarations
    data: i_otf type itcoo occurs 0 with header line,
          i_tline type table of tline with header line,
          i_receivers type table of somlreci1 with header line,
          i_record like solisti1 occurs 0 with header line,
    *Objects to send mail.
          i_objpack like sopcklsti1 occurs 0 with header line,
          i_objtxt like solisti1 occurs 0 with header line,
          i_objbin like solisti1 occurs 0 with header line,
          i_reclist like somlreci1 occurs 0 with header line,
    *workarea declaration.
          w_objhead TYPE soli_tab,
          w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl,
          w_doc_chng typE sodocchgi1,
          w_data TYPE sodocchgi1,
          w_buffer TYPE string,"To convert from 132 to 255
    Variables declarations
          v_form_name TYPE rs38l_fnam,
          v_len_in LIKE sood-objlen,
          v_len_out LIKE sood-objlen,
          v_len_outn TYPE i,
          v_lines_txt TYPE i,
          v_lines_bin TYPE i.
    call function 'SSF_FUNCTION_MODULE_NAME'
    *call function '/1BCDWB/SF00000105'
          exporting
          formname = 'ZZZ_TEST2'
          importing
          fm_name = v_form_name
          exceptions
          no_form = 1
          no_function_module = 2
          others = 3.
          IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          w_ctrlop-getotf = 'X'.
          w_ctrlop-no_dialog = 'X'.
          w_compop-tdnoprev = 'X'.
         CALL FUNCTION '/1BCDWB/SF00000105'
          EXPORTING
            ARCHIVE_INDEX              =
            ARCHIVE_INDEX_TAB          = itab1
            ARCHIVE_PARAMETERS         =
            CONTROL_PARAMETERS         =
            MAIL_APPL_OBJ              =
            MAIL_RECIPIENT             =
            MAIL_SENDER                =
            OUTPUT_OPTIONS             =
            USER_SETTINGS              = 'X'
          IMPORTING
            DOCUMENT_OUTPUT_INFO       =
            JOB_OUTPUT_INFO            = wa
            JOB_OUTPUT_OPTIONS         =
          EXCEPTIONS
            FORMATTING_ERROR           = 1
            INTERNAL_ERROR             = 2
            SEND_ERROR                 = 3
            USER_CANCELED              = 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.
    CALL FUNCTION v_form_name
          EXPORTING
          control_parameters = w_ctrlop
          output_options = w_compop
          user_settings = 'X'
          IMPORTING
          job_output_info = w_return
          EXCEPTIONS
          formatting_error = 1
          internal_error = 2
          send_error = 3
          user_canceled = 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.
          i_otf[] = w_return-otfdata[].
          CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
          format = 'PDF'
          max_linewidth = 132
          IMPORTING
          bin_filesize = v_len_in
          TABLES
          otf = i_otf
          lines = i_tline
          EXCEPTIONS
          err_max_linewidth = 1
          err_format = 2
          err_conv_not_possible = 3
          OTHERS = 4.
          IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          Convert PDF from 132 to 255.
          LOOP AT i_tline.
          Replacing space by ~
          TRANSLATE i_tline USING '~'.
          CONCATENATE w_buffer i_tline INTO w_buffer.
          ENDLOOP.
    Replacing ~ by space
          TRANSLATE w_buffer USING '~'.
          DO.
          i_record = w_buffer.
          Appending 255 characters as a record
          APPEND i_record.
          SHIFT w_buffer LEFT BY 255 PLACES.
          IF w_buffer IS INITIAL.
          EXIT.
          ENDIF.
          ENDDO.
          Refresh: i_reclist,
          i_objtxt,
          i_objbin,
          i_objpack.
          clear w_objhead.
          Object with PDF.
          i_objbin[] = i_record[].
         DESCRIBE TABLE i_objbin LINES v_lines_bin.
          Object with main text of the mail.
          i_objtxt = 'Find attached the output of the smart form.'.
          APPEND i_objtxt.
         DESCRIBE TABLE i_objbin LINES v_lines_txt.
          i_objtxt = 'Regards,'.
          APPEND i_objtxt.
          i_objtxt = 'J.Jayanthi'.
          APPEND i_objtxt.
          DESCRIBE TABLE i_objtxt LINES v_lines_txt.
          Document information.
          w_doc_chng-obj_name = 'Smartform'.
          w_doc_chng-expiry_dat = sy-datum + 10.
          w_doc_chng-obj_descr = 'Smart form output'.
          w_doc_chng-sensitivty = 'F'. "Functional object
          w_doc_chng-doc_size = v_lines_txt * 255.
          Pack to main body as RAW.
          Obj. to be transported not in binary form
          CLEAR i_objpack-transf_bin.
          Start line of object header in transport packet
          i_objpack-head_start = 1.
          Number of lines of an object header in object packet
          i_objpack-head_num = 0.
          Start line of object contents in an object packet
          i_objpack-body_start = 1.
          Number of lines of the object contents in an object packet
          i_objpack-body_num = v_lines_txt.
          Code for document class
          i_objpack-doc_type = 'RAW'.
          APPEND i_objpack.
          Packing as PDF.
          i_objpack-transf_bin = 'X'.
          i_objpack-head_start = 1.
         i_objpack-head_num = 1.
          i_objpack-head_num = 0.
          i_objpack-body_start = 1.
          i_objpack-body_num = v_lines_bin.
          i_objpack-doc_type = 'PDF'.
          i_objpack-obj_name = 'Smartform'.
          CONCATENATE 'Smartform_output' '.pdf'
          INTO i_objpack-obj_descr.
          i_objpack-doc_size = v_lines_bin * 255.
          APPEND i_objpack.
          Document information.
          CLEAR i_reclist.
          e-mail receivers.
         i_reclist-receiver = '[email protected]'.
          i_reclist-receiver = '[email protected]'.
          i_reclist-express = 'X'.
          i_reclist-rec_type = 'U'. "Internet address
          APPEND i_reclist.
          Sending mail.
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
          document_data = w_doc_chng
          put_in_outbox = 'X'
          TABLES
          packing_list = i_objpack
          object_header = w_objhead
          contents_hex = i_objbin
          contents_txt = i_objtxt
          receivers = i_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 ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Please reply me back, it is very urgent..
    Thanks and regards.
    A.Rafique

  • Pages 5.5 table of contents not showing after formatting to ePub

    Im currently trying to format my pages version 5.5 document to ePub. My goal is to use the created document in iBooks. I have downloaded the ePub best practices template from the relevant apple help pages and followed the guidelines. However when opening the document as an ePub file via iBooks the table of contents is non existent. Any advice would be greatly appreciated. Thanks in advance.

    All the documentation I have read for created EPUB are to export XHTML, rather than DTBook. I'm not sure if it follows the same rules as EPUB for XHTML.
    Assuming it does, you need to do two things: (1) Create a TOC Style (not just a Table of Contents) in the Layout menu. (2) When in the Export EPUB dialog > Contents panel, specify the TOC Style you created.
    In an "normal" EPUB 2.01, that would do two things: It would create a navigational TOC shown in every EPUB reader, and it would leave the TOC you placed on your page as an internal TOC.

  • My firefox will not save in pdf format? why? any help would be greatly appreciated

    i receive a file in pdf format, when i say file save as it wants to save the web address, and not in pdf format.
    how do i do it?

    Are you downloading or opening the .pdf file? If Firefox is using a plugin to display it, I would not really expect it to do that. Can you not download the .pdf file from the URL, if Firefox used a plugin?

  • Printing binary data in PDF format

    HI all,
      Any idea on how to print Binary content in a PDF format
    I have read a PDF format from application server in a Binary format, I need to print the binary content on a printer in PDF format
    Any help on this is appreciated <REMOVED BY MODERATOR>
    Thanks
    Aakash
    Edited by: Alvaro Tejada Galindo on Jun 9, 2008 3:15 PM

    Hi papick,
    this may be easier than expected for a million dollar erp system:
    You need a PDF printer.
    When I played around with adobe interactive forms our basis guys created a new printer in SPAD with
    Device Attributes
    Device Type PDF1
    Device Class Stabdard Printer
    location PDF-Frontend printer = Standard printer for workstation
    Access Method
    Host Spool Access Method FF
    Host printer                          PDF
    Then need some expremimenting with Functions
    RSPO_OUTPUT_DEVICEDATA Spool Output Control of an Internal Table with Formatted Data
    or something alike (see function group SPOD)
    Then you should be able to create an entry in spooler (SP01) with spool request type adobe pdf document.
    Sorry, I don't have this problem, thus I did not check out the details yet.
    But I'm convinced it should work that way because the ADS server creates a complete PDF binary and it can be printed using the above described printer - actually a HP Laserjet V was configured as frontend printer and it can print the pdf.
    Regards,
    Clemens

  • Lines in pdf format

    Hi
    I have a report and in the template i have made only top lines of the frames visible for group breaks . This is working fine in the reports where each group is being seperated by a line( top edge of the frame) However when i convert this into pdf format i get all the lines visible and get an ugly box surrounding my report . This does not happen when i conver into rtf format ... i need my reports in pdf format only ... any suggestion in how these lines can vanish
    regards
    sudhir

    Hi Randy ,
    Thank you for your response . I am doing it the way you have said . But the problem is now i dont get any lines , i need the top lines to seperate one group from another .... right now i am drawing lines in the groups .... as the future reports are to be done by customer ( who is not an expert in reports ) i was wondering if i can set the property in template and give the template to him ... it would be less work for him .... anyway thanks for your inputs .... feels good to know that someone else has looked into your problem ... thanks
    bye
    sudhir

  • Wireless scann pdf format

    when trying to scan from the printer to my computer it sends the file but when i open it on my computer it says the page did not load correctly. it will scan and open fine in JPEG format just not in PDF format.
    i also used the scan to email function and when i opened the file in the email i got the same error message.
    ideas??????
    This question was solved.
    View Solution.

    Hi,
    What is your printer and the Operating system on your computer ? Normally, you should be able to select pdf file before click scan.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • My app occur an error about pdf format problem?

    Below link is my app:https://market.android.com/details?id=air.GoldPrice
    User report the error about can't open pdf format
    But I don't what's the problem and don't know how to fixed the error
    Anybody occur this error?
    Below pic is chinese version error,it mean "can not open document,because document is not  valid pdf format"
    Thanks in advance

    I never have any luck with .mov files either, I convert my videos files into a .mp4 file format which always works on the iPad/iPhone and my PSP

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • Workbook is not getting saved in PDF format on website directory

    I have an Excel workbook, which I am trying to save in Pdf file format on website directory at azure, and after creating pdf uploading it on azure blob storage. The code is working fine on local but on web server it is not uploading pdf on storage,
    Code Ex:
    //Save the document in html format
                    workbook.Save(excelFile);
                    string fileName = System.IO.Path.GetRandomFileName();
                    string realPath = Server.MapPath("~/Content/");
                    string pdfFile = realPath + fileName + ".Pdf";
                    workbook.Save(pdfFile, SaveFormat.Pdf);
    Below code I am using to upload PDf file on Storage:
    private string UploadPdfFileToStorage(string filePath, string fileName)
                //Console.WriteLine("Second:=>" + filePath);
                // Retrieve storage account from connection string.
                var storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
                // Create the blob client.
                CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
                // Retrieve a reference to a container. 
                CloudBlobContainer container = blobClient.GetContainerReference("reporthtmlfiles");
                // Create the container if it doesn't already exist.
                container.CreateIfNotExists();
                //Permit container for public acces
                container.SetPermissions(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Container });
                fileName = fileName + ".pdf";
                CloudBlockBlob blockBlob = container.GetBlockBlobReference(fileName);
                blockBlob.Properties.ContentType = "application/pdf";
                byte[] file = System.IO.File.ReadAllBytes(filePath);
                MemoryStream objMemoryStream = new MemoryStream(file);
                objMemoryStream.Seek(0, SeekOrigin.Begin);
                blockBlob.UploadFromStream(objMemoryStream);
                objMemoryStream.Close();
                return blockBlob.Uri.AbsoluteUri;
    Please help, thanks in advance

    Hi,
    Based on your description, your pdf file is saved to server side, so if you try above code on your local, you could read the file, but, if host your application to azure, you need to get the file stream first, then upload from the stream. Please set
    the breakpoint at: "byte[] file = System.IO.File.ReadAllBytes(filePath);" check this file variable.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to set password in obiee delivery content reports (pdf format)

    Hi
    Dear All
    i Need your help on the Obiee !
    i hvae one Requirement how to set password in obiee delivery content (pdf format) its possible. what are the things i to do
    Kindly Advice me
    Advance Thanks
    satya

    933154 wrote: My profile says PDF, config, report, settings says PDF and I get an Excel when I run screening reports. Very odd.You may want to make sure that the file where the system setting gets stored can be updated. In your <Intradoc_Dir>\urm\data\reportpublisher\config\config.hda file, there is a result set named "RPAdminConfigInfo". The third column of that result set should match the value being shown on the configuration settings page. I've changed the format value in the UI, and this file gets updated (and thus I'm getting my screening reports in the format specified in this config file.)
    933154 wrote: Also, I wasn't clear on the second part of the question. The Screening Reports appear to use the template INTERNALITEMDETAILRPTTEMPLATE. Is that configuration set somewhere? Is there any way to have the screening reports use a different template or is changing that template the only way to change the screening report layout?Templates are not configurable in that respect - the template name values being called for a service are hardwired in the code (you'd need to override in a component - just not worth the hassle). I'd either edit the existing rtf file, or just check in a new revision to the existing one if the differences are that profound. You'd still need to conform to the BI Publisher standards/methodology in either case.

Maybe you are looking for

  • Ical events to Mac Addressbook....plugin? applescript?

    If you have an Ical event with name and location (address) is there a way to import that information into addressbook for mac and create new entries?

  • Is there a page or size limit in Pages?

    I can't seem to add any more pages to my document, either on my phone or iPad? Does anyone know if this is a page or size or picture limit? Thanks.

  • Pantone different from other apps.

    Hello people, I'm designing a 1-colour flyer using Pantone 2602. The file contains a mono-tone image created in Photoshop and an eps logo generated in Corel Draw, both using 2602. Paper-coloured text is placed over a rectangle filled with 2602. Howev

  • Select first row from every set

    id num dtl sdate udate 4 4JQ010907 MO601159736142323333 09-NOV-03 4 4JQ010907 MO601159736142323333 09-NOV-03 08-DEC-03 4 4JQ010907 MO601159736142323333 09-NOV-03 08-NOV-04 4 4JQ010907 MO601159736142323333 09-NOV-03 09-DEC-03 4 4JQ014529 W436-5902-285

  • Keyword Tags with Vietnamese Letters

    Hi all of you! I am new in the forum. I am using Organizer in PSE 12. I have many Vietnamese friends and their names are something like Nguyễn Văn Tuấn or Đặng Bằng Kiều and so on. Try tagging the photos with their names, but Keyword Tags using th