Alter subject line in mail sent to candidate.

Hi all,
  i have a requirement in sap e-recruitment to customise the  smartform  for acknowledging candidate application.
i am using HRRCF_CS_IT_APPL_INVITATION as the reference  for my custom form.
This smartform is sent to the candidate via email. The subject line is automatically picked up from the Smartform ->formattribute-> meaning field.   teh problem is that this  field is restricted to 30 characters only.
Is there an enhancement or a note available through which i can alter the subject line(have a longer subject line)  of the mail?
my system details are : sap ECC 6.0   E-recruit release 604   level 004  highest support SAPK-60404INERECRUIT
Thanks.

Hi,
many customers want to change the standard subject creation. The implemented logic to get the email subject from the smartform is just not practical as it is not only too short but also smartforms are described in a way the recruiters and devlopers like for easy handling e.g. "rejection - candidate blacklisted" and you probably do not want this to be the mailheader the candidate reads :o).
The easiest way to change the subject is enhancing the method set_subject of class CL_HRRCF_CS_DOC_CAT_SF_SUPER. I usually place an implicit enhancement at the methods end and add the coding I need, so it overwrites the standard processings. In simple cases customers use a fixed but language dependent subject like "Your application at company xyz". But you can also put more complex stuff there by using the activity member attribute to get activity types or navigate to read requisition data.
Kind regards
Roman

Similar Messages

  • Subject in the mail sent through Batch Job

    Hi,
    We have a batch job which is running daily.
    Consumer wants the output of the batch job (spool request) in mail. We generally send the mail from batch job by filling the mail id in "Title field".. there is some third party involved in managing spool requests..
    But now consumer wants to send the mail with a subject line filled..
    I could not find any field or option in SM36 where i can fill in the subject..
    Please help. Now we are getting the subject as user id + spool request + system number.

    Check the below Code.
    DATA: NUMBYTES TYPE TST01-DSIZE,
            PDFSPOOLID TYPE TSP01-RQIDENT.
      DATA: BEGIN OF PDFDATA OCCURS 0.
              INCLUDE STRUCTURE TLINE.
      DATA: END OF PDFDATA.
      DATA: G1_LINES_TXT  TYPE I.
      DATA  : L_DOCUMENT_DATA    TYPE SODOCCHGI1,
              T_PACKING_LIST     TYPE STANDARD TABLE OF SOPCKLSTI1,
              W_OBJHEAD TYPE SOLI_TAB,
              T_OBJBIN TYPE STANDARD TABLE OF SOLISTI1,
              T_OBJTXT  TYPE STANDARD TABLE OF SOLISTI1,
              LW_PACKING_LIST    TYPE SOPCKLSTI1,
              L_LINES            TYPE I,
              W_RECEIVER        TYPE SOMLRECI1,
              T_RECEIVER         TYPE STANDARD TABLE OF SOMLRECI1.
      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.
    *...Read the Spool request number generated.
      SELECT MAX( RQIDENT ) INTO G_SPOOL_NUM
                            FROM TSP01
                            WHERE RQCLIENT = SY-MANDT AND
                            RQOWNER = SY-UNAME.
    *....Convert Spool to PDF
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID              = G_SPOOL_NUM
          NO_DIALOG                = 'X'
          DST_DEVICE               = G_PDEST
        IMPORTING
          PDF_BYTECOUNT            = NUMBYTES
        TABLES
          PDF                      = PDFDATA
        EXCEPTIONS
          ERR_NO_ABAP_SPOOLJOB     = 1
          ERR_NO_SPOOLJOB          = 2
          ERR_NO_PERMISSION        = 3
          ERR_CONV_NOT_POSSIBLE    = 4
          ERR_BAD_DESTDEVICE       = 5
          USER_CANCELLED           = 6
          ERR_SPOOLERROR           = 7
          ERR_TEMSEERROR           = 8
          ERR_BTCJOB_OPEN_FAILED   = 9
          ERR_BTCJOB_SUBMIT_FAILED = 10
          ERR_BTCJOB_CLOSE_FAILED  = 11
          OTHERS                   = 12.
    *...Convert 132 char to 255 char
      LOOP AT PDFDATA.
        TRANSLATE PDFDATA USING ' ~'.
        CONCATENATE GD_BUFFER PDFDATA INTO GD_BUFFER.
      ENDLOOP.
      TRANSLATE GD_BUFFER USING '~ '.
      DO.
        IT_MESS_ATT = GD_BUFFER.
        APPEND IT_MESS_ATT.
        SHIFT GD_BUFFER LEFT BY 255 PLACES.
        IF GD_BUFFER IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Creating the document attachment
      LOOP AT IT_MESS_ATT.
        OBJBIN = IT_MESS_ATT.
        APPEND OBJBIN.
        CLEAR: OBJBIN,
               IT_MESS_ATT.
      ENDLOOP.
    Creating the document to be sent
      DOC_CHNG-OBJ_NAME = 'IG Balance'.
    *.....Subject of the email.
      CONCATENATE 'Intragroup Confirmation from AoO: ' P_ZAOO INTO DOC_CHNG-OBJ_DESCR.
    DOC_CHNG-OBJ_DESCR = 'Intragroup Confirmation from AoO '.
    *...Body of the email
      OBJTXT = 'Please find attached a summary and details '.
      APPEND OBJTXT.
      OBJTXT = 'Any queries regarding the attached should be addressed to the contact names on the Report.'.
      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.
      DESCRIBE TABLE OBJBIN LINES TAB_LINES.
      OBJHEAD = 'Balace.PDF'. APPEND OBJHEAD.
    Creating the entry for the compressed attachment
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM   = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM   = TAB_LINES.
      OBJPACK-DOC_TYPE   = 'PDF'.
      OBJPACK-OBJ_NAME   = 'ATTACHMENT'.
      OBJPACK-OBJ_DESCR = 'Balance Report'.
      OBJPACK-DOC_SIZE   = TAB_LINES * 255.
      APPEND OBJPACK..
    Entering names in the distribution list
      DATA: L_CNT TYPE I.
      LOOP AT T_EMAIL INTO W_EMAIL.
        IF W_EMAIL-ZCONTACT1 IS NOT INITIAL.
          RECLIST-RECEIVER = W_EMAIL-ZCONTACT1.
          RECLIST-REC_TYPE = 'U'.
          L_CNT = L_CNT + 1.
        ELSEIF W_EMAIL-ZCONTACT2 IS NOT INITIAL.
          RECLIST-RECEIVER = W_EMAIL-ZCONTACT2.
          RECLIST-REC_TYPE = 'U'.
          L_CNT = L_CNT + 1.
        ENDIF.
        APPEND RECLIST.
        CLEAR: RECLIST,
               W_EMAIL.
      ENDLOOP.
      SELECT SINGLE ZAOO
                     ZCONTACT1
                     ZCONTACT2 FROM ZFI_MT_RPTRMAP INTO W_EMAIL
                     WHERE ZAOO EQ P_ZAOO.
      IF W_EMAIL-ZCONTACT1 IS NOT INITIAL.
        RECLIST-RECEIVER = W_EMAIL-ZCONTACT1.
        RECLIST-REC_TYPE = 'U'.
        L_CNT = L_CNT + 1.
        APPEND RECLIST.
      ELSEIF W_EMAIL-ZCONTACT2 IS NOT INITIAL.
        RECLIST-RECEIVER = W_EMAIL-ZCONTACT2.
        RECLIST-REC_TYPE = 'U'.
        L_CNT = L_CNT + 1.
        APPEND RECLIST.
      ENDIF.
    Sending the document
      IF L_CNT > 0.
        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.
        CASE SY-SUBRC.
          WHEN 0.
            WRITE 'Email sent successfully'.
          WHEN 1.
            WRITE: / 'no authorization to send to the specified number of recipients!'.
          WHEN 2.
            WRITE: / 'document could not be sent to any of the recipients!'.
          WHEN 4.
            WRITE: / 'no authorization to send !'.
          WHEN OTHERS.
            WRITE: / 'error occurred during sending !'.
        ENDCASE.
      ELSE.
        MESSAGE S000 WITH TEXT-018.
        STOP.
      ENDIF.
    *...Delete Spool Request.
      DATA: SPOOLID TYPE TSP01_SP0R-RQID_CHAR.
      SPOOLID = G_SPOOL_NUM.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
        EXPORTING
          SPOOLID             = SPOOLID
      IMPORTING
        RC                  =
        STATUS              =
        ERROR_MESSAGE       =

  • Change subject line of Email sent through "spool recipient functionality".

    A batch job creates a spool, which is send through Email using spool recipient functionality. The subject line of the Email is as follows
    "Job<job name>, Step <step no.>".
    Is it possible to change the subject line of the Email?
    Any pointers on this would be highly appreciated.

    check the program name for job.
    If the program is Custom program(starting with Z or Y)  then you can easily change subject line of email.
    If it is standard program then we have to look for alter path.
    Edited by: subas  Bose on Feb 18, 2010 6:54 PM
    Edited by: subas  Bose on Feb 18, 2010 6:55 PM

  • SPAM shows in subject line of mail

    On mail I recieve from one person it always reads ****SPAM**** in the subject line.  It does not show up as junk mail.  The person is a contact in my address book, so does anyone know how I can get the system to recognise that it's not SPAM?
    Thanks for any assistance

    It may actually be your mail server that is adding *JUNK* to your subject line and not Mail. For example, my school's server adds *SPAM* to mail it thinks is spam, and it gets delivered to my inbox like that. It's then up to me to decide what to do with it. If this is the case with you too, I'm not sure if there's anything simple you can do about it on your end. If the messages being marked with *JUNK* are actually junk, I suppose you could just add a rule that sends those messages to your junk folder; if they're not junk, it may be something you have to just deal with.
    Of course this may not be what you are experiencing at all

  • What does the "To" in a rounded rectangle mean on the subject line of Mail?

    Just wondering what the "To" in a rounded rectangle means on the subject line of iPad Mail. It's on nearly all my messages!! Really bugging me.
    Cheers!
    Tom Adams

    Cheers!! I turned that setting on thinking it displayed those fileds when typing a new message, rather than having to press details.
    Fab! Cheers all!
    Tom Adams

  • Spaces in subject line causing mail servlet to brake

    Hi,
    I am working with cocoon, tomcat and xml/xsl/xsp. I have the mail servlet which works fine with html form always. However in the xml page if I put spaces in subject line or the text body, I am getting IOExcpetion. I
    don't get any error if my subject and body text is one long word. Please help.
    Here is the code for my XSP page
    <?xml version="1.0"?>
    <?cocoon-process type="xsp"?>
    <?cocoon-process type="xslt"?>
    <?xml-stylesheet href="Station.xsl" type="text/xsl"?>
    <xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core"
    xmlns:util="http://www.apache.org/1999/XSP/Util">
    <xsp:structure>
    <xsp:include>java.lang.*</xsp:include>
    <xsp:include>java.util.*</xsp:include>
    <xsp:include>java.io.*</xsp:include>
    </xsp:structure>
    <page>
    <xsp:logic>
    String From,sub,body;
    From = request.getParameter("From");
    sub = request.getParameter( "Subject");
    body = request.getParameter("Body");
    String x= "http://localhost:8080/kong/servlet/GSMailServlet?command=send&to=aj&from="+ From+"&subject=" sub "&text=" +body;
    </xsp:logic>
    <util:include-uri>
    <util:href>
    <xsp:expr>x</xsp:expr>
    </util:href>
    </util:include-uri>
    </page>
    </xsp:page>

    Thanks for the suggestion. But When I tried using URLEncoder I got the output like this:
    {http%3A%2F%2Flocalhost%3A8080%2Fkong%2Fservlet%2FGSMailServlet%3Fcommand%3Dsend%26to%3Daj%26from%3Daj%26subject%3Drest+gfdfg%26text%3Dggfd+gfg: java.net.MalformedURLException: no protocol: http%3A%2F%2Flocalhost%3A8080%2Fkong%2Fservlet%2FGSMailServlet%3Fcommand%3Dsend%26to%3Daj%26from%3Daj%26subject%3Drest+gfdfg%26text%3Dggfd+gfg}
    Since Cocoon is doing the parsing I don't have the control over it. How do I solve this problem. Please help

  • Automatically inserting Julian Date (yyD) in subject line in Mail

    Problem: I would like to automatically insert at the beginning of the Subject line in a new Mail message, a Julian Date, eg. 06277. The suffix to this date (yyD) is /n (where n is the sequential number commencing at 0001hrs for the given day (D).
    Question: How do I achieve this? AppleScript or Automator? Further, what is either the script or the automator commands?

    Hi Jeffrey
    I've emailed the full script to you, so make sure it doesn't end up inyour Junk Mail.
    Just so that others, can see, the script is;
    set jDay to do shell script "date +%j"
    set jYear to do shell script "date +%y"
    set theSubject to jYear & jDay
    tell application "Mail"
    set theNewMessage to make new outgoing message with properties {subject:theSubject}
    tell theNewMessage
    -- Default is false. Determines whether the compose window will
    -- show on the screen or whether it will happen in the background.
    set visible to true
    end tell
    end tell
    (Now you can give me a star)
    G5 DP 1.8Mhz   Mac OS X (10.4.7)   1Gb RAM, 2x 149Gb HDs, LinkSys router, EyeTV 410

  • How do you control the Subject Line in emails sent from RS_PREC_PLAN?

    We are using the program RS_PREC_PLAN to broadcast precalculated workbooks from a process chain.  We have entered values for each parameter (i.e. Precalc server, workbook, web template, and email addresses) and saved as a variant. 
    However, each time the program is called from the process chain the email recipient gets an email with "Test" as the subject line.  Is there any way to control what is displayed in the subject line of the email?
    Thanks,
    Brad

    Brad,
    Looks like the subject is hardcoded...
    you can find the same in
      Form  sent_mail
    where there is :
    l_r_parameter->add( i_id    = 'DESCRIPTION'
                          i_value = 'Test'(001) ).
    what you could do is create a copy of the same program and look at passing the subject to the program...
    Arun
    Hope it helps...
    You could also look at using the how to document on sending workbook as attachment available in SDN - created by Durairaj Athavan Raja,,
    Arun
    Hope it helps...

  • String "iso-8859-1" found in subject line of java mail API(when German char

    We have written a mail client using java mail API and it works fine. Some body sends the email with subject line contains German chars(using some other mail client like outlook)
    and our mail client is running on the machine whose Local has been set 'German'.
    Now, while getting the subject line
    Javax.mail.Message email; //local variable
    // some how I am intializing email.
    String str = email.getSubject();
    the value of str returns "Bitte die 4 Items I�schen. Kein Bedarf. Ich kann die=?iso-8859-1?Q?_L=F6schung_nic?="
    but actual value subject line was "Bitte die 4 Items I�schen. Kein Bedarf. Ich kann die L�schung nic"
    So '�' char was repalced by some arbit chars.
    Moreover, Charset.defaultCharset().name() returns 'windows-1252'
    Please suggest me how I can get the actual subject line
    Thanks
    -Sanjeev

    http://forum.java.sun.com/thread.jspa?threadID=741111&messageID=4250621
    visit it
    by ghanshyam

  • Issues in Swedish mail notification subject line

    Hi team,
    I have created one concurrent program which run on daily basis to send notification about employee contract expiration to their manager before 30 days.
    I should send mail into swedish language. I am facing one issue into this.
    I have compiled program correctly with Swedish as machine langage and i am able to see appropriate mail format in my package body.
    But i receive mail notification, the mail body is in swedish language but mail subject removed the swedish characters.
    Please check below details:
    Apps : 12.1.3
    Database : 11g
    Responsiblity Name: HR Professional
    Swedish Subject line in Code : HRMS System Varning: Anställningskontrakt löper ut om 28 dagar
    Swedish Subject line in mail notification : HRMS System Varning: Anstallningskontrakt loper ut om 28 dagar
    Sweidish Mail body in code : Observera att gällande anställningskontrakt för löper ut den
    Swedish Subject in mail notification : Observera att gällande anställningskontrakt för löper ut den
    I tried following approch:
    1. I passed direct subject line to P_Subject parameter.
    2. I assigned subject line to l_subject and then passed value l_subject to P_subject .
    in both cases, i am getting wrong output. Kindly check and let me know if anything is required from my side.
    Thanks in advance.
    Regards,
    Basaw

    Hi Friend,
    Thanks for quick reply.
    It is not showing any garbage value or squares anything.
    It is just removing swedish characters. Please check below:
    Sweidish Mail body in code : HRMS System Varning: Anställningskontrakt löper ut om 28 dagar
    Swedish Subject in mail notification : HRMS System Varning: Anstallningskontrakt loper ut om 28 dagar
    If you see closely, in word Anställningskontrak and löpe, it is removied a and o which are special values in swedish characters.

  • As soon as I type in subject line of email, it tries to save as draft and crashes.

    I'm running Windows 8 on a ASUS laptop (new within the past few months). I access iCloud mail from my PC, iPhone and iPad Mini. The problem only happens using iCloud Mail on my PC.
    Just within the past few weeks, as soon as I begin typing a subject line in mail, I get a pop-up question "Save this message as a draft?" 
    If I  Don't Save it, it kicks me out of the message.
    If I Cancel it, it takes me back to the message, but asks me again with the next key stroke and keeps asking until I move out of the subject line.  So I am being constantly interrupted while I'm in the subject line.
    If I Save it, it does save, but closes the message.
    It appears that Don't Save and Save are doing what they are supposed to, but Cancel just takes me back to the message only to be interrupted over and over.
    Is there some way to get it to quit prompting me to save a draft?

    I belive the issue is with quotes..try removing the double quotes " " or try using single quotes ' ',either removing the quotes completly or using single quotes should work..let us know if it works..

  • Email Subject Line E-recruiting

    Hi,
    We need to change the subject line of email sent via activities.
    By default the smartform subject line is sent as email.
    Is there any way to change this and hardcode to some value.
    Thanks in advance,
    NB

    I use gmail, I have thunderbird and this does not happen. The UI interface for google does but you can also stop it from doing that in the admin settings I believe.
    Sme other good email clients for mac and oc, paid and free.
    You can create folders for go gmail itself and email clients with sorting rules too.
    Do not recall seeing guides for rendering tags in the email subject, net seen that and been using bc a long time.

  • Duplicate subject lines and dates in Mail messages

    In a number of messages I've sent from a Samsung mobile phone to my iMac running Mail on Leopard, the messages have multiple subject lines (in some cases 7!), multiple date lines, and the from and to address is also dupliacted many times.
    Has anyoner else come across this problem, and what can I do to resolve it?
    Thanks

    This is a recurring problem with Exchange servers. Sometimes it's fixed by rebuildiing the mailbox. Another possible fix is to disable the account in the Mail preferences dialog, then re-enable it. Back up all data before making any changes.

  • Missing Subject line for the Approval Notification Mail

    Hi,
    We use CUP 5.3 SP7. We have configured the system for role based approval. We found that the approval notification mail being sent without any Subject line. It's configurable to set the admin mail id, but couldn't find one to set the Subject.
    We get the following content in the mail....
    View <http://<host:port>/AE/index.jsp?verifyApproverLogin.do........................>
    Can we set it somewhere from the configuration?
    Regards, Anil

    Hi Alpesh,
    Thx for your reply..But i think you missed my point...Let me try to explain it again...
    When we submit a request, the system triggers a notification mail to the approver(s). And this mail seems to be missing a Subject line... and it's shown to be sent from the System E-mail id we set at the SMTP server config.
    I couldn't find a tab for setting the E-mail format for the first approver  neither at the stage nor in the e-mail reminder configuration.
    Perhaps, setting the next approver will help if i had a secondary approver. But we are using a single stage WF in CUP. Am i missing some config step here?
    Regards,
    Anil

  • Mail app subject line errors

    Hello all.
    I subscribe to e-mails sent by the Government of Canada. In Apple Mail, the subject line is garbled, as follows:
    =?ISO-8859-1?Q?Reminder - Briefing on the Prime Minister's Visit to France for the G-8 Sum?=          mit and to Greece
    Is there any way to correct this so Mail displays the correct subject line, without weird coding and font problems? The problem only occurs with messages from this sender in particular. Outlook handles these messages without any problem, but I prefer to use Mail.
    Many thanks for any advice.

    @Baron875, your answer is not entirely correct. Your method does NOT save all the original data. The original date of the message is changed to the date and time that you edited it! For business, this fixes one problem but creates another!! The only real answer to this question, which has been frustrating me ever since I switched to Mac, is to go back to Microsoft Outlook where it is simple to change the subject line... something that should be a no-brainer function for any mail client programmer. I really like Mail overall, but some of these idiotic shortfalls drive me nuts. I am becoming more and more convinced that Apple does NOT have the brightest programmers, as some people like to think.

Maybe you are looking for

  • How do I manage Multiple iCloud accounts

    Years ago (dotmac days) I set up a family account. For $99 per year I received email accounts for me, my wife and my 2 children. We have used them ever since and the credit card gets charged annually. Now all of the others (but me) are using google a

  • Error while installing Solaris 10 using Solaris CD

    I'm getting an error while installing Solaris 10 in an Ultra 10 box. I have Solaris CDs (Total 4) and I have installed Solaris 10 in a Ultra 250 box , I did not get any problem. That means CDs are fine. But when I try to boot the CD 1 from bootPROM m

  • Load balancing and rfc metadata repository in reciever rfc communication ch

    hi. i want to know the purpose of load balancing and rfc meta data repository in RFC communication channel. and can u send me any examples on this load balancing. waiting for your response. bye. regards. seeta ram.

  • Problems w/ Migration Assistant

    I just got my new MacBook Pro in the mail and foolishly launched into it without doing much reading up... I used Migration Assistant to move everything from my Powerbook G4 over to my new MacBook Pro. The transfer got to the "about 2 minutes" remaini

  • Strange behavior in updating and standbying

    Hi, In the last 4 weeks I've been facing some strange behavior from my iPhone 4. First, sometimes when I pick it up its screen is already on (dimmed) and showing the lock screen (with some elements missing though). Secondly, and more annoying yet, wh