How to email Smartforms

I am trying to e-mail a smartform and I think I might have most of it figured out.  The part I am confused about is the mail_appl_object and what exactly is required.  I have copied my code below and I am getting the error "The type swc_object is unknown".  I basically copied most of this code from other users on the SDN.   Can someone please help .... what exactly would I need to do?  thx!
control_parameters TYPE ssfctrlop.  
control_parameters-device = 'MAIL'.
DATA:     email_recipient     TYPE SWOTOBJID,    
          email_sender        TYPE SWOTOBJID,    
          g_mail_app_obj type SWOTOBJID,
     FOLDER TYPE swcobject,           
     BEGIN OF SOFMFOL_KEY,
     FOLDERTYPE LIKE SOFM-FOLTP,
     FOLDERYEAR LIKE SOFM-FOLYR,
     FOLDERNUMBER LIKE SOFM-FOLNO,
     TYPE LIKE SOFM-DOCTP,
     YEAR LIKE SOFM-DOCYR,
     NUMBER LIKE SOFM-DOCNO,
     FORWARDER LIKE SOUB-USRNAM,
     END OF SOFMFOL_KEY,
     BOR_KEY LIKE SWOTOBJID-OBJKEY.
PERFORM mail_recipient_object.
PERFORM mail_sender_object.
PERFORM mail_appl_object.
*Determine Function Module Name of SmartForm
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME = 'ZMY_SMARTFORM'        "SmartForm Name
    IMPORTING
      FM_NAME  = func_mod_name            EXCEPTIONS
     OTHERS   = 1.
CALL FUNCTION func_mod_name
EXPORTING
   CONTROL_PARAMETERS         =  control_parameters
   MAIL_APPL_OBJ              =  g_mail_app_obj
   MAIL_RECIPIENT             =  email_recipient
   MAIL_SENDER                =  email_sender
   USER_SETTINGS              = 'X'
   MTRL_NO                    = icoa_dlvrys-matnr
   MTRL_DESCR                 = icoa_dlvrys-maktx
   CUSTOMER_NO                = icoa_dlvrys-kunnr
   CUSTOMER_NAME              = icoa_dlvrys-name1
   V_MANDT                    = sy-mandt
   V_SYSID                    = sy-sysid
   CERTIFIED_BY               = r_certby
TABLES
    izqm_coa_prpylene          = izqm_coa_prpylene
EXCEPTIONS
   FORMATTING_ERROR           = 1
   INTERNAL_ERROR             = 2
   SEND_ERROR                 = 3
   USER_CANCELED              = 4
   OTHERS                     = 5.
**FORM:  mail_recipient_object
FORM mail_recipient_object.
data: email_address TYPE SO_NAME.
email_address =  '[email protected]'.
CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
EXPORTING
   IP_MAILADDR             = email_address        
   IP_TYPE_ID              =  'U'             
IMPORTING
   EP_RECIPIENT_ID         = email_recipient
EXCEPTIONS
   INVALID_RECIPIENT       = 1
   OTHERS                  = 2.
ENDFORM.    "mail_recipient_object.
*----*FORM:  mail_sender_object
FORM mail_sender_object.
CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
EXPORTING
   IP_SENDER            = sy-uname
IMPORTING
   EP_SENDER_ID         = email_sender
EXCEPTIONS
   INVALID_SENDER       = 1
   OTHERS               = 2.
ENDFORM.    "mail_sender_object.
*----* FORM mail_appl_object.
FORM mail_appl_object.
SELECT * from soud INTO soud
  WHERE sapnam LIKE sy-uname and deleted = ''.
endselect.
IF sy-subrc <> 0.
CALL FUNCTION 'SO_USER_AUTOMATIC_INSERT'
EXPORTING
   SAPNAME                       = SY-UNAME
EXCEPTIONS
   NO_INSERT                     = 1
   SAP_NAME_EXIST                = 2
   X_ERROR                       = 3
   SAP_NAME_NOT_EXIST            = 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.
  CLEAR soud.
ELSE.
ENDIF.
ENDIF.
CLEAR sofmfol_key.
sofmfol_key-type = 'FOL'.
sofmfol_key-year = soud-inbyr.
sofmfol_key-number = soud-inbno.
bor_key = sofmfol_key.
IF NOT bor_key IS INITIAL.
swc_create_object folder 'SOFMFOL' bor_key.
IF sy-subrc = 0.
  swc_object_to_persistent folder p_mail_app_obj.
  IF sy-subrc NE 0.
    CLEAR g_mail_app_obj.
  ENDIF.
ENDIF.
ELSE.
  CLEAR g_mail_app_obj.
