Is it possible send several interactives forms in one only email?

Hi again experts!
I would like to know if is it possible attach many interactives forms in one mail.
In order to do personnel evaluation we send an  e mail to Departement Manangers attaching an interactive form for every employee in his or her Department.
I'd like send only one email for every manager.
Do you think is it possible?
If yes, some idea?
Thank you very much,
Gloria

Hi gloria,
Yes it's possible to do it .
When you create an e-mail with BCS functionnality you can add several attachment to it .
Here is a sample code for this .
Best regards.
Bertrand
TYPE-POOLS : abap .
DATA : data_for_update TYPE zdemopdf ,
       hexa            TYPE solix_tab.
DATA : fm_name   TYPE funcname ,
       param     TYPE sfpoutputparams,
       doc_param TYPE sfpdocparams ,
       output    TYPE fpformoutput .
** CLASS-DEFINITIONS
DATA: send_request       TYPE REF TO cl_bcs.
DATA: document           TYPE REF TO cl_document_bcs.
*DATA: sender             TYPE REF TO cl_sapuser_bcs.
data: sender            TYPE REF TO if_sender_bcs.
DATA: recipient          TYPE REF TO if_recipient_bcs.
** INTERNAL TABLES
DATA: l_mailtext TYPE soli_tab.
DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
DATA: ireturn    TYPE TABLE OF bapiret2.
** VARIABLES
DATA: mail_line  LIKE LINE OF l_mailtext.
DATA: bapiadsmtp         TYPE bapiadsmtp.
DATA: subject    TYPE so_obj_des.
DATA : att_subject TYPE so_obj_des.
DATA : w_except TYPE REF TO cx_root .
FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
param-nodialog = abap_true. " suppress printer dialog popup
param-getpdf = abap_true.
doc_param-langu = sy-langu.
doc_param-country = 'FR'.
doc_param-fillable = abap_true.
doc_param-dynamic = abap_true.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
  EXPORTING
    i_name     = 'ZDEMO_PDF'
  IMPORTING
    e_funcname = fm_name.
*Set subject of the mail
subject = 'Sample Mail with several forms'.
* Set text of the mail
mail_line = 'here it is'.
APPEND mail_line TO l_mailtext .
* Set attachment name
att_subject = 'Sample form'.
TRY.
* Create persistent send request
    send_request = cl_bcs=>create_persistent( ).
* Get sender object
    sender = cl_sapuser_bcs=>create( sy-uname ).
* Add sender
    CALL METHOD send_request->set_sender
      EXPORTING
        i_sender = sender.
* Create the Recipient
        recipient =
     cl_cam_address_bcs=>create_internet_address( ****** ). " Set the e-mail adress of the recipient
* Add recipient with its respective attributes to send request
    CALL METHOD send_request->add_recipient
      EXPORTING
        i_recipient  = recipient
        i_express    = 'X'
        i_copy       = space
        i_blind_copy = space
        i_no_forward = space.
* Set that you don't need a Return Status E-mail
    CALL METHOD send_request->set_status_attributes
      EXPORTING
        i_requested_status = 'E'
        i_status_mail      = 'E'.
* set send immediately flag
    send_request->set_send_immediately( 'X' ).
*Build Document
    document = cl_document_bcs=>create_document(
                        i_type    = 'RAW'
                        i_text    = l_mailtext
                        i_subject = subject ).
*     add attachment to document
do 5 times.
CALL FUNCTION 'FP_JOB_OPEN'
  CHANGING
    ie_outputparams = param
  EXCEPTIONS
    cancel          = 1
    usage_error     = 2
    system_error    = 3
    internal_error  = 4.
CHECK sy-subrc EQ 0.
CALL FUNCTION fm_name
  EXPORTING
    /1bcdwb/docparams  = doc_param
    data_for_update    = data_for_update
  IMPORTING
    /1bcdwb/formoutput = output
  EXCEPTIONS
    usage_error        = 1
    system_error       = 2
    internal_error     = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
  EXCEPTIONS
    usage_error    = 1
    system_error   = 2
    internal_error = 3
    OTHERS         = 4.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
  EXPORTING
    buffer     = output-pdf "PDF file from function module
  TABLES
    binary_tab = hexa.
    CALL METHOD document->add_attachment
      EXPORTING
        i_attachment_type    = 'PDF'
        i_attachment_subject = att_subject
        i_att_content_hex    = hexa.
