RERAIV - Real Estate Invoice mailing body text - BADI_RECP_SF

Hi,
     We want to send REFX invoice by email and everything work perfectly except we need to put a text like «Find attached your invoice» and our signature in the email body. I create a text and I can selected(text module) in RECPA520 but my email still have anything in the body. I look every where and I didn't found anaything on it.
Best regards

Hi,
     We want to send REFX invoice by email and everything work perfectly except we need to put a text like «Find attached your invoice» and our signature in the email body. I create a text and I can selected(text module) in RECPA520 but my email still have anything in the body. I look every where and I didn't found anaything on it.
Best regards

Similar Messages

  • RERAIV - Real Estate Invoice mailing - BADI_RECP_SF

    I am working for emailing of the smart form and found the same badi BADI_RECP_SF. But to update the recepient details i hope, i need to use cs_mail_recepeint. Please let me know how i need to fill this details. If not this CS_MAIL_RECEIPIENT, is there any other option to provide the mail id. I want to send the invoice to the mail-id updated in BP transaction.
    My business requirement is when we creates the invoice through RERAIV, the output should go to customer through mail.
    one way of doing is select check box "Email" in RECPA520, but my business don't want to execute this manually. And through this process i can send output only to one emial id (standard) which is maintained in business partner master.
    Is there any way to send mail to other mail-ids which are maintained in business partner?
    For achieving this functionality, we have badi: BADI_RECP_SF. But I am trying to know how to update or pass the parameters for this BADI method 'PRINT'.
    If you have achieved this, please let me know.
    Thanks in advance.

    Hi Vipul,
    Sorry to reply you late, our client doesn't have internet access.
    Standard process, doesn't give you mail body as per my analysis.
    If you want mail body then u need to customize whole process. Maintain the mail body in SO10, using READ_TEXT attach mail body.
    Eg.
      ld_guid = id_docguid.
    CLEAR ls_doc_output.
    READ TABLE is_job_output_info-spoolids ASSIGNING <gv_spoolid> INDEX 1.
    if sy-subrc = 0.
    SELECT SINGLE RQCLIEnt RQO1NAME INTO (lv_client, lv_rqname) FROM tsp01 WHERE rqident = <gv_spoolid>.
    CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
    EXPORTING
    AUTHORITY     = 'SP01'
    CLIENT        = lv_client
    NAME          = lv_rqname
    PART          = 1
    IMPORTING
    *           CHARCO        =
    *           CREATER       =
    *           CREDATE       =
    *           DELDATE       =
    *           MAX_CREDATE   =
    *           MAX_DELDATE   =
    *           NON_UNIQ      =
    *           NOOF_PARTS    =
    *           RECTYP        =
    *           SIZE          =
    *           STOTYP        =
    TYPE          = type
    OBJTYPE       = objtype
    EXCEPTIONS
    FB_ERROR      = 1
    FB_RSTS_OTHER = 2
    NO_OBJECT     = 3
    NO_PERMISSION = 4.
    if objtype(3) = 'OTF'.
    is_otf = 'X'.
    else.
    is_otf = space.
    endif.
    if is_otf = 'X'.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    SRC_SPOOLID                    = <gv_spoolid>
    NO_DIALOG                      = ' '
    *       DST_DEVICE                     =
    *       PDF_DESTINATION                =
    IMPORTING
    PDF_BYTECOUNT                  = numbytes
    PDF_SPOOLID                    = pdfspoolid
    *       OTF_PAGECOUNT                  =
    BTC_JOBNAME                    = jobname
    BTC_JOBCOUNT                   = jobcount
    TABLES
    PDF                            = pdf
    EXCEPTIONS
    ERR_NO_OTF_SPOOLJOB            = 1
    ERR_NO_SPOOLJOB                = 2
    ERR_NO_PERMISSION              = 3
    ERR_CONV_NOT_POSSIBLE          = 4
    ERR_BAD_DSTDEVICE              = 5
    USER_CANCELLED                 = 6
    ERR_SPOOLERROR                 = 7
    ERR_TEMSEERROR                 = 8
    ERR_BTCJOB_OPEN_FAILED         = 9
    ERR_BTCJOB_SUBMIT_FAILED       = 10
    ERR_BTCJOB_CLOSE_FAILED        = 11.
    IF sy-subrc = 0.
    CONCATENATE LINES OF pdf INTO l_string RESPECTING BLANKS.
    l_len = strlen( l_string ).
    EXPORT my_data = l_string(l_len) TO DATA BUFFER l_buffer.
    IMPORT my_data TO ls_doc_output-pdf FROM DATA BUFFER l_buffer IN CHAR-TO-HEX MODE.
    ENDIF.
    endif.
    ENDIF.
    CHECK ls_doc_output-pdf IS NOT INITIAL.
    l_mm = sy-datum+4(2) + 1.
    IF ( strlen( l_mm ) = 1 ).
    CONCATENATE '0' l_mm INTO l_mm.
    ENDIF.
    CONCATENATE l_mm '/' sy-datum+0(4) '.' INTO l_mmyyyy.
    TRY .
    *       create persistent send request
    lo_send_request = cl_bcs=>create_persistent( ).
    *       get PDF xstring and convert it to BCS format
    ld_pdf_size = XSTRLEN( ls_doc_output-pdf ).
    ld_pdf_content = cl_document_bcs=>xstring_to_solix(
    ip_xstring = ls_doc_output-pdf ).
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    *            CLIENT                        = SY-MANDT
    ID                            = 'ST'
    LANGUAGE                      = 'E'
    NAME                          = 'ZRE_INVOICE_MAIL'
    OBJECT                        = 'TEXT'
    *            ARCHIVE_HANDLE                = 0
    *            LOCAL_CAT                     = ' '
    *          IMPORTING
    *            HEADER                        =
    TABLES
    LINES                         = lt_tlines
    EXCEPTIONS
    ID                            = 1
    LANGUAGE                      = 2
    NAME                          = 3
    NOT_FOUND                     = 4
    OBJECT                        = 5
    REFERENCE_CHECK               = 6
    WRONG_ACCESS_TO_ARCHIVE       = 7
    OTHERS                        = 8                   .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT lt_tlines INTO ls_tlines.
    IF ls_tlines-tdline cs 'MM/YYYY.'.
    REPLACE FIRST OCCURRENCE OF 'MM/YYYY.' IN ls_tlines-tdline WITH l_mmyyyy .
    ENDIF.
    IF ls_tlines-tdline cs 'DD/MM/YYYY'.
    REPLACE FIRST OCCURRENCE OF 'DD/MM/YYYY' IN ls_tlines-tdline WITH '01/08/2013' .
    ENDIF.
    ls_message_body-line = ls_tlines-tdline.
    APPEND ls_message_body to lt_message_body.
    ENDLOOP.
    ld_subject  = is_options-tdtitle.
    lo_document = cl_document_bcs=>create_document(
    i_type    = 'RAW'
    i_text    = lt_message_body
    i_subject = ld_subject ).
    CONCATENATE 'Invoice statement_' is_doc-buskey+4(13) INTO lv_filename.
    TRY.
    CALL METHOD LO_DOCUMENT->ADD_ATTACHMENT
    EXPORTING
    I_ATTACHMENT_TYPE    = 'PDF'
    I_ATTACHMENT_SUBJECT = lv_filename
    I_ATTACHMENT_SIZE    = ld_pdf_size
    I_ATT_CONTENT_HEX    = ld_pdf_content.
    CATCH CX_DOCUMENT_BCS .
    ENDTRY.
    *       add document to send request
    lo_send_request->set_document( lo_document ).
    *           add recipient (e-mail address)
    select single customer INTO lv_kunnr FROM but000 as a INNER JOIN
    cvi_cust_link as b ON b~partner_guid = a~partner_guid
    WHERE partner = is_doc-partner.
    select single adrnr into lv_addrcomm FROM kna1 WHERE kunnr = lv_kunnr.
    if lv_addrcomm is NOT INITIAL.
    select smtp_addr from adr6 INTO TABLE lt_recipient WHERE addrnumber = lv_addrcomm.
    LOOP AT lt_recipient INTO lw_recipient.
    ls_recipient-smtp_addr = lw_recipient-smtp_addr.
    lo_recipient = cl_cam_address_bcs=>create_internet_address(
    i_address_string = ls_recipient-smtp_addr ).
    *       add recipient to send request
    lo_send_request->add_recipient( i_recipient = lo_recipient ).
    ENDLOOP.
    *       send document
    lf_sent_to_all = lo_send_request->send(
    i_with_error_screen = 'X' ).
    IF lf_sent_to_all = 'X'.
    *          message i022(so). "Delete DEVK917667
    ENDIF.
    *   ---------- explicit 'commit work' is mandatory! ----------------
    COMMIT WORK.
    endif.
    * *            exception handling
    * * replace this very rudimentary exception handling
    * * with your own one !!!
    CATCH cx_bcs INTO lo_bcs_exception.
    WRITE: text-002.
    WRITE: text-003, lo_bcs_exception->error_type.
    EXIT.
    ENDTRY.
    *  endif.

  • How is the e-mail body text determined when e-mail sent from PO in edit mod

    We have an e-mail that is sent to the supplier when the buyer edits the po then goes to header-output - create and send immediately.   We want to remove the SAP default Salutation
    Best Regards,
    Your Purchasing Company
    The problem is we cannot find where this e-mail body is being created.   Any ideas?
    Sandra

    Hello,
    The email body text that you get at SOST is from the cover form BBP_OUTPUT_COVER.
    When you Order a PO, the following is the text is seen in SOST.
    "&LV_TITLE&
    Please find enclosed the purchase order &IV_PO_HEADER-OBJECT_ID& &IV_PO_
    Kind regards,
    Your purchasing company"
    You can create your own cover form in order to substitute the standard BBP_OUTPUT_COVER.
    Regards,
    Ricardo

  • Real Estate: Can some body tell me configuration of Guest House Process

    I m working on RE Business Process:
    Can some body tell the exact configuration of Guest House Process.
    If u find, Plz let me Know.
    Regards,
    Mahadev.
    Edited by: Mahadevappa Shrimanth on Apr 14, 2008 8:29 AM

    Hi Ahmed ,
    Did you got any update regarding the above query ?
    Do you have any idea about the extraction/ data source for 0REFX_C14.
    Regards
    PA

  • Standard text in Real Estate

    Hi all,
    I am able to see Standard text saved in STXH table but not in SO10.
    Actually these are getting dynamically called and settings are maintained in
    Real Estate -> Correspondence -> Letters and Text Modules -> Maintain Letters.
    Can you please tell me where I can see these standard texts?
    Thanks and regards,
    Ridhima

    hi
    Only the header details of the standard text like Text object, Text Name, Text ID  and Language are stored in STXH...to read the same text use fm READ_TEXT by passing these parameters..but if an entry exists in STXH, u shud be able to see the same in SO10
    if helpful, reward
    Sathish. R

  • Real Estate Contract Invoice

    Hi Experts,
    Currently im working in the RE invoice, my problem is the mapping of the RE invoice. I dont have the transaction of the RE invoice so i cant check if i can map out the fields i needed to create the form of that.
    Can anybody help me find the output types and form name of the Real estate invoice. I will give points if its answered. Thanks.

    Hi,
         SPRO -> Flexible Real estate Management (RF-FX) ->Correspondence->
    PDF based forms->Forms -> define forms.
    Use the Tcode SFP to build the Forms. not from SE71 like what we use for other SD and MM forms.
    I think there is no need of assignment with the program, as I don't find any assignment in SPRO settings.
    So modify the form and keep the standard form there in the SPRO settings.
    Close the thread if your question is answered.
    Thanks
    Nayan

  • Change mail subject and body text

    Hi all,
    i activated access method M in tr. SPAD and via this method i'm sending various reports in PDF to external e-mails. But when recepitiens recive e-mail i have subject of e-mail composed of SYSTEM ID and SPOOL NUMBER (e.g. R3P-12345) and i also have defaulted mail body text :
    The Mail Attachment Contains the Print File Created by User XXXXX , with Number xxxx from SAP System R3P .
    To Print the Data, Open the Mail Attachment with a Suitable Program and Print the Document.
    How can i change mail subject and body text?
    Regards,
    PS*

    For the output type Maintian the Mail body and subject.
    You can do this at NACE==>Output Type ==> Mail title and texts
    rgds,
    TM
    See the link
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/UtilityCode.html
    Message was edited by: Thomas Mann

  • Prob in getting Mail body for the standard tcode F150(Dunning).

    Hello all,
    I am using F150 for the dunning notice print out.After seeing the display of the dunning notice once we come back it populates a popup window where it asks to send the mail to the particular mailid or not. I have used the BTE ---  SAMPLE_PROCEE_00001040 and copied it as z function module and customised according to my requirement in order to get the mail id of the customer in the pop up.My mail is going to the customers mail id properly only but my prob is that we are not able to get any mail body for that particular mail.Where can we add the mail body text to that mail in the standard tcode f150.can any one suggest is it possible or not.
    Regards,
    Pavani.
    Edited by: Pavani Rayappureddi on Aug 11, 2009 11:21 AM

    solved my self.
    added         C_ITCPO-TDTITLE  = 'Pending Receivables Statement-XXX GROUP'.
    in the bte code.

  • Email Purchase Order with mail body

    Hi, ALL,
    I would like to email purchase order to vendors with customized email subject and body. I did configuration in IMG according to note 191470. I also set up title and text in IMG. Now I can email PO with subject (title). But there is no mail body ( the text? ) . Is there anybody know how to do it? Thanks a lot!
    Jack

    Hi,
    In standard you can send purchase order by mail with subject line (title) only and you can not send mail body text.
    Check the link:
    Send PO External email with attachement and Body text
    Regards,
    Biju K

  • Hw to write text in mail body in UTL SMTP in oracle

    hi all
    i m using oracle demo mail package to send csv file as attachment to different users its successfull and i can also able to attach text file to it
    but i m unable to write any text in mail body .
    e.g.
    mail body can be--
    hi
    This is test mail.
    Regds
    Sender.
    can anyone suggest some way?

    u can try this code
    this code takes the file from database and attach with mail and also send the body with it
    it works fine.
    CREATE OR REPLACE
    procedure pdf_mail(
    p_sender varchar2, -- sender, example: 'Me '
    p_recipients varchar2, -- recipients, example: 'Someone '
    p_subject varchar2, -- subject
    p_text long, -- text
    p_case_id number,
    p_email_log_id number
    -- p_filename varchar2, -- name of pdf file
    p_blob   blob     pdf file
    ) is
    conn utl_smtp.connection;
    i number;
    len number;
    p_message_part varchar2(32767);
    cursor c1 is
    select file_name,document_pic
    from clm_case_attachments ca,email_log_detail em
    where
    case_id = p_case_id
    and ca.CASE_ATTACHMENT_ID = em.ATTACHMENT_ID
    and em.ACTIVE = 'Y'
    and em.EMAIL_LOG_ID = p_email_log_id;
    BEGIN
    conn := demo_mail.begin_mail(
    sender => p_sender,
    recipients => p_recipients,
    subject => p_subject,
    mime_type => demo_mail.MULTIPART_MIME_TYPE);
    demo_mail.attach_text(
    conn => conn,
    data => p_text,
    mime_type => 'text/html');
    for lp in c1 loop
    demo_mail.begin_attachment(
    conn => conn,
    mime_type => 'application/pdf',
    inline => TRUE,
    filename => lp.file_name,
    transfer_enc => 'base64');
    -- split the Base64 encoded attachment into multiple lines
    i := 1;
    len := DBMS_LOB.getLength(lp.document_pic);
    WHILE (i < len) LOOP
    IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
    UTL_SMTP.Write_Raw_Data (conn
    , UTL_ENCODE.Base64_Encode(
    DBMS_LOB.Substr(lp.document_pic, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
    ELSE
    UTL_SMTP.Write_Raw_Data (conn
    , UTL_ENCODE.Base64_Encode(
    DBMS_LOB.Substr(lp.document_pic, (len - i)+1, i)));
    END IF;
    UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
    i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
    END LOOP;
    demo_mail.end_attachment(conn => conn);
    end loop;
    demo_mail.end_mail( conn => conn );
    END;
    /

  • Need user exit to add body text in mail while saving the transaction VF02

    Hi All,
       Output type has been configured as external send(5) to trigger billing document as PDF. There is a requirment to add body text in the  mail along with pdf attachement. Funtional consultant has tried using NACE "Mail title and Text" but that doesn't worked out. As a abaper, we are trying to identfy the user exit where I can code the body of mail text.
    Can any body please let us know the user exit to add the body text only?
    Regards,
    Suresh Kumar.

    Hi,
    In your driver program you will have one standard include RVADOPFO.
    Copy all the code available in that include and make it to Z include.
    In this include function module ADDR_GET_NEXT_COMM_TYPE, will have the email address, subject etc.. details.
    So You can modify the contents of the imported parameters here.
    The above code will trigger only when update debugging is switched on!!!!!
    Regards,
    Santhosh.

  • Mail the local files as attachment and some body text

    hello Exprests
    I have a requirement where i have to mail the local files as attachment and some body text also...
    I am using the following code, and the problem is that i am getting a blank TXT as an attachment.
    Please help me solve this issue, if u change the spool request no., client & put ur mail id and execute it u will find that apart from the pdf we get an un wanted attachment also..
    Please suggest me the solution..
    WORK TABLE AREAS
    TABLES: tsp01.
    INTERNAL TABLES
    DATA: lt_rec_tab LIKE STANDARD TABLE OF soos1 WITH HEADER LINE,
    lt_note_text LIKE STANDARD TABLE OF soli WITH HEADER LINE,
    lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE.
    DATA: lt_objcont LIKE STANDARD TABLE OF soli WITH HEADER LINE,
    lt_objhead LIKE STANDARD TABLE OF soli WITH HEADER LINE.
    DATA: pdf_format LIKE STANDARD TABLE OF tline WITH HEADER LINE.
    TYPES: BEGIN OF y_files,
    file(60) TYPE c,
    END OF y_files.
    DATA: lt_files TYPE STANDARD TABLE OF y_files WITH HEADER LINE.
    DATA: l_objcont LIKE soli OCCURS 0 WITH HEADER LINE.
    DATA: l_objhead LIKE soli OCCURS 0 WITH HEADER LINE.
    STRUCTURES
    DATA: folder_id LIKE soodk,
    object_id LIKE soodk,
    link_folder_id LIKE soodk,
    g_document LIKE sood4,
    g_header_data LIKE sood2,
    g_folmem_data LIKE sofm2,
    g_header_data LIKE sood2,
    g_receive_data LIKE soos6,
    g_ref_document LIKE sood4,
    g_new_parent LIKE soodk,
    l_folder_id LIKE sofdk,
    v_email(50).
    DATA: hd_dat LIKE sood1.
    VARIABLES
    DATA: client LIKE tst01-dclient,
    name LIKE tst01-dname,
    objtype LIKE rststype-type,
    type LIKE rststype-type.
    DATA: numbytes TYPE i,
    arc_idx LIKE toa_dara,
    pdfspoolid LIKE tsp01-rqident,
    jobname LIKE tbtcjob-jobname,
    jobcount LIKE tbtcjob-jobcount,
    is_otf.
    DATA: outbox_flag LIKE sonv-flag VALUE 'X',
    store_flag LIKE sonv-flag,
    delete_flag LIKE sonv-flag,
    owner LIKE soud-usrnam,
    on LIKE sonv-flag VALUE 'X',
    sent_to_all LIKE sonv-flag,
    g_authority LIKE sofa-usracc,
    w_objdes LIKE sood4-objdes.
    DATA: c_file LIKE rlgrap-filename,
    n_spool(6) TYPE n.
    DATA: cancel.
    DATA: desired_type LIKE sood-objtp,
    real_type LIKE sood-objtp,
    attach_type LIKE sood-objtp,
    otf LIKE sood-objtp VALUE 'OTF', " SAPscript Ausgabeformat
    ali LIKE sood-objtp VALUE 'ALI'. " ABAP lists
    CONSTANTS
    CONSTANTS: ou_fol LIKE sofh-folrg VALUE 'O',
    c_objtp LIKE g_document-objtp VALUE 'RAW',
    c_file_ext LIKE g_document-file_ext VALUE 'TXT'.
    *=======================================================================
    *=
    *=========
    *z_send_email_fax2
    *function z_faian_mail_fax2.
    ""Interface local:
    *" IMPORTING
    *" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
    *" REFERENCE(FAX_MAIL_NUMBER) TYPE SO_NAME
    *" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
    *" REFERENCE(OBJECT_TYPE) TYPE SO_ESCAPE
    *" TABLES
    *" LT_BODY_EMAIL STRUCTURE SOLI
    *" EXCEPTIONS
    *" ERR_NO_ABAP_SPOOLJOB
    Fist part: Verify if the spool really exists
    *select single * from tsp01 where rqident = src_spoolid.
    DATA src_spoolid TYPE tsp01-rqident VALUE '23242'.
    DATA header_mail TYPE so_obj_des.
    DATA lt_body_email TYPE STANDARD TABLE OF soli WITH HEADER LINE.
    DATA l_t VALUE '1'.
    header_mail = 'Subject line of mail'.
    IF l_t = '1' .
    RAISE err_no_abap_spooljob. "doesn't exist
    *ELSE.
    client = '200'."tsp01-rqclient.
    name = 'SPOOL0000023242'."tsp01-rqo1name.
    CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
    EXPORTING
    authority = 'SP01'
    client = client
    name = name
    part = 1
    IMPORTING
    type = type
    objtype = objtype
    EXCEPTIONS
    fb_error = 1
    fb_rsts_other = 2
    no_object = 3
    no_permission = 4
    OTHERS = 5.
    IF objtype(3) = 'OTF'.
    desired_type = otf.
    ELSE.
    desired_type = ali.
    ENDIF.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
    rqident = src_spoolid
    desired_type = desired_type
    IMPORTING
    real_type = real_type
    TABLES
    buffer = l_objcont
    EXCEPTIONS
    no_such_job = 14
    type_no_match = 94
    job_contains_no_data = 54
    no_permission = 21
    can_not_access = 21
    read_error = 54.
    IF sy-subrc EQ 0.
    attach_type = real_type.
    ENDIF.
    CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
    EXPORTING
    owner = sy-uname
    region = ou_fol
    IMPORTING
    folder_id = l_folder_id
    EXCEPTIONS
    OTHERS = 5.
    fill out informations about the header of the email
    CLEAR: g_document.
    g_document-foltp = l_folder_id-foltp.
    g_document-folyr = l_folder_id-folyr.
    g_document-folno = l_folder_id-folno.
    g_document-objtp = c_objtp.
    g_document-objdes = header_mail.
    g_document-file_ext = c_file_ext.
    g_header_data-objdes = header_mail.
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
    EXPORTING
    method = 'SAVE'
    office_user = sy-uname
    IMPORTING
    authority = g_authority
    TABLES
    objcont = lt_body_email
    attachments = lt_attachments
    CHANGING
    document = g_document
    header_data = g_header_data
    EXCEPTIONS
    OTHERS = 1.
    folder_id-objtp = l_folder_id-foltp.
    folder_id-objyr = l_folder_id-folyr.
    folder_id-objno = l_folder_id-folno.
    object_id-objtp = c_objtp.
    object_id-objyr = g_document-objyr.
    object_id-objno = g_document-objno.
    link_folder_id-objtp = l_folder_id-foltp.
    link_folder_id-objyr = l_folder_id-folyr.
    link_folder_id-objno = l_folder_id-folno.
    REFRESH lt_rec_tab.
    CLEAR lt_rec_tab.
    lt_rec_tab-sel = 'X'.
    lt_rec_tab-recesc = object_type. "This field for FAX/MAIL
    lt_rec_tab-recnam = 'U-'.
    lt_rec_tab-deliver = 'X'.
    lt_rec_tab-not_deli = 'X'.
    lt_rec_tab-read = 'X'.
    lt_rec_tab-mailstatus = 'E'.
    lt_rec_tab-adr_name = fax_mail_number.
    lt_rec_tab-sortfield = fax_mail_number.
    lt_rec_tab-recextnam = fax_mail_number.
    lt_rec_tab-sortclass = '5'.
    APPEND lt_rec_tab.
    lt_rec_tab-recextnam = ."Email id .
    lt_rec_tab-recesc = 'U'. "object_type.
    lt_rec_tab-sndart = 'INT'.
    lt_rec_tab-sndpri = 1.
    APPEND lt_rec_tab.
    c_file = 'C:\Documents and Settings\abgupta\Desktop\Abhinav\zpk.txt'.
    lt_files-file = c_file.
    APPEND lt_files.
    begin of insertion by faianf01
    hd_dat-objdes = header_mail.
    CALL FUNCTION 'SO_ATTACHMENT_INSERT'
    EXPORTING
    object_id = object_id
    attach_type = attach_type
    object_hd_change = hd_dat
    owner = sy-uname
    TABLES
    objcont = l_objcont
    objhead = l_objhead
    EXCEPTIONS
    active_user_not_exist = 35
    communication_failure = 71
    object_type_not_exist = 17
    operation_no_authorization = 21
    owner_not_exist = 22
    parameter_error = 23
    substitute_not_active = 31
    substitute_not_defined = 32
    system_failure = 72
    x_error = 1000.
    IF sy-subrc > 0.
    ENDIF.
    end of insertion by faianf01
    lt_note_text-line = 'test prgram for email'.
    APPEND lt_note_text.
    send email from SAPOFFICE
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    folder_id = folder_id
    object_id = object_id
    outbox_flag = outbox_flag
    link_folder_id = link_folder_id
    owner = sy-uname
    check_send_authority = 'X'
    TABLES
    receivers = lt_rec_tab
    note_text = lt_note_text
    EXCEPTIONS
    active_user_not_exist = 35
    communication_failure = 71
    component_not_available = 1
    folder_no_authorization = 5
    folder_not_exist = 6
    forwarder_not_exist = 8
    object_no_authorization = 13
    object_not_exist = 14
    object_not_sent = 15
    operation_no_authorization = 21
    owner_not_exist = 22
    parameter_error = 23
    substitute_not_active = 31
    substitute_not_defined = 32
    system_failure = 72
    too_much_receivers = 73
    user_not_exist = 35.
    ENDIF.
    COMMIT WORK AND WAIT.

    Hi!
    Add the actual body right after the line, you have created the Multipart object.
    // create and fill the first message part
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(this.text); //body of message
    Multipart mp = new MimeMultipart();
    // Adding the body
    mp.addBodyPart(mbp1);
    //adding attachments
    //... and so on...-Raine-

  • Want to add text to mail body of  BACS Remittance Advice

    Hi Experts,
    Blelow is the requirement.
    User is sending the remittance advice to vendors, user wants to include a u2018fixedu2019 text also in that mail.
    User is sending remittance advice to vendor in PDF format which is attached in a mail, I need to add some text to mail body.
    But not able to find how mail body is filled up.
    Main program RFFOGB_T u2013 Payment program
    Includes RFFORI06 u2013 Remittance advice
    Can you please suggest how I will be able to add the text to the mail ?
    Regards,
    Subhashree.

    Hi E_Hinojosa ,
    Its helped a lot.
    But one doubt,what is process exit and how to search the same from a program or include.
    The required code(which is there in note) is there in include 06 but which process exit I will use for the BACS remittance and how to fill the value of finaa-mail_body_text in process exit.
    Please give me a clear idea.
    Thanks,
    Subhashree.

  • Send mail using cl_bcs. need text in mail body

    Hi friends,
    please provide me some solution to send mail with out attachment and the message should only be in mail body.
    Code :
    TRY.
    *     -------- create persistent send request ------------------------
            send_request = cl_bcs=>create_persistent( ).
    *     -------- create and set document -------------------------------
    *     create document from internal table with text
            CLEAR lv_const.
            CONCATENATE 'Dear' gs_cust-name1 ',' INTO lv_const SEPARATED BY space.
            APPEND lv_const TO text.
            CLEAR lv_const.
            CONCATENATE 'at' gs_cust-new_date 'planned delivery for you with following items:'
                        INTO lv_const SEPARATED BY space.
            APPEND lv_const TO text.
            l_space = '                                       ' .
            APPEND l_space TO text .
            CLEAR : gs_mat,
                    lv_const.
            CLEAR l_quan.
            LOOP AT gt_mat INTO gs_mat WHERE new_date = gs_cust-new_date.
              l_quan = gs_mat-zmeng.
              CONCATENATE gs_mat-matnr gs_mat-maktx l_quan INTO lv_const SEPARATED BY space.
              APPEND lv_const TO text.
              CLEAR :
                      lv_const.
            ENDLOOP.
            l_space = '                                       ' .
            APPEND l_space TO text .
            APPEND 'Please contact with us if you confirm whether above products are' TO text.
            CLEAR lv_const.
            CONCATENATE 'required on' gs_cust-new_date 'with specified quantity.'
                        INTO lv_const SEPARATED BY space .
            APPEND lv_const TO text.
            APPEND 'You can contact with us via e-mail:xxxxxx or via' TO text.
            APPEND 'phone +xxxxxxxxxxxxxx' TO text.
            l_space = '                                       ' .
            APPEND l_space TO text .
            APPEND 'Best regards' TO text.
            APPEND 'Linde Central Logistic Team' TO text.
            lo_document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = text
    *                        i_length  = '12'
                            i_subject = 'test mail' ).
    *     add document to send request
            CALL METHOD send_request->set_document( lo_document ).
    *     --------- add recipient (e-mail address) -----------------------
    *     create recipient - please replace e-mail address !!!
            recipient = cl_cam_address_bcs=>create_internet_address(
                                              'address' ).
    *     add recipient with its respective attributes to send request
            CALL METHOD send_request->add_recipient
              EXPORTING
                i_recipient = recipient
                i_express   = 'X'.
    *     ---------- send document ---------------------------------------
              CALL METHOD send_request->send(
                EXPORTING
                  i_with_error_screen = 'X'
                RECEIVING
                  result              = sent_to_all ).
              COMMIT WORK.
    *  Send Immediately
              send_request->set_send_immediately( i_send_immediately = 'X' ).
          CATCH cx_bcs INTO bcs_exception.
            WRITE: text-001.
            WRITE: text-002, bcs_exception->error_type.
            EXIT.
        ENDTRY.
    Please provide me the solution if i am missing any thing.
    Thanks,
    Kat

    thank you for looking into this thread,
    i have configured the in scot.
    currently sending all RAW type as TXT. this has resolved my issues.

  • PDFs do not e-mail as attachments but as main body text!

    Whenever I attempt to send a PDF document by e-mail it forms part of the main  body text rather than displaying as an attachment.
    Answers please!

    When I attach a PDF to Apple Mail on Mountain Lion, it is an icon. When I send it to an iCloud mail destination, the attachment arrives and is presented as an icon, whether on OS X, or in IOS 6.
    I suspect that the recipient's mail user agent is responsible for the full image .vs. icon behavior, and there is nothing you can do to prevent it.

Maybe you are looking for

  • Need info on basics of SAP Business One

    Hi Gurus ! I need info on basic stuffs for SAP business one 2007 . I tried searching in forums and help but was not able to gather good info... Request u to pls guide me on : 1. What is SAP bsuiness one 2007 and how it is diff from ecc 6 etc ..? 2. H

  • Can't get rid of horizontal lines bordering quicktime

    I am putting a movie slideshow over a white background and the las clip is white to give it a "dissappearing" affect. However there are horizontal black lines bordering the player. How do I get rid of? -paul

  • How does Lion & FileVault work with Bootcamp

    Hi, I am just installing Lion on my computer. I was wondering if the FileVault will encrypt the Bootcamp stuff please? Thanks

  • Problem with popupkey_from_query

    Hi, I've created a customized tabular form in Application Express 3.1, using http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html. my query is like this. select x.empno, x.Employee_Name, x.Manager from (sele

  • How to do a Dynamic Table?

    Hi, I would like to create dropdownlist & inputfield in a row but in different column in a UI table. When pressing a " Add new row " button, another row appears for user to key in data in the inputfield and able to select data from the predefined dro