CL_BCS Status Mail

Hi,
I read a lot of threads regarding the BCS Framework. But for me nothing worked.
I'am sending e-mails form SAP. The Sender (in this case my e-mail adress) needs a confirmation mail, that the
mail was received successfully.
That's why I set this:
call method send_request->set_status_attributes
        exporting
          i_requested_status = 'A'
          i_status_mail           = 'A'.
In SCOT I chose Settings-> Confirmation of receipt. I selected "SAPConnect expects receipt confirmations for Internet mail"
But still. I don't get any status mails.
What am I missing?

Nothing.  Those settings are correct.  Since you know where to turn this on in SCOT, then you probably know there's a filter there as well, so I won't ask if there are any exclusions.  I'm assuming the sender address is correct and the reply is not being trapped in a filter or your exchange server?

Similar Messages

  • How to block the status mail for an inbound Idoc to a specific user

    Hi,
    I have to stop sending the error status mail to a specific user depenidng on Partner Type. This will trigger when an inbound Idoc contains status error(message type INVOIC &ORDRSP).This user needs other mails which are getting triggered with the same Idoc for the same partner. Basically, the requirement is to block only the status mail for that user. The statndard task for this is TS70008125 and it uses the agent determination rule 30000001 (Idoc Administrator).in WE46, this task is assigned to process code EDIR. I have copied the task to a custom task and changed the agent determination rule. I would like to know how will I configure this task so that this custom task will trigger for the status error, without altering other workflows for the same message type & the partner type. Or is there any other way to block the mail?
    Thanks,
    Santosh

    Hi,
    I have done the required coding to exclude the specific agent from the rule,copied the task and its ready. My question is how do I map this custom task to a particular partner type, for the message type INVOIC in WE20? (The message type used for the inbound Idoc is INVOIC). I checked the Partner profile in WE20. Most of the process code is using function module as the processing type.
    Thanks,
    Santosh

  • Send status mail on every fish passess or fails

    Hi All,
    I am using send mail option in FDM and it is working fine.
    However, i want mail to be sent on each workflow status.
    for instance - if import is sucessful, mail to be sent on this
    - if import fails, failure notification mail with error log to be sent.
    kindly let me know, how to get status on condition.
    Edited by: Raj - on Apr 25, 2011 2:37 AM

    You can use the fProcessStatus function as follows:
    With API.MaintenanceMgr.fProcessStatus(API.POVMgr.PPOVLocation, API.POVMgr.PPOVCategory, API.POVMgr.PPOVPeriod)
         If .lngStatus=xx Then ' Search for enmProcessState in FDM Object Browser for xx values to compare
              ' Do something
         Else
              ' Do something else
         End If
    End With
    Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = Nothing
    There are also Accelerators under Workflow / Process Management

  • Charm status mail notification creation

    Hi All,
    I configured Change request mang. in my solution manager server. now i want to create msg notification for all status changes in charm msg flow, like when change request approved by advisory board a automatic mail should generate for change manager.same as we use in service desk for mail notification.
    So please let me know few things which may be used for this activity.
    1. PPF application
    2. Action Profile
    3. Action definition entry
    4. smart form.
    if any more input require , please let me know...
    Regards
    Andrew
    Edited by: Andrew lee on Jan 27, 2009 8:07 AM

    Hi,
    You need to create an action in the action profile of your change document.
    there is no difference in creating an action for your Servicedesk or Change Request...
    its only your action profile for your transaction type (can be servicedesk or ChaRM).
    First try to understand what is the transaction type and action profile you are using.
    Your question is already answered.
    Feel free to revert back.
    -=-Ragu

  • ICloud status mail

    Having iCloud mail problems today.  How do I find out if there is a problem with mail in icloud, and what time it is expected to be resolved ?
    (thanks for patience...new to icloud and not sure where to look for this sort of service status info)
    Regards,
    kim

    icloud mail stil not working.  Not from Mail, nor from access via icloud.com.  Very frustrating.  in OS X Mail it keeps wating the password over and over again, saying icloud rejected it.  But I actually can log in with that passwrod to icloud.  Just when I try to then connect to the mail file in icloud, it puts an error message on the screen, offering to allow it to be reported to Apple (which I have selected to tod, several times). 
    The icloud status says it is all working fine.  But I don't believe this to be so.  previous icloud down posts from other users suggest this password rejected problem occurs when icloud email is down.  Pity status cannot be a bit closer to accurate.
    I see that recent status says some users experienced problems if not on Lion or current versions of Safari.  I am on Lion and also using 5.15 Safari.  so I think it should not be a conflict about this.
    How do we learn when this is working again ?  Is anything being done to fix the problems ?  I see other users having problems as well (from other posts).
    Regards,
    Kim

  • Status mail notifications in workflows

    Hello
    Is there a possibility to set a general value like "vibe notification" that is displayed as sender at mail notifications. The default vibe setting is that always the creator of the entry is displayed as the sender, which is not practical for us.
    Thx + best regards
    Thomas

    Hi Thomas,
    you need to set:
    ssf.outgoing.from.address=vibe_notification@myvibe .com
    in the file [vibe]/apache-tomcat/webapps/ssf/WEB-INF/classes/config/ssf-ext.properties. You need to restart Vibe to see changes.
    regards
    Pawel

  • Why my mac doesn't sync status mail read in iPhone/iPad?

    Hi,
    Mail i have already read in in my iPhone or iPad is listed in the Mac as unread.
    Why is not syncing?
    regards

    what osx version ?
    what itunes on osx version?
    what iphone ios version ?
    what ipad verson ?

  • The lotus mail about the Background Job status

    Hi ,
    I have a requirement where SAP users want the status of the background job in their lotus mail.The problem is job takes run for more than 15-20 hours and some times gets failed too.Whichever is the status , they want the update. The job is run daily in the night.So can not be done in the same program. Writng different program to check and send the mail can be an option.
    But My question would be
    1.Is there SAP standard funtionality /progarm to send the job log (not the spool) in the mail?
    Thanks in advance.

    Hi,
    You can run another job in background which can monitor this original program. I would die and schedule itself in an hour for next status. the logic goes this way.
    1) The original Z program call the Z job monitor prog with jobname.
    2) The Z job monitor prog checks the status of job and will send a status mail on finished or cancelled.
    3) if the job is still active, the z job monitor prog will schedule itself for after an hour to check the status again.
    thus steps 2 & 3 would be in loop till the original z prog finishes or gets cancelled.
    Regards,
    Nirmal

  • Workflow for Sales Order Release via Status Profile

    Dear all,
    i want to make a workflow for sales order which have 4 User Status in One status profile.
    Once Event triggered for sales order
    1.   Mail should go to main authority with sales order number.
    2.  Once authority will do some changes in the required field then he/she changes
         the user status-1 from defauts as per line Item and mail should go to department no-1 (Head authority).
    3.  Once again same changes in sales order but now user status-2 from user status-1
         as per line Item and mail should go to department no-2 (Head authority).
    4.  Once again same changes in sales order but now user status-3 from user status-2
         as per line Item and mail should go to department no-3 (Head authority).
    5.  Once again same changes in sales order but now user status-4 from user status-3
         as per line Item and mail should go to department no-4 (Head authority) .
    and parrally for each changes of Status mail should also go to User (Event Creator).
    6. Finally mail sholud go to User as you are permitted to do next business transaction for this sales order
    Please tel me the process as i am very new this topic and i am always going to stuck in Binding.
    please help me out.
    Thank You

    Hi Neeraj,
    First of all start with SWELS and SWEL T-Code to check if any standard event is getting triggered or not. If event is getting triggered, then use the same event to trigger the workflow; otherwise create a custom event of BO and use the same to trigger the workflow.
    Hope you are aware of T-Code SWO1 and delegation of BO. The BO used for your requirement will be BUS2000115.
    As you want the workflow to get triggered only for one status profile and one of its status, so use check function module. There set the condition for you status profile and status.
    The FM which you will be using the most is CRM_ORDER_READ. To read the status, you can also use CRM_STATUS_READ_OW.
    Now simply make the approval steps in the workflow using activity. In the activity, you can use the standard method USERSTATUSPOPUP to send the workitem for approval. In each step use the same activity with different agents as approvers.
    Just go with these things and let me know if you get stuck up somewhere.
    Regards,
    Guddan

  • How to send a mail as .txt attachment ,As data is seperated by pipeline

    Hi ,
    I got a requirement to send a mail in .txt format (Using OOPS) and the data inside the mail is seperated by '|'  Pls help me in this regard.
    i have written a mail to send the mail in .xls it is working fine for me in .xls but i dont know how to write the same for txt where data should be seperated by '|'.
    Regards
    sas
    Ps:  i am attaching my code. and please specify where i need to modify to achieve the same. and any perfromance enhacements are also welcome.
    *& Report  ZGBTEST02
    REPORT  YSAS_MAIL2.
    *Changes done by sas
    *PARAMETERS: P_MAIL TYPE AD_SMTPADR OBLIGATORY, " G C by sas
    *P_MAIL1 TYPE AD_SMTPADR OBLIGATORY." G by sas
    tables: adr6.
    SELECT-OPTIONS:p_eaddr FOR adr6-SMTP_ADDR NO INTERVALS .
    *end of changes by sas
    DATA: I_GLT0 TYPE STANDARD TABLE OF GLT0.
    DATA: I_MARA  TYPE STANDARD TABLE OF MARA.  " MARA Entries
    *      I_MARC  TYPE STANDARD TABLE OF MARC.  " MARC Entries
    DATA: L_TEXT  TYPE CHAR255.  " Text
    DATA: L_LINES TYPE I,
          L_SIZE  TYPE SOOD-OBJLEN.
    " Size of Attachment
    * Mail related
    DATA: I_CONTENT         TYPE   SOLI_TAB, " Mail content
          I_ATTACH          TYPE   SOLI_TAB, " Attachment
          I_ATTACH1         TYPE   SOLIX_TAB. " Attachment
    DATA: L_SEND_REQUEST    TYPE REF TO    CL_BCS,
                                                " E-Mail Send Request
          L_DOCUMENT        TYPE REF TO    CL_DOCUMENT_BCS,
                                                " E-Mail Attachment
          L_RECIPIENT       TYPE REF TO    IF_RECIPIENT_BCS,
                                                " Distribution List
          L_SENDER          TYPE REF TO    IF_SENDER_BCS,
                                                " Address of Sender
          L_UNAME           TYPE           SALRTDRCPT,
                                                " Sender Name(SY-UNAME)
          L_BCS_EXCEPTION   TYPE REF TO    CX_DOCUMENT_BCS,
                                                " BCS Exception
          L_ADDR_EXCEPTION  TYPE REF TO    CX_ADDRESS_BCS,
                                                " Address Exception
          L_SEND_EXCEPTION  TYPE REF TO    CX_SEND_REQ_BCS.
    " E-Mail sending Exception
    *Constants------------------------------------------------------------*
    CONSTANTS: C_TAB(1) TYPE C VALUE
               CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
                                         " Tab Character
               C_CR(1)  TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF,
                                         " Line Feed for End-Of_line
               C_EXT    TYPE SOODK-OBJTP VALUE 'XLS'. " XLS Extension
    START-OF-SELECTION.
      SELECT * FROM MARA INTO TABLE I_MARA UP TO 20 ROWS.
      IF SYST-SUBRC EQ 0.
    *    SELECT * FROM MARC INTO TABLE I_MARC FOR ALL ENTRIES IN I_MARA WHERE MATNR = I_MARA-MATNR.
      ENDIF.
    *select * from glt0 into table i_glt0.
    * Preparing body of the Mail
      MOVE 'SAP Material Master Records' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      CLEAR L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE 'Thanks,' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE 'SAP MM' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    * Creates persistent send request
      TRY.
          L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    * Creating Document
          L_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                                        I_TYPE  = 'RAW'
                                        I_TEXT  = I_CONTENT[]
                                        I_SUBJECT = 'SAS MASTER Records' ).
    * Preparing contents of attachment with Change Log
          PERFORM PREPARE_ATTACHMENT.
          DESCRIBE TABLE I_MARA LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
          L_SIZE = L_LINES * 2 * 255.
    * Adding Attachment
          CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = C_EXT
              I_ATTACHMENT_SIZE    = L_SIZE
              I_ATTACHMENT_SUBJECT = 'MARA Details'
    *          i_att_content_hex    = i_attach[].
              I_ATT_CONTENT_TEXT   = I_ATTACH[].
    *      DESCRIBE TABLE I_MARC LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
    *      L_SIZE = L_LINES * 2 * 255.
    ** Adding Attachment
    *      CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
    *        EXPORTING
    *          I_ATTACHMENT_TYPE    = C_EXT
    *          I_ATTACHMENT_SIZE    = L_SIZE
    *          I_ATTACHMENT_SUBJECT = 'MARC Details'
    *          I_ATT_CONTENT_HEX    = I_ATTACH1[].
    **          i_att_content_text   = i_attach1[].
    * Add document to send request
          CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT ).
          DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
               LR_SEND TYPE REF TO CL_BCS.
    * Preparing the sender object
    *      LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
           DATA: L1_UNAME TYPE SY-UNAME.
           L1_UNAME = SY-UNAME.
           LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
    * Setting the sender
          CALL METHOD L_SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = LR_SENDER.
    * E-Mail
       LOOP AT P_EADDR.
          TRANSLATE P_EADDR-LOW TO LOWER CASE.
          L_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_EADDR-LOW ).
          CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT  = L_RECIPIENT
              I_EXPRESS    = 'U'
              I_COPY       = ' '
              I_BLIND_COPY = ' '
              I_NO_FORWARD = ' '.
           IF SY-subrc EQ 0.
              WRITE:/'** SUCCESS:  Email Sent to', p_eaddr-LOW COLOR COL_NORMAL.
            ELSE.
              WRITE:/'** ERROR: Failed to send Email to',p_eaddr-LOW COLOR COL_NEGATIVE .
            ENDIF.
          ENDLOOP.
    *Trigger E-Mail immediately
          L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
          CALL METHOD L_SEND_REQUEST->SEND( ).
          COMMIT WORK.
        CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
        CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
        CATCH CX_ADDRESS_BCS  INTO L_ADDR_EXCEPTION.
      ENDTRY.
    *&      Form  PREPARE_ATTACHMENT
    FORM PREPARE_ATTACHMENT .
      FIELD-SYMBOLS: <LFS_TABLE>,    " Internal table structure
                     <LFS_CON>.      " Field Content
      DATA: L_TEXT TYPE CHAR1024.     " Text content for mail attachment
      DATA: L_CON TYPE STRING. "(50) TYPE c.        " Field Content in character format
      DATA: L_STR TYPE STRING,
            L_STR1 TYPE STRING.
      DATA: LS_SOLIX TYPE SOLIX.
    * Columns to be tab delimeted
      LOOP AT I_MARA ASSIGNING <LFS_TABLE>.
        DO.
          ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
                 TO <LFS_CON>.
          IF SY-SUBRC NE 0.
            CONCATENATE C_CR L_TEXT INTO L_TEXT.
    *        CONCATENATE l_str c_cr l_text INTO l_str.
    *        ls_solix-line = l_text.
    *        APPEND ls_solix TO i_attach.
            APPEND L_TEXT TO I_ATTACH.
            EXIT.
          ELSE.
            CLEAR: L_CON.
            MOVE <LFS_CON> TO L_CON.
            CONDENSE L_CON.
            IF SY-INDEX = 1.
              CLEAR: L_TEXT.
              MOVE L_CON TO L_TEXT.
            ELSE.
              CONCATENATE L_TEXT L_CON INTO L_TEXT
                 SEPARATED BY C_TAB.
            ENDIF.
          ENDIF.
        ENDDO.
      ENDLOOP.
    ** Columns to be tab delimeted
    *  LOOP AT I_MARC ASSIGNING <LFS_TABLE>.
    *    DO.
    *      ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
    *             TO <LFS_CON>.
    *      IF SY-SUBRC NE 0.
    *        CONCATENATE C_CR L_TEXT INTO L_TEXT.
    **        CONCATENATE l_str c_cr l_text INTO l_str1.
    *        LS_SOLIX-LINE = L_TEXT.
    *        APPEND LS_SOLIX TO I_ATTACH1.
    *        EXIT.
    *      ELSE.
    *        CLEAR: L_CON.
    *        MOVE <LFS_CON> TO L_CON.
    *        CONDENSE L_CON.
    *        IF SY-INDEX = 1.
    *          CLEAR: L_TEXT.
    *          MOVE L_CON TO L_TEXT.
    *        ELSE.
    *          CONCATENATE L_TEXT L_CON INTO L_TEXT
    *             SEPARATED BY C_TAB.
    *        ENDIF.
    *      ENDIF.
    *    ENDDO.
    *  ENDLOOP.
    *  i_attach1[] = i_attach[].
    ENDFORM.                    " PREPARE_ATTACHMENT

    Hi Sas,
    I have copied the code and executed and it is working fine. I'm getting the text attachement in the email.
    * Adding Attachment
          CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = 'TXT'          "  C_EXT   My change
              I_ATTACHMENT_SIZE    = L_SIZE
              I_ATTACHMENT_SUBJECT = 'MARA Details'
    *          i_att_content_hex    = i_attach[].
              I_ATT_CONTENT_TEXT   = I_ATTACH[].
    CONCATENATE i_mara-MATNR
                             i_mara-ERSDA
                             i_mara-ERNAM
                             i_mara-LAEDA
                   INTO   L_TEXT
                 SEPARATED BY '|'.

  • How to send a mail as .txt attachment ?

    Hi all,
    I got a requirement to write code for sending mail in oops.
    i have written code for .xls which is working fine. But requirement is to send the mail in the format of txt.
    i just only chnge the .xls to .txt where i can see the output properly in sap but problem is that i am unable to get the proper alignment. when i execute the report and see the output in sost i can see the attachment.i am downloading the attachment there only(Our server is not configured to get the mails directly) .So when i open the saved text file on my pc the output is appearing as follows...
    pernr nachn vorna
            0001 L0001 F0001
                0002 L0002 F0002
                   0003 L0003 F0003
                         0004 L0004 F0004...
    Where it should come in straight line as follows in my o/p code..
    pernr nachn vorna
    0001 L0001 F0001
    0002 L0002 F0002
    0003 L0003 F0003
    0004 L0004 F0004...
    i am puttin g my code ..please correct me where i am wrong .....waiting for your valuabel inputs..
    *& Report  ZGBTEST02
    REPORT  YSAS_MAIL2.
    *Changes done by sas
    *PARAMETERS: P_MAIL TYPE AD_SMTPADR OBLIGATORY, " G C by sas
    *P_MAIL1 TYPE AD_SMTPADR OBLIGATORY." G by sas
    TABLES: ADR6.
    SELECT-OPTIONS:P_EADDR FOR ADR6-SMTP_ADDR NO INTERVALS .
    *end of changes by sas
    DATA: I_GLT0 TYPE STANDARD TABLE OF GLT0.
    *DATA: I_pernr  TYPE STANDARD TABLE OF pa0002.  " MARA Entries
    DATA: BEGIN OF I_PERNR OCCURS 1 ,
    PERNR TYPE PA0002-PERNR,
    NACHN TYPE PA0002-NACHN,
    VORNA TYPE PA0002-VORNA,
    END OF I_PERNR..
    *      I_MARC  TYPE STANDARD TABLE OF MARC.  " MARC Entries
    DATA: L_TEXT  TYPE CHAR255.  " Text
    DATA: L_LINES TYPE I,
          L_SIZE  TYPE SOOD-OBJLEN.
    " Size of Attachment
    * Mail related
    DATA: I_CONTENT         TYPE   SOLI_TAB, " Mail content
          I_ATTACH          TYPE   SOLI_TAB, " Attachment
          I_ATTACH1         TYPE   SOLIX_TAB. " Attachment
    DATA: L_SEND_REQUEST    TYPE REF TO    CL_BCS,
                                                " E-Mail Send Request
          L_DOCUMENT        TYPE REF TO    CL_DOCUMENT_BCS,
                                                " E-Mail Attachment
          L_RECIPIENT       TYPE REF TO    IF_RECIPIENT_BCS,
                                                " Distribution List
          L_SENDER          TYPE REF TO    IF_SENDER_BCS,
                                                " Address of Sender
          L_UNAME           TYPE           SALRTDRCPT,
                                                " Sender Name(SY-UNAME)
          L_BCS_EXCEPTION   TYPE REF TO    CX_DOCUMENT_BCS,
                                                " BCS Exception
          L_ADDR_EXCEPTION  TYPE REF TO    CX_ADDRESS_BCS,
                                                " Address Exception
          L_SEND_EXCEPTION  TYPE REF TO    CX_SEND_REQ_BCS.
    " E-Mail sending Exception
    *Constants------------------------------------------------------------*
    CONSTANTS: C_TAB(1) TYPE C VALUE
               CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
                                         " Tab Character
               C_CR(1)  TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF,
                                         " Line Feed for End-Of_line
               C_EXT    TYPE SOODK-OBJTP VALUE 'TXT'. " XLS Extension
    START-OF-SELECTION.
      SELECT PERNR NACHN VORNA  FROM PA0002 INTO CORRESPONDING FIELDS OF TABLE I_PERNR UP TO 20 ROWS.
    *select * from glt0 into table i_glt0.
    * Preparing body of the Mail
    *  MOVE 'SAP Material Master Records' TO L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
    *  CLEAR L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
    *  MOVE 'Thanks,' TO L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
    *  MOVE 'SAP MM' TO L_TEXT.
    *  APPEND L_TEXT TO I_CONTENT.
      MOVE '<BR>Attached is your HRIS report(s) generated from the Firm''s' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE ' Human Resources  Information System (SAP).' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE '<BR>  ' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
      MOVE '<BR>This is an automated report.' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    *        MOVE '<BR>  ' TO l_text.
    *        APPEND l_text TO i_content.
      MOVE '<BR>  ' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    *        MOVE '<BR>Please do not reply to this email' TO l_text.
    *        APPEND l_text TO i_content.
    *        MOVE '<BR>  ' TO l_text.
    *        APPEND l_text TO i_content.
      MOVE '<BR>Thank you.' TO L_TEXT.
      APPEND L_TEXT TO I_CONTENT.
    * Creates persistent send request
      TRY.
          L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    * Creating Document
          L_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                                        I_TYPE  = 'RAW'
                                        I_TEXT  = I_CONTENT[]
                                        I_SUBJECT = 'Automated HRIS (SAP) Report' ).
    DATA: W_PERNR LIKE I_PERNR.
    * Preparing contents of attachment with Change Log
          PERFORM PREPARE_ATTACHMENT.
          DATA: compressed like solisti1 occurs 10 with header line.
    DATA: decompressed like solisti1 occurs 10 with header line.
          CALL FUNCTION 'TABLE_COMPRESS'
    *   IMPORTING
    *     COMPRESSED_SIZE       =
                        TABLES
    *      in                    = eerec
                          in                    = i_attach
                          out                   = compressed.
          CALL FUNCTION 'TABLE_DECOMPRESS'
            TABLES
              in  = compressed
              out = decompressed.
          DESCRIBE TABLE decompressed LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
          L_SIZE = L_LINES * 2 * 255.
    * Adding Attachment
          CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = C_EXT
              I_ATTACHMENT_SIZE    = L_SIZE
              I_ATTACHMENT_SUBJECT = 'Hr Details'
    *          i_att_content_hex    = i_attach[].
              I_ATT_CONTENT_TEXT   = decompressed[].
    *      DESCRIBE TABLE I_MARC LINES L_LINES.
    * Size to multiplied by 2 for UNICODE enabled systems
    *      L_SIZE = L_LINES * 2 * 255.
    ** Adding Attachment
    *      CALL METHOD L_DOCUMENT->ADD_ATTACHMENT
    *        EXPORTING
    *          I_ATTACHMENT_TYPE    = C_EXT
    *          I_ATTACHMENT_SIZE    = L_SIZE
    *          I_ATTACHMENT_SUBJECT = 'MARC Details'
    *          I_ATT_CONTENT_HEX    = I_ATTACH1[].
    **          i_att_content_text   = i_attach1[].
    * Add document to send request
          CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT ).
          DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
               LR_SEND TYPE REF TO CL_BCS.
    * Preparing the sender object
    *      LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
          DATA: L1_UNAME TYPE SY-UNAME.
          L1_UNAME = SY-UNAME.
          LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
    * Setting the sender
          CALL METHOD L_SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = LR_SENDER.
    * E-Mail
          LOOP AT P_EADDR.
            TRANSLATE P_EADDR-LOW TO LOWER CASE.
            L_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_EADDR-LOW ).
            CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
              EXPORTING
                I_RECIPIENT  = L_RECIPIENT
                I_EXPRESS    = 'U'
                I_COPY       = ' '
                I_BLIND_COPY = ' '
                I_NO_FORWARD = ' '.
            IF SY-SUBRC EQ 0.
              WRITE:/'** SUCCESS:  Email Sent to', P_EADDR-LOW COLOR COL_NORMAL.
            ELSE.
              WRITE:/'** ERROR: Failed to send Email to',P_EADDR-LOW COLOR COL_NEGATIVE .
            ENDIF.
          ENDLOOP.
    *Trigger E-Mail immediately
          L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
          CALL METHOD L_SEND_REQUEST->SEND( ).
          COMMIT WORK.
        CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
        CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
        CATCH CX_ADDRESS_BCS  INTO L_ADDR_EXCEPTION.
      ENDTRY.
    *&      Form  PREPARE_ATTACHMENT
    FORM PREPARE_ATTACHMENT .
      FIELD-SYMBOLS: <LFS_TABLE>,    " Internal table structure
                     <LFS_CON>.      " Field Content
      DATA: L_TEXT TYPE CHAR1024.     " Text content for mail attachment
      DATA: L_CON TYPE STRING. "(50) TYPE c.        " Field Content in character format
      DATA: L_STR TYPE STRING,
            L_STR1 TYPE STRING.
    *data: w_pernr type TABLE OF I_PERNR.
      DATA: LS_SOLIX TYPE SOLIX.
    *  CONCATENATE 'PERNR' 'FIRST NAME' 'Last Name' C_CR INTO L_TEXT SEPARATED BY '|'.
    *  append l_text to i_attach.
    *  clear l_text.
    * Columns to be tab delimeted
      LOOP AT I_PERNR ASSIGNING <LFS_TABLE>.
        DO.
          ASSIGN COMPONENT SY-INDEX OF STRUCTURE <LFS_TABLE>
                 TO <LFS_CON>.
          IF SY-SUBRC NE 0.
            CONCATENATE C_CR L_TEXT INTO L_TEXT.
    *        CONCATENATE l_str c_cr l_text INTO l_str.
    *        ls_solix-line = l_text.
    *        APPEND ls_solix TO i_attach.
            APPEND L_TEXT TO I_ATTACH.
            EXIT.
          ELSE.
            CLEAR: L_CON.
            MOVE <LFS_CON> TO L_CON.
            CONDENSE L_CON.
            IF SY-INDEX = 1.
              CLEAR: L_TEXT.
              MOVE L_CON TO L_TEXT.
            ELSE.
              CONCATENATE L_TEXT L_CON INTO L_TEXT
                 SEPARATED BY C_TAB.
            ENDIF.
          ENDIF.
        ENDDO.
      ENDLOOP.
    *  i_attach1[] = i_attach[].
    ENDFORM.                    " PREPARE_ATTACHMENT
    Please if any one having 6.0 version please upload it and see..
    Regards
    Sas

    Hi ,
    Did you downloaded from  SOST  using the display icon and inside that 4th tab for attachment ....
    and see?
    Regards
    sas
    pS: THE FIRST page is not allowing the spaces in sdn...
    i am getting o/p as
    pernr vochn norna
    .........0001 f0001 l0001
    .................0002 F0002 L0002
    .......................0003 F0003 L0003.....
    Please remove dots and understand that is the o/p i am getting in my presenation file
    i just expecting the o/p as told earlier..
    Regards
    sas

  • How do I fix an Apple mail account that is "confused"

    Last week I moved a mail account from one host provider to godaddy.
    I updated the incoming and outgoing mail servers in Apple Mail and did a "Get Mail".
    Two new messages came in so it appeared everything was fine, however I realized Mail
    was not retrieving any other new messages.  Mail does not report any errors, just does
    not retrieve messages.
    When I "Get Info" on the account I can see 75 unread messages under "All messages on POP server".
    For some reason Mail will not retrieve them.
    I can log into the account via webmail and confirmed that the password is correct, and that the account
    is working properly.
    I have deleted the account in Apple Mail several times and recreated as POP and IMAP with the same
    result. 
    Apple Mail seems to have "memorized" the account even after I delete it, it acts as if some preference
    has incorrect information about which messages have been downloaded?
    Any help would be greatly appreciated!
    Keith

    Thank you for the suggestions BDAqua!
    The new Smart Mailbox was unable to retrieve any new messages.
    Something strange about Connection Doctor, at the top of the window it reports "Internet Connection Status:  "Mail was unable to connect to the internet, click the "Assist me..."  button for help diagnosing the problem."  (this report is false because the other two accounts work).   When I click Assist me as instructed Network Diagnostics reports "This computer's Internet connection appears to be operating normally. Are you sure you want to use Diagnostics?"
    All other status lights are Green within Connection Doctor, it reports "Connection and login to server succeeded" with all three mail accounts and all three smtp servers.
    In safe mode, Disk Utilities repaired some permissions, no disk repair was required.
    After moving the Cache files, Envelope Index and rebooting, Mail went through the Message Import process but there was no change.
    I remvoved MessageRules.plist and backup, still no change.
    I'm not getting a password rejection, no rejection or error at all.
    In Keychain access I deleted every entry having to do with mail accounts and servers.  I reentered passwords in Mail accounts and still no change.
    I'm using no SSL and ports check out.
    After all the above I'm still in the same situation, have not found a way to create a new account that is capable of retrieving from my main email box. Very frustrating, I can't seem to figure out a way to bypass the "hidden" library file that's corrupt.
    It's curious that the setting in Accounts>Advanced>"Account Directory" there is a "choose" button but you can't click it.  I was hoping I could chose a new location to fix the problem.
    Thanks for all your suggestions,
    Keith

  • BUG: Mail (GMAIL IMAP) no longer connects over ethernet, only wireless

    I too was puzzled last night when I couldn't get my gmail account to go online. I did a lot of reading, and tried various things (to no avail), but ultimately decided it was just a configuration error, or combination of other programs running...or maybe even (as read in other posts) Google's servers. I found the server problem unlikely though, since I could also log in via the web interface.
    Mysteriously, opening Mail on a separate MBP over either ethernet or wireless was 100% normal...as was the imap connection on my iPad via 3G or wireless...so what was causing my brand new MBAir to choke? Sleep on it, I said to myself.
    Well here I am on day 2 of Mail refusing to connect. Connection doctor always shows 'green' next to connection status (Mail was able to connect to the internet), but red for both imap and smtp servers, with messages reading "Mail could not connect to this IMAP/SMTP server. Check your network connection and that you entered the correct information in Account preferences. Also verify the server supports SSL. If it does not, deselect the 'Use SSL' checkbox in the Advanced tab of Account preferences."
    I've eliminated the server issue, because my MBP still opened Mail just fine while connected to my network here at home.
    Then, just for fun, I decided to unplug my ethernet (which is attached via Apple's own USB Ethernet adapter), and turn on my wireless. Almost instantly, Mail popped to life on my MBAir, and started syncing with gmail/IMAP.
    In the two months I have owned this MBAir, getting Mail to work over ethernet had never been a problem. My issues seemed to parallel the recent influx of problems reported with gmail & IMAP.
    I still cannot get Mail to access gmail over the USB Ethernet Adapter. What gives, Apple? Anyone else experiencing these symptoms on these new MBAirs?
    Model Name: MacBook Air
    Boot ROM Version: MBA31.0061.B01
    SMC Version (system): 1.66f54

    Turns out I was a victim of my own [tight] security. I had a SOCKS proxy enabled on my Ethernet for when I take this laptop on the road...I used it to connect securely to my server back home. Obviously at home my SOCKS proxy was not connecting from within my private network. As soon as I removed the SOCKS proxy, voilá! GMAIL IMAP works perfectly over the USB Ethernet adapter once again.
    I hope this serves as a reminder to thoroughly check your network settings before driving yourself mad!
    Cheers!

  • Need an enhancement after releasing a PO Need to send a mail to vendor

    Hi all,
              I am having a requirement that, need to send a mail and attachment whenever a PO get released.
    Can anyone help to find the enhancement for to write the code to send a mail to vendor.
    Regards.
    Ranganadh.

    Hi,
    To send a mail when a new PO is created.
    can be achievd by using  class cl_bcs and BADI method
    IF_EX_ME_PROCESS_PO_CUST~POST of BADI ME_PEOCESS_PO_CUST.
    We can aslo configure the OUTPUT TYPE as MAIL in transaction NACE. This is usually doen by the Functional consultant.
    Pls look into these exapmles which clearly explains abt the process of sending a  mail-
    Sending Mail using class cl_bcs
    Re: Mail sending program
    Re: SCOT and FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • RE: Mail sent to SAP inbox-Urgent.

    Hi,
    I sent mail with attachment( internal table contents) to SAP inbox using the below codw.
       DATA: l_text TYPE char255.  " Text
    *DATA: l_text(280) TYPE c.  " Text
    DATA: l_lines TYPE i,
          l_size    TYPE  sood-objlen.      " Size of Attachment
    Mail related
    DATA: i_content         TYPE   soli_tab, " Mail content
          i_attach          TYPE   soli_tab. " Attachment
    DATA: l_send_request    TYPE REF TO    cl_bcs,   " E-Mail Send Request
          l_document        TYPE REF TO    cl_document_bcs,   " E-Mail Attachment
          l_recipient       TYPE REF TO    if_recipient_bcs,  " Distribution List
          l_sender          TYPE REF TO    if_sender_bcs,     " Address of Sender
          l_uname           TYPE           salrtdrcpt,        " Sender Name(SY-UNAME)
          l_bcs_exception   TYPE REF TO    cx_document_bcs,   " BCS Exception
          l_addr_exception  TYPE REF TO    cx_address_bcs,    " Address Exception
          l_send_exception  TYPE REF TO    cx_send_req_bcs.   " E-Mail sending Exception
    DATA: l_recipient_soos  TYPE           soos1.
    *data : p_uname TYPE ad_smtpadr .
    FORM send_to_sap_mail .
    Preparing body of the Mail
      MOVE 'Pending Delivery Documents List' TO l_text.
      APPEND l_text TO i_content.
    Preparing contents of attachment with Change Log
      PERFORM prepare_attachment.
    Creates persistent send request
      TRY.
          l_send_request = cl_bcs=>create_persistent( ).
    Creating Document
          l_document = cl_document_bcs=>create_document(
                                        i_type  = 'RAW'
                                        i_text  = i_content[]
                                        i_subject = 'Pending Delivery Documents' ).
         DESCRIBE TABLE i_mara LINES l_lines.
    DESCRIBE TABLE it_output LINES l_lines.
    Size to multiplied by 2 for UNICODE enabled systems
          l_size = l_lines * 2 * 255.
    Adding Attachment
          CALL METHOD l_document->add_attachment
            EXPORTING
              i_attachment_type    = c_ext
              i_attachment_size    = l_size
              i_attachment_subject = 'Pending Delivery Documents'
              i_att_content_text   = i_attach[].
    Add document to send request
          CALL METHOD l_send_request->set_document( l_document ).
    Get Sender Object
          l_uname = sy-uname.
          l_sender = cl_sapuser_bcs=>create( l_uname ).
          CALL METHOD l_send_request->set_sender
            EXPORTING
              i_sender = l_sender.
    E-Mail
          TRANSLATE p_uname TO UPPER CASE.
         l_recipient_soos-recesc = 'B'.
         l_recipient_soos-recnam = p_uname.
    Preparing recepient from SAP Logon Name
              CALL METHOD cl_send_request_bcs=>create_recipient_from_soos1
                    EXPORTING
                      i_soos1 = l_recipient_soos
                    RECEIVING
                      result = l_recipient.
    Add Recipient
          CALL METHOD l_send_request->add_recipient
            EXPORTING
              i_recipient  = l_recipient
              i_express    = 'U'
              i_copy       = ' '
              i_blind_copy = ' '
              i_no_forward = ' '.
    *Trigger E-Mail immediately
          l_send_request->set_send_immediately( 'X' ).
          CALL METHOD l_send_request->send( ).
          COMMIT WORK.
        CATCH cx_document_bcs INTO l_bcs_exception.
        CATCH cx_send_req_bcs INTO l_send_exception.
        CATCH cx_address_bcs  INTO l_addr_exception.
      ENDTRY.
    Refresh it_output.
    clear l_text.
    clear I_content.
    refresh I_attach.
    ENDFORM.                    " Send_to_sap_mail
    *&      Form  prepare_attachment
          text
    -->  p1        text
    <--  p2        text
    FORM prepare_attachment .
    FIELD-SYMBOLS: <lfs_table>,    " Internal table structure
                     <lfs_con>.      " Field Content
    DATA: l_text TYPE char1024.     " Text content for mail attachment
    DATA: l_text(1280) TYPE c.     " Text content for mail attachment
      DATA: l_con(50) TYPE c.        " Field Content in character format
    Columns to be tab delimeted
      LOOP AT it_output ASSIGNING <lfs_table>.
        DO.
          ASSIGN COMPONENT sy-index OF STRUCTURE <lfs_table>
                 TO <lfs_con>.
          IF sy-subrc NE 0.
            CONCATENATE c_cr l_text INTO l_text.
            APPEND l_text TO i_attach.
            EXIT.
          ELSE.
            CLEAR: l_con.
            MOVE <lfs_con> TO l_con.
            CONDENSE l_con.
            IF sy-index = 1.
              CLEAR: l_text.
              MOVE l_con TO l_text.
            ELSE.
              CONCATENATE l_text l_con INTO l_text
                 SEPARATED BY c_tab.
            ENDIF.
          ENDIF.
        ENDDO.
      ENDLOOP.
    ENDFORM.                    " prepare_attachment
    Here my problem is in my internal table i have 30 columns and the row output length is more than 255 char,
    and the SOLI structure fields defined as CHAR255, thats why when i am opening the sap mail attachment in Excel sheet, last three fields data is not displaying can any one please let me know the answer.

    loop at output_table.
      concatenate g_string
                         filed1
                         filed2
                     CL_ABAP_CHAR_UTILITIES=>CR_LF
      into g_string separted by
               CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    endloop.
    now pass the filled string to
    CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
        EXPORTING
          text            = g_string
      IMPORTING
        LENGTH          = LENGTH
        TABLES
          ftext_tab       = obj_bin.
    pass this objbin to SO_NEW_DOCUMENT_ATT_SEND_API1
    now you will get the desired excel sheet.
    NOte: dont put urgent in your subject.it is arule that people should not ans question which have urgent.
    Edited by: S.r.v.r.Kumar on Jun 18, 2008 10:25 PM

Maybe you are looking for

  • Expanding the drives into a raid 5 array?

    I am going to purchase a powermac soon, but I want to understand raid arrays a bit better. I am an HD video editor, and am getting into large files sizes...Red, XDCam, 2K etc. I can buy any 4TB raid array with a card, or I read that I can add 3 extra

  • Oracle 11g software setup file  needful to install on windows 7

    Hi, Any body Can provide the download link for oracle 11g software setup to install on windows 7.

  • VAT Identification Exchange System (VIES) 394

    Hello, This is a new report based on legal request in Romania. I run this report (transaction /CEECV/ROFI_VIES ) but the column "Amount" is filled in with zero. It means that the value in this report is only tax base amount without VAT amount. I need

  • Printing options in parameters of function module of smartforms

    HI experts, i hav a loop inside driver program where for every loop it calls smartform and the printing is continuous. But can any one help me how to control this by not displaying LPD. So that directly i can see the preview after all loop passes Adv

  • Steps for Creating Process chain!

    Hi All, I want to create process chain which can schedule IP and run the concern job to fill infocubes/ODS?Can someone please guide me stepwise how to proceed.Some sort of doc will eb appreciated.