* Add document to send request
    CALL METHOD send_request->set_document( document ).
enddo.
* Send document
    CALL METHOD send_request->send( ).
    COMMIT WORK.
  CATCH cx_send_req_bcs INTO w_except.
  CATCH cx_address_bcs INTO w_except.
  CATCH cx_document_bcs INTO w_except.
ENDTRY.

Similar Messages

  • Adobe Interaction form as Attachment of Email

    hi experts,
    my requirement:
    I have a report and an Adobe form.
    my report will generate this form in each loop and mail it.
    I am getting the PDF form object and passing it to the Email FM: SO_NEW_DOCUMENT_ATT_SEND_API1
    the mail is getting send with the Attachment
    but the Attachment is NOT OPENING from the Inbox.
    Says " No pages to display".
    Can anyone provide a code for attaching PDF Interactive form in a mail?
    ags.

    [link to Adobe Interaction form as Attachment of Email|http://www.sdn.sap.com/irj/scn/abap-elearning]hi,
    see the below link

  • How to send Dynamic Interactive Forms through mail?

    Hi all,
    I'm trying to sent Interactive Forms as attachment through mails.
    Everything works fine as long as the Content of this Interactive Form stays static.
    When I add dynamic elements and test this in SFP, they work.
    However when they get sent by mail, the dynamic content is lost and gets back Static.
    Does anyone has ABAP code or any other solutions so that the PDF gets send as an Dynamic Form?
    Thanks in advance.
    Kind Regards,
    Maarten

    Hi,
    I'm working from the Web UI. This is BSP. Here I add 2 Methods (GET_PDF and SEND_MAIL).
    The GET_PDF gets all data for the form and then sends the FORMOUTPUT to the SEND_MAIL method.
    Here I add the PDF as following:
    First I convert it to BINARY and then I add it as attachment.
    Do I need to add it as another TYPE or ....
    +  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = ip_formoutput-PDF "PDF file from function module
        APPEND_TO_TABLE       = ' '
      IMPORTING
        OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = lt_att_content_hex
      lo_document->add_attachment(
        EXPORTING
          i_attachment_type    = 'PDF'
          i_attachment_subject = 'Your appointment Details'
          i_att_content_hex    = lt_att_content_hex ).+
    Kind Regards,
    Maarten

  • Sending Offline Interactive Form Via Email

    Hi,
    I am running NW 2004s SPS09 and trying to configure GP to use offline adobe interactive forms.  As of now, I am able to create a callable object from an Adobe template, prefill fields from other background execution/web service callable objects, and launch a process when the form is submitted via email.  I am having trouble routing the form to the next processor through email.  I created an interactive form callable object, checked 'Enable Use In Guided Procedures' and selected 'Create Offline Interactive Form And Send By E-Mail'.  My first thought was that there was some delay in the sending of emails, but callable objects in other processes that send plain text notifications work fine.  The process does not enter an erroneous state and waits at that action.  Looking at the GP monitor under NW administration, the correct processor is set for the action, but the task does not appear in the user's UWL or GP runtime center (I figure this is because the task is meant to be completed offline).  Any suggestions would be much appreciated.  Thanks!
    ~Greg

    Turned out the 'switchToNewMailCommunication' property for the GP service was set to true when it should have been false.
    ~Greg

  • Sending dynamic interactive form to GP

    dear expert,
                    i have create a dynamic interactive form that allow user to populute new instance of row when clicking the "add row" button.
    After collecting the user's input data and hit on the submit button, it will send the form to the guided procedure.
    I have now only able to successfully create a static form and allow value to pass to the guided procedure.
    Can some one who have experience in submitting dynamic form to the guided procedure offered me some advice.

    Hi Colin,
    See if you these links can help you:
    SAP Interactive Forms by Adobe in the Guided Procedures Environment
    https://www.sdn.sap.com/irj/sdn/java?rid=/webcontent/uuid/f057d803-3c53-2910-db92-a6a2f1cc7334
    Guided Procedures Functions and Features
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d261b611-0b01-0010-7781-acb929f30163
    Guided Procedures Overview
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a553bb11-0b01-0010-23ad-a3dc74e77e39
    Task-Oriented Support for Your Department's Informal Processes - Without Calling on IT
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b866ae10-0b01-0010-cc85-e6c886cbfa84
    Getting Up to Speed on Guided Procedures, Part I
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852
    Getting Up to Speed on Guided Procedures, Part II
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/1ffe06f0-0a01-0010-60a7-a2593e1862f3
    http://help.sap.com/SAPHELP_NW04S/helpdata/EN/33/198141f906040de10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a553bb11-0b01-0010-23ad-a3dc74e77e39
    https://www.sdn.sap.com/irj/sdn/java?rid=/webcontent/uuid/f057d803-3c53-2910-db92-a6a2f1cc7334
    Wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bpx/guidedProceduresGetting+Started
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bpx/guidedProcedureGeneral+questions
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bpx/guidedProceduresProcess+Examples
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/emtech/adobeformsinGuidedprocedures
    https://wiki.sdn.sap.com/wiki/display/EmTech/AdobeinteractiveformsinwebDynpro+JAVA
    https://wiki.sdn.sap.com/wiki/display/BPX/TheuseofInteractiveFormsinGP
    Useful blogs
    A Tale of Two Brothers: Guided Procedures and the SAP NetWeaver BPM Product
    The specified item was not found.
    Usage guide for creating Guided Procedures
    Usage guide for creating Guided Procedures
    Galaxy, Universal Worklist, Guided Procedures Connector, and Dr. Bruce
    Galaxy, Universal Worklist, Guided Procedures Connector, and Dr. Bruce
    Regards,
    Arafat

  • Is it possible to use interactive form in SAPGUI?

    Hi, experts,
    i am wonderting that is it possible to use the adobe form ,interactively, in sap gui?
    we want to use it as the new interface for workflow approvment in sbwp.
    thanks and best regards
    jun

    Hi&#65292;Dezso
    i have read the source code of the report, also ,someother report start with
    fp_test*, but  it seem none of them can work as an interactive form.
    they only show the form, interactively or read only, but none of them can get user input back to abap report.
    any further information on this?
    thanks and best regards.
    Jun

  • Problem in sending online interactive form in email as PDF attachment

    Hi,
    I am trying to send online intercative forms as PDF attachment once user fills it and click on send button. But this mail i am trying to send from SAP workflow. For this am using one function module which is accepting the pdfsource context attribute of binary type as Xstring. Once i run the webdynpro application i am getting mail in out look but when i open the attachment i am getting error file is damaged.
    Can you pls help me in solving this, Or any other way for doing the same.
    Here is the code i am using for triggering the RFC from WD
    Zsend_Mail_Attachment_Sev_Input mail = new Zsend_Mail_Attachment_Sev_Input();     
              //to capture the outplacement level entered in the form
              mail.setI_Out_Place_Level(wdContext.currentVn_severancedetailsElement().getVa_outplacement_level().getBytes());
         mail.setI_Bin_Data(wdContext.currentContextElement().getPdfSource());
         wdContext.nodeZsend_Mail_Attachment_Sev_Input().bind(mail);
         try
              wdContext.currentZsend_Mail_Attachment_Sev_InputElement().modelObject().execute();
              wdComponentAPI.getMessageManager().reportSuccess("Notification Sent Successfully.");
         catch (WDDynamicRFCExecuteException e)
              // TODO Auto-generated catch block
              wdComponentAPI.getMessageManager().reportSuccess(" This is inside the mail exception!!"+e);
              e.printStackTrace();
    Here is the function module code
    FUNCTION ZSEND_MAIL_ATTACHMENT_SEV.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_OUT_PLACE_LEVEL) TYPE  XSTRING OPTIONAL
    *"     VALUE(I_BIN_DATA) TYPE  XSTRING OPTIONAL
    *"  TABLES
    *"      T_V_BIN_DATA STRUCTURE  SOLISTI1
    *"      IT_MESSAGE STRUCTURE  SOLISTI1
    Data Declaration
      DATA: gd_cnt TYPE i,
            gd_sent_all(1) TYPE c,
            gd_error TYPE sy-subrc,
            tab_lines LIKE sy-tabix,
            v_subject(255) VALUE 'HI'.
    Structure Declaration
      DATA : BEGIN OF it_file OCCURS 0,
              row(255),
             END OF it_file.
      DATA : BEGIN OF i_split OCCURS 0,
      row(50),
      END OF i_split.
    DESCRIBE TABLE it_message LINES tab_lines.
    READ TABLE it_message INDEX tab_lines.
    Internal Table Declaration
      data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
      DATA : objbin LIKE SOLIX OCCURS 0 WITH HEADER LINE.
      DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
      data : wa_receiver like table of SOMLRECI1 with header line.
      data : it_receiver like table of SOMLRECI1 with header line.
      DATA :   gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
      REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
      CLEAR   : objbin, it_packing_list, wa_receiver, it_receivers.
    gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
    gd_doc_data-obj_langu = sy-langu.
    gd_doc_data-obj_name = 'SENDFILE'.
    gd_doc_data-obj_descr = v_subject.
    gd_doc_data-sensitivty = 'O'.
    APPEND GD_DOC_DATA.
    Appending The Internal Table it_packing_list
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'RAW'.
      it_packing_list-body_num = tab_lines.
      APPEND it_packing_list.
      move i_bin_data to t_v_bin_data.
    ********Add By Anuj
      APPEND t_v_bin_data.
    ********End Add By Anuj
      LOOP AT t_v_bin_data.
        MOVE t_v_bin_data TO objbin-line.
        APPEND objbin.
      ENDLOOP.
      CLEAR it_packing_list.
      DESCRIBE TABLE objbin LINES tab_lines.
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 1.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'PDF'.
      it_packing_list-body_num = tab_lines.
      it_packing_list-doc_size = tab_lines * 255.
      APPEND it_packing_list.
      wa_receiver-receiver = '[email protected]'.
      wa_receiver-rec_type = 'U'.
      wa_receiver-com_type = 'INT'.
      APPEND wa_receiver.
      move wa_receiver[] to it_receiver[].
      append it_receiver.
    *Appending The Internal Table it_receivers
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
    append it_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
    append it_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
    append it_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver to it_receiver.
    append it_receiver.
      Move wa_receiver[] to it_receivers[].
    Clear it_receivers.
      if i_OUT_PLACE_LEVEL NE 0.
    loop at it_receivers into wa_receiver.
       loop at it_receivers into wa_receiver.
    *Function Module To Post The Message To Externa Mail
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = it_packing_list
            contents_hex               = objbin
            receivers                  = it_receivers
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
        clear wa_receiver.
       endloop.
      elseif i_OUT_PLACE_LEVEL eq 0.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = it_packing_list
            contents_hex               = objbin
            receivers                  = it_receiver
          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.
        clear wa_receiver.
      endif.
    ENDFUNCTION.
    Regards
    Ravindra

    Hi,
    I am trying to send online intercative forms as PDF attachment once user fills it and click on send button. But this mail i am trying to send from SAP workflow. For this am using one function module which is accepting the pdfsource context attribute of binary type as Xstring. Once i run the webdynpro application i am getting mail in out look but when i open the attachment i am getting error file is damaged.
    Can you pls help me in solving this, Or any other way for doing the same.
    Here is the code i am using for triggering the RFC from WD
    Zsend_Mail_Attachment_Sev_Input mail = new Zsend_Mail_Attachment_Sev_Input();     
              //to capture the outplacement level entered in the form
              mail.setI_Out_Place_Level(wdContext.currentVn_severancedetailsElement().getVa_outplacement_level().getBytes());
         mail.setI_Bin_Data(wdContext.currentContextElement().getPdfSource());
         wdContext.nodeZsend_Mail_Attachment_Sev_Input().bind(mail);
         try
              wdContext.currentZsend_Mail_Attachment_Sev_InputElement().modelObject().execute();
              wdComponentAPI.getMessageManager().reportSuccess("Notification Sent Successfully.");
         catch (WDDynamicRFCExecuteException e)
              // TODO Auto-generated catch block
              wdComponentAPI.getMessageManager().reportSuccess(" This is inside the mail exception!!"+e);
              e.printStackTrace();
    Here is the function module code
    FUNCTION ZSEND_MAIL_ATTACHMENT_SEV.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_OUT_PLACE_LEVEL) TYPE  XSTRING OPTIONAL
    *"     VALUE(I_BIN_DATA) TYPE  XSTRING OPTIONAL
    *"  TABLES
    *"      T_V_BIN_DATA STRUCTURE  SOLISTI1
    *"      IT_MESSAGE STRUCTURE  SOLISTI1
    Data Declaration
      DATA: gd_cnt TYPE i,
            gd_sent_all(1) TYPE c,
            gd_error TYPE sy-subrc,
            tab_lines LIKE sy-tabix,
            v_subject(255) VALUE 'HI'.
    Structure Declaration
      DATA : BEGIN OF it_file OCCURS 0,
              row(255),
             END OF it_file.
      DATA : BEGIN OF i_split OCCURS 0,
      row(50),
      END OF i_split.
    DESCRIBE TABLE it_message LINES tab_lines.
    READ TABLE it_message INDEX tab_lines.
    Internal Table Declaration
      data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
      DATA : objbin LIKE SOLIX OCCURS 0 WITH HEADER LINE.
      DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
      data : wa_receiver like table of SOMLRECI1 with header line.
      data : it_receiver like table of SOMLRECI1 with header line.
      DATA :   gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
      REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
      CLEAR   : objbin, it_packing_list, wa_receiver, it_receivers.
    gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
    gd_doc_data-obj_langu = sy-langu.
    gd_doc_data-obj_name = 'SENDFILE'.
    gd_doc_data-obj_descr = v_subject.
    gd_doc_data-sensitivty = 'O'.
    APPEND GD_DOC_DATA.
    Appending The Internal Table it_packing_list
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'RAW'.
      it_packing_list-body_num = tab_lines.
      APPEND it_packing_list.
      move i_bin_data to t_v_bin_data.
    ********Add By Anuj
      APPEND t_v_bin_data.
    ********End Add By Anuj
      LOOP AT t_v_bin_data.
        MOVE t_v_bin_data TO objbin-line.
        APPEND objbin.
      ENDLOOP.
      CLEAR it_packing_list.
      DESCRIBE TABLE objbin LINES tab_lines.
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 1.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'PDF'.
      it_packing_list-body_num = tab_lines.
      it_packing_list-doc_size = tab_lines * 255.
      APPEND it_packing_list.
      wa_receiver-receiver = '[email protected]'.
      wa_receiver-rec_type = 'U'.
      wa_receiver-com_type = 'INT'.
      APPEND wa_receiver.
      move wa_receiver[] to it_receiver[].
      append it_receiver.
    *Appending The Internal Table it_receivers
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
    append it_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
    append it_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
    append it_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    wa_receiver-receiver = '[email protected]'.
    wa_receiver-rec_type = 'U'.
    wa_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver to it_receiver.
    append it_receiver.
      Move wa_receiver[] to it_receivers[].
    Clear it_receivers.
      if i_OUT_PLACE_LEVEL NE 0.
    loop at it_receivers into wa_receiver.
       loop at it_receivers into wa_receiver.
    *Function Module To Post The Message To Externa Mail
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = it_packing_list
            contents_hex               = objbin
            receivers                  = it_receivers
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
        clear wa_receiver.
       endloop.
      elseif i_OUT_PLACE_LEVEL eq 0.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = it_packing_list
            contents_hex               = objbin
            receivers                  = it_receiver
          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.
        clear wa_receiver.
      endif.
    ENDFUNCTION.
    Regards
    Ravindra

  • Sending a PDF form without a desktop email application

    I developed a PDF form using Livecycle and now discoved that the computers that users have do not have an email client installed. instead, they use OWA. So my Save and Send Email button will save the PDF but not email it. Is there a way to send the PDF (I've read something about http or server-side scripts) that will be automatic so that the user doesn't manually have to attach the saved file to an OWA email and type in an email address? We've used pdformail.asp in the past, but, for some reason, it's not working for me now.I get a message saying that the page can't be displayed. The code for this action page is copied below.
    <%
    Dim strMasterPath
    Dim PDForm
    ' Acquire the server default path
    strMasterPath = Server.MapPath(Request.ServerVariables("PATH_INFO"))
    strMasterPath = Left(strMasterPath,InstrRev(strMasterPath,"\"))
    ' Initiate the formium object and call the Render function
    Set PDForm = Server.CreateObject("formium.core")
    Call PDForm.render_PDForMail(0)
    ' Close out the object       
    Set renderPDF = Nothing
    %>

    Here's the javascript on the Submit button, and I'd like a script that would grab user-entered values in the PDF form in the same way. Is this possible?
    form1.page3.emailSubform.emailToBtn::preSubmit:form - (JavaScript, client)
    app.execMenuItem("SaveAs");
    //either way below works
    //event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
    if (txtCCAddress.rawValue == null) {
    var strToAddress, strSubject, strMessage, strSuffix, strMgrFirstName, strMgrLastName, strStoreNum, strRegionNum
    strToAddress = txtToAddress.rawValue;
    strSuffix = form1.Page1.DropDownList1.rawValue;
    strMgrFirstName = form1.page3.MgrFirstName.rawValue;
    strMgrLastName = form1.page3.MgrLastName.rawValue;
    strStoreNum = form1.Page1.storeNumber.rawValue;
    strRegionNum = form1.page3.distRegion.rawValue;
    this.resolveNode("#event").submit.target = "mailto:" + strToAddress + "?subject= " + "LOA request for " + strSuffix + " DSM " + strMgrFirstName + " " + strMgrLastName + " Store# " + strStoreNum + " Region# " + strRegionNum;
        else
        var strToAddress, strCCAddress, strSubject, strMessage, strSuffix, strMgrFirstName, strMgrLastName, strStoreNum, strRegionNum
    strToAddress = txtToAddress.rawValue;
    strCCAddress = txtCCAddress.rawValue;
    strSuffix = form1.Page1.DropDownList1.rawValue;
    strMgrFirstName = form1.page3.MgrFirstName.rawValue;
    strMgrLastName = form1.page3.MgrLastName.rawValue;
    strStoreNum = form1.Page1.storeNumber.rawValue;
    strRegionNum = form1.page3.distRegion.rawValue;
        this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + "LOA request for "  + strSuffix + " DSM " + strMgrFirstName + " " + strMgrLastName + " Store# " + strStoreNum + " Region# " + strRegionNum;

  • Saving several pdf forms to one file

    Hi to all,
    I create ADOBE form and save it from the printing program.
    I call to the form in loop, evry time I send it diffrent data.
    I want the all the forms will be saved in one file.
    I see that the file that created is getting bigger in evry loop, but when I try to opwn it in Acrobat Reader (not from sap) I see only the last page I saved.
    Please review the code and tell me what I am doing wrong:
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT lt_emp_details INTO ls_emp_details.
       CALL FUNCTION '/1BCDWB/SM00000018'
        CALL FUNCTION l_fm_name
          EXPORTING
            /1bcdwb/docparams  = fp_docparams
            ls_emp_data        = ls_emp_details
          IMPORTING
            /1bcdwb/formoutput = fp_result
          EXCEPTIONS
            usage_error        = 1
            system_error       = 2
            internal_error     = 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.
    filename =p_path.
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer          = fp_result-pdf
           append_to_table = 'X'
        TABLES
          binary_tab      = gt_file.
        cl_gui_frontend_services=>gui_download( EXPORTING
        filename = filename
        filetype ='BIN'
        append = 'X'
        CHANGING
        data_tab = gt_file ).
       PERFORM download_file.
      ENDLOOP.
      CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          e_result       = result
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
    Thanks in advanced
    Chaya.

    Hi,
    The problem is that on every form you fet while calling the function module, you get the header information of an ADOBE Forms so when you try to open it you will see the latest one ...
    The ideal solution is to merge all your document into one , unfortunately it's not possible while using ADS in SAP .
    An alternative for your problem is to modify your form in order to have page break while changing of forms . Then you will retrieve only one form with all page and that should work.
    Hope this is clear and help you .
    Regards.

  • Is it possible send a SELECT APDU from one applet to another?

    Hello i want to select one applet from another. is it possible and how?. Thanks

    OK, I went to use this today, and can't figure it out.  Where do I place this code; In the SQL of a query, In the VBA of a form, or In a Modual?
    UPDATE Registrations RIGHT JOIN Registrations2
    ON Registrations.TEXT_REGISTRANT_ID = Registrations2.TEXT_REGISTRANT_ID
    SET Registrations.TEXT_REGISTRANT_ID = Registrations2.TEXT_REGISTRANT_ID,
    Registrations.[Name] = Registrations2.[Name]

  • Send Order confirmation form as PDF in email on Order Save on webchannel

    Hello,
    I am developing a smartform for Purchase Order in CRM. When end user will save order on Internal sales webchhanel , order confirmation mail shoud be triggered to customer with smartform in PDF format.
    I want to know how can I pass values from Order saved on webchannel to my smartform and send as PDF in mail attachment?
    Thanks & Regards,
    Madhura Nadgauda

    Hello Madhura ,
    Are you planning on sending the email on order create? Maybe you can use the order create FM ?
    regards
    Mark

  • Consolidation of several numbers forms to one master form/

    In the past using excel as a purchasing or invoicing system I was able to consolidate several sheets into one master for by linking them together under the Data tab then Consolidate. I do not see this function any where in numbers. Can anyone help?
    Matt

    no consolidate function built into the program. Learn a bit of applescript and you should be able to peform this.
    Jason

  • Send several pdf attachments has one file

    I sent out an email today with 25 pdf files attached. The person who received it said she had to open each file to see it instead of the whole file being sent has one file. How do you do this?

    Hi oz1234
    if you have sent 25 different files, receiver will see 25 different files.
    You can use acrobat and combine them into one single file and send that one file.
    Please Refer : http://www.adobe.com/in/products/acrobat/merge-pdf-files.html

  • Interactive forms- i see only one record -how can i see more?

    Hi experts,
    i have a table and the result is only one record instead of more records.
    how can i see more records?
    my code is:
    types: begin of structure_0021,
    favor type pa0021-favor,
    yy_id type pa0021-yy_id,
    fgbdt type pa0021-fgbdt,
    end of structure_0021.
    data: it_0021 type table of struct_0021,
             wa_0021 like line of it_0021.
    select favor yy_id fgbdt from pa0021 into corresponding fields of table it_0021
    where pernr = lv_pernr and
    subty = '2'.
    data: lo_nd_adobe2 type ref to if_wd_context_node,
            lo_nd_ls00212 type ref to if_wd_context_node,
            lo_el_ls00212 type ref to if_wd_context_element,
           ls_ls00212 type wd_this->element_ls0021.
    lo_nd_adobe2 = wd_context->get_child_node( name = wd_this->wdctx_adobe).
    lo_el_ls00212 = lo_nd_adobe2->get_element().
    lo_nd_ls00212 = lo_nd_adobe->get_child_node(name = wd_this->wdctx_ls0021).
    lo_el_ls00212 = lo_nd_ls00212->get_element().
    loop at it_0021 into wa_0021.
    lo_el_ls00212->get_static_attributes(importing static_attributes = ls_ls00212).
    endloop.
    lo_nd_ls00212->bind_table(new_items = it_0021).
    if anyone can help me - i will really appreciate it.
    i tried other thing and didnt succeed.
    thanks,
    Michal.

    Obvious question, but have you got 'Find My iPhone' set on both devices?  Settings>iCloud>Find My iPhone.

  • Adobe Interactive Form: sending without email-account

    hi folks
    is it possible to send an interactive adobe form to an email-address without having an email-account?
    thank you for helping me.
    cheers
    toni

    Hi Antonio,
    As per my knowledge its impossible to send an interactive form without having an email account. However its possible to transfer form between two users using the same portal. Hope it will help you.
    Regards,
    Vaibhav Tiwari.

Maybe you are looking for

  • How can I transfer a docx. or pdf. document of microsoft word to the ipad?

    Hello How can I transfer my docx. and pdf. files using the newest edition of microsoft office word from my Laptop to the program "pages 09"? It seems that pages can only import doc. files? To convert my files makes no sense because the whole layout w

  • Flash CS3 swf viewing @ hyper-speed on IE

    Hello- I have created a slide show from the Flash CS3 template... inserted in a DW CS3 document. Views/Tests GREAT except from IE... I'm thinking there must be a special "IE" code... but cannot find documentation. What's also interesting, I also crea

  • Disk Permissions are these ok to leave alone?

    I just repaired my disk permissions and this is what came up: Permissions differ on "System/Library/CoreServices/Front Row.app/Contents/CodeResources", should be -rw-r--r-- , they are lrw-r--r-- . Permissions differ on "System/Library/CoreServices/Fr

  • Jdbc database access

    The following is not running and it got compiled . I want to know whether it is possible to open a recordset for processing based on a value from another recordset . I need to get values from a recordset based on a value from previous recordset.. Nes

  • Path to windows shared disk

    Hi, what would be a typical path to mount a windows shared drive as a device? I suppose I have to choose SMB/cifs but then? SHould it look lije this: //SERVERNAME/SHAREDFOLDERNAME or use the IP like this 192.168.5.555/SHAREDFOLDERNAE