ENDIF.
ENDFORM.  "mail_appl_object.

Hello SAP gurus,
I am trying to send a sample smartform by email by using the code below. When I execute the program system shows below succes message.
"MAIL request 000000000029 created successfully.
Message no. SSFCOMPOSER024"
But I can see nothing coming in SCOT/SOST and it doesnt sends any email.
Is there anything I need to configure in system settings.
Moreover when I try to send any email to extenal email addresses from SAP office system is sending email correctly.
Any help would be highly appreciated.
Thanks in advance,
Shabbeer.
*& Report  Z_SF_EX_03                                                  *
REPORT  Z_SF_EX_03                              .
tables: soud.
data: carr_id type sbook-carrid,
      fm_name type rs38l_fnam.
     cust_id type scustom-id.
parameter: p_custid type scustom-id default 1.
select-options: "s_custid for cust_id default 1 to 1,
                s_carrid for carr_id     default 'LH' to 'LH'.
parameter:      p_form   type tdsfname   default 'SF_EXAMPLE_01'.
               p_email  type
data: customer    type scustom,
      bookings    type ty_bookings,
      connections type ty_connections,
      output_option type ssfcompop,
      zssfcrescl type ssfcrescl,
      zssfcresop type ssfcresop.
include <cntn01>.
get data
select single * from scustom
  into customer
  where id eq p_custid.
check sy-subrc = 0.
select * from sbook into table bookings
         where customid eq p_custid
         and   carrid   in s_carrid
         order by primary key.
select * from spfli into table connections
         for all entries in bookings
         where carrid = bookings-carrid
         and   connid = bookings-connid
         order by primary key.
data: control_parameters TYPE ssfctrlop,
output_options TYPE ssfcompop,
EMail_Subject(50) TYPE c.
DATA: email_recipient TYPE SWOTOBJID,
email_sender TYPE SWOTOBJID,
g_mail_app_obj type SWOTOBJID.
concatenate text-004 '400000124' into EMail_Subject.
control_parameters-device = 'MAIL'.
control_parameters-no_dialog = 'X'.
control_parameters-preview = 'X'."space.
output_options-tdnewid = 'X'.
output_options-tdtitle = EMail_Subject.
PERFORM mail_recipient_object.
PERFORM mail_sender_object.
PERFORM mail_appl_object changing g_mail_app_obj.
*Determine Function Module Name of SmartForm
call function 'SSF_FUNCTION_MODULE_NAME'
     exporting  formname           = p_form
                variant            = ' '
                direct_call        = ' '
     importing  fm_name            = fm_name
     exceptions no_form            = 1
                no_function_module = 2
                others             = 3.
if sy-subrc <> 0.
  error handling
  message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  exit.
endif.
now call the generated function module
    call function fm_name
         exporting
                archive_index        =
                archive_parameters   =
                   control_parameters   = control_parameters
                     mail_appl_obj        = g_mail_app_obj
                     mail_recipient       = email_recipient
                     mail_sender          = email_sender
                     output_options       = output_options
                     user_settings        = 'X'
                    customer             = customer
                    bookings             = bookings
                    connections          = connections
      importing
     document_output_info =
                 job_output_info      = zssfcrescl
                 job_output_options   = zssfcresop
         exceptions formatting_error     = 1
                    internal_error       = 2
                    send_error           = 3
                    user_canceled        = 4
                    others               = 5.
