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.

Similar Messages

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

  • 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

  • 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

  • Could I get the datas from IPone mail system?

    --------------------------------------------------------------------------------
    I want to develop a application for manage the linkmen in IPone?
    but I cannot get the datas(such as recipients and addressers names,dates,email addresses,topic, accessories contents) from IPone mail system,becuase I cannot find the API for these data ,though I have taken 2days. Help me ,please~!
    Thanks~!

    The Address Book Programming Guide for iPhone OS explains the AB API and includes a tutorial, sample code, and links to all the AB reference docs.
    Hope that helps!
    \- Ray

  • 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

  • Concatenating data for field assignment in Dynamic Action

    In a dynamic action I am creating a record in a custom infotype.  In one of the custom infotype fields I need to assign a value of the number 28 concatenated with the personnel number.  The line in the dynamic action is
    W P9007-Z_INS_EE_PK = '28'&Pernr but the problem is I cannot get a concatenation to work.  How do you go about concatenating data together in a field assignment?

    Hi David,
    For this, you will have to write a small routine in a program and then call it in the dynamic action. Consult your technical team on this. Get them to write a routine which would concatenate the value and pass it to field RP50D-FIELD1. You would then call the routine and default the fields as shown below:
    F ZPROGRAM(Z_CONCATENATE)
    I INS,9007,,,
    W P9007-Z_INS_EE_PK=RP50D-FIELD1
    Here, ZPROGRAM is the name of the program and Z_CONCATENATE is the routine which would contain the logic to populate field RP50D-FIELD1 with concatenated value.
    Donnie

  • Unable to get the data from a website with dynamically filled textboxes when accessing through myWb.Document.GetElementById("num1").InnerText;

    Hi Team,
    I am learning on webbrowser control and during the learning phase i have the following issue:-
    My webbrowser [mywb in this case] is successfully navigating and displaying the website content in webbrowser control. However; that site has three textboxes with dynamically allocated text from asp script
    code behind; I have tried to display these textboxes values by providing the correct id of these textboxes in my visual studio 2013 code; but I am not receiving any data except null. Can you help me on this as early as possible.
    asp code written to dynamically assign the data to textbox:-
    <%
    myvar=Request.form("some")
    Response.write("<input type=text id=num1 value=" + myvar+ ">")
    %>
    The code written in VS 2013 to access the textbox  by its id when the DocumentCompleted event is triggered:-
    string mystr ="";
    mystr = myWb.Document.GetElementById("num1").InnerText;
    MessageBox.Show(mystr);
    Thank You in Advance.
    Regards, Subhash Konduru

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because the issue is related to website, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Thunderbird does not get server data for ovi mail

    hi there,
    i have the following problem:
    when i try to make an ovi account in my thunderbird mail client, it does not find the right server settings to do so. i searched the net for hints concerning the right settings to set them manually but havent found anything so far.
    does anybody know the right server settings or can provide me with a tip where i can find them, respecively solve the problem otherwise?
    many thanks in advance!

    Hello.  Name here is Stephen.  I live in Missouri.
    I currently use my ovi.com email address with a Nokia E-71 smartphone, on the prepaid Straight Talk (TracFone Owned) wireless network.
    I've also had my ovi.com address setup in Thunderbird (a popular email client) as an IMAP account.
    Now that I see the new settings, I see that IMAP no longer available?  Is that correct?
    If this is the case, how is converting an IMAP account that worked flawlessly to a generic POP3 account progress?  IMAP is more attuned to business users, and is just more efficient all the way around.
    If I'm wrong, please let me know.  If not, I need the current IMAP account settings for my ovi.com email address.
    Please assist me in this matter, as it's driving me nuts.
    Warm Regards,
    Stephen Brown

  • Dynamic actions - how to create an infotype with a date - 1 day.

    Hi everyone,
    I need a requirement to change an infotype through dynamic action with ENDDA = BEGDA of maintaned infotype(0000) - 1 day.
    In other words when a  personel action is performed, another infotype (2001) should appear for change, and in the validity period of this infotype should end with the day before the start of the personel action.
    is it possible to achieive this using dynamic actions? how?
    Thanks!
    Stanislaw Adamski

    Hi Adamski,
    A dynamic action has the following components.
    Infotype Number (INFTY): specifies the infotype for which you want the dynamic action triggered
    Subtype (SUBTY): narrows the focus to a specific subtype
    Field Name (FIELDN): starts your action when a maintenance function is performed on a particular field
    Function (FC): specifies the various maintenance operations to which your dynamic action would respond. They are 02 (change); 04 (create); 06 (create and change); 08 (delete); 10 (change and delete); 12 (create and delete). Dynamic actions are only applicable in maintenance operations, not in display functions.
    Sequence Number (NO): refers to a sequential number.
    Step (A): specifies a particular type of action. No dynamic action is executed if the function character has a value other than one of the following:
                 P: Plausibility checks, which allow you to check certain conditions.          
                 I: Calls an infotype for processing
                 W: Called after the I statement and used to assign values to screen fields while creating or copying another infotype record through the I statement 
                  F: Calls a FORM routine (subroutines in ABAP) during your action. The routine may reside in or out the module pool MPNNNN00.
                 V: Lets you treat collectively a number of fields for which you want to define a common dynamic action
                  M: Sends SAP Office mail
    Variable function part: The variable function part along with the step indicator forms the core part of your action. It specifies the processing details when the dynamic action is triggered. For example: 
    you have to look for the scenario what you are planning tyo create .
    The maintenance of dynamic actions is done via the view V_T588Z, as shown in 1 (IMG menu path Personnel Management>Global Settings in Personnel Management>Basic Settings>Infotypes>Create Dynamic Actions
    Here you havev to use conditions INS for the infotype what you want to create..
    Please brief the light on the scenario.
    Warm Regards,
    Kapil Kaushal

  • I can't get datas from IPone mail system?

    I want to develop a application for manage the linkmen in IPone?
    but I cannot get the datas from IPone mail system,becuase I cannot find the API for these data ,though I have taken 2days. Help me ,please~!

    Developer questions should be posted here: http://devforums.apple.com

  • 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

  • How to process Dynamic Action in BDC

    Hi friends.
    We are using HR_INFOTYPE_OPERATION to update some infotypes. The problem is that dynamic action does not get triggered as SY-BINPT = 'X' when we use this FM or BDC to update.
    Now, is there any workaround so that we can process dynamic actions via our program?
    Can somehow we call the subroutine DYN_ACTION from our program? Can the values of PSAVE etc be availabe in our program?
    Thanks in adv!

    Hi
    Its kind of complicated to code dynamic actions in your BDC code. However , I would try my best to make you understand.
    1. Make a BDC recording of the source screen.
    2. Dynamic actions are stored in table: T588Z. Now during your screen processing of BDC data, you have to check the conditions yourself whether this was the condition which triggers the dynamic action.
    3, Make another BDC recording of the target screens which are called due to dynamic actions. Now if the condition in the source screen is fullfilled and you have to call a dynamic action then direct your program flow to the BDC recording of the target screen and update all the fields which would be updated by Dynamic Actions in the normal user interaction of that screen.
    In short, you have to program all those things which Dynamic action does since BDC does not support dynamic actions.
    Reward points, if helpful.
    Regards
    Waz

  • Dynamic action for 5 years employees

    Hi all,
    I have configured  infotype 0019 under subtype for Date monitoring.I am getting Starting date in this Sub type dynamically.But client is expecting  the date is , after adding 5 years to the joining date of the employee.So how can i give condition for this 19 infotype.is it possible for infotype 19 other wise 40 let me know.

    Hi,
    You could use this sample code:
    0000     06     800           ** START - CREATE 0019 +5 years **
    0000     06     805     P     PSPAR-MASSN='INSERT Hiring action type'
    0000     06     810     I     INS,0019,XX (XX 0019 SUBTYPE)
    0000     06     815     W     P0019-TERMN=P0000-BEGDA
    0000     06     820     W     P0019-VTRAN='5'
    0000     06     825     W     P0019-VTRZH='013'
    0000     06     830     W     P0019-VTROP='+',
    0000     06     835          ** END - CREATE 0019 +5 years **
    This should allow you to do it without writing a program.
    Regards,
    Ash

  • HR Abap ques - Process Dynamic Actions in BDC mode

    Hi friends.
    We are using HR_INFOTYPE_OPERATION to update some infotypes. The problem is that dynamic action does not get triggered as SY-BINPT = 'X' when we use this FM or BDC to update.
    Now, is there any workaround so that we can process dynamic actions via our program?
    Can somehow we call the subroutine DYN_ACTION from our program? Can the values of PSAVE etc be availabe in our program?
    Has someone done it before -> calling Dyn actions from your program?
    Thanks in adv!

    One more input -> I tried to include the MPPDAT00 in my main program and then call DYN_MEASURE in program <MPxxxx00>. But the values of PSAVE, DYNMEAS, etc don't seem to be there still.

Maybe you are looking for

  • Win Vista -, iTunes won't display my iPhone

    I've turned off firewall, WinPatrol and my antivirus - I can see the iPhone in My Computer... but the sync and backup buttons are greyed out in iTunes.  I can see it with no problem in the other computers.  I've uninstalled and reinstalled iTunes - P

  • CSV file to Ztable

    Can u guys tell me steps/give sample code to upload a ZTABLE from a CSV file. Iam not using all fields in the CSV file( if file have 5 fields,I am using 3 out of it) and also not all fields in  the ZTABLE ( uploading 3 fields out of 7 fields)and some

  • Versions of Applications in Creative Suite

    With regard to Creative Cloud is there a way of keeping track of the version of the application installed? I heard that Adobe will no longer use a suite numbering system? I read on Adobe's website "You are not required to install any new version of t

  • Quality in Archive Recordings

    Hi - I'm using ConnectSession.archiveManager to record from the web camera. While utilzing the application the quality is great. However, the playback is very choppy, the audio is not understandable, and the overall quality has degraded sharply.  Is

  • I'm adding text to a photo.. Trying to get an S to lay down

    I'm adding text to a photo and can't get an S to lay down?