Dynamic Action - Mail to Oulook

Hi,
I have set up Dynamic actions that send a mail to SAP MAIL via a distribution list and this is working fine.  My question is how do I send the mail to OUTLOOK ?  Is this possible using SAPCONNECT and customisation thorugh IMG or will I need to code a function to do it ?
Regards,
Chan.
Edited by: Mr Chan Bhogal on Jul 2, 2008 9:13 AM

Hi,
You will have to code a routine for the same.
SO_NEW_DOCUMENT_SEND_API1 is the function module for this purpose and use U for external mails.
And do basis configuration in transaction SCOT to attach mail server to SAP system.
Regards,
Divya
Points Valuable.

Similar Messages

  • HR PA Dynamic Actions: Generate mail to the admin when 0002 & 0021 changed

    Hi gurus!
             My client wants us to generate a mail to the Admin when an employee changes his 0002 or 0021 infotype
    through ESS. I believe we could do this is Dynamic Actions. Can you please tell me how we do it?
    Thanks and Regards,
    Soniya

    Hi,
    Some good write-ups :
    http://wiki.ittoolbox.com/index.php/Dynamic_Action
    http://www.sapconfig.com/index-3.html (look for "Dynamic Action Mail for Infotype". This will require registration but free.
    Thanks.
    Regards
    Kir Chern

  • Get infotype data in e-mail/sapscript - Dynamic action-

    Hello,
    we developed a dynamic action sending a mail if an employee leave the company.
    We can catch data in infotype 0000 and 0001 in the sapscript used in the mail, but we would like also fetch data from other infotypes.
    We tried to generate an ABAP code from an ad hoc query, but it was impossible to get the return tables in the sapscript.
    Are there other solutions to get infotype data in saps scripts?
    Kr,

    Hi ,
    you can follow the below solution .
    1. Create a custom report for the leaving/terminated employees by using the action in infotype 0000 with field massn, massg.
    2. you will get all the employees from table pa0000 who are laving between a date interval .
    3. by using the personnel numbers from pa0000 get other infotypes information.
    4. create a smartform/script for your requirement.
    5. using the program you can send the data to the employees.
    another way .
    if you know the name of the script you can create some variables for the other fields from other infotypes in that script and you can populate the variable values using perform in program command using a custom program in that script.

  • Mail Via a Dynamic Actions

    Hi all,
    I have a problem with text scripts in SO10.
    My dynamic action works and a mail is sent.
    However not all of the information is included in the text.
    I have a mail sent when a leaver action is made on an employee.
    The mail details the name, pernr and position details but will not display the user log on in ifotype 105. P0105-USRID
    I've check numerous employees who have that infotype and no data is brought through.
    Is it because the action does not go through that infotype (105)??
    Many thanks
    Sam

    Thanks
    I've tried including in the action, but still no success as the mail is sent before that infotype is updated.
    I've not used rp50d before. Any advice on how I go about creating this to call a subroutine? Basic details would be helpful...
    Cheers,
    - If you can help further I'll increase your points from 2 to 6 or even 10 ;0)

  • Mail not send when subroutine is call in dynamic actions

    Hi Friends,
    I have facing a problem in sending a mail through dynamic actions . In this mail is not send to specific user mail-id.
    Suggest me . What to be exactly done .
    Regards,
    Anish

    First you have to understand what should be done...
    ask your functional consulatant where exactly the Mails need to be retrived For example...
    in infotype 0105 subtype '010'  generally we have email ids avaialable of the employeee....
    may be this helps or not give full specification some one can revert back.
    Regards
    sas

  • Define mail attributes, dynamic action

    I am attempting to set up a dynamic action that is triggered when the STATE field in IT0000-0001 is changed. I am using the Send Mail step indicator M using feature M0001.
    My question is how shall I test it, where shall I put My mailid. Does it works for external mail as well
    Pls guide.
    rgds
    AJ

    Hi AJ,
    Yes. This can be made to work for external emails as well. Hope you have created an entry in the view V_T588Z for calling the feature M0001 on change in the required field.
    Now you need to create a distribution list which contains the email id of your IT support. You can create a distribution list (DL) in transaction SO04. Even if you have just one email id as the recipient never mind just create a DL for this single email id and name it as say “DL_FOR_IT_MAIL”.
    Now you need to create the text content for you mail. For this you need to proceed to transaction SO10. Enter the required text name for example “MAIL_TO_IT_SUPPORT” and choose the text id as PAMA. Now click on create. Enter all the content that you need to send out as email.
    Once the above steps are done you need to configure the feature M0001. For this go to PE03 and enter M0001 and choose decision tree. Click on "Change". Under the decision tree you will find some configurations already existing for infotypes 0001, 0006 and 0002. Now keep your cursor on "INFTY" and click on create. You will be presented with a list of infotypes. Select infotype 0000.
    Now an entry for 0000 will be added to the decision tree. Keep the cursor on the string "0000" and click on create. A pop up window for choosing node types is opened. Select the option "Return Table" and click ok. You will get a window with a series of blank rows. Here you will have to enter the following entries in the rows,
    IDTXT  MAIL_TO_IT_SUPPORT
    OUTBX  X
    DISTR  DL_FOR_IT_MAIL
    After doing this configuration your system would send the email to the distribution list with content defined in MAIL_TO_IT_SUPPORT.
    Note: Your SMTP settings have to be configured properly by your basis team. Even if it is not ready you can create an entry of 0000 infotype and check the transaction SOST. If the dynamic action was successful in sending the email you will find an entry here.
    Follow these steps and let me know if you have any problems.
    Thanks,
    Prasath N
    <b>P.S:</b>
    The return table content should be read as
    <b>IDTXT</b><single space><b>MAIL_TO_IT_SUPPORT</b>
    <b>OUTBX</b><single space><b>X</b>
    <b>DISTR</b><single space><b>DL_FOR_IT_MAIL</b>
    Message was edited by:
            Prasath Natesan

  • Dynamic actions settings to mail generation

    Hi
    The actions are set for mali generation ,when ever personnel action happen.while testing the mail generation some actions are fine which are set in dynamic actions with out action for reasons.but some of actions are not working which are mentioned action for reason.
    one case i set dynamic actions for hiring action with mentioning action reason.that time it will entered in to programing and generating mail.
    but in another case i have 3-4 reason for actions that time the program will considering only action type ,its not entering into program considering action for reason.
    can any body give me brief advise how to set dynamic action while action having the action reasons.
    Regards,
    arjun

    Sreehari,
    You can configure feature M0001 (Add MASSN/MASSG as your decision operation) and you can call this feature in the dynamic action table T588Z
    Reward Points if this is helpful.
    Sanghamitra
    Message was edited by:
            Sanghamitra11

  • Send mail through dynamic action, but the subject line and content is blank

    Hi all,
    I'm facing one problem on sending mail throught dynamic action.
    Whenever a new employee is hired, the system will trigger a mail to the administrator.
    The mail can successfully reach the email address. But the title and the content of the mail are missing. I can receive an email with a PDF attchment. But when I open this PDF file, it's blank inside.
    In t-code "SO10", I created a new mail text with name of Z_MAIL, for my mail, insteading of using the SAP standard one.
    When I using the SAP standard mail text, it works and I can see the content. But even I copy and paste the exact the content of the standard one to my own new mail text, it will not work.
    And I have to use my own customized mail text. So, is there any one knows about this issue? Any more setting I should do? Or is there some tricks?

    Hi,
       I feel that something will be misiing in the coding.Even i faced the same problem earlier.for me it was text file as an attachment ,file was receiving but no data...the problem was i forget to add one option in objpack-head.
       R u using the FM - SO_NEW_DOCUMENT_ATT_SEND_API1??
    If so pls C the below codes for text file as an attachment.
    DATA: objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE.
      DATA: objhead LIKE solisti1   OCCURS  1 WITH HEADER LINE.
      DATA: objbin  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
      DATA: objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
      DATA: reclist LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
      DATA: doc_chng LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
    Creating the document to be sent
      doc_chng-obj_name = 'MESSAGE'.
      doc_chng-obj_descr = 'ZHRI_GARN_EPC_COMM'.
      objtxt = 'Program ZHRI_GARN_EPC_COMM has been executed successfully'.
      APPEND objtxt.
      objtxt = 'Error records passed to BDC session XPHRGARN01'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    Creating the entry for the compressed document
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
    Entering names in the distribution list
      LOOP AT se_tech.
        reclist-receiver = se_tech-low.
        reclist-rec_type = 'U'.
        APPEND reclist.
      ENDLOOP.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          put_in_outbox              = 'X'
          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
          operation_no_authorization = 4
          OTHERS                     = 99.
    Hope this will help u.
    Regards,
    Manoj.

  • Sending mail of infotype record using dynamic actions

    Hi
    How can we send mail of info type record using dynamic actions if possible give me one example
    Mail to me: [email protected]
    Thanks & Regards
    santhosh reddy

    Hi..
    Already Standard Entries exists for the same.. pls check T588Z

  • Sending mails using dynamic actions

    Hi
    How we can send mails using dynamic actions.
    Regards
    Santhosh

    Hi,
    Sending mails is possible by using the feature M0001. This is to be coded in the dynamic action depending on the requirement with function code "M".
    Hope this would help you to explore further. Incase of any specific query you can post back.
    Regards
    Tharak

  • Send mail using Dynamic actions

    Hello experts,
    How to send  a mail using Dynamic Actions??
    Requirement : Lets say one employee is hired on 26th Aug, so after 10 days he will be confirmed. so on 8th day need to send a mail to concerned person reminding the confirmation date.
    so how do i do that using dynamic actions??
    Thanks in advance.
    Saurabh

    Hi,
    In dynamic actions there is an option for calling sub-routine from any program or subroutine pool. So u can make subroutine for sending mail according to ur requirement. An call on th same from dynamic actions.
    if u want sample code for this, pls let me know.
    <removed_by_moderator>
    Regards,
    Ranjith
    Edited by: Julius Bussche on Aug 26, 2008 3:25 PM

  • Dynamic Action to Send Mail

    Hi,
    I'm trying to set up a dynamic action so that during the separation process when a certain infotype (IT0040) is delimited that a mail should be sent to a distribution list. I've had a look at some other posts on here but so far none of these have helped solve the problem.
    I have set up a dynamic action as below..  The separation actions are 20 or 22.
    0040                   02     900     **GENERATE MAIL DURING SEPARATION*
    0040                   02     901     P     T001P-MOLGA='13'
    0040                   02     902     P     P0000-MASSN='20'/X
    0040                   02     903     P     P0000-MASSN='22'/X
    0040                   02     904     M     M0001
    In feature M0001 I have it set up:
    If TCLAS = A
    & INFTY = 0040
    IDTXT ZTEXT
    DISTR SEPARATION
    Do I need more arguements in the feature as I can't seem to get it to trigger.
    Thanks
    Tom

    Hi Regi,
    Thanks for the reply, sorry this task got lost behind a host of other ones. I've tried using the standard text and still nothing is produced.
    With the dynamic action I have put the code for this on IT0040 as this code should only be triggered if this infotype is changed by the actions also specified.
    I've checked that the mail set up is correct as I'm able to send an mail from my SBWP to myself, which is the only one in the distribution list.
    I've updated the Feature to have a few more arguements, but these are mostly blank as the email should only go to the distribution list.
    IDTXT MAIL_FOR_I0001_A
    RECV1
    SUBTY
    OUTBX X
    DISTR DIST
    NAME1
    NAME2
    Many thanks
    Tom

  • Can we create a dynamic action for Training and Event Management???

    Hi All
    i need to configure automatic email generation for an employee when he gets booked for a training program in the training and event management module. can we use a dynamic action for it? and how to configure it?? I also guess that i have to use the Feature MAILS for it. but i am not sure abt it and also not sure how to configure it. I will really appreciate if someone can provide me with a step to step configuration for the same. Its urgently sought.
    Thanks and Regards

    Notifications in T&E are done through Workflow.Dynamic Actions are only for PA Infotypes.
    ~Suresh

  • Dynamic action on IrReport column

    Hi Everyone,
    I just wanted to ask, is it possible to perform dynamic action on column of a IrReport. If it is possible can u just tell me briefly how and what to do.
    Thanks in advance.
    Thanks and Regards,
    Shoaib

    Hi,
    Sorry I should have done it earlier itself.
    -->I have written this process-
    declare
         ln_seq     number;
    ln_name varchar2(500);
         begin
         for i in 1..APEX_APPLICATION.G_F02.COUNT
         LOOP
    begin
    select seq_id into ln_seq
    from apex_collections
    where collection_name ='collection_name'
    --and trim(upper(c002)) =trim(upper(:ln_part_name))
    and trim(c001)=trim(APEX_APPLICATION.G_F02(i));
    select c002 into ln_name from apex_collections
    where collection_name ='collection_name'
    --and trim(upper(c002)) =trim(upper(:ln_part_name))
    and trim(c001)=trim(APEX_APPLICATION.G_F02(i));
         APEX_COLLECTION.UPDATE_MEMBER (
    p_collection_name => 'collection_name',
    p_c001 => APEX_APPLICATION.G_F02(i),
    P_c002 => ln_name,
    p_seq => ln_seq,
    p_c005 => APEX_APPLICATION.G_F10(i)
    exception when others then
    null;
    end;
    END LOOP;
    for j in 1..APEX_APPLICATION.G_F22.COUNT
    LOOP
    BEGIN
    UPDATE table_name SET QUANTITY=APEX_APPLICATION.G_F20(j) where id=APEX_APPLICATION.G_F22(j);
    EXCEPTION WHEN OTHERS THEN
    NULL;
    END;
    END LOOP;
    commit;
         end;
    --->Here F02 is QUANTITY and F10 is UNIQUE value using which i am updating the column value in Database and F20(Quantity) and F22(Unique value) are values of already submitted column values of report.
    --->I have also created a Dynamic action with three true actions on the report region, Event-change and Selection type-region
    1.execute PL/SQL code
    declare
         ln_seq     number;
    ln_name varchar2(500);
         begin
         for i in 1..APEX_APPLICATION.G_F02.COUNT
         LOOP
    begin
    select seq_id into ln_seq
    from apex_collections
    where collection_name ='collection_name'
    --and trim(upper(c002)) =trim(upper(:ln_part_name))
    and trim(c001)=trim(APEX_APPLICATION.G_F02(i));
    select c002 into ln_name from apex_collections
    where collection_name ='collection_name'
    --and trim(upper(c002)) =trim(upper(:ln_part_name))
    and trim(c001)=trim(APEX_APPLICATION.G_F02(i));
         APEX_COLLECTION.UPDATE_MEMBER (
    p_collection_name => 'collection_name',
    p_c001 => APEX_APPLICATION.G_F02(i),
    P_c002 => ln_name,
    p_seq => ln_seq,
    p_c005 => APEX_APPLICATION.G_F10(i)
    commit;
    exception when others then
    null;
    end;
    END LOOP;
    for j in 1..APEX_APPLICATION.G_F22.COUNT
    LOOP
    BEGIN
    UPDATE table_name SET Quantity=APEX_APPLICATION.G_F20(j) where id=APEX_APPLICATION.G_F22(j);
    EXCEPTION WHEN OTHERS THEN
    NULL;
    END;
    END LOOP;
    commit;
         end;
    2.refresh the region
    3.cancel event
    --->But my requirement has changed a little as i had informed in my earlier mails now the update should not happen when a region button is clicked but i should get updated as soon as the value is changed.
    --->But this is not working pls suggest me changes.
    Thanks and Regards,
    Shoaib

  • How to Send Notification to Manager of the Employee using Dynamic Action..

    Hi All,
    I am sending a notification using the Dynamic Action for an Infotype.. I am able to send mail using distribution list but I have a requirement to send the notification to employee manager. I am able to determine the Line Manager ID calling the subroutine in the dynamic action. But I am not sure how to send the notification to the manager.
    If the email's are maintained in distribution list if I specify the text id in the feature M0001 and distribution list the notifications are sent. I am not sure how to pass the line manager id to get the same notification..
    I have seen the option REC1 but infotype 0001 in not having the line manager id..

    Used the Function Module RH_GET_LEADING_POSITION.
    Thanks..

Maybe you are looking for

  • Batch rename stops working after initial folder

    So I have a tonne of video frames to rename. I batch rename the first folder with about 1000 images. Everything works fine. I go to next folder, click batch rename...nothing happens. I try everything including purging cache and trying again...nothing

  • Regular Expression Rage.

    Hello, I'm currently being driven insane by the regular expressions in java. I want to use the matches(String aString) method of String to find out if the user has inputed a wilcard filename such as *.txt or *.bmp etc. The problem is I can't seem to

  • How to get Image size?

    Hello, I need help for getting Image size, when i am using JAI. for example: RenderedImage img = JAI.create("url", url); If you could help me than please. Thanks bye Jarrar.

  • Fill a entry in cluster in each step

    Hello everyone, i want to fill a kind of list (Cluster ?)  with a Number and a TF-Value. This functionality should be built in each step of my program. My goal is to add an entry (Number;TF) in a kind of list in each step. i tried to make this with a

  • Not Detecting External Display - 24" Gateway FPD2485W

    Hi everyone, I'd really appreciate any help I can get on getting my monitor to display at 1920x1200. My setup: Mac Book Pro 2.2Ghz 4Gb memory 128 M video memory - NVidia GeForce 8600M GT Memory Card OSX - 10.5.2 Bios - MBP 31.0070.B05 External Displa