*break-point.
**FORM: mail_recipient_object
FORM mail_recipient_object.
data: email_address TYPE SO_NAME.
email_address = '[email protected]'.
CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
EXPORTING
IP_MAILADDR = email_address
IP_TYPE_ID = 'U'
IMPORTING
EP_RECIPIENT_ID = email_recipient
EXCEPTIONS
INVALID_RECIPIENT = 1
OTHERS = 2
ENDFORM. "mail_recipient_object.
*----*FORM:
*form mail_sender_object
FORM
form mail_sender_object.
CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
EXPORTING
IP_SENDER = sy-uname
IMPORTING
EP_SENDER_ID = email_sender
EXCEPTIONS
INVALID_SENDER = 1
OTHERS = 2.
ENDFORM. "mail_sender_object.
*----* FORM
*form mail_appl_object.
FORM
form mail_appl_object changing g_mail_app_obj.
DATA: FOLDER TYPE swc_object,
BEGIN OF SOFMFOL_KEY,
FOLDERTYPE LIKE SOFM-FOLTP,
FOLDERYEAR LIKE SOFM-FOLYR,
FOLDERNUMBER LIKE SOFM-FOLNO,
TYPE LIKE SOFM-DOCTP,
YEAR LIKE SOFM-DOCYR,
NUMBER LIKE SOFM-DOCNO,
FORWARDER LIKE SOUB-USRNAM,
END OF SOFMFOL_KEY,
BOR_KEY LIKE SWOTOBJID-OBJKEY.
SELECT single * FROM soud WHERE sapnam LIKE sy-uname AND deleted = ' '.
IF sy-subrc NE 0.
CALL FUNCTION 'SO_USER_AUTOMATIC_INSERT'
EXPORTING
SAPNAME = SY-UNAME
EXCEPTIONS
NO_INSERT = 1
SAP_NAME_EXIST = 2
X_ERROR = 3
SAP_NAME_NOT_EXIST = 4
OTHERS = 5.
ENDIF.
clear sofmfol_key.
sofmfol_key-type = 'FOL'.
sofmfol_key-year = soud-inbyr.
sofmfol_key-number = soud-inbno.
bor_key = sofmfol_key.
IF not bor_key is initial.
swc_create_object folder 'SOFMFOL' bor_key.
IF sy-subrc = 0.
swc_object_to_persistent folder g_mail_app_obj.
IF sy-subrc ne 0.
clear g_mail_app_obj.
ENDIF.
ENDIF.
ELSE.
clear g_mail_app_obj.
ENDIF.
ENDFORM. "mail_appl_object.

