CS02 - trigger mail at save with detail of changes

Dear Sapians,
  I come through a requirement in which , i have to trigger a mail to authorized user with detail of changes done in CS02 by unauthorized user.
I got a BADI 'BOM_UPDATE'  'CHANGE_AT_SAVE'.
And as per my understanding change detail are in table CDHDR and CDPOS.
And in above table data is loaded after CS02 is saved.
So, no detail of recent changes done is reflected in CDHDR and CDPOS .
So, I am looking for some USER-EXITS or BADI , which help me out in this scenario.
Scenario is :--
  a).
      When changes are done in CS02 by some UNAUTHORIZED USER, changes has to be verified by AUTHORIZED USER, so change detail has to be send to AUTHORIZED USER.
Awaiting for your reply
Thanks,
Jeet

Dear
Sorry for not discussing the whole scenario.
Actually , If some unauthorized user gas done some changes in CS02  than BOM Status is to be '2',
                so mail is needed to ask authorized user permission to set BOM status '1'.
But in the same time , authorized wanna know what changes are done. and changes are recorded in cdhdr and cdpos tables which is updated after after bom is saved not in between.
That why mail is needed.

Similar Messages

  • LPX file size grows every time I save (with almost no changes) - WHY?

    Hi all,
    I am just now starting to move from Logic 9 to Logic Pro X. I first imported a very simple file from logic nine as a folder project and did not import anything except the file.
    - Then, I immediately saved it.  took more than 30 secs on core i7 - why so long?
    - next I "saved a copy as" file 1a - file size 700k - nice and small.
    - that I loaded the first logic X file back in and muted a few things and saved again
    - I made some other very minor changes like muting and re-saved three or four times.
    Here is what is strange –
    Original file = 1 MB
    main LX file was 2 megs and each subsequent save gained about 1 MB each time I hit save! So, the final grew to 6 MB after just a few saves!
    I checked to see if there was some large edit history file I could purge – but it was empty because all I had done was change some mutes…
    Q: what is going on with this large file size growing every time I hit save without any major changes – I would like to know what's going on.

    It has to do with undo history, backups, and autosaves.  You can see these if you right click on the file and show package contents.  Explore in there and you should see these growing in the alternatives folder.  I would imagine there is kind of a limit to how many of these there are, but haven't looked to closely at it.

  • Need to have the mail trigger to manager whenever bank details are changed

    Dear Experts,
    We got a  requirement on  changing the Infotype .Whenever the employees Bank details  Infotype are changed,a mail has to be triggered to the HR Manager.
    What should we do for this requirement.
    Please advice.
    Thanks and Regards,
    Sairam.

    Hi Experts,
    Thanks for the reply.
    When ever there is a change in the Bankdetails Infotype  for an employee,the system has to trigger a message/mail to the respective HR.
    in What way shall we get the desired output i.e triggering the mail whenever infotype changes.
    Please share your ideas/solutions to resolve it.
    Regards,
    Sairam.

  • HR Trigger in GRC 10 with interface to change 0105 data

    Hi Friends,
    Has someone had experience of enabling HR trigger with core ECC system built on ECC6.0 and HR system built on seperate ECC5.0 system ?
    Also client has email ids of the employees maintained in 0105 field of HR database instead of user ids.
    Is it feasbile to extract the text before '@' from that email id and treat it as user id for remaining processing ?
    Please provide your views on the same.

    Hi Prashant,
    I have an experience with HR Triggers built on a separate system. The problems are:
    1. If you want to provisioning in the ECC server, you need to assign an ECC role to a position in HR server.
    2. If you want to provisioning in ECC and HR server, you need to:
    a) Assign an ECC role and HR role to HR position
    b) Put those system in GRC customization.
    When HR department made a modification, GRC generated a request with the two roles (corresponding to a position) in the two systems. I do not remember if in the request all 2 roles are shown for each system (even if does not exist in one system).
    For your second question, GRC capture ok the email stored in infotype 0105 subtype 0010 and the user ID is capture from infotype 0105 subtype 0001.
    Regards,

  • CS02 - trigger a mail after saving

    Dear Sapians,
      I come through a requirement in which , i have to trigger a mail to authorized user with detail of changes done in CS02 by unauthorized user.
    I got a BADI 'BOM_UPDATE'  'CHANGE_AT_SAVE'.
    And as per my understanding change detail are in table CDHDR and CDPOS.
    And in above table data is loaded after CS02 is saved.
    So, no detail of recent changes done is reflected in CDHDR and CDPOS .
    So, I am looking for some USER-EXITS or BADI , which help me out in this scenario.
    Scenario is :--
      a).
          When changes are done in CS02 by some UNAUTHORIZED USER, changes has to be verified by AUTHORIZED USER, so change detail has to be send to AUTHORIZED USER.
    Awaiting for your reply
    Thanks,
    Jeet

    Dear Vivek,
      You are very correct .
    Sorry for not discussing the whole scenario.
    Actually , If some unauthorized user gas done some changes in CS02  than BOM Status is to be '2',
                    so mail is needed to ask authorized user permission to set BOM status '1'.
    But in the same time , authorized wanna know what changes are done. and changes are recorded in cdhdr and cdpos tables which is updated after after bom is saved not in between.
    That why mail is needed.

  • Added custom date fields at contract;need to trigger mail using those dates

    Hi,
    II have added 14 custom fields in the service order quotation for handling waranty start date and end dates capturing for the maximum of 7 years contract.
    Then its usual yearly action of the waranty team to put the dates in those fields.
    The first set of 2 input fields will be filled at the quotation creation itself; rest the set of 12 fields will be updated in this 7 years time.
    My requirement is such that to the capture all the waranty end dates filled in the input fields and trigger a mail 30 days prior to that days.
    Example : I have contract from 01/08/2004 to 31/07/2010.
    Then my waranty startdate / end date can be filled by waranty team as 01/08/2004 to 31/07/2005 in the waranty first year.the i need to trigger a mail to waranty team on 01/07/2005.
    For the second year if we have dates filled as 01/08/2005 to 31/07/2006; then to trigger mail on 01/07/2006.
    I have tried using ACTIONS but couldn't get much help.
    As a work around thinking for a report to fetch the contract for that Trans.type and check the dates with the present date + 30 and collect those to perfrom the respective actions.This is workaround.
    Tried using the DATE TYPES creating 7 different DATE TYPES and assigning the ( end dates - 30 ) to that manually upon save.
    and using this DATE TYPE along with the action definition can we acheive ?  but it too will be work around.
    How to acheive this one. It became critical now in the project. 
    Thanks and Regards,
    Satish Akkina

    Hi,
    In your scenario, you don't need synchronous email facility.
    Probably you can create a z table and maintain all required dates in this table (before saving your transaction somewhere you would have to read your custom fields and save them in this table along with object ID/GUID). Then create a report that would read dates from z table and then send emails to your warranty team. Schedule this report in background with frequency of once day.
    Hope that helps.
    Regards,
    BJ

  • How to use RCIEV feature to trigger mail to a particular mail id in M0001

    Hi,
    I'm trying to trigger mail for any marital status change in personal data infotype for employee through dynamic action. Kindly help me in using RCIEV feature in M001 feature in detail for triggering mail to a manager other than administrator.
    Thanks,
    Kalai.

    Check this documentation.
    RCIEV  Defining a Distribution List or Mail Address
       you can define a feature that sets the parameters for a
        mail to be sent when changes are made to an infotype record. In the
        standard system, this involves feature M0001. You can also specify a
        feature within this feature to determine possible recipients of the mail
        according to the control values in the organizational assignment.
      Use
        Mail connection for master data infotype changes for employees and
        applicants.
      Procedure
        The return matrix of the feature has the following structure: X-VVVVVVVV
        with the following meanings:
        o   X - Indicator 'M' for mail or 'V' for distribution lists
        o   VVVVVVVV - Valid mailing name or distribution list, which is stored
                       in a shared folder in SAPoffice (transaction so04).
      See also
        Feature TEXT1

  • Trigger mail

    Hello experts,
    i want to trigger mail with the output of the report, means as the report gets executed i want to trigger mail with the displayed output....
    sample code highly appreciated...............

    Hello,
    Check this sample report.This report will be very useful for your requirement
    REPORT ZV_JOB_READ NO STANDARD PAGE HEADING LINE-SIZE 255..
    TABLES: TSP01.
    DATA: SV_ADR TYPE SOMLRECI1-RECEIVER.
    SELECT-OPTIONS : P_EMAIL1 FOR SV_ADR NO INTERVALS.
    *DEFAULT '[email protected]',
    PARAMETERS: P_SENDER LIKE SOMLRECI1-RECEIVER,
    *DEFAULT '[email protected]',
                P_REPID LIKE SY-REPID, " Report to execute
                P_LINSZ LIKE SY-LINSZ DEFAULT 132, " Line size
                P_PAART LIKE SY-PAART DEFAULT 'X_65_132', " Paper Format
                P_SLSET LIKE SY-SLSET, "Variant name
                P_ODESCR LIKE SODOCCHGI1-OBJ_DESCR,
                P_ADESCR TYPE SO_OBJ_NAM,
                P_DELSPL AS CHECKBOX.
    *DATA DECLARATION
    DATA: GD_RECSIZE TYPE I.
    * Spool IDs
    TYPES: BEGIN OF T_TBTCP.
            INCLUDE STRUCTURE TBTCP.
    TYPES: END OF T_TBTCP.
    DATA: IT_TBTCP TYPE STANDARD TABLE OF T_TBTCP INITIAL SIZE 0,
          WA_TBTCP TYPE T_TBTCP.
    * Job Runtime Parameters
    DATA: GD_EVENTID LIKE TBTCM-EVENTID,
          GD_EVENTPARM LIKE TBTCM-EVENTPARM,
          GD_EXTERNAL_PROGRAM_ACTIVE LIKE TBTCM-XPGACTIVE,
          GD_JOBCOUNT LIKE TBTCM-JOBCOUNT,
          GD_JOBNAME LIKE TBTCM-JOBNAME,
          GD_STEPCOUNT LIKE TBTCM-STEPCOUNT,
          GD_ERROR TYPE SY-SUBRC,
          GD_RECIEVER TYPE SY-SUBRC.
    DATA: W_RECSIZE TYPE I,
          MC_VALID(1) TYPE C.
    DATA: GD_SUBJECT LIKE SODOCCHGI1-OBJ_DESCR,
          IT_MESS_BOD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          IT_MESS_ATT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          GD_SENDER_TYPE LIKE SOEXTRECI1-ADR_TYP,
          GD_ATTACHMENT_DESC TYPE SO_OBJ_NAM,
          GD_ATTACHMENT_NAME TYPE SO_OBJ_DES,
          MI_RQIDENT LIKE TSP01-RQIDENT.
    * Spool to PDF conversions
    DATA: GD_SPOOL_NR LIKE TSP01-RQIDENT,
          W_SPOOL_NR LIKE TSP01-RQIDENT,
          GD_DESTINATION LIKE RLGRAP-FILENAME,
          GD_BYTECOUNT LIKE TST01-DSIZE,
          GD_BUFFER TYPE STRING.
    DATA: MSTR_PRINT_PARMS LIKE PRI_PARAMS.
    * Binary store for PDF
    DATA: BEGIN OF IT_PDF_OUTPUT OCCURS 0.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF IT_PDF_OUTPUT.
    CONSTANTS: C_DEV LIKE SY-SYSID VALUE 'DEV',
               C_NO(1) TYPE C VALUE ' ',
               C_DEVICE(4) TYPE C VALUE 'LOCL'.
    START-OF-SELECTION.
    * Write statement to represent report output. Spool request is created
    * if write statement is executed in background. This could also be an
    * ALV grid which would be converted to PDF without any extra effort
    *** Alternative way could be to submit another program and store spool
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
            AUTHORITY = SPACE
            COPIES = '1'
            COVER_PAGE = SPACE
            DATA_SET = SPACE
            DEPARTMENT = SPACE
            DESTINATION = SPACE
            EXPIRATION = '1'
            IMMEDIATELY = SPACE
    *       in_archive_parameters = space
    *       in_parameters = space
            LAYOUT = SPACE
            MODE = SPACE
            NEW_LIST_ID = 'X'
            NO_DIALOG = 'X'
            USER = SY-UNAME
      IMPORTING
            OUT_PARAMETERS = MSTR_PRINT_PARMS
            VALID = MC_VALID
      EXCEPTIONS
            ARCHIVE_INFO_NOT_FOUND = 1
            INVALID_PRINT_PARAMS = 2
            INVALID_ARCHIVE_PARAMS = 3
            OTHERS = 4.
      IF MSTR_PRINT_PARMS-PDEST = SPACE.
        MSTR_PRINT_PARMS-PDEST = 'LOCL'.
      ENDIF.
      MSTR_PRINT_PARMS-LINSZ = P_LINSZ.
      MSTR_PRINT_PARMS-PAART = P_PAART.
      SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                          SPOOL PARAMETERS MSTR_PRINT_PARMS
                          USING SELECTION-SET P_SLSET
                          AND RETURN.
    * Get spool id from program called above
      PERFORM GET_SPOOL_NUMBER USING SY-REPID SY-UNAME CHANGING MI_RQIDENT.
    * IMPORT w_spool_nr FROM MEMORY ID SY-REPID.
      PERFORM CONVERT_SPOOL_TO_PDF.
      PERFORM PROCESS_EMAIL.
      IF P_DELSPL EQ 'X'.
        PERFORM DELETE_SPOOL.
      ENDIF.
      IF SY-SYSID = C_DEV.
        WAIT UP TO 5 SECONDS.
        SUBMIT RSCONN01 WITH MODE = 'INT'
        WITH OUTPUT = 'X'
        AND RETURN.
      ENDIF.
    * FORM obtain_spool_id *
    FORM OBTAIN_SPOOL_ID.
      CHECK NOT ( GD_JOBNAME IS INITIAL ).
      CHECK NOT ( GD_JOBCOUNT IS INITIAL ).
      SELECT * FROM TBTCP INTO TABLE IT_TBTCP
                                  WHERE JOBNAME = GD_JOBNAME
                                  AND JOBCOUNT = GD_JOBCOUNT
                                  AND STEPCOUNT = GD_STEPCOUNT
                                  AND LISTIDENT <> '0000000000'
                                  ORDER BY JOBNAME
                                  JOBCOUNT
                                  STEPCOUNT.
      READ TABLE IT_TBTCP INTO WA_TBTCP INDEX 1.
      IF SY-SUBRC = 0.
        MESSAGE S004(ZDD) WITH GD_SPOOL_NR.
        GD_SPOOL_NR = WA_TBTCP-LISTIDENT.
        MESSAGE S004(ZDD) WITH GD_SPOOL_NR.
      ELSE.
        MESSAGE S005(ZDD).
      ENDIF.
    ENDFORM. "OBTAIN_SPOOL_ID
    * FORM get_job_details *
    FORM GET_JOB_DETAILS.
    * Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                EVENTID                 = GD_EVENTID
                EVENTPARM               = GD_EVENTPARM
                EXTERNAL_PROGRAM_ACTIVE = GD_EXTERNAL_PROGRAM_ACTIVE
                JOBCOUNT                = GD_JOBCOUNT
                JOBNAME                 = GD_JOBNAME
                STEPCOUNT               = GD_STEPCOUNT
           EXCEPTIONS
                NO_RUNTIME_INFO         = 1
                OTHERS                  = 2.
    ENDFORM. "GET_JOB_DETAILS
    * FORM convert_spool_to_pdf *
    FORM CONVERT_SPOOL_TO_PDF.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                SRC_SPOOLID              = MI_RQIDENT
                NO_DIALOG                = C_NO
                DST_DEVICE               = C_DEVICE
           IMPORTING
                PDF_BYTECOUNT            = GD_BYTECOUNT
           TABLES
                PDF                      = IT_PDF_OUTPUT
           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.
      CHECK SY-SUBRC = 0.
    * Transfer the 132-long strings to 255-long strings
      LOOP AT IT_PDF_OUTPUT.
        TRANSLATE IT_PDF_OUTPUT USING ' ~'.
        CONCATENATE GD_BUFFER IT_PDF_OUTPUT 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.
    ENDFORM. "CONVERT_SPOOL_TO_PDF
    * FORM process_email *
    FORM PROCESS_EMAIL.
      DESCRIBE TABLE IT_MESS_ATT LINES GD_RECSIZE.
      CHECK GD_RECSIZE > 0.
      LOOP AT P_EMAIL1.
        PERFORM SEND_EMAIL USING P_EMAIL1-LOW.
      ENDLOOP.
    * perform send_email using p_email2.
    ENDFORM. "PROCESS_EMAIL
    * FORM send_email *
    * --> p_email *
    FORM SEND_EMAIL USING P_EMAIL.
      CHECK NOT ( P_EMAIL IS INITIAL ).
      REFRESH IT_MESS_BOD.
    * Default subject matter
      GD_SUBJECT = P_ODESCR.
      GD_ATTACHMENT_DESC = P_ADESCR.
    * CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      IT_MESS_BOD = TEXT-001." 'This is an automated report from SAP.'.
      APPEND IT_MESS_BOD.
      IT_MESS_BOD = TEXT-002. " 'Please do not reply to this mail id.'.
      APPEND IT_MESS_BOD.
      IF P_SENDER EQ SPACE.
        GD_SENDER_TYPE = SPACE.
      ELSE.
        GD_SENDER_TYPE = 'INT'.
      ENDIF.
    * Send file by email as .xls speadsheet
      PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
                                    TABLES IT_MESS_BOD
                                    IT_MESS_ATT
                                    USING P_EMAIL
                                    P_ODESCR
                                    'PDF'
                                    GD_ATTACHMENT_NAME
                                    GD_ATTACHMENT_DESC
                                    P_SENDER
                                    GD_SENDER_TYPE
                                    CHANGING GD_ERROR
                                    GD_RECIEVER.
    ENDFORM. "SEND_EMAIL
    * FORM delete_spool *
    FORM DELETE_SPOOL.
      DATA: LD_SPOOL_NR TYPE TSP01_SP0R-RQID_CHAR.
      LD_SPOOL_NR = GD_SPOOL_NR.
      CHECK P_DELSPL <> C_NO.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                SPOOLID = LD_SPOOL_NR.
    ENDFORM. "DELETE_SPOOL
    *& Form SEND_FILE_AS_EMAIL_ATTACHMENT
    * Send email
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES IT_MESSAGE
                                              IT_ATTACH
                                              USING P_EMAIL
                                              P_MTITLE
                                              P_FORMAT
                                              P_FILENAME
                                              P_ATTDESCRIPTION
                                              P_SENDER_ADDRESS
                                              P_SENDER_ADDRES_TYPE
                                              CHANGING P_ERROR
                                              P_RECIEVER.
      DATA: LD_ERROR TYPE SY-SUBRC,
      LD_RECIEVER TYPE SY-SUBRC,
      LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
      LD_EMAIL LIKE SOMLRECI1-RECEIVER,
      LD_FORMAT TYPE SO_OBJ_TP ,
      LD_ATTDESCRIPTION TYPE SO_OBJ_NAM ,
      LD_ATTFILENAME TYPE SO_OBJ_DES ,
      LD_SENDER_ADDRESS LIKE SOEXTRECI1-RECEIVER,
      LD_SENDER_ADDRESS_TYPE LIKE SOEXTRECI1-ADR_TYP,
      LD_RECEIVER LIKE SY-SUBRC.
      DATA: T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
      T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
      T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
      T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
      T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
      W_CNT TYPE I,
      W_SENT_ALL(1) TYPE C,
      W_DOC_DATA LIKE SODOCCHGI1.
      LD_EMAIL = P_EMAIL.
      LD_MTITLE = P_MTITLE.
      LD_FORMAT = P_FORMAT.
      LD_ATTDESCRIPTION = P_ATTDESCRIPTION.
      LD_ATTFILENAME = P_FILENAME.
      LD_SENDER_ADDRESS = P_SENDER_ADDRESS.
      LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
    * Fill the document data.
      W_DOC_DATA-DOC_SIZE = 1.
    * Populate the subject/generic message attributes
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
      W_DOC_DATA-SENSITIVTY = 'F'.
    * Fill the document data and get size of attachment
      CLEAR W_DOC_DATA.
      READ TABLE IT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
      ( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE.
      W_DOC_DATA-SENSITIVTY = 'F'.
      CLEAR T_ATTACHMENT.
      REFRESH T_ATTACHMENT.
      T_ATTACHMENT[] = IT_ATTACH[].
    * Describe the body of the message
      CLEAR T_PACKING_LIST.
      REFRESH T_PACKING_LIST.
      T_PACKING_LIST-TRANSF_BIN = SPACE.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 0.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = 'RAW'.
      APPEND T_PACKING_LIST.
    * Create attachment notification
      T_PACKING_LIST-TRANSF_BIN = 'X'.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 1.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
      T_PACKING_LIST-OBJ_DESCR = LD_ATTDESCRIPTION.
      T_PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
      T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
      APPEND T_PACKING_LIST.
    * Add the recipients email address
      CLEAR T_RECEIVERS.
      REFRESH T_RECEIVERS.
      T_RECEIVERS-RECEIVER = LD_EMAIL.
      T_RECEIVERS-REC_TYPE = 'U'.
      T_RECEIVERS-COM_TYPE = 'INT'.
      T_RECEIVERS-NOTIF_DEL = 'X'.
      T_RECEIVERS-NOTIF_NDEL = 'X'.
      APPEND T_RECEIVERS.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = W_DOC_DATA
                PUT_IN_OUTBOX              = 'X'
                SENDER_ADDRESS             = LD_SENDER_ADDRESS
                SENDER_ADDRESS_TYPE        = LD_SENDER_ADDRESS_TYPE
                COMMIT_WORK                = 'X'
           IMPORTING
                SENT_TO_ALL                = W_SENT_ALL
           TABLES
                PACKING_LIST               = T_PACKING_LIST
                CONTENTS_BIN               = T_ATTACHMENT
                CONTENTS_TXT               = IT_MESSAGE
                RECEIVERS                  = T_RECEIVERS
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                DOCUMENT_TYPE_NOT_EXIST    = 3
                OPERATION_NO_AUTHORIZATION = 4
                PARAMETER_ERROR            = 5
                X_ERROR                    = 6
                ENQUEUE_ERROR              = 7
                OTHERS                     = 8.
    * Populate zerror return code
      LD_ERROR = SY-SUBRC.
    * Populate zreceiver return code
      LOOP AT T_RECEIVERS.
        LD_RECEIVER = T_RECEIVERS-RETRN_CODE.
      ENDLOOP.
    ENDFORM. "SEND_FILE_AS_EMAIL_ATTACHMENT
    *& Form GET_SPOOL_NUMBER
    * text
    * -->P_SY_REPID text
    * -->P_SY_UNAME text
    * <--P_MI_RQIDENT text
    FORM GET_SPOOL_NUMBER USING F_REPID
                                F_UNAME
                                CHANGING F_RQIDENT.
      DATA:
      LC_RQ2NAME LIKE TSP01-RQ2NAME.
      CONCATENATE F_REPID+0(9)
      F_UNAME+0(3)
      INTO LC_RQ2NAME.
      SELECT * FROM TSP01 WHERE RQ2NAME = LC_RQ2NAME
                          ORDER BY RQCRETIME DESCENDING.
        F_RQIDENT = TSP01-RQIDENT.
        EXIT.
      ENDSELECT.
      IF SY-SUBRC NE 0.
        CLEAR F_RQIDENT.
      ENDIF.
    ENDFORM. " GET_SPOOL_NUMBER
    Regards,
    Vasanth

  • Viewing HTML e-mail and problems with  = (equal sign)

    Good day,
    I am having problems with apple mail rendinering html e-mail messages. There are extra = in the message body. The = appears to be line continuation character in the HTML. I have no problems viewing the message in Thunderbird or Entorage, but Mac Mail is a problem. The = appears to be displayed as a literal rather than part of the html reconstruction. Any thoughts as how to resolve this issue?
    Here is the source of the message.
    Received: from [67.17.248.27] by vms047.mailsrvcs.net
    (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006))
    with ESMTP id <[email protected]> for
    [email protected]; Thu, 18 Oct 2007 20:48:18 -0500 (CDT)
    Received: from rhlxprd2.somecompany.com by [67.17.248.27] via smtpd
    (for relay.someisp.net [206.46.232.11]) with ESMTP; Thu,
    18 Oct 2007 21:48:17 -0400
    Received: from rhlxprd2.somecompany.com (unknown [127.0.0.1])
    by rhlxprd2.somecompany.com (Symantec Mail Security)
    with ESMTP id 4EF591901B4; Thu, 18 Oct 2007 21:48:16 -0400 (EDT)
    Received: from INEXCCL1.somecompany.com
    (inexcbe2.somecompany.com [192.168.23.36]) by rhlxprd2.somecompany.com
    (Symantec Mail Security) with ESMTP id 0B4D29C07B; Thu,
    18 Oct 2007 21:36:03 -0400 (EDT)
    Date: Thu, 18 Oct 2007 21:36:54 -0400
    From: "Pfister, Scott" <[email protected]>
    Subject: western-eroup-iso-html-nocr
    X-Originating-IP: [67.17.248.27]
    To: <[email protected]>, "Some Guy" <[email protected]>
    Message-id: <[email protected]>
    MIME-version: 1.0
    X-MIMEOLE: Produced By Microsoft Exchange V6.5
    Content-type: multipart/alternative;
    boundary="----=_NextPart_00101C811F0.87CDD9C6"
    Content-class: urn:content-classes:message
    Importance: high
    Priority: Urgent
    X-Priority: 1
    Thread-topic: western-eroup-iso-html-nocr
    Thread-index: AcgR7b/obZRXrjryTPWlwmsfeV7IJw==
    X-AuditID: c0a8195c-b0552bb000005d6c-ca-47180a036da8
    X-MS-Has-Attach:
    X-MS-TNEF-Correlator:
    X-Brightmail-Tracker: AAAAAA==
    This is a multi-part message in MIME format.
    ------=_NextPart_00101C811F0.87CDD9C6
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    this is a test
    ;alskdjf;lkajdsf;lkjsaf
    ;alsjf;lsajf;lkdsaf
    ;lasjf;lakjfds;lksaf;lkasfdj;lkasd;lkfa;lkdsf
    ;lakjfds;lsajf;lksaf;lksasdfasdf;lkjafds
    This email and any files transmitted with it are confidential and intended s=
    olely for the use of the individual or entity to whom they are addressed. If=
    you have received this email in error please notify the system manager. Ple=
    ase note that any views or opinions presented in this email are solely those=
    of the author and do not necessarily represent those of the company. Finall=
    y, the recipient should check this email and any attachments for the presenc=
    e of viruses. The company accepts no liability for any damage caused by any=
    virus transmitted by this email.
    ------=_NextPart_00101C811F0.87CDD9C6
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <html>
    <head>
    <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
    <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
    <style>
    <!--
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0in;
    margin-bottom:.0001pt;
    font-size:12.0pt;
    font-family:"Times New Roman";}
    a:link, span.MsoHyperlink
    {color:blue;
    text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
    {color:purple;
    text-decoration:underline;}
    span.emailstyle17
    {font-family:Arial;
    color:windowtext;}
    span.EmailStyle19
    {font-family:Arial;}
    @page Section1
    {size:8.5in 11.0in;
    margin:1.0in 1.25in 1.0in 1.25in;}
    div.Section1
    {page:Section1;}
    -->
    </style>
    </head>
    <body lang=3DEN-US link=3Dblue vlink=3Dpurple>
    this is a test
    ;alskdjf;lkajdsf;lkjsaf
    ;alsjf;lsajf;lkdsaf
    <spa=
    n
    style=3D'font-size:24.0pt;font-family:Arial;color:red'>;lasjf;lakjfds;lksaf;=
    lkasfdj;lkasd;lkfa;lkdsf
    <spa=
    n
    style=3D'font-size:24.0pt;font-family:Arial;color:red'>;lakjfds;lsajf;lksaf;=
    lksasdfasdf;lkjafds
    This email and any files transmitted with it are confidential and intende=
    d solely for the use of the individual or entity to whom they are addressed.=
    If you have received this email in error please notify the system manager.=
    Please note that any views or opinions presented in this email are solely t=
    hose of the author and do not necessarily represent those of the company. Fi=
    nally, the recipient should check this email and any attachments for the pre=
    sence of viruses. The company accepts no liability for any damage caused by=
    any virus transmitted by this email.</body>
    </html>
    ------=_NextPart_00101C811F0.87CDD9C6--

    rembsen wrote:
    - Sender has got Outlook (at least 2003)
    - Mail service is Exchange (at least 2003)
    Looks like there is a common theme there. It is probably just that the original message has been corrupted somehow. Some mail clients try harder to understand corrupted data than others. I can't really tell from your original post. With mail messages, you really need to have the original data, not copied and pasted and not forwarded. If you have such a mail message, save it as raw source, put it into a zip file, and e-mail it to me. I can tell if it is an Apple Mail problem or a MS problem. If it is an Apple problem, I can file a detailed bug report on it. You can find an e-mail address for me by Googling my nickname.

  • Is there a way to create a year at a glance with detail and print?

    Is there a way to create a year at a glance with detail and print?

    To do what Dave indicated you need to do, it depends on what version of Acrobat you have:
    Acrobat 8: Advanced > Enable Usage Rights in Adobe Reader
    Acrobat 9: Advanced > Extend Features in Adobe Reader
    Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
    Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
    I wonder what it will be next time?

  • IMAP Mail and syncing with Server

    So I would like to convert from POP mail to IMAP. I have created a new account in Mail and so far I have been able to receive emails no problem. The issue is that sent emails are not being saved and I cannot save drafts. I can send emails fine but I do not have any copies of them. It seems as though mail is having trouble communicating with my server. The option to save sent and drafts IS selected. After speaking to my hosting provider, the issue seemed to be in the PORT on the Advanced tab. It was set by deafult to 143. they suggested I change the port to 110 which is what they support. When I do that and then subsequently send an email, I get a SENT EMAIL folder under the SENT folder in MAIL. Same with drafts and I am able to send emails, but NOW I can;t receive them. They are being delivered to my server as I checked throught my web portal, but Mail wont bring them down.
    the whole reason I am switching to IMAP is so that I can sink RECIEVED, SENT and DRAFT emails between my two computers.
    Any ideas please?

    the issue seemed to be in the PORT on the Advanced tab.
    It was set by deafult to 143. they suggested I change
    the port to 110 which is what they support.
    Well, if you did that, then it should be no surprise that you cannot receive mail now. Change the port back to 143, which is what should be used for an IMAP account. Port 110 is for POP.
    After changing the port back to 143, which mailboxes related to the IMAP account do you see in Mail? Where/how do you see them? Do you see a Sent Messages and/or a Drafts mailbox with a generic folder icon (i.e. other than the standard Sent and Drafts mailboxes) anywhere in the mailboxes list in Mail? Do mailboxes on the server appear as subfolders of the account's Inbox?

  • Report Row With Detail (IFRAME)

    Hi,
    I am trying to implement the Report Row with Detail but not successful.
    I have gone thru the various threads in the forum.. but i am unable to
    get it. It would be great if I could know the step by step process to do the same.
    I have created two regions. The first region (the query to it) also
    has a show_region link.. I have copied and pasted the javascript given
    by Carl.
    Thanks,
    shilpa.

    Hello,
    Ok then you are almost there so when you submit the form to update your data on a sucessful save you are going to create a plsql region that just uses htp.p() to write out the javascript to update the report in the main page.
    a simple example would be something like this.
    Lets say I'm getting back values to update the two first table cells on my parent report.
    <script>
    /*set up call back function*/
    function ReportRowUpdate(){
    var lRow = parent.g_LastRowOpened; /* hook to last row clicked */
    lRow.cells[0].innerHTML = 'SOME VALUE FROM DATABASE 1';
    lRow.cells[1].innerHTML = 'SOME VALUE FROM DATABASE 2';
    /*call call back function*/
    ReportRowUpdate();
    </script>
    And that should be it.
    Carl
    Message was edited by:
    Carl Backstrom

  • Problem with WHEN-CHECKBOX-CHANGED and ON-POPULATE-DETAILS

    I have a detail block with a relationship set up to a second block. In my first block, if I cause an error but the next action I take is to press a checkbox on another record, my error will display and the raise form trigger failure is triggered but the checkbox changes it's value and the cursor is displayed on the record with the error. I didn't want the checkbox to change if an error occurred. I tracked this through the trace and saw the on-populate-details is fired between the error and the when-checkbox-changed trigger. I went through debug and saw because of the erorr, the system will do a 'return' back to the sending action. I beleive this return is causing the when-checkbox-changed to fire. I'm just guessing here. I tried a similar action on another form without a relationship set up. That would eliminate the on-populate-details trigger. When I did a similar error, I got exactly what I was looking for. I caused the error but pressed the checkbox on another record. The error displayed but the checkbox did not change and the cursor returned to the error record. I need the record to have this relationship. Consequently, I need the on-populate-details trigger. Can anyone think of a solution? I'm currently on Forms 6I. We are going to forms 10G in the next few months. But I really need a solution on my current set up. Thanks.

    The getNextDatabankRecord() call is at the beginning of my run code. I use one step just for this line code.
    Code :
    public void run() throws Exception {
              beginStep("CHARGEMENT DES DONNEES SUIVANTES");
                   info("Chargement des prochaines données...");
                   getDatabank("NouvellesIA").getNextDatabankRecord();
              endStep();
    Stop the user after this step and goto the finish section should not be a problem...
    If I use the "When out of records" option, does it jump directly to the finish section ?
    Thanks,
    Benoit.

  • How can I get my e-mail address associated with Adobe Digital Editions?

    How can I get my e-mail address associated with Adobe Digital Editions?

    gjortega,
    Your sidekick may be relaying through a different server. If its on AT&T, it could be using cwmx.com for outgoing. However, cwmx.com only works for AT&T/Cingular EDGE customers. When on Wi-fi it won't allow you to send through it.
    Many internet providers, but not all, provide an authenticating SMTP server to use when travelling. If you configured your outgoing server to use the email providers authenticating SMTP server information on a port different from port 25, you will be able to use it on most networks. Some wireless networks filter a wider range of ports, such as some work places.
    This article discusses the issue in more detail:
    http://docs.info.apple.com/article.html?artnum=305634
    Hope this helps,
    Nathan C.

  • Is it possible for me to swap out the apple logo in the message screen saver with my company's logo If so, how? Thanks!

    Is it possible for me to swap out the apple logo in the message screen saver with my company's logo? If so, how? Thanks!

    How long will my iPod service take?
    If you choose to use the Online Service Assistant, or service via Apple Technical Support: If your iPod is not personalized, you can expect service to be completed within approximately one week from the time you send your iPod to Apple. If your iPod is personalized, you can expect service to be completed within approximately ten calendar days from the time you send your iPod to Apple.
    Attention iPod shuffle customers: Service for iPod shuffle is performed by means of an express replacement program, via Online Service Assistant or Apple Technical Support. For more details, please review the Express Replacement Service tab on the left.
    Above from:
    Apple - Support - iPod - Service FAQ
    If it is caused by a hardware problem there is nothing you can do to prevent it from recurring unless it was caused by abuse like from dropping the iPod.
    Otherwise make sure you ask apple how they fixed. it.

Maybe you are looking for

  • Re-Setting Pram - Defragmenting Hard Drive

    I was finally able to get the Flashing Question Mark removed and re-install my OS 9.1 install CD by using Norton Uitlities, my question is... should a person re-set the PRAM every once and awhile to (De-Fragment the Harddrive if thats what resetting

  • Suggestion required regarding BULK INSERT usage

    Hi All, There is one table i.e., Markets and it contains 2 million records. I wanted inflate the same data for 10 times so, that count goes to 20 million records. I have written the following script to achieve this... create or replace procedure mrkt

  • Wildcard in rm with SXPG_CALL_SYSTEM

    Hello everyone I'm calling function SXPG_CALL_SYSTEM for a system command without parameters. This command is defined in sm69 and is stated: command: rm parameters: -r /Gedis/Interfaces/GD1/DOC1/tre/* extra parameters: no. The function executes and t

  • Will VMware or Parallels work for a 3TB fusion drive?

    I'm in the market for an iMac but I need windows for work-related stuff (and some games) I have an older macbook pro (13" the first year the 13" went pro, 2009 i think) and I load windows through bootcamp, so no problems there. I understand that the

  • Disable hitArea for an imported swf

    hi. I am trying to create a custom data tip for a pie chart that is an imported swf. Basically I have the pie wedge move the swf on rollOver. The problem is that swf is on a higher depth than the pie chart it is not getting the rollOut call when the