Sender Name in The Email Functio Module

Hi All,
I have a requirement to change the sender name in the function module SO_NEW_DOCUMENT_SEND_API1 .
By Default this function module takes the name of the sender from the log in id .
Please suggest how I can do it...
Thnks ...
sahil

Hi sahiil,
I_OBJTXT = 'Find attached the output of the smartform.'.
APPEND I_OBJTXT.
I_OBJTXT = 'Regards,'.
APPEND I_OBJTXT.
I_OBJTXT = '  '.-----> sender name
APPEND I_OBJTXT.
Regards,
Sravanthi

Similar Messages

  • How do I configure Sprint Mobile Email to show my name in the email return address?

    I am using Sprint Mobile Email to check & send my Yahoo email on my Palm Centro.  When I send emails it only shows my email address in the return address and not my name.  I have my name set up in Yahoo but it doesn't get picked up when I send emails from my phone. 
    How do I configure Sprint Mobile Email to also show my name in the email return address?  Everyone may not recognize my email address as being me.
    Thank you
    Post relates to: Centro (Sprint)

    Hello and thank you for using the Palm Help Forums!
    You may want to contact Sprint for further assistance with the Sprint Mobile email. However, I can assist you with the built in Email (Versamail) application.
    Post relates to: Treo 800w (Sprint)

  • HT4436 If someone else has set up an ICloud account (that uses his name in the email address) using my Apple ID, do I have to change my Apple ID to open an account with my name in the email address?

    If someone else has set up an ICloud account using my email address and Apple ID but has chosen his name for the mail name, can I get rid of his name in the [email protected] and put mine in there?  Or do I have to set up a whole new acount with a new Apple ID?  Will I be able to do that with his name already linked to my email address?

    How did he manage to do this? - he would have to have known your password if he was using an existing Apple ID. You should change it immediately to something strong and unguessable. That will prevent him accessing the account or using the email he has set up (assuming he hasn't changed the password and locked you out).
    You can't change the primary @icloud.com address once set up, though you can create additional addresses as email aliases: if he's given this address out you will get his emails but you could set up a Rule to trash them.
    You might to better to create a new ID and iCloud account anyway. To do this you wil need a different non-Apple email address (you could use a free GMail one); or you have the option in the iCloud prefs pane to choose an @icloud.com address and make that the ID.

  • I keep receiving Reset email password emails. The most recent one was actually addressed to someone else... i.e. the name in the email not the email address. why is this happening??

    I keep receiving Reset email password emails.
    The most recent one was actually addressed to someone else... i.e. the name in the email not the email address. why is this happening?? I am not requesting to reset my icloud email password.

    That's probably because it's been sent out to a Bcc'd mailing list and that's the name on the main version. This is so that you don't see the other names.
    If it doesn't come from something @apple.com then it's spam. Even if it appears to it's probably spam. If you want to change your password go directly to http://appleid.apple.com - do not follow any links in the email (even if they appear to lead to that address.)

  • Email workflow showing domain and alias and not the name in the email

    I created an email workflow for a specific user field value to receive an email on a trigger event.
    However, the email received shows the DOMAIN/Alias and not the "Name" in the email content.
    How to correct this error? Not sure where is the issue is.
    Sample:
    Hello [%Current Item: Reviewer%] is the greeting line.
    If Reviewer is say Domain A/v-abcd and Name is Abcd.
    The email reads
    "Hello Domain A/v-abcd" and not "Hello Abcd"

    Hi,
    Just select "Display Name" instead of "Login Name" in the "Return field as" field of Lookup dialog.
    It should help.
    Regards Michael (http://sp2013-blog.com)
    Please, don't forget to upvote and mark as an answer if appropriate

  • Need to send attachments in the email

    Hi,
    I'm trying to write lines in a file. Not all of my lines are not written into the file.
    So I'm writing line by line into the file whcih its failed at say 350lines. after that its no more writing the data.
    Please anybody let me know how i can write my data into a file (say 2GB) and send the same as an attachment in the mail.
    Thanks in Advance.
    [email protected]
    Here is the sample code which i'm using
    Declare
    Cursor C1 is
    Select * from my_table;
    line1     Varchar2(32767);
    heading1     Varchar2(32767);
    end_of_line     Varchar2(32767);
    fileHandler     UTL_FILE.FILE_TYPE;
    file_name     VarChar2(100);
    po_err_msg varchar2(1000);
    Begin
    --Open a file in my logical dir 'TEST_UTIL_DIR' for Write
         Select lpad(my_File_Seq.nextval,10,'0')||'.html' into file_name from dual;
         fileHandler     := UTL_FILE.FOPEN('TEST_UTIL_DIR', file_name, 'W');
         line1     := '<table border="1">';
    --Writing first line
         Utl_File.Put_Line(fileHandler,line1,False);
         heading1 := '<tr><td><b>'||'Emp No'||'</b></td><td><b>'||'Employee Name'||'</b></td><td><b>'||'Age'||
    '</b></td><td><b>'||'Gender'||'</b></td><td><b>'||'Relation'||'</b></td></tr>';
    --writing second line
         Utl_File.Put_Line(fileHandler,heading1 ,False);
         For i in C1
         Loop
              Begin
                   heading2      := '<tr><td>'||rpad(i.Emp_no,6,' ')||'</td><td>'||rpad(i.Emp_name,30,' ')||'</td><td>'||
                   rpad(i.Age,5,' ')||'</td><td>'||rpad(i.Gender,3,' ')||'</td><td>'||rpad(i.Relation,8,' ')||'</td></tr>';
    --in the loop
    --for each record
    --writing each record in the file
              Utl_File.Put_Line(fileHandler,heading2,False);
         Exception
              When Others Then
              Print(sqlerrm);
              End;
         End Loop;
         end_of_line     := '</table>';
         Utl_File.Put_Line(fileHandler,end_of_line,False);
         utl_file.fflush(fileHandler);
         UTL_FILE.FCLOSE(fileHandler);
    --sending the file as an attachment.
    demo_mail.send_email(
         P_DIRECTORY     =>'TEST_UTIL_DIR',
         P_SENDER     => 'From_user@my_Company.com',
         P_RECIPIENT     => 'to_user@my_Company.com',
         P_CC          => 'cc_user@my_Company.com',
         P_BCC          => 'bcc_user@my_Company.com',
         P_SUBJECT     => 'Testing in Development',
         P_BODY          => 'Please find the following attachments.',
         P_ATTACHMENT1     => file_name,
         P_ATTACHMENT2     => null,
         P_ATTACHMENT3     => null,
         P_ATTACHMENT4     => null,
         P_ERROR          => po_err_msg);
    Exception
    When others then
    Print(sqlerrm);
    End;
    /

    Numerous threads regarding this issue:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=attachments+in+the+email&objID=f75&dateRange=lastyear&userID=&numResults=15
    Greetings...
    Sim

  • Short name in the email. Tcode SOST

    My question - Issue - When PO sent out through e-mail, SOST shows incorrect sender user name. Although e-mail ID is correct. Incorrect user name and correct user name (which we are expecting) has same e-mail ID in user master. Checked and found that these two users are not linked at all except they have the same e-mail ID.
    Is this issue with SOST or Output Program?
    DO WE REQUIRE THE ANY SETTING WITH THE SOST .
    Edited by: Matt on Apr 25, 2011 8:34 AM

    Hi,
    The email will have the sender, as the logged user name with which the email was triggered and being send. I hope in your scenario, you have been logged into the system with the wrong user and triggered the PO email which resulted in displaying the wrong user in SOST.
    In order to display the correct user name, you need to login with the correct User Id and then send the PO as email from this user.
    Thanks & Regards,
    Harish

  • Selection of Folder/File name using the same Fun.Module

    Please let me know if there is a function module which can fetch folder name/File name  from the directory path when f4 option of selection screen field is selected. Currently I am able to get the file name using FM F4_DXFILENAME_4_DYNP but the requirment is like I have to select either folder name or the file name depending on user selection.
    Note: Please let me know if there is a single Function module which can get folder name or the file name based on the user selection.i.e, if the user want to select a folder he can select or he can select files in the folder for processing

    Hi sridhar
    try this:
    PARAMETER : TXT_FILE(100).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR TXT_FILE.
    PERFORM GETFILE.
    start-of-selection.
    PERFORM GETDATA.
    FORM GETDATA.
      DATA : FILENAME TYPE STRING.
      FILENAME = TXT_FILE.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = FILENAME
         FILETYPE                       =  'ASC'
         HAS_FIELD_SEPARATOR           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
        CODEPAGE                      = ' '
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
        CHECK_BOM                     = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          DATA_TAB                      = IT_UPLOAD
      EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_READ_ERROR               = 2
        NO_BATCH                      = 3
        GUI_REFUSE_FILETRANSFER       = 4
        INVALID_TYPE                  = 5
        NO_AUTHORITY                  = 6
        UNKNOWN_ERROR                 = 7
        BAD_DATA_FORMAT               = 8
        HEADER_NOT_ALLOWED            = 9
        SEPARATOR_NOT_ALLOWED         = 10
        HEADER_TOO_LONG               = 11
        UNKNOWN_DP_ERROR              = 12
        ACCESS_DENIED                 = 13
        DP_OUT_OF_MEMORY              = 14
        DISK_FULL                     = 15
        DP_TIMEOUT                    = 16
        OTHERS                        = 17
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    FORM GETFILE.
      CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
        DEF_FILENAME           = ' '
         DEF_PATH               = '.'
        MASK                   = ' '
        MODE                   = ' '
        TITLE                  = ' '
       IMPORTING
         FILENAME               = TXT_FILE
        RC                     =
      EXCEPTIONS
        INV_WINSYS             = 1
        NO_BATCH               = 2
        SELECTION_CANCEL       = 3
        SELECTION_ERROR        = 4
        OTHERS                 = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    <b>This is a part of my BDC program its working for me u try n reply if it works for u.</b>
    regards
    vijay

  • How to put the sender name in the wf-system

    Hi,
    Can anybody pls tell me how to give the sender address in stead of WF-SYSTEM
    When ever a mail is triggered the mail is send to the mail inbox.in the mail inbox it is showing in the sender option : WF-SYSTEM...
    I want to put any name their .
    can i put any name their.
    please help me.....very urgent.
    For any clarification pls revert back.
    Thnks

    Hi,
    I've put the steps again here but this time I've put in Bold the lines that needs to be added in the different sources.
    • Copy the BO SOFM to ZSOFM
    And add to the method Send an import parameter
    SENDER like PA0105-USRID_LONG
    Then change the method SEND
    begin_method send changing container.                             
    data: result_object type swc_object.                              
    data: document_data  like sodocchgi1,                             
          document_type  like sofolenti1-obj_type,                    
          receivers      like somlreci1 occurs 1 with header line,    
          object_para    like soparai1  occurs 0 with header line,    
          object_parb    like soparbi1  occurs 0 with header line,    
          object_header  like solisti1 occurs 1 with header line,     
          object_content like solisti1 occurs 10 with header line.    
    data  folder_id      like soobjinfi1-object_id.                   
    data  new_object_id  like soobjinfi1-object_id.                   
    data  document_id    like sofolenti1-doc_id.                      
    data low_len like sy-tabix.                                       
    data  rcode          like sonv-rcode.                             
    <b>data : SENDER like pa0105-usrid_long.                             
    DATA : packinglist LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.     
    DATA: tab_lines TYPE sy-tabix.                                    
    DATA : sender_address like SOEXTRECI1-RECEIVER.                   
    swc_get_element container 'SENDER' SENDER.       </b>
    * get receivers out of container                 
    perform extract_receivers tables receivers         
                                     container.        
    if object-key = space.                             
      * get document data out of the container       
      perform extract_document tables object_para      
                                      object_parb      
                                      object_header    
                                      object_content   
                                      container        
                               using  document_type    
                                      document_data.   
    <b>DESCRIBE TABLE object_content LINES tab_lines.     
    Packing List                                     
    CLEAR packinglist-transf_bin.                      
    packinglist-head_start = 1.                        
    packinglist-head_num = 0.                          
    packinglist-body_start = 1.                        
    packinglist-body_num = tab_lines.                  
    packinglist-doc_type = 'RAW'.                      
    APPEND packinglist.                                                                               
    move sender to sender_address. 
    * send document                                               
      call function 'SO_DOCUMENT_SEND_API1'                         
        exporting                                                   
          put_in_outbox = ''                                        
          document_data = document_data                             
          sender_address = sender_address                           
          sender_address_type        = 'SMTP'                       
          commit_work                = ''                           
       tables                                                       
          packing_list   = packinglist                              
          receivers      = receivers                                
          contents_txt   = object_content                           </b>   exceptions                                                    
          parameter_error = 23                                      
          too_many_receivers =  1                                   
          x_error =              1000                               
          operation_no_authorization =  13                          
          enqueue_error =     2                                     
          document_type_not_exist = 3                               
          document_not_sent =  15.                                  
      if sy-subrc ne 0.                                             
        exit_return 1023  document_data-obj_descr space space space.
      endif.                                                        
    * create now SOFM object of sent document                     
      if sy-subrc = 0.       
        perform insert_document_with_data using new_object_id        "870566
                                                document_data               
                                       changing folder_id                   
                                                rcode.                      
      else.                                                                 
        move sy-subrc to rcode.                                             
        exit_return 1900 'Document Insert' space space space. "#EC NOTEXT   
      endif.                                                                
    * create result element with object key                               
      if rcode = 0.                                                         
        perform create_result tables container                              
                              using folder_id                               
                                    new_object_id                           
                                    result_object.                          
        perform create_object using folder_id                               
                                    new_object_id.                          
      endif.                                                                
    else.                                                                   
      move object-key to document_id.                                       
      call function 'SO_OLD_DOCUMENT_SEND_API1'                             
           exporting                                                        
                document_id                =  document_id                   
                PUT_IN_OUTBOX              =                              
           IMPORTING                                                      
                SENT_TO_ALL                =                              
           tables                                        
                receivers                  =  receivers  
           exceptions                                    
                too_many_receiver          = 1           
                document_not_sent          = 2           
                document_not_exist         = 14          
                operation_no_authorization = 13          
                parameter_error            = 23          
                x_error                    = 6           
                enqueue_error              = 7           
                others                     = 1000.       
      if sy-subrc ne 0.                                  
        exit_return 1023  document_id space space space. 
      endif.                                             
    endif.                                               
    end_method.                                                                               
    • Copy the function SWW_SRV_MAIL_SEND to ZSWW_SRV_MAIL_SEND
    And add as import parameter SENDER TYPE COMM_ID_LONG.
    In this function it will create an object SOFM and call the method Send and link the container for this method. So now we’ll create our copy of SOFM and add SENDER as container.
    Set the object.
      swc_create_object office_object 'ZSOFM' space.
      swc_set_element local_container 'DocumentName' documentname.
      swc_set_element local_container 'DocumentTitle' documenttitle.
      swc_set_element local_container 'SENDER' SENDER.
      swc_set_table local_container 'DocumentContent' documentcontent[].
      swc_set_table local_container 'Receivers' t_receivers.
      swc_set_element local_container 'Express' express.
      IF NOT documentexpirydate IS INITIAL.
                  swc_set_element local_container 'DocumentExpiryDat'
                  documentexpirydate.
         ENDIF.
    •Create a subtype for BO SELFITEM
    Example : ZSELFWI
    Create a method “SendWithSender”
    Tab General : Check Synchronous & Result parameter
    Tab Result type : Object type SOFM
    Tab ABAP :  SWO_INVOKE
    Then you’ll have to copy all the parameter from the original function
    “SendTaskDescription” and add a new one
    SENDER(import like PA0105-USRID_LONG)
                Then copy the method “SendTaskDescription” to the code of “SendWithSender”
    Now you’ll have to do some modifications to call the copy of the function
    SWW_SRV_MAIL_SEND  and then delegate ZSELFWI &#61664; SELFITEM
    And now in your task call the method SendWithSender of Selfitem and bind an address to Sender.
    BEGIN_METHOD SENDWITHSENDER CHANGING CONTAINER.                  
    <b>DATA: WORKITEMID LIKE SWWWIHEAD-WI_ID.                           </b>
    DATA: receivers TYPE swc_object OCCURS 0.                        
    DATA: BEGIN OF address_objects OCCURS 3,                         
           a_object TYPE swc_object,                                 
          END OF address_objects.                                    
    DATA: return TYPE STANDARD TABLE OF swotreturn WITH HEADER LINE. 
    DATA: text_lines TYPE STANDARD TABLE OF tline WITH HEADER LINE.  
    DATA: document_content TYPE so_txttab.                           
    DATA: ls_document_content TYPE LINE OF so_txttab.                
    DATA: workitem_task LIKE swwwihead-wi_rh_task,                   
          workitem_language LIKE swwwihead-wi_lang,                  
          workitem_short_text LIKE swwwihead-wi_text,                
          express LIKE sos04-l_***,                                  
          send_type LIKE sos04-l_art,                                
          send_language LIKE sy-langu,                               
          rc LIKE syst-subrc.                                        
    <b>DATA: SENDER like PA0105-USRID_LONG.                             </b>
    DATA: BEGIN OF address_strings OCCURS 3,                         
           a_string LIKE soxna-fullname,                             
         END OF address_strings.                                     
    DATA: attachments TYPE swc_object OCCURS 0 WITH HEADER LINE.     
    DATA: line_width LIKE thead-tdlinesize.                          
    DATA: wi_handle TYPE REF TO if_swf_run_wim_internal.             
    DATA: wi_container TYPE REF TO if_swf_cnt_container.             
    DATA: lv_excp TYPE REF TO cx_swf_run_wim.                               
    DATA: l_subrc TYPE sysubrc.                                             
    DATA: l_expiry_date TYPE sydatum.                                       
    DATA: l_settings TYPE swp_admin.                                                                               
    ~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    PERFORM trc_init <b>in program SWWSI</b> .                                     
    ~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                               
    swc_container addr_crea_container.                                                                               
    Get the input parameters.                                             
    swc_get_table container 'AddressStrings' address_strings.               
    swc_get_element container 'TypeId' send_type.                           
    swc_get_table container 'Receivers' receivers.                          
    swc_get_element container 'Express' express.                            
    swc_get_element container 'Language' send_language.                     
    swc_get_table container 'Attachments' attachments.                      
    swc_get_element container 'LineWidth' line_width.                       
    <b>SWC_GET_ELEMENT CONTAINER 'SENDER' SENDER.                              
    SWC_GET_PROPERTY SELF 'WorkitemId' WORKITEMID.                          </b> ~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    PERFORM trc_after_import_params <b>in program SWWSI</b>                        
                                    TABLES container                        
                                           address_strings                 
                                           receivers                       
                                           attachments                     
                                    USING send_type                        
                                          express                          
                                          send_language                    
                                          line_width.                      
    ~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
    Get some attributes of the object.                                   
    TRY.                                                                   
        CALL METHOD cl_swf_run_wim_factory=>find_by_wiid                   
          EXPORTING                                                        
            im_wiid     = <b>WorkitemId</b>                                       
          RECEIVING                                                        
            re_instance = wi_handle.                                       
        workitem_task = wi_handle->m_sww_wihead-wi_rh_task.                                                                               
    IF send_language IS INITIAL.                                       
          send_language = wi_handle->m_sww_wihead-wi_lang.                 
        ENDIF.                                                                               
    wi_container = wi_handle->get_wi_container( ).                     
      Perform variable substitution for task description.                
        CLEAR text_lines[].        
        IF line_width IS INITIAL.                      
         line_width = 75.                            
          line_width = 132.                            
        ENDIF.                                         
        CALL FUNCTION 'SWU_GET_TASK_TEXTLINES'         
          EXPORTING                                    
            task              = workitem_task          
            usage             = 'W'                    
            linewidth         = line_width             
            language          = send_language          
            container_handle  = wi_container           
          TABLES                                       
            ascii_text_lines  = text_lines             
          EXCEPTIONS                                   
            wrong_usage       = 01                     
            text_not_found    = 02                     
            text_system_error = 03.                    
        IF sy-subrc NE 0.                              
          exit_return 1004 space space space space.    
        ENDIF.                                                                               
    get work item text                               
        CALL METHOD wi_handle->get_witext              
          EXPORTING                                    
            im_language = send_language                
          RECEIVING                                                             
            re_witext   = workitem_short_text.                                                                               
    ~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
        PERFORM trc_after_text_generation <b>in program SWWSI</b>                      
                                          TABLES                                
                                             text_lines                         
                                          USING                                 
                                              wi_handle->m_sww_wihead           
                                              workitem_short_text               
                                              send_language                     
                                              line_width.                       
    ~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                               
    Fill the document content.                                                
        LOOP AT text_lines.                                                     
          ls_document_content-line = text_lines-tdline.   "note 510198          
          APPEND ls_document_content TO document_content.                       
        ENDLOOP.                                                                               
      * note 881594 - determine default expiry date for office documents      
        CALL FUNCTION 'SWP_ADMIN_DATA_READ'                                     
          IMPORTING                                                             
            wf_settings = l_settings.                                           
        IF NOT l_settings-doc_expiry IS INITIAL.                           
          l_expiry_date = sy-datum + l_settings-doc_expiry.                
        ENDIF.                                                                               
    *- There problems with the implementation of persistence service       
    *- of objects. The symptom of this problems is that sendorders         
    *- (SCOT) are not saved if an object pool exists. Therefore we         
    *- create a new session in this environments.                          
        DATA: t_receivers_por TYPE tswotobjid.                             
        DATA: t_attachments_por TYPE tswotobjid.                           
        DATA: receiver_object TYPE swc_object.                             
        DATA: attachment_object TYPE swc_object.                           
        DATA: por TYPE swotobjid.                                          
        DATA: result_por TYPE swotobjid.                                   
        DATA: rfcdest TYPE rfcdest.                                        
        DATA: documentname TYPE sodocchgi1-obj_name.                       
        DATA: documenttitle TYPE sodocchgi1-obj_descr.                     
        DATA: t_address_strings type swfstrtab.                                                                               
    LOOP AT receivers INTO receiver_object.                            
          swc_object_to_persistent receiver_object por.                    
          IF sy-subrc EQ 0.                                                
            swc_free_object receiver_object.                               
            APPEND por TO t_receivers_por.                                 
          ENDIF.                                                           
        ENDLOOP.                                          
        LOOP AT attachments INTO attachment_object.       
          swc_object_to_persistent attachment_object por. 
          IF sy-subrc EQ 0.                               
            swc_free_object attachment_object.            
            APPEND por TO t_attachments_por.              
          ENDIF.                                          
        ENDLOOP.                                          
        LOOP AT address_strings.                          
          append address_strings to t_address_strings.    
        endloop.                                                                               
    rfcdest = space.                                  
        IF cl_object_pool=>instance_exists( ) EQ 'X'.     
          rfcdest = 'NONE'.                               
        ENDIF.                                                                               
    documentname = 'Notiz'(001).                      
        documenttitle = workitem_short_text.              
        CALL FUNCTION <b>'ZSWW_SRV_MAIL_SEND'                </b>
          DESTINATION rfcdest                             
          EXPORTING                                       
            send_type               = send_type           
            send_language           = send_language       
            documentname            = documentname        
            documenttitle           = documenttitle                
            documentcontent         = document_content             
            receivers               = t_receivers_por              
            express                 = express                      
            documentexpirydate      = l_expiry_date                
            attachments             = t_attachments_por            
            address_strings         = t_address_strings            
            <b>SENDER                  = SENDER    </b>                   
          IMPORTING                                                
            result_por              = result_por                   
          EXCEPTIONS                                               
            document_not_send       = 1                            
            not_specified           = 2                            
            error_during_send       = 3                            
            error_during_attachment = 4                            
            OTHERS                  = 2.                           
        l_subrc = sy-subrc.                                        
    *~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~       
        PERFORM trc_after_send <b>in program SWWSI</b> USING l_subrc.     
    *~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~       
      Check the result of the method call.                       
        CASE l_subrc.                                              
          WHEN 0.                                                  
            Set the return element (the SOFM object).               
            swc_set_element container result result_por.           
            commit work.                                           
          WHEN 1.                                                  
            exit_return 1001 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.  
          WHEN 2.                                                  
            exit_return 1002 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.  
          WHEN 4.                                                  
            exit_return 1005 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.  
            WHEN OTHERS.                                           
              exit_return 1003 space space space space.            
          ENDCASE.                                                                               
    CATCH cx_swf_run_wim INTO lv_excp .                          
        exit_return 1006 <b>workitemid</b> space space space.                                                                               
    ENDTRY.                                                                               
    END_METHOD.

  • Getting the host name in the email subject line

    I am running SCOM 2012. Is there a way to have the host name of the server in the Subject line of an email?

    As alerts dont always have a servername included. ie Alerts usually have the name of the server or source included in Source or Path you might want to include both in the subject.
    Here is what we use but you can add the lines found in the body to the subject:
    Source: $Data[Default='Not Present']/Context/DataItem/ManagedEntityDisplayName$
    Path: $Data[Default='Not Present']/Context/DataItem/ManagedEntityPath$
    Cheers,
    Martin
    Blog:
    http://sustaslog.wordpress.com 
    LinkedIn:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Change the name of the email attachment

    Hello,
    When a form is submitted via email, how can I change the name of the file that is attached?
    Thanks,
    MDawn

    The attachment will take the name of the form that that is being attached. If you rename the file to what you want then it will take that name.
    Paul

  • How do get my password for my original Apple ID reset, when it keeps sending instructions to the emaill account I'm locked out of?

    My Iphone start bugging me for my apple id password recently, and i would put inm and move on; then sduddenly it siad I had the wrong password.
    I checked my passord book and entered it again, but it's saying it incorrect. Then when it try to reset it sends info to  my @ me mail account (my apple id), but i can't access that account without the password--AARGGHHH.

    If you know the answers to your security questions, you can reset the password without sending an email as explained in the first section of this article: http://support.apple.com/kb/HT5787.  If you dont' know the answer to your security questions, you'll have to contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.  You'll need your serial number, which you can find in Settings>General>About.

  • Maintaining Constant Sender Address in the Email of Batch Job

    Hi,
    I have created a smartform whcih will be sent via Batch job at a partcular time .And everytime the Sender Id is "BATCH.JOB". 
    Actually the businesswants the sender address to be XYZ.com instead of BATCH.JOB
    Iam using the below FM to send email.
    Can anyone help in this issue.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              document_data              = l_doc_data_objl
             document_type              = 'RAW'
              put_in_outbox              = 'X'
         IMPORTING
              sent_to_all                = l_sent_all
         TABLES
              object_content             = l_contents
              receivers                  = l_receivers
         EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
    Helpful answers will be rewarded.
    Regards
    Naveen

    Hi,
    Sorry for the delay. We can create a Outlook Inbox rule to achieve it. Please click Inbox > Rules > Manage Rules & Alerts > New Rule to create a rule with the following conditions and actions:
    Please change “people or public group” to [email protected] and edit a specific template by clicking “a specific template” in the action part.
    Hope it helps.
    Regards,
    Winnie Liang
    TechNet Community Support

  • My name in the email on the itouch..

    When I use my gmail on the ipod touch, my name doesn't appear right. My last name is spelled wrong. How can I fix that ? It is only like that when I use ipod touch to email other people.. Does anyone know ?

    Hi,
    Go to - Settings > Mail, Contacts... > "your" Gmail Account.
    Check and adjust your settings here, i.e. tap your name and correct it.
    Then hit "<Mail" in the top left corner to exit.
    Regards,
    Dud.

  • Why is the name on the email different to the name in my contacts

    On the top of an email may friends name is spelt wrong ie. Janey (then email address) insted of Janet (then email address).  In my contacts on my mac and my phone it is spelt correctly.  How can this be and how can i fix it.
    I thought it was because she was in my contacts twice.  Once as Janey and again as Janet, but she isn't.

    So check this out:
    http://nyacomputing.com/macbook-get-external-monitor-to-work-with-the-laptop-lid -closed/
    "Note: In some cases, your external display  is not fully utilized when you initially connect your external display, especially in “Mirrored” mode. This is okay if you just plan on using your external display, since the display resolution will scale to full width once the laptop lid is closed. But if you occasionally  plan on using both displays simultaneously then you need to do some tweaking to utilize the full width of the external display."
    So basically you uncheck mirroring.

Maybe you are looking for

  • How can I change "date created" exif on multiple images in bridge cs6?

    I want to sort images from two different cameras, but the time was set wrong on one of the cameras. I need to match the time. In order to do that I need to change the exif "date created" on all of the images from that camera by 1 hour. Is this possib

  • Copy of Raw Images

    I burned a series of RAW images to DVD on my Mac and then read them into Photoshop on my PC. Although all the images are RAW on the Mac, the copied as jpeg's to the DVD.??? How do I get the RAW images copied as RAW images? Chuck

  • Looking for a script that creates labels for linked image files in the layout

    I'm working on a large book with over 650 images and I need to show the file names along with the images in layout for proofing reasons. Does anyone have a script for that does something like this? I'm working in INDD 6. Appreciate your help / sugges

  • Convert document to PDF format

    I have to convert invoice ot PDF . CAn anyone tell me the function module to convert any type document(word doc, text doc) to pdf.I will revord the points thanks

  • CS3 - Scripts Menu item greyed out after using file info

    This looks like a bug to me, anyone else had the same problem ? Or solutions I have a couple of scripts which add an extra menu item called "Scripts" on the menu bar (and sub-menu items to call the scripts). If I open the 'file info' for a selected f