Similar Messages

  • How to send smartform as an email or fax

    Hi Friends,
    Problem is i am getting smartform output, but how to send the output as an email or fax( say for ex it should be sent to vendor). Also kindly explain how to convert smartform to PDF output. Thanks in advance.

    Hi,
    The below sample code is for 4.6C.Try this out.
    Kindly reward points by clicking the star on the left of reply,if it helps.
    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,
    Work Area declarations
    wa_objhead TYPE soli_tab,
    w_ctrlop TYPE ssfctrlop,
    w_compop TYPE ssfcompop,
    w_return TYPE ssfcrescl,
    wa_doc_chng typE sodocchgi1,
    w_data TYPE sodocchgi1,
    wa_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'
    exporting
    formname = 'ZZZ_TEST1'
    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 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.
    Fehlerhandling
    if sy-subrc <> 0.
    endif.
    loop at i_tline.
    translate i_tline using '~'.
    concatenate wa_buffer i_tline into wa_buffer.
    endloop.
    translate wa_buffer using '~'.
    do.
    i_record = wa_buffer.
    append i_record.
    shift wa_buffer left by 255 places.
    if wa_buffer is initial.
    exit.
    endif.
    enddo.
    Attachment
    refresh:
    i_reclist,
    i_objtxt,
    i_objbin,
    i_objpack.
    clear wa_objhead.
    i_objbin[] = i_record[].
    Create Message Body
    Title and Description
    i_objtxt = 'test with pdf-Attachment!'.
    append i_objtxt.
    describe table i_objtxt lines v_lines_txt.
    read table i_objtxt index v_lines_txt.
    wa_doc_chng-obj_name = 'smartform'.
    wa_doc_chng-expiry_dat = sy-datum + 10.
    wa_doc_chng-obj_descr = 'smartform'.
    wa_doc_chng-sensitivty = 'F'.
    wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
    wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt )
    clear i_objpack-transf_bin.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_txt.
    i_objpack-doc_type = 'RAW'.
    append i_objpack.
    Attachment
    (pdf-Attachment)
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    Länge des Attachment ermitteln
    describe table i_objbin lines v_lines_bin.
    read table i_objbin index v_lines_bin.
    i_objpack-doc_size = v_lines_bin * 255 .
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'smart'.
    i_objpack-obj_descr = 'test'.
    append i_objpack.
    clear i_reclist.
    i_reclist-receiver = [email protected]'.
    i_reclist-rec_type = 'U'.
    append i_reclist.
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = wa_doc_chng
    put_in_outbox = 'X'
    TABLES
    packing_list = i_objpack
    object_header = wa_objhead
    CONTENTS_BIN = 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.

  • How to email text from a text component in my applet on a the host server ?

    How to email text from a text component in my applet on a the host server, back to my email address ?
    Assuming I have Email Form on the host server.
    Help will be appreciated.

    You can do like below
    =REPLACE(Fields!Column.Value," " & Parameters!ParameterName.value & " ","<b>" & Parameters!ParameterName.value & "</b>")
    The select the expression and  right click and choose placeholder properties
    Inside that set Markup type as HTML 
    then it will highlight the passed parameter value in bold within the full xml string
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to email report to the users

    Hi,
    I have a few reports in 6i. I can preview them but cannot mail them to the users. When I click on the mail icon, it gives me this error :
    REP-4203: Error occurred while sending a mail message.
    Second option I did was to directly create a pdf report but this doesnt work either. I gave the desformat as pdf, desname as c:\myreport.pdf, mode as default, destype as File and printjobs No.
    I ran the report and it did something. But now when I search in my C:\ I cannot find the pdf report there. I also did a search but cannot find it anywhere.
    Please let me know how to develop a pdf report or how to email a preview report to the users. I need to send the report to my users but both the options dont work.
    Thanks in advance.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How can I get a list of emails in my inbox listed by sender and how many emails are in the box from each one, in a concise list.

    I need a List:
    Name of sender and how many emails from that sender:
    ex:
    Wife - 50
    Boss - 75
    ESPN - 200
    It would best to get them in a excel sheet so I can print, review and then make decisions to delete entire names that I know longer communicate with.

    See this thread here
    Display number of emails by sender

  • How to email multiple photos in one email-PS Lightroom 4

    Hi,
    I would like to email multiple photos in one email.  Is there a way to do this? Right now I understand how to email 1 photo at a time. I am using the Mac Version of Lightroom 4.
    Thanks in advance.
    Cheers,
    Lourdes

    Yes.
    If you select more than one photo in either the Grid or the Film Strip and then go to File>Email Photos… it will send all that are selected. .

  • How many emails can I have on my account? Can I have client folders to customize for each client?

    How many emails can I have on my account?
    Can I have client folders for each client to access their own survey/forms?
    Can I customize for each client?
    Do we need multiple subcription accounts for this?

    You need to have one FormsCentral subscription per email.
    At this time FormsCentral doesn't support folders.
    Gen

  • How many emails can i send in one day with icloud

    how many emails can i send out in a day using icloud.com?  I want to send about 800 emails to all the parents at my children's school.  I am using pho and swiftmailer to send the emails.
    thanks.

    Up to 200 messages and 1000 recipients (see http://support.apple.com/kb/ht4863).  This is because it's designed for personal rather than business use.

  • How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?

    Hi Experts,
    How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
    I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM  for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.
    Call function SSF_FUNCTION_MODULE_NAME
    Export
    formname = 'zsmartform'
    import
    fm_name = function_name.
    function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?
    thanks in advance.

    hi,
    Chk this sample.
    DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
    p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
    p_output_options-TDCOPIES = 3. "number of copies.
    p_output_options-tddest = 'LP01'. "def
    p_control_parameters-no_dialog = 'X'. "no dilog box
    p_control_parameters-preview = 'X'. "no preview
    DATA : v_form_name TYPE rs38l_fnam.
    *---- Function to get the function module name of the    ----
    *---- specified Smart form.                              ----
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'GIVE YOUR SMART FORM NAME'   
    * VARIANT = ' '
    * DIRECT_CALL = ' '
    IMPORTING
    fm_name = v_form_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3 .
    *---- Function Module to call the Smart Form          ----
    *step 1 - go to ur smart form
    *step2 - take environment
    *step3-take function module name
    *copy that unique number.
    *step4 -come back to ur driver program.
    *step5 - place ur cursur here. take patter,.give that unique number.
    *at that time u will get the below code.
    *step6 - rename that unique number with 'v_form_name' in the code generated by pattern.
    CALL FUNCTION v_form_name
    EXPORTING
    * ARCHIVE_INDEX =
    * ARCHIVE_PARAMETERS =
    control_parameters = p_control_parameters
    * MAIL_APPL_OBJ =
    * MAIL_RECIPIENT =
    * MAIL_SENDER =
    output_options = p_output_options
    user_settings = ' '
    * ARCHIVE_INDEX_TAB =
    * IMPORTING
    * DOCUMENT_OUTPUT_INFO =
    * JOB_OUTPUT_INFO =
    * 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.
    for any clarifiaction pls revert.
    regards,
    Reshma

  • Is there a size limit to how many emails in Mail?

    Is there a size limit to how many emails in Mail?
    I have recently converted from MS Outlook 2007, where the maximum storage is 20 GB.
    Is there any such limit in Mail?
    In other words, I currently have 30,000 inbox emails and 20,000 sent emails. Together, my Outlook PST file is 2 GB. Would Mail prevent me in any way, or could I keep as many emails as my hard drive will permit?
    I thank you all in advance for any thoughts and/or suggestions.

    Harold,
    Have you checked this in Synchronization Preview? Did you see any error?
    Regards,
    Manuj Khurana

  • How to email a .zip file attachment from PC

    Hi,
    Please, let me know how to email a .zip file attachment from Presentation Server.
    Thanks,
    Madhuri.

    Hi,
    try fm SO_DOCUMENT_SEND_API1
    it's well documented (look with SE37)
    and look here:
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    regards Andreas

  • How to send SMARTFORMS output as attachment through?

    how to send SMARTFORMS output as attachment through e-mail?
    after executing SMARTFORMS how to send that output via e-mail.
    Help me.
    thanks
    surya.
    Moderator Message: Please search for available information first
    Edited by: kishan P on Nov 7, 2010 7:19 PM

    hi Vinod,
    Can you please tell me how you have zipped the file.
    I am having a text file in application server. I need to zip that file. Then the middleware moves it to Legacy system.
    I used the following code. With this I am having the data in Binary format which my midleware cannot understand.
    What I need on the whole is just to reduce the size of the file.
    form ZIP_FILE .
    DATA: lt_data TYPE TABLE OF x255,
          lt_textdata TYPE TABLE OF x255.
    DATA: ls_data LIKE LINE OF lt_data.
    DATA: lv_dsn1(100) VALUE '/ECD/120/GIS/FTP/IB/DNBPAYDEX.TXT'.
    DATA: lv_dsn3(100) VALUE '/ECD/120/GIS/FTP/IB/DNBPAYDEXZIP.zip'.
    *DATA: lv_dsn3(100) VALUE '/interfaces/SM5/test.zip'. " Contains sample1.xls and sample2.xls
    DATA: lv_file_length TYPE i.
    DATA: lv_content TYPE xstring.
    DATA: lo_zip TYPE REF TO cl_abap_zip.
    CREATE OBJECT lo_zip.
    Read the data as a string
    clear lv_content .
    OPEN DATASET lv_dsn1 FOR INPUT IN BINARY MODE.
    READ DATASET lv_dsn1 INTO lv_content .
    CLOSE DATASET lv_dsn1.
    lo_zip->add( name = 'sample.TXT' content = lv_content ).
    lv_content = lo_zip->save( ).
    *clear lv_content .
    Conver the xstring content to binary
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = lv_content
    IMPORTING
    output_length = lv_file_length
    TABLES
    binary_tab = lt_data.
    OPEN DATASET lv_dsn3 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP AT lt_textdata INTO ls_data.
    TRANSFER ls_data TO lv_dsn3.
    ENDLOOP.
    CLOSE DATASET lv_dsn3.
    IF sy-subrc EQ '0'.
        MESSAGE s999(zfi_ap_gl) WITH text-t10.
      ENDIF.
    Can you please help.
    Thanks Aravind

  • How to send smartforms as pdf attachments with e mail

    hi experts,
    how to send smartforms as pdf attachments with e mail???
    nitin

    Hi
    In the FORM Interface put proper parameter. Hope this helps.

  • How to email back

    how doI email back an attachment once I have added my comments

    Assuming that you have received a PDF as an email attachment, want to add comments, then return the document?
    Never modify the attachment directly; always save it first to your local disk, modify it, then send it back the way ~graffiti suggested.

  • How to email album on IPad

    How to email an album from IPhoto on new iPad ?

    A photo album, you can't. Only individual photos.
    Fromn the email app: Tap and hold in the body of the email, Select Insert Photo or Video from the menu. Navigate to the specific photo you want. Tap the photo. Tap Use.
    From the Photo App: Tap Edit (upper right corner). Tap the photo(s) [you will see a check icon appear on it], Tap Share (or the share icon - depending on where in the app you happen to be). Select Mail.

Maybe you are looking for

  • All apps gone after forced restart of iPad

    Hello, I was just developing a bit with my iPad and after the debugger got hang I had to restart my iPad by holding down the home button and the lock button for some seconds. After the iPad was booted up again, i noticed that all apps (expect the bui

  • MacBook showing up as offline in iCloud Find My iPhone

    As the title says! I have iCloud turned on in settings and Find My Mac selected, and it shows up as offline. I'm connected to the internet and using it to check iCloud right now!

  • This paintComponent Method is Annoying - HELP

    ok, I think I touched upon this problem sometime earlier, however I face a larger problem which I've been trying to solve by a different and simpler means but I get nothin. I have a paintComponent method which DRAWS lines, strings and shapes that get

  • Mac Mini vs. MBP 2.16 Core Duo Performance

    I currently have an MBP that has an external Firewire 400 RAID. I'm considering buying the high version of the Mini. Would this perform Core 2 duo better than my older MBP that has the earlier Core Duo? I'd like to do a little photo and video editing

  • Error 1921

    I'm hoping someone can help. I tried to install Itunes 7.2 and received the following error message "Error 1921. Service ipod service (Ipod service) could not be stopped. Verify that you have sufficent privilges to stop system services". I also tried