Automatic DIR creation when mailed with Subject

Hi SAP Gurus,
We Have a requirement where an user sends a Mail with the subject line as the DIR No (particularly the Document folder No in EDMS) with some document files attached to it,
The requirement is, based on the mail sent the system should create a DIR in DMS with the attached files placed inside the DIR automatically with out any manual interventions.
So we can have a list of DIRs created under one folder in DMS.
Please Explain in detail like how this requirement could be met, if it is an development also throw some light on the methord to be followed.
There are some scanner interfaces available in the market but we are not sure to go for any third party integration for getting this single requirement fullfilled.
Points awaiting for usefull suggestions
Thanks and regards
Priya S

The TDMC(Technical Document Management Connectivity) offering allows a customer to connect to their SAP Document Management System (DMS) via MS Outlook. This is achieved using a MS Outlook Plug-in that was developed in C#, which you can modify at the customer's site to include customer-specific information. The second part of this offering is the usage of SAP Enterprise Services (ES), which are standard as of ERP 2005. This offering uses a specific ES called DocumentBulkCreate. The final part of this tool is the SAP DMS itself.
This tool enables the following:
- From MS Outlook, the user has a context menu option to work with SAP DMS.
- By selecting this option, the user is prompted to add additional information about the e-mail (for the
  standard offering the user is prompted for the project number but this can be tailored to the customer
  needs via the C# program).
- After confirmation, the tool then checks this e-mail into SAP DMS via the ES.
- This creates a new Document Info Record (DIR) in which:
    1) Information about the e-mail along with any entered information via the prompt is automatically
       placed into the classification of this DIR.
    2) The body of the e-mail is saved as an original within the DIR as a *.txt file.
    3) Any/all attachments are stored as originals separately within the DIR in their original file format 
       (such as *.ppt, *.xls, *.docu2026).
Within this document, you can expect to find step-by-step instructions on how to implement this toolset using the standard developed version. Some aspects of this implementation can be adapted to support customer-specific needs. Where applicable, the document attempts to point out whether customization of the offering is advised.
Please refer SAP Document, "Enterprise Services End-to-End Implementation Guide Using SAP® ERP 2005, ECC-SE SP3" from SAP Service marketplace.
Hope this helps.
Yong Kim

Similar Messages

  • Oracle forum watch : please send mail with subject as the question

    Hi Site Administrator,
    The oracle forum send a mail if we are watching any topic. Earlier the subject was named as the question subject , which was very helpful.
    Now we are gettting the mail with subject as the topic name ex java programming, new to java etc.
    With the current form we have to see inside each mail to know what is the question asked. Earlier from the subject itself we were able to find what is/may be the question. Which has helped to easily and quickly scan through. So please change this new pattern to old pattern. Since that is the best practice.
    Hi moderator
    Please put my question in the suitable section if it is not placed in the right one.

    793619 wrote:
    Hi moderator
    Please put my question in the suitable section if it is not placed in the right one.Put it there yourself.
    Community Feedback (No Product Questions)
    The Java and Solaris moderators aka community moderators are not authorized to move content anywhere and everywhere on forums.oracle.com. In future, please check the forum listings and find the correct forum to post to.
    I'm locking this thread and it will be removed later.
    db

  • E-mail with Subject, Body and Attachments

    Hi,
    I am currently completing a project to create an intranet site for employees.
    We need functionality to send email confirmation of a sale to customers. I'm going to start by saying i have zero web design experience and have only been doing this for 3 months heavily using the ribbon with minimal coding. So the situation is:
    I have a button that i want employees to be able to click and it opens a new email from outlook with pre-populated body text (which is static and never changes) and 3 attachments also never changing. The employee will then enter the clients email address
    and add their name to the email. 
    I have managed the email and subject no bother. However the body text i want to enter needs to look like this:
    "TRAVEL INSURANCE
    I confirm cover is in place.
    If you need any assistance whilst abroad call: 0800 000 000 for 24 hour assistance or contact our claims department on:
    0800 000 000. This office can be contacted on: 0800 000 000
    asking for extension number:XXXX to speak to myself.
    Yours Sincerely
    XXXXXXXXXXXX
    Travel Adviser
    Please Note: This e-mail was sent from a notification-only email address that cannot accept incoming e-mail. Please do not reply to this message."
    I've managed to get some of the body text in but no formatting. I've managed line breaks using %0D%0A but if i add a double break to get a clear line there doesn't seem to be enough room and it begins to lose the body text. 
    Thats issue 1.
    Issue 2 is how you manage to attach files. Everything i look at says you need to do your own piece of coding which is far beyond my capability for this project!
    Any help would be fantastic.
    this is my code so far:
    [email protected]?subject=Travel%20Confirmation%20Email&body=TRAVEL INSURANCE%0D%0A%0D%0AI confirm cover is in place.%0D%0AIf you are in need of any assistance whilst you are abroad please contact our 24 hour emergency
    helpline on: (0000) 000 000 or the claims department on: 00000 000 000. If I can be of any further assistance, please contact our office on 0000 000 0000, extension number: XXXX.%0D%0AThank you for insuring with us.%0D%0AYours sincerely%0D%0AYOUR NAME%0D%0ATravel
    Advisor
    Thanks,
    K

    Hi,
    According to your description, you might want to let users be able to send email with attachments.
    As you might prefer a codeless solution, I would suggest you create a
    SharePoint Designer workflow to achieve it.
    A solution can be like this:
    1. Create a list “ListA” for storing the three attachments which you want to add into your email, it will be referenced in the workflow;
    2. Another list “ListB” with two columns “ClientEmailAddress” and “ClientNames”, it will be used to collect user input and sent to the workflow;
    3. Create a SharePoint Designer workflow and attach to the “ListB”, set the workflow to be started when there is new item added in the current list.
    By doing this, users can simply add a new item in “ListB” with two columns filled, an email will be sent out as you required.
    In SharePoint Designer workflow, we can send email contains predefined format easily with the available workflow action in SharePoint Designer.
    About how to
    send email in SharePoint Designer workflow:
    https://support.office.com/en-us/article/Send-e-mail-in-a-workflow-11d5f9dd-955f-412c-b70f-cde4214204f4
    http://www.mpspartners.com/2012/05/spdesigner2010workflowsendingemailstomultipleusersfromasinglepeoplepickerfield/
    To be able to
    send email with attachments, you would like to install this solution in your environment, it provides a useful custom workflow action you will need:
    http://sharepointstuff.codeplex.com/releases/view/66258
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Automatic PO creation from PR with no master data

    Dear gurus,
    Is it possible to run ME59- Auto PO creation from approved PR with no master data/source assigned/PIR? Assuming user create adhoc PR.
    Is it possible to run this process successfully if i didn't meet on the criteria below? let say no.1 is not checked?
    1.Material Master purchasing view, check automatic PO check box.
    2. Vendor Master purchasing view, check automatic PO check box.
    3. Maintain Source list for Vendor and Material (transaction ME01) and also see validity period.
    4. Maintain Purchase Info Record (transaction ME11), check info record category (must be standard or pipeline or subcontracting)
    5. Create a Purchase Requisition ( transaction ME51N), during creation select check box of Source Determination.
    6. Use transaction ME59 and execute for purchase requisition for vendor, you will be able to create automatic PO.
    Thanks in advance.

    Hi,
    yes all point should be checked
    check following link
    [http://www.sap-img.com/materials/steps-to-create-auto-po.htm]
    Regards
    Kailas Ugale

  • How do I turn off automatic bookmark creation when combining multiple PDFs into one?

    When I combine multiple PDFs into one, I need Adobe to use the CUSTOM bookmarks I created in the original PDFs. I do NOT want the additional PDF name as a bookmark in this instance. Is there a way to turn this option OFF in Acrobat Professional? I have version 9.

    You can not automatically turn off this action nor can you remove the 'file_name.pdf' heading, but you could add a button or menuitem to remove the 'file_name.pdf' from the bookamarks. Yes, it is one more step to perform when combining PDFs, but is you want until you have all of the PDFs combined you only need do it once.
    Removing filename bookmarks created by Acrobat by Sean Stewart
    From the above article:
    "With the release of Acrobat 6 came the ability to create a composite (binder) document from multiple files, (i.e. File > Create PDF > From Multiple Files.) When this is done, Acrobat automatically inserts a new top level bookmark at the start of each new file. The bookmark title will correspond to the source filename of the source file. While this level of separation can be helpful, it is counterproductive when the user wants the bookmark tree in the merged document to be continuous.
    "Here's a sample JavaScript to remove the top level bookmarks from the bookmark tree. This script will look for a ".pdf" extension to decide whether to remove the bookmark."
    With some additional coding you can add menu item or toolbar button.

  • Create automatically Activity (type E-Mail) with BAPI?

    Hello Experts,
    we have an requirement that we have to create automatically an activity of type E-Mail (for expample transaction type CX03) and then sent this E-Mail to an User which is outside of the company. It will be a contact person of the client we have.
    I think I can create the document (using the BAPI tables header, partner and texts). In header I will put the general data, in partner the parter-specific data and the E-Mail Adress) and in the texts table the text which will receive the contact person of the company.
    Now my questions are:
    1. Is it possible to create an E-Mail of transaction type CX03 with BAPI:  'BAPI_ACTIVITYCRM_CREATEMULTI'.
    2. Do I have to use the transaction SCOT to send this document of do I have to use Groupware?
    3. Why the document in Web-Client looks exactly like an E-Mail but in GUI the same transaction type looks like an
        normal Activity?
    4. To add texts i need to fill the BAPI Structure: BAPIBUS20001_TEXT_INS. The problem is, we need to write
        a welcome letter to our new clients. Is it possible to use this structure to put into the message to the clients and
        how?
    Please let me know which is the best strategy to implment that kind of functionality.
    Best Regards
    Oliver Schultze

    1. Is it possible to create an E-Mail of transaction type CX03 with BAPI: 'BAPI_ACTIVITYCRM_CREATEMULTI'.
    yes, it's possible.
    2. Do I have to use the transaction SCOT to send this document of do I have to use Groupware?
    This is done by scot.
    3. Why the document in Web-Client looks exactly like an E-Mail but in GUI the same transaction type looks like an
    normal Activity?
    because e-mail is activity which has category 401 (e-mail). in web ui they created new form type for e-mail and in sap gui not.
    4. To add texts i need to fill the BAPI Structure: BAPIBUS20001_TEXT_INS. The problem is, we need to write
    a welcome letter to our new clients. Is it possible to use this structure to put into the message to the clients and
    how?
    you would prbably have to use mail tempalte for that but i never tried this
    regards.

  • Automatic PO creation when neither Contract or fixed vendor found

    Hi All,
        This is continuation of my previous thread. the issue has not been resolved and needs suggestions.
    SRM 5.0 ECS SP15. The issue happens sporadically when SRM SC is created without contract item (catalog/direct mat).
    So, when SC is created with above condition, instead of going to sourcing, system directly creates the PO. The only thing I noticed was the SC contained entry in preferred vendor field. there is no custom code on turning preferred vendor to fixed. And this does not happen often.
    Please advise
    Regards
    Rao

    hello,
    the preferred vendor maintained is treated as a source of supply. below is the IMG documentation for Sourcing is carried out for items without a source of supply setting
    SAP Enterprise Buyer transfers all requirements that have multiple sources of supply, of which none are assigned, to the purchaser's sourcing application. Once you have selected a source of supply in the shopping cart, the item does not go to the sourcing application and a PO is created.
    as suggested by Ricardo, you may implement BBP_SRC_DETERMINE BAdI to overwrite this, i.e. Sourcing will not be carried out only when a contract is assigned to a shopping cart item.
    regards.

  • Automatic PO creation when neither from Contract or Inventory items.

    Hi All,
        I have unique situation where PO were automatically created from Shopping cart upon approval when they did not have a Contract or for inventory items. The only difference noticed was it has preferred vendor assigned during SC. My thoughts is the SC documents should end up in Sourcing when there is no contracts found or not procured for invoentory.
    We are in SRM 5.0 Extended Classic and SP 15.
    I am not sure what might trigger these Shopping carts to be PO automatically upon approval. Please advise
    Thanks
    Rao

    Hi Muthuraman,
        I understand inorder for SC to become PO, it needs to have a fixed Vendor. but my issue is the SC does not have a fixed vendor(no contract) but a preferred vendor was entered. Though preferred vendor is entered and Vendor is not fixed, PO was created after SC approval which should not be the case. My SPRO settings has 'Sourcing carried out for items without assgined source of supply'
    Please advise.
    Regards
    Rao

  • Automatic Batch creation when posting 103 document

    hi all,
    i want a modification in the system. currently in our system, when 101 document is created in MIGO, system automatically creates a batch. But when 103 is done, batch has to be created manually in the system and in qa32 while doing quality usage decision, user has to assign batch to inspection lot. what i want that in 103 as well, batch autmatically creates like 101 and inspection lot is assigned to batch automatically. Is this possible? If yes then what configurations i have to do?
    Best Regards,
    AI.

    hi,
    There are two ways of creating a batch no. in MIGO
    1) Internal Number --Automatic
    2) External Number -Manual entry.
    Go to SPROLogistics General->Batch Management-> Batch Number Assignment>Activate Internal Batch Assignment
    Click the Internal Batch Number Assignment for Assigned Goods Receipt --Select the plant ,tick it and save it.
    Do the MIGO automatically Batch number will be created.
    G.Ganesh Kumar

  • Daily Automatic delivery creation for Finished Products

    Dear All,
    As per my client requirement, they need automatic delivery creation when ever the finished products posted(Reached) in to the Finished Products Storage location with out time specification.
    Scenario is like this.
    1.Scheduling agreement will be created for one month or one year for the specific customer with specific products.
    2.After producing the material, from the production line finished products will taken in to the Finished product Storage location with some acknowledgement.
    3.When ever the acknowledgement happen(stock get added) automatic delivery need to be created for that acknowledged quantity with reference the scheduling agreement.
    4.There is no time specification When ever the finished products stock acknowledgement happen automatic delivery need to be created.
    5.There is no quantity specification also what is the quantity at finished products Storage location acknowledged for that quantity automatic delivery need to be created .
    6.If there is no production-->There is finished products -->No delivery should trigger.
    This will be applicable to specific customer and specific material only.
    Please give your valuable inputs as early as possible.
    Regards,
    Murali.

    Dear Rohit,
    1) Who creates the acknowledgement..
    -->Finished Products Storage location people will run this entry when they recieve the finished product from the production line.
    2) How frequently is this acknowledgement created..
    -->When ever receives the finished products from the production line,
    3) Is this acknowledgement a print out or a documetn type.
    -->It is not a print or document type, it is just an Transfer posting entry to add the Finished products qty to the existing stock at that particular storage location.
    4) If it is document type does it appear in document flow.
    -->No it will not come in the document flow.
    I hope it will clear for you,
    Regards,
    Murali.

  • When I access my google e-mail account on the I-pad my inbox has at least 6 e-mails with no sender and no subject (absent via I-phone, Mac or PC) I cannot delete them as they cannot be selected- how do I stop them and clear the ones there now?

    When I access my google e-mail account on the I-pad my inbox has at least 6 e-mails with no sender and no subject (absent via I-phone, Mac or PC) I cannot delete them as they cannot be selected- how do I stop them and clear the ones there now?

    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app completely : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • TS3276 Hey. I have problems to send e-mail with Mail. The problems is I need to un active ssl ,... but when I do this,... automatically,. its active again????. Whta can i do

    Hey. I have problems to send e-mail with Mail. The problems is I need to un active ssl ,... but when I do this,... automatically,. its active again????. Whta can i do

    Try posting this in the 10.7 Mail forum. You'll get more help there.
    DALE

  • Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.

    Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.i can't chat,compose mail nothing accessing.

    Try Refresh Blocker: https://addons.mozilla.org/firefox/addon/992

  • Automatic Po creation With MB01 i am getting Error

    Hi ,
    While doing goods receipt for  Automatic Po creation i am getting error
    MM activated Automatic Po
    VM activated Automatic Po
    101 Mov Type is also activated
    Item 00010 of purchasing document 9999999999 does not exist
    Message no. ME706
    Diagnosis
    Purchase order 00010 with item 9999999999 was not found.
    Procedure
    Enter a different purchase order.
    i given  the Vendor and quantity  after entering error is coming
    Please help
    Manjunath

    HI,
    Pls ceck the points mentioned below.
    Define one of the purchase organizations as Standard Purchase Organization
    Assign your plant to Standard Purchase Organization
    Maintain purchasing information record with price
    Maintain the indicator for movement types 101 & 161
    Define Default Values (MB01) for Document Type
    Now you can enter a goods receipt without entering the purchase order number, a purchase order will be created automatically when you post the goods receipt. All such goods receipt will be valuated at the price maintained in the purchasing information record.
    First you can try this with T. Code MB01 if it is working then try with T. Code MIGO, if you face any error or functionality is not working check with your basis consultant some authorization or some patches may be missing. Ask him to apply all relevant patches.
    Thanks
    Chandru

  • Mail sending with subject and attachment

    hai all,
           my requiremnet is i want to send a mail with a body and pdf attachemnt , but with the below code iam able to send both as attachment , but how to send along with body.
    *& Report  ZV_TEST                                                     *
    Report  ZV_TEST no standard Page heading line-size 200.
    Tables: Pa0105,
            pernr,
            QPPNP,
            HRPY_RGDIR,
            SSCRFIELDS,
            pa0002.
    Constants
    constants:
    begin of F__LTYPE, "type of line
    CMD like PC408-LTYPE value '/:', "command
    TXT like PC408-LTYPE value 's', "textline
    end of F__LTYPE.
    constants:
    begin of F__CMD, "commands
    NEWPAGE like PC408-LINDA value '<NEW-PAGE>',
    end of F__CMD.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    Data Declaration
    DATA:Begin of Itab occurs 0,
           pernr like HRPY_RGDIR-PERNR,
           SEQNR like HRPY_RGDIR-SEQNR,
           PAYSLIP_VARIANT like BAPI7004-PAYSLIP_VARIANT,
         end of itab.
    data: P_INFO like PC407,
          P_INFO1 like PC407,
          P_FORM like PC408 occurs 0 with header line,
          P_P_FORM like PC408 occurs 0 with header line,
          RETURN like BAPIRETURN1 occurs 0 with header line,
          PAY_VAR like BAPI7004-PAYSLIP_VARIANT value 'ESS_PAYSLIPS' ,
          P_LIST like ABAPLIST occurs 1 with header line,
          P_IDX type I.
    data: begin of P_INDEX occurs 0,
            INDEX type I,
          end of P_INDEX.
    data: OBJBIN like SOLISTI1 occurs 10 with header line,
          DOCDATA like SODOCCHGI1,
          OBJTXT like SOLISTI1 occurs 10 with header line,
          OBJPACK like SOPCKLSTI1 occurs 1 with header line,
          RECLIST like SOMLRECI1 occurs 1 with header line,
          OBJHEAD like SOLISTI1 occurs 1 with header line,
          TAB_LINES type I,
          ATT_TYPE like SOODK-OBJTP.
    data: PDF_TAB like TBL1024 occurs 0 with header line,
          OTF_TAB like TBL1024 occurs 0 with header line.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    data: PDF_CONTENT TYPE XSTRING,
          PDF_FSIZE   TYPE I.
    data: error        TYPE sysubrc.
    DATA: v_dest LIKE tsp01-rqdest,
          v_handle LIKE sy-tabix,
          v_spool_id LIKE tsp01-rqident,
          v_rc TYPE c,
          v_errmessage(100) TYPE c,
          v_text(70) TYPE c.
    data: PAYSLIP     LIKE     BAPI7004_PAYSLIP occurs 0 with header line.
    Data: v_index like sy-index value 1.
    Data: Begin of I_Sent occurs 0,
            pernr like pernr-pernr,
            name(20),
            usrid_long like pa0105-usrid_long,
            Status(3),
          End of I_sent.
    Data: Begin of I_NSent occurs 0,
             pernr like pernr-pernr,
            usrid_long like pa0105-usrid_long,
          End of I_Nsent.
    DATA: I_FCODE TYPE TABLE OF sy-ucomm.
    data: v_text1(255),
          v_text2(255),
          v_text3(255).
    data: month_names like T247 occurs 0 with header line,
          v_month(2) type c.
    ***********************Selection Screen********************
    selection-screen Begin of Block b2 WITH FRAME TITLE TEXT-BL1 .
    Parameters: P_Print type c default 'X' radiobutton group g1
                                          user-command CMD,
                P_DISP  Type C  Radiobutton Group g1.
    Selection-screen end of Block b2.
    selection-screen Begin of Block b1 WITH FRAME TITLE TEXT-BL2 .
    Recipient address and Period
    SELECT-OPTIONS :   s_name   FOR PERNR-PERNR Modif id M1,
                       s_period for HRPY_RGDIR-FPPER Modif id M1.
                      s_year for QPPNP-PABRJ Modif id M1.
    SELECT-OPTIONS:    p_num    FOR PERNR-PERNR Modif id M2 .
    Selection-screen end of Block b1.
    *SELECTION-SCREEN FUNCTION KEY 1.
    *SELECTION-SCREEN PUSHBUTTON /10(20) CHARLY USER-COMMAND ABCD.
    ***********************At Selection Screen Output**************
    at selection-screen output.
      Loop at screen.
        if P_Print = 'X'.
          if screen-group1 = 'M2'.
            screen-active = 0.
          endif.
        else.
          if screen-group1 = 'M1'.
         if screen-name = 'S_NAME-LOW' Or screen-name = 'S_PERIOD'.
            screen-active = 1.
          endif.
        Endif.
        Modify Screen.
      Endloop.
    ***********************INITIALIZATION********************
    INITIALIZATION.
    MOVE 'Preview' TO SSCRFIELDS-FUNCTXT_01.
    MOVE 'Preview' TO CHARLY.
      p_print = 'X'.
    v_text1 =
    'Please find enclosed your salary slip for the month of Apr 2006 as
    *attachment. This is confidential '.
    ***********************AT SELECTION-SCREEN******************
    AT SELECTION-SCREEN.
    if p_print = 'X'.
       if s_name[] is initial.
          message e000(8i) with 'Make Entry into Personal Number Field'.
       endif.
    else.
       if p_num[] is initial.
          message e000(8i) with 'Make Entry into Personal Number Field'.
       endif.
    endif.
    ***********************Start-of-Selection********************
    Start-of-Selection.
      if p_print = 'X'.
        APPEND 'NEXT' TO i_fcode.
        APPEND 'PREV' TO i_fcode.
        set pf-status 'ZHRF' excluding I_FCODE.
        Perform Get_values.
       Perform Print using v_index.
        perform Write_Values.
      else.
        set pf-status 'ZHRF'.
      Perform Get_values.
        Perform Print using v_index.
      endif.
    ***********************Top-of-page***************************
    Top-of-page.
      skip 2.
      if p_print = 'X'.
        write:50 'The Pay Slip Sent details'.
        skip 1.
        uline at 1(70).
        write :/ sy-vline,2 'Personal Number',18 sy-vline,
                         19 'Name',40 sy-vline,
                         41 'User Mail-Ids',63 sy-vline,
                         64 'Status',70 sy-vline.
        ULINE /1(70).
      endif.
      set left scroll-boundary Column 0.
    *&      Form  Get_values
          text
    -->  p1        text
    <--  p2        text
    FORM Get_values .
      select  *
              from HRPY_RGDIR
              into corresponding fields of table itab
              where PERNR in s_name
              AND
              FPPER IN S_PERIOD.
      if sy-subrc eq 0.
        loop at itab.
          Create receiver list
          refresh RECLIST.
          clear RECLIST.
          select single *
                        from PA0105
                        where PERNR eq ITAB-PERNR
                          and USRTY eq '0010'.
          if SY-SUBRC <> 0.
            I_sent-PERNR = ITAB-PERNR.
            i_sent-status = 'NO'.
            select single *
                          from pa0002
                          where pernr eq itab-pernr.
            concatenate pa0002-VORNA pa0002-NACHN into i_sent-name
                                             separated by space.
            append i_Nsent.
            continue.
          else.
            refresh reclist.
            RECLIST-RECEIVER = pa0105-usrid_long.
            translate RECLIST-RECEIVER to lower case.
            RECLIST-REC_TYPE = 'U'.
            append RECLIST.
          endif.
          call function 'GET_PAYSLIP'
            EXPORTING
              EMPLOYEE_NUMBER = itab-PERNR
              SEQUENCE_NUMBER = itab-SEQNR
              PAYSLIP_VARIANT = PAY_VAR
            IMPORTING
              RETURN          = RETURN
              P_INFO          = P_INFO
            TABLES
              P_FORM          = P_FORM.
          loop at P_FORM
              where LINDA eq F__CMD-NEWPAGE
              and LTYPE eq F__LTYPE-CMD.
            P_INDEX-INDEX = SY-TABIX.
            append P_INDEX.
          endloop.
          P_IDX = 1.
          refresh P_P_FORM.
          append lines of P_FORM from P_IDX to P_INDEX-INDEX
          to P_P_FORM.
          P_IDX = P_INDEX-INDEX.
          export P_P_FORM to memory id '%%_P_FORM_%%'.
          export P_INFO to memory id '%%_P_INFO_%%'.
          submit RPCEDT_LIST_TO_MEMORY exporting list to memory and return.
          call function 'LIST_FROM_MEMORY'
            TABLES
              LISTOBJECT = P_LIST.
          call function 'TABLE_COMPRESS'
            TABLES
              IN     = P_LIST
              OUT    = OBJBIN
            EXCEPTIONS
              others = 1.
          Read table RECLIST index 1.
          I_sent-PERNR = ITAB-PERNR.
          i_sent-usrid_long = RECLIST-RECEIVER.
          select single *
                        from pa0002
                        where pernr eq itab-pernr.
          concatenate pa0002-VORNA pa0002-NACHN into i_sent-name
                                           separated by space.
          i_sent-status = 'YES'.
          append i_sent.
         concatenate ' Payslip-'  '(' ITAB-PERNR+4(4) ')'
        into DOCDATA-OBJ_DESCR.
          CALL FUNCTION 'MONTH_NAMES_GET'
           EXPORTING
             LANGUAGE                    = SY-LANGU
            TABLES
              MONTH_NAMES                 = month_names
           EXCEPTIONS
             MONTH_NAMES_NOT_FOUND       = 1
             OTHERS                      = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
         if sy-datum+4(2)  = '01'.
            v_month = '12'.
         else.
            v_month = sy-datum+4(2) - 1.
         endif.
         read table month_names with key mnr = v_month.
         concatenate 'Salary Slip for the month of' month_names-LTX
                      sy-datum+0(4) '-' i_sent-name
                      into DOCDATA-OBJ_DESCR.
          DOCDATA-OBJ_NAME = 'Pay Slip'.
          DOCDATA-OBJ_LANGU = SY-LANGU.
          OBJTXT = 'Dear Mr.'.
          concatenate OBJTXT i_sent-name into objtxt.
          append OBJTXT.
          append initial line to objtxt.
          OBJTXT = 'Please find enclosed your salary slip for the month of'.
          concatenate OBJTXT month_names-LTX sy-datum+0(4)
                                      into objtxt separated by space.
           append OBJTXT.
    OBJTXT =
    'as attachment This is confidential document and not be disclosed'.
          append OBJTXT.
    OBJTXT =
    'shared with any other employee.In case of any queries on this subject'.
    append OBJTXT.
    OBJTXT =
    'you are requested to contact the Payroll administrator “Sabitha” '.
    OBJTXT = 'email:[email protected]'.
    append OBJTXT.
    append initial line to objtxt.
    append initial line to objtxt.
    OBJTXT = 'With Kind Regards'.
    append OBJTXT.
    append initial line to objtxt.
    append initial line to objtxt.
    OBJTXT = 'Sabitha'.
    append OBJTXT.
    OBJTXT = 'Payroll Administrator'.
    append OBJTXT.
    OBJTXT = 'Enteg Infotech Pvt Lyd.'.
    append OBJTXT.
    OBJTXT = 'Banaglore'.
    append OBJTXT.
          Write Packing List (Main)
           describe table objtxt.
           read table OBJTXT index sy-tfill.
          DOCDATA-DOC_SIZE = ( sy-tfill - 1 ) * 255 + strlen( OBJTXT ).
          clear OBJPACK-TRANSF_BIN.
          OBJPACK-HEAD_START = 1.
          OBJPACK-HEAD_NUM = 0.
          OBJPACK-BODY_START = 1.
          OBJPACK-BODY_NUM = sy-tfill.
          OBJPACK-DOC_TYPE = 'TXT'.
          append OBJPACK.
    Create Message Attachment
    Write Packing List (Attachment)
          ATT_TYPE = 'ALI'.
          describe table OBJBIN lines TAB_LINES.
          read table OBJBIN index TAB_LINES.
          OBJPACK-DOC_SIZE =
          ( TAB_LINES - 1 ) * 255 + strlen( OBJBIN ).
          OBJPACK-TRANSF_BIN = 'X'.
          OBJPACK-HEAD_START = 1.
          OBJPACK-HEAD_NUM = 0.
          OBJPACK-BODY_START = 1.
          OBJPACK-BODY_NUM = TAB_LINES.
          OBJPACK-DOC_TYPE = ATT_TYPE.
          OBJPACK-OBJ_NAME = 'ATTACHMENT'.
          OBJPACK-OBJ_DESCR = 'Payslip'.
          append OBJPACK.
    Send the document
          call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
              DOCUMENT_DATA              = DOCDATA
              PUT_IN_OUTBOX              = ''
              COMMIT_WORK                = 'X'
            TABLES
              PACKING_LIST               = OBJPACK
              OBJECT_HEADER              = OBJHEAD
              CONTENTS_BIN               = OBJBIN
              CONTENTS_TXT               = OBJTXT
              RECEIVERS                  = RECLIST
            EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              DOCUMENT_TYPE_NOT_EXIST    = 3
              OPERATION_NO_AUTHORIZATION = 4
              PARAMETER_ERROR            = 5
              X_ERROR                    = 6
              ENQUEUE_ERROR              = 7
              others                     = 8.
        endloop.
      endif.
    ENDFORM.                    " Get_values
    *****************************At User Command*************************
    at User-Command.
      case Sy-ucomm.
        When 'NEXT'.
          describe table itab.
          if sy-tfill GT v_index.
            v_index = v_index + 1.
            Perform Print using v_index.
          else.
            message E000(8i) with 'You Have Reached the Last Entry'.
          endif.
        When 'PREV'.
          if v_index LE 1.
            Message E000(8i) with 'You Have Reached the First Entry'.
          else.
            v_index = v_index - 1.
            Perform Print using v_index.
          endif.
        When 'BACK'.
          leave to screen 0.
        WHen 'EXIT'.
          set Screen 0.
          leave screen.
      Endcase.
    *&      Form  Print
          text
    -->  p1        text
    <--  p2        text
    FORM Print using v_index.
      if v_index = 1.
        select  *
               from HRPY_RGDIR
               into corresponding fields of table itab
               where PERNR in P_num
      endif.
      if not itab[] is initial.
        sort itab by pernr .
        read table itab index v_index.
        select single *
                      from PA0105
                      where PERNR eq ITAB-PERNR
                        and USRTY eq '0010'.
        call function 'GET_PAYSLIP'
          EXPORTING
            EMPLOYEE_NUMBER = itab-PERNR
            SEQUENCE_NUMBER = itab-SEQNR
            PAYSLIP_VARIANT = PAY_VAR
          IMPORTING
            RETURN          = RETURN
            P_INFO          = P_INFO
          TABLES
            P_FORM          = P_FORM.
        loop at P_FORM
            where LINDA eq F__CMD-NEWPAGE
            and LTYPE eq F__LTYPE-CMD.
          P_INDEX-INDEX = SY-TABIX.
          append P_INDEX.
        endloop.
        P_IDX = 1.
        refresh P_P_FORM.
        append lines of P_FORM from P_IDX to P_INDEX-INDEX
        to P_P_FORM.
        P_IDX = P_INDEX-INDEX.
           export P_P_FORM to memory id '%%_P_FORM_%%'.
           export P_INFO to memory id '%%_P_INFO_%%'.
      IMPORT P_P_FORM FROM MEMORY ID '%%_P_FORM_%%'.
      IMPORT P_INFO FROM MEMORY ID '%%_P_INFO_%%'.
        new-page                                                "VKIK008647
        line-size p_info-pcols
        line-count p_info-psize
        no-title
        no-heading.
        SET BLANK LINES ON.
        LOOP AT P_P_FORM.
          if sy-tabix lt 20.
            NEW-LINE NO-SCROLLING.
          endif.
          CASE P_P_FORM-LTYPE.
         WHEN F__LTYPE-TXT.
            WRITE:/ P_P_FORM-LINDA.
            WHEN F__LTYPE-CMD.
              IF P_P_FORM-LINDA EQ F__CMD-NEWPAGE.
                NEW-PAGE.
              ENDIF.
            WHEN others.
              hide: itab,v_index.
              WRITE:/ P_P_FORM-LINDA.
              if sy-tabix lt 20.
                NEW-LINE NO-SCROLLING.
              else.
                NEW-LINE SCROLLING.
              endif.
          ENDCASE.
        ENDLOOP.
        SET BLANK LINES OFF.
    v_index = 1.
      endif.
    ENDFORM.                    " Print
    *&      Form  Write_Values
          text
    -->  p1        text
    <--  p2        text
    FORM Write_Values .
      if p_print = 'X'.
        loop at i_sent.
          write :/ sy-vline,2 i_sent-pernr,18 sy-vline,
                            19 i_sent-name,40 sy-vline,
                            41 i_sent-usrid_long,63 sy-vline,
                            64 i_sent-status,70 sy-vline.
          ULINE /1(70).
        endloop.
      endif.
    ENDFORM.                    " Write_Values
    i want to send the contents of objtxt has body.
    cheers

    Hi,
    in the below code, BOLD Characters coming as body text in my mail.after that i am attaching V_LINE as the attachment.pl compare this with ur code.
    revert, if you need any clarifications.
    <b>*-populate body text</b>
      CONCATENATE <b>'Japan BOL details for the Delivery#'
                    V_VBELN
                   ',is attached'</b>               INTO WA_OBJTXT SEPARATED BY SPACE.
      APPEND WA_OBJTXT TO IT_OBJTXT.
    <b>*---- Append Date and Time into Body of email.</b>
      MOVE 'File is generated on'(004) TO V_INFO.
      V_TIME = SY-UZEIT.
    WRITE : SY-UZEIT TO V_TIME USING EDIT MASK '__:__:__'.
      CONCATENATE V_TIME+0(2)
                  V_TIME+2(2)
                  V_TIME+4(2)
                  INTO
                  V_TIME2 SEPARATED BY ':'.
       WRITE : sy-datum MM/DD/YYYY TO lv_date .
      CONCATENATE SY-DATUM+4(2)
                  SY-DATUM+6(2)
                  SY-DATUM+0(4)
                  INTO V_DATE.
      CONCATENATE <b>V_INFO
                  V_DATE
                  'At'
                  V_TIME2
                  INTO V_INFO</b>              SEPARATED BY SPACE.
      <b>WA_OBJTXT = V_INFO.</b>  APPEND WA_OBJTXT TO IT_OBJTXT.
    *-document size
      CLEAR : V_TABLE_LINES.
      DESCRIBE TABLE IT_OBJTXT LINES V_TABLE_LINES.
      READ TABLE IT_OBJTXT INTO WA_OBJTXT INDEX V_TABLE_LINES.
      X_DOC_CHNG-DOC_SIZE =
                     ( V_TABLE_LINES - 1 ) * 255 + STRLEN( WA_OBJTXT ).
    *-populate packing list for body text
    CLEAR IT_OBJPACK-TRANSF_BIN.
      WA_OBJPACK-HEAD_START = 1.
      WA_OBJPACK-HEAD_NUM = 0.
      WA_OBJPACK-BODY_START = 1.
      WA_OBJPACK-BODY_NUM = V_TABLE_LINES.
      WA_OBJPACK-DOC_TYPE = 'RAW'.
      APPEND WA_OBJPACK TO IT_OBJPACK.
      CLEAR WA_OBJPACK.
    *--for attachment
    *--add Internal table lines here, as attachment.
      WA_OBJBIN = V_LINE.
      APPEND WA_OBJBIN TO IT_OBJBIN.
      CLEAR  WA_OBJBIN.
    *-get total no.of lines of Object table(attachment)
      CLEAR : V_TABLE_LINES.
      DESCRIBE TABLE IT_OBJBIN LINES V_TABLE_LINES.
    *-populate object header
      CONCATENATE  'Delivery#'(005)
                     V_VBELN
                     SY-DATUM
                     V_TIME
                     INTO
                     WA_OBJHEAD SEPARATED BY SPACE.
      APPEND WA_OBJHEAD TO IT_OBJHEAD.
      CLEAR  WA_OBJHEAD.
    *-packing list for attachment
      WA_OBJPACK-TRANSF_BIN = C_X.
      WA_OBJPACK-HEAD_START = 1.
      WA_OBJPACK-HEAD_NUM = 1.
      WA_OBJPACK-BODY_START = 1.
      WA_OBJPACK-BODY_NUM = V_TABLE_LINES .
    WA_OBJPACK-DOC_TYPE = 'CSV' .
      WA_OBJPACK-DOC_TYPE = 'RAW' .
      WA_OBJPACK-OBJ_NAME = 'POTR'.
    CONCATENATE 'Delivery details for '(005)
      CONCATENATE TEXT-005
                V_VBELN
                SY-DATUM
                V_TIME
                '.CSV'
                INTO
                WA_OBJPACK-OBJ_DESCR SEPARATED BY SPACE.
      BREAK-POINT.
      WA_OBJPACK-DOC_SIZE = V_TABLE_LINES * 255.
      APPEND WA_OBJPACK TO IT_OBJPACK.
      CLEAR  WA_OBJPACK.

Maybe you are looking for

  • No prob with 7, but where can i get support for my Logic 6? Nobody?

    Hello everyone, My name is Aytekin Kurt and I'm a well-known producer in my country, Turkey with a career including a national No.1 and a dozen Top 10 tracks as a writer and a producer. What's more, I was in Oakenfold's Grammy-nominated (Best Electro

  • Can I use an external hard drive to install boot camp?

    What the question said also it'll be Windows 8.1 because that's the only one you can download from the M-soft store now.

  • Black and white printing using Gutenprint

    My HP printer has no drivers in SL, but I can print using Gutenprint. The Gutenprint FAQ says For most users, the work-around is to set the Color Model setting to Grayscale. This is not the same as printing in black and white only, but it may give yo

  • Can I remove Iwork 06 without problems?

    Never fired it up. Never used it and it's eating 1.2 G + on my machine. I could use the space for something else. It it just a delete thing? Or do I need to dance around some object muttering prayers?

  • Can random queue name used in EOIO ?

    Hi, Friends: We have scenario: JMS -> PI 7.0 (SP13) -> ECC 6.0. Since we need to maintain the order of the transactions, EOIO setting need to be enabled. When enable EOIO in JMS sender, we specified random queue name saying "INT001" without registeri