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)

Similar Messages

  • Subroutine called from a Dynamic Action.

    Calling a subroutine in a program via a dynamic action, works in foreground, but not in background? Any ideas why?

    What's a dynamic action and what are you actually trying to achieve?

  • 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.

  • 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 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

  • Cannot hide Rich Editor item onload via Dynamic Actions

    Hi,
    I have textarea and rich editor items that I have to show/hide vice versa based on select list item value.
    I have created Dynamic Actions to Show/Hide items on 'Cnange' event when value of select list: P23_FORMAT equals 1
    True Actions:
    Show P23_TEXT
    Hide P23_TEXT_RICH
    False Actions:
    Hide P23_TEXT
    Show P23_TEXT_RICH
    All actions have the value of attribute 'Fire On Page Load' set to 'Yes'.
    The select list value has computation 'before header' which set P23_FORMAT = 1. So it should display P23_TEXT textarea and Hide P23_TEXT_RICH on page load. But both items are displayed though the label of P23_TEXT_RICH item is hidden.
    If I change computation to P23_FORMAT = 2 then all work as expected: P23_TEXT is hidden and P23_TEXT_RICH item is displayed correctly.
    What's wrong with my settings? I need display the textarea by default on the first page load.
    Thanks.

    Hi,
    look like a bug for Rich Editor item. All works fine when I avoid using this item type in DA.

  • Refresh pl/sql anonymous block via dynamic action?

    Greetings again to the community!
    Something I must be misunderstanding.
    I want to dynamically (ajax) update a select list depending on a page item. Now when you research for operations like this, you get some examples - but which mostly are older and... contain a lot of coding. So I am wondering if this is to be achieved in a simple way using dynamic action.
    I have created a testcase here where the html for a select list ist created in a pl/sql anonymous block like that:
    begin
    for i in (select EMPNO, ENAME from EMP
            where DEPTNO = :P50_DEP_NO or
                     :P50_DEP_NO is null)
          loop
      htp.p('<option value="' || i.EMPNO || '">' || i.ENAME || '</option>');
      end loop;
    end;Region header and footer contain the tags for <select id="selEmps"> ... </select>.
    When you press [Btn Update Sel], a dynamic action is triggered, that submits :P50_DEP_NO, then refreshes the region with the pl/sql code, so that, after you have enteres another value in :P50_DEP_NO, the select list then shows the employees of that department. Thats the plan, but
    Its not working! Can anyone tell me, what I have overlooked here, please?
    Thank you and good night for now,
    tobi

    Hi Marko,
    thanks for your hint. I have already tought about that, but im not sure if this is the solution of this particular situation, because the list really should be generated html-code for formating reasons with jQuery UI and further processing. But I have not worked so much with cascading LOVs, so I really should look into it further.
    If I dont find a solution there, I'll get back here.
    Thanks and so long,
    tobi

Maybe you are looking for

  • EPUB - GRAY BOXES Instead of Images

    When exporting my epub book, I get gray boxes instead of images. Has anyone else run into this or know what to do to resolve this issue? All the images are linked properly and InDesign is saying I don't have any errors. The only way I can get images

  • Error in bdc report program .

    Hello Experts ,     I was doing the BDC demo program as explained in tutorial , http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/309cb157-738d-2910-7691-b74c4ddba3c7&overridelayout=true but when i  run the pgm i get runtime error as shrt text  

  • Numbers for ipad: interpolate or estimate?

    Does numbers for ipad interpolate or estimate values when pulling information from a table and the value is between entries on the table?

  • User Management in XI implementation

    Hi, Could someone provide me the user management and authorization assignment in an XI implementation. What are the authorizations that shall be given to an XI developer. In our case the XI developer is doing admuin work also like SLD config etc. But

  • Function module MAM25_011_getdetail not working

    hi, I m using Function Module Mam25_011_getdetail which is already designed in SAP. I want to execute it but when I m executing it, it is asking  me for user and notification number.... I have  notification Number but i didn't have any idea about use