How to put mail ids in CC and BCC while sending mail through ABAP?

Hi all,
i have created a report which sends the output of the  report to external mail ids. I want to put some email ids in CC or BCC.
Please do guide me so that i can proceed with the development.
Thanks and Regards,
Syed

just go through below code and
*& Report  Z_TTTT
REPORT  Z_TTTT1.
*TABLE DECLARATIONS
TABLES: SOLI.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT_B1 NO INTERVALS.
SELECTION-SCREEN BEGIN  OF LINE .
PARAMETERS: SAPID RADIOBUTTON GROUP ADDR.
SELECTION-SCREEN COMMENT 5(20) T_SAPID.
PARAMETERS: EMAIL_ID RADIOBUTTON GROUP ADDR.
SELECTION-SCREEN COMMENT 30(20) T_EMAIL.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT_B2 NO INTERVALS.
SELECTION-SCREEN BEGIN  OF LINE .
SELECTION-SCREEN COMMENT 5(20) TXT_ID.
SELECT-OPTIONS: ID FOR SOLI-LINE NO INTERVALS.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN  OF LINE .
SELECTION-SCREEN COMMENT 5(20) TXT_CC.
SELECT-OPTIONS: CC FOR SOLI-LINE NO INTERVALS.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN  OF LINE .
SELECTION-SCREEN COMMENT 5(20) TXT_BCC.
SELECT-OPTIONS: BCC FOR SOLI-LINE NO INTERVALS.
SELECTION-SCREEN END OF LINE.
*SELECTION-SCREEN BEGIN  OF LINE .
*SELECTION-SCREEN COMMENT 5(20) TXT_SEND.
*PARAMETERS: SENDER LIKE SOUD-USRNAM.
*SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-009.
*PARAMETERS: SUB_LINE(60) TYPE C.
*SELECTION-SCREEN END OF BLOCK B3.
*SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-008.
*SELECT-OPTIONS: TEXT1 FOR SOLI-LINE NO INTERVALS.
*SELECTION-SCREEN END OF BLOCK B4.
SELECTION-SCREEN BEGIN OF BLOCK B5 WITH FRAME TITLE TEXT_B5.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: P_ATTACH AS CHECKBOX USER-COMMAND RAD1.
SELECTION-SCREEN COMMENT 5(20) T_ATTACH.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 5(20) T_FLNAME.
PARAMETERS: P_FLNAME  TYPE RLGRAP-FILENAME MODIF ID M1 .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B5.
*Data Declarations
DATA: MAIL_CONTENT LIKE SOLI OCCURS 0 WITH HEADER LINE,
      SUBJECT_LINE LIKE SOOD1-OBJDES.
DATA : SENDER TYPE SY-UNAME.
DATA : IT_REC type SOLI OCCURS 0 WITH HEADER LINE.
*INITIALIZATION Block
INITIALIZATION.
  TEXT_B1 = 'Output Specification'.
  T_SAPID = 'SAP User ID'.
  T_EMAIL = 'Email ID'.
  TXT_ID =  'Receipient Id'.
  TXT_CC =  'CC'.
  TXT_BCC = 'BCC'.
  TEXT_B2 = 'Receipient'.
  TEXT_B5 = 'Attachment'.
  T_ATTACH = 'Attachment'.
  T_FLNAME = 'File name'.
*  TXT_SEND = 'Sender Name'.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF P_ATTACH <> 'X'.
      IF SCREEN-GROUP1 = 'M1'.
        SCREEN-INPUT = 0. " Disable for input.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FLNAME.
  PERFORM GET_FILENAME.
*start of selection Block
START-OF-SELECTION.
*  LOOP AT TEXT1.
*    MOVE TEXT1-LOW TO MAIL_CONTENT-LINE.
*    APPEND MAIL_CONTENT.
*  ENDLOOP.
****  Mail Body
  MOVE 'Hi' TO MAIL_CONTENT-LINE.
  APPEND MAIL_CONTENT.
  MOVE 'This is Test mail' TO MAIL_CONTENT-LINE.
  APPEND MAIL_CONTENT.
  MOVE 'Thanxs' TO MAIL_CONTENT-LINE.
  APPEND MAIL_CONTENT.
****  Mail Heading
  MOVE 'Test Mail' TO SUBJECT_LINE.
  PERFORM SEND_EMAIL  TABLES MAIL_CONTENT USING SUBJECT_LINE.
*& Form SEND_EMAIL
FORM SEND_EMAIL TABLES OBJCONT STRUCTURE MAIL_CONTENT
                USING TITLE LIKE SOOD-OBJDES.
  DATA: RECEIVERS TYPE  SOOS1 OCCURS 0 WITH HEADER LINE,
        TSOOD1 TYPE SOOD1,
        PACKING_LIST TYPE SOXPL OCCURS 0 WITH HEADER LINE,
        OBJCONT1 type SOLI OCCURS 0 WITH HEADER LINE.
  DATA: BEGIN OF AT_HEADER OCCURS 1.
          INCLUDE STRUCTURE SOLI.
  DATA: END OF AT_HEADER.
  CLEAR: TSOOD1,
         RECEIVERS.
  REFRESH RECEIVERS.
  MOVE: SY-LANGU TO TSOOD1-OBJLA,
  'Email Notice' TO TSOOD1-OBJNAM,
  'C' TO TSOOD1-OBJSNS,
  TITLE TO TSOOD1-OBJDES,  " rajan
  'Rajan' TO TSOOD1-OWNNAM.
*loop through each ID and move them to recipient table
  LOOP AT ID.
*    TRANSLATE ID-LOW TO UPPER CASE.
    IF SAPID = 'X'.
      MOVE: SY-DATUM TO RECEIVERS-RCDAT,
      SY-UZEIT TO RECEIVERS-RCTIM,
      ' ' TO RECEIVERS-RECESC,
      ID-LOW TO RECEIVERS-RECNAM,
      'X' TO RECEIVERS-SNDEX.
    ELSE.
      MOVE: SY-DATUM TO RECEIVERS-RCDAT,
      SY-UZEIT TO RECEIVERS-RCTIM,
      'U' TO RECEIVERS-RECESC,
      'U-' TO RECEIVERS-RECNAM,
      ID-LOW TO RECEIVERS-RECEXTNAM.
    ENDIF.
    APPEND RECEIVERS.
    CLEAR RECEIVERS.
  ENDLOOP.
*loop through each CC and move them to recipient table
  LOOP AT CC.
    TRANSLATE CC-LOW TO UPPER CASE.
    IF SAPID = 'X'.
      MOVE: SY-DATUM TO RECEIVERS-RCDAT,
      SY-UZEIT TO RECEIVERS-RCTIM,
      ' ' TO RECEIVERS-RECESC,
      CC-LOW TO RECEIVERS-RECNAM,
      'X' TO RECEIVERS-SNDEX,
      'X' TO RECEIVERS-SNDCP.
    ELSE.
      MOVE: SY-DATUM TO RECEIVERS-RCDAT,
      SY-UZEIT TO RECEIVERS-RCTIM,
      'U' TO RECEIVERS-RECESC,
      'U-' TO RECEIVERS-RECNAM,
      CC-LOW TO RECEIVERS-RECEXTNAM,
      'X' TO RECEIVERS-SNDCP.
    ENDIF.
    APPEND RECEIVERS.
    CLEAR RECEIVERS.
  ENDLOOP.
*loop through each BCC and move them to recipient table
  LOOP AT BCC.
    TRANSLATE BCC-LOW TO UPPER CASE.
    IF SAPID = 'X'.
      MOVE: SY-DATUM TO RECEIVERS-RCDAT,
      SY-UZEIT TO RECEIVERS-RCTIM,
      ' ' TO RECEIVERS-RECESC,
      BCC-LOW TO RECEIVERS-RECNAM,
      'X' TO RECEIVERS-SNDEX,
      'X' TO RECEIVERS-SNDBC.
    ELSE.
      MOVE: SY-DATUM TO RECEIVERS-RCDAT,
      SY-UZEIT TO RECEIVERS-RCTIM,
      'U' TO RECEIVERS-RECESC,
      'U-' TO RECEIVERS-RECNAM,
      BCC-LOW TO RECEIVERS-RECEXTNAM,
      'X' TO RECEIVERS-SNDBC.
    ENDIF.
    APPEND RECEIVERS.
    CLEAR RECEIVERS.
  ENDLOOP.
  AT_HEADER = SY-DATUM.
  APPEND AT_HEADER.
  AT_HEADER = SY-UZEIT.
  APPEND AT_HEADER.
  IF SENDER EQ SPACE.
    SENDER = SY-UNAME.
  ENDIF.
  IF P_ATTACH EQ 'X'.
    PACKING_LIST-HEAD_START = 1.
    PACKING_LIST-HEAD_NUM = 2.
    PACKING_LIST-BODY_START = 1.
    PACKING_LIST-BODY_NUM = 9999.
    PACKING_LIST-FILE_EXT = 'PDF'.
    APPEND PACKING_LIST.
    CLEAR PACKING_LIST.
*    APPEND LINES OF OBJCONT TO OBJCONT1.
*    REFRESH OBJCONT.
    DATA : FLNAME TYPE  STRING.
    FLNAME = P_FLNAME.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = FLNAME
   FILETYPE                      = 'BIN'
*   HAS_FIELD_SEPARATOR           = ' '
*   HEADER_LENGTH                 = 0
*   READ_BY_LINE                  = 'X'
*   DAT_MODE                      = ' '
*   CODEPAGE                      = ' '
*   IGNORE_CERR                   = ABAP_TRUE
*   REPLACEMENT                   = '#'
*   CHECK_BOM                     = ' '
*   VIRUS_SCAN_PROFILE            =
*   NO_AUTH_CHECK                 = ' '
* IMPORTING
*   FILELENGTH                    =
*   HEADER                        =
      TABLES
        DATA_TAB                      = IT_REC
* 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.
APPEND LINES OF IT_REC TO OBJCONT1.
*    APPEND  P_FLNAME TO OBJCONT1.
  ENDIF.
  CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
      SENDER                     = 'AAB_ABAP5'
      OBJECT_HD_CHANGE           = TSOOD1
      OBJECT_TYPE                = 'RAW'
    TABLES
      OBJCONT                    = OBJCONT
      RECEIVERS                  = RECEIVERS
      ATT_HEAD                   = AT_HEADER
      ATT_CONT                   = OBJCONT1
      PACKING_LIST               = PACKING_LIST
    EXCEPTIONS
      ACTIVE_USER_NOT_EXIST      = 1
      COMMUNICATION_FAILURE      = 2
      COMPONENT_NOT_AVAILABLE    = 3
      FOLDER_NOT_EXIST           = 4
      FOLDER_NO_AUTHORIZATION    = 5
      FORWARDER_NOT_EXIST        = 6
      NOTE_NOT_EXIST             = 7
      OBJECT_NOT_EXIST           = 8
      OBJECT_NOT_SENT            = 9
      OBJECT_NO_AUTHORIZATION    = 10
      OBJECT_TYPE_NOT_EXIST      = 11
      OPERATION_NO_AUTHORIZATION = 12
      OWNER_NOT_EXIST            = 13
      PARAMETER_ERROR            = 14
      SUBSTITUTE_NOT_ACTIVE      = 15
      SUBSTITUTE_NOT_DEFINED     = 16
      SYSTEM_FAILURE             = 17
      TOO_MUCH_RECEIVERS         = 18
      USER_NOT_EXIST             = 19
      X_ERROR                    = 20
      OTHERS                     = 21.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ELSE .
    MESSAGE 'sent successfully' TYPE 'I'.
  ENDIF.
*  CALL FUNCTION 'GUI_DOWNLOAD'
*  EXPORTING
**  BIN_FILESIZE = GV_BIN_FILESIZE
*  FILENAME =  'C:\Documents and Settings\Administrator\Desktop\file'"W_FULL_PATH
*  FILETYPE = 'BIN'
** APPEND = ' '
** WRITE_FIELD_SEPARATOR = ' '
** HEADER = '00'
** TRUNC_TRAILING_BLANKS = ' '
** WRITE_LF = 'X'
** COL_SELECT = ' '
** COL_SELECT_MASK = ' '
** DAT_MODE = ' '
** CONFIRM_OVERWRITE = ' '
** NO_AUTH_CHECK = ' '
** CODEPAGE = ' '
** IGNORE_CERR = ABAP_TRUE
** REPLACEMENT = '#'
** WRITE_BOM = ' '
** TRUNC_TRAILING_BLANKS_EOL = 'X'
** WK1_N_FORMAT = ' '
** WK1_N_SIZE = ' '
** WK1_T_FORMAT = ' '
** WK1_T_SIZE = ' '
** IMPORTING
** FILELENGTH =
*  TABLES
*  DATA_TAB = IT_REC
** FIELDNAMES =
** EXCEPTIONS
** FILE_WRITE_ERROR = 1
** NO_BATCH = 2
** GUI_REFUSE_FILETRANSFER = 3
** INVALID_TYPE = 4
** NO_AUTHORITY = 5
** UNKNOWN_ERROR = 6
** HEADER_NOT_ALLOWED = 7
** SEPARATOR_NOT_ALLOWED = 8
** FILESIZE_NOT_ALLOWED = 9
** HEADER_TOO_LONG = 10
** DP_ERROR_CREATE = 11
** DP_ERROR_SEND = 12
** DP_ERROR_WRITE = 13
** UNKNOWN_DP_ERROR = 14
** ACCESS_DENIED = 15
** DP_OUT_OF_MEMORY = 16
** DISK_FULL = 17
** DP_TIMEOUT = 18
** FILE_NOT_FOUND = 19
** DATAPROVIDER_EXCEPTION = 20
** CONTROL_FLUSH_ERROR = 21
** OTHERS = 22
*  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. " SEND_EMAIL
*&      Form  GET_FILENAME
FORM GET_FILENAME .
  CALL FUNCTION 'F4_FILENAME'
    IMPORTING
      FILE_NAME = P_FLNAME.
ENDFORM.                    " GET_FILENAME

Similar Messages

  • How to set attched file name while sending email through ABAP

    Hi All- tell me how to set attched file name while sending email through ABAP.
    regards...
    Abhay

    Sure,  when you are adding your entry to the packing list,  give the name in the obj_name field.
    *File 2
      mailbin = 'This is file 2'.
      append mailbin.
      data: start type i.
      data: end type i.
      start = tab_lines + 1.
      describe table mailbin lines end.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = start.
      mailpack-body_num = end.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST2'.        "<-  RIGHT HERE
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    Regards,
    RIch Heilman

  • How to put mail body while sending Payment Advice Note by mail

    Hi,
    I am sending payment advice form through mail using the BTE 2040.
    Everything is fine and mail is coming properly but mail does not have any body line. It just contains the PDF as an attachment.
    I want to put mail body in that. I have just copied the Script, I have not copied the driver program.
    E.g
    Hello,
    Please find the payment advice note as an attachment.
    Kindly advice how to put mail body in that mail, is there any BTE through which we can put the mail body?
    Kindly help.
    Regards
    Sachin Yadav

    Hi,
    I am sending payment advice form through mail using the BTE 2040.
    Everything is fine and mail is coming properly but mail does not have any body line. It just contains the PDF as an attachment.
    I want to put mail body in that. I have just copied the Script, I have not copied the driver program.
    E.g
    Hello,
    Please find the payment advice note as an attachment.
    Kindly advice how to put mail body in that mail, is there any BTE through which we can put the mail body?
    Kindly help.
    Regards
    Sachin Yadav

  • I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)

    I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)

    Trying logging out/in or a restart.
    If that doesn't allow you to empty the trash:
    Trash – Empty When File is Locked or in Use
    Trash FAQ       
    Maybe this will help:
    https://discussions.apple.com/message/17029415#17029415

  • I have put Ipod in restore mode and about 1/2 way through download it goes back to message "disabled type in passcode" ?? I have turned off all security and all trouble shooting ideas, any suggestions?? besides paying $$$$ to apple tech support

    I have put Ipod in restore mode and about 1/2 way through download it goes back to message "disabled type in passcode" ?? I have turned off all security and tried all trouble shooting ideas, any suggestions?? besides paying $$$$ to apple tech support

    What appears to be happensin is that before the actual download finishes/restore starts. the recovery mode is timing out. I would do a manual download using the instructions here:
    iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch
    Then place the iPod in Recovery mode and restore using the instructions in the link.

  • Uncaught Exception occured while sending mail through abap code.

    Hi,
    Uncaught Exception occured while sending mail through abap code.Run time Errors "UNCAUGHT_EXCEPTION" occured after excuting the call method  CALL METHOD SEND_REQUEST->SEND( ).kindly help in resolving the issue.

    HI,
    Runtime Error:  UNCAUGHT_EXCEPTION details.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_ADDRESS_BCS
    Short text
         An exception occurred that was not caught.
    What happened?
         The exception 'CX_ADDRESS_BCS' was raised, but it was not caught anywhere along
         the call hierarchy.
         Since exceptions represent error situations and this error was not
         adequately responded to, the running ABAP program 'SAPLZSEND_MAIL' has to be
         terminated.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ADDRESS_BCS', was not caught in
        procedure "SEND_MAIL" "(FORM)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        An exception occurred
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_ADDRESS_BCS"
        "SAPLZSEND_MAIL" or "LZSEND_MAILU01"
        "ZSEND_EMAIL"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "SEND_MAIL" "(FORM)", or its possible occurrence must be declared in the
    RAISING clause of the procedure.
    Please help me to resolve this issue.

  • How to put sales incentive bonus % amount and the period in oracle

    How do I put in the sales incentive % and the period?
    we put in the bonus amount (I know how to do that in Oracle), but I cannot find where to do my inputs for the % and the period concerned (all sales incentive bonuses are paid over certain quarters of the year – e.g. I now have to make inputs on the sales incentive bonuses for quarter 1 till 3). It is essential for us to track amounts, % and period.
    We also had this opportunity in People Soft and I assume that we do have that in Oracle
    any help would be highly appreciated
    thanks in advance

    some more context would be useful. Are you implementing core payroll, or CWB, or you just want to store these sales figures in basic HR? Or self-service?

  • How to put the data into cache and distribute to nodeusing oracle coherence

    Hi Friends,
    i am having some random number data writing into file,from that file i am reading the data and i want to put into cache,how can i put the data into cache and partition this data into different nodes ( machines) to caluculate like S.D,variance..etc..like that.(or how can i implement montecarlo using oracle coherence) if any one know plz suggest me with flow.
    Thank you.
    regards
    chandra

    Hi robert,
    i have some bulk data in some arraylist or object format,i want to put into cache.
    i am not able to put into cache.i am using put method like cache.put(object key ,object value) ,but its not allowing to put into cache.
    can you please help me.i m sending my code.plz go thru and tel me whr i did mistake.
    package lab3;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.net.cache.NearCache;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.PrintWriter;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
    import java.util.Scanner;
    import javax.naming.Name;
    public class BlockScoleData {
         * @param args
         * s=The spot market price
         * x=the exercise price of the option
         * v=instantaneous standard deviation of s
         * r=risk free instantaneous rate of interest
         * t= time to expiration of the option
         * n – Number of MC simulations.
         private static String outputFile = "D:/cache1/sampledata2.txt";
    private static String inputFile = "D:/cache1/sampledata2.txt";
    NearCache cache;
    List<Credit> creditList = new ArrayList<Credit>();
         public void writeToFile(int noofsamples) {
              Random rnd = new Random();
              PrintWriter writer = null;
              try {
                   writer = new PrintWriter(outputFile);
                   for (int i = 1; i <= noofsamples; i++) {
                        double s = rnd.nextInt(200) * rnd.nextDouble();
                        //double x = rnd.nextInt(250) * rnd.nextDouble();
                        int t = rnd.nextInt(5);
                        double v = rnd.nextDouble() ;
                        double r = rnd.nextDouble() / 10;
                        //int n = rnd.nextInt(90000);
                        writer.println(s + " " + t + " " + v + " "
                                  + r );
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } finally {
                   writer.close();
                   writer = null;
    public List<Credit> readFromFile() {
    Scanner scanner = null;
    Credit credit = null;
    // List<Credit> creditList = new ArrayList<Credit>();
    try {
    scanner = new Scanner(new File(inputFile));
    while (scanner.hasNext()) {
    credit = new Credit(scanner.nextDouble(), scanner.nextInt(),
    scanner.nextDouble(), scanner.nextDouble());
    creditList.add(credit);
    System.out.println("read the list from file:"+creditList);
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    } finally {
    scanner.close();
    credit = null;
    scanner = null;
    return creditList;
    // public void putCache(String cachename,List<Credit> list){
    // cache = CacheFactory.getCache ( "VirtualCache");
    // List<Credit> rand = new ArrayList<Credit>();
    public Object put(Object key, Object value){
    cache = (NearCache)CacheFactory.getCache("mycache");
    String cachename = cache.getCacheName();
    List<Credit> cachelist=new ArrayList<Credit>();
    // Object key;
    //cachelist = (List<Credit>)cache.put(creditList,creditList);
    cache.put(creditList,creditList);
    System.out.println("read to the cache list from file:"+cache.get(creditList));
    return cachelist;
         public static void main(String[] args) throws Exception {
         NearCache cache = (NearCache)CacheFactory.getCache("mycache");
              new BlockScoleData().writeToFile(20);
         //new BlockScoleData().putCache("Name",);
              System.out
                        .println("New file \"myfile.csv\" has been created to the current directory");
         CacheFactory.ensureCluster();
         new BlockScoleData().readFromFile();
    System.out.println("data read from file successfully");
         List<Credit> creditList = new ArrayList<Credit>();
    new BlockScoleData().put(creditList,creditList);
         System.out.println("read to the cache list from file:"+cache.get(creditList));
    //cache=CacheFactory.getCache("mycache");
    //mycacheput("Name",new BlockScoleData());
    //     System.out.println("name of cache is :" +mycache.getCacheName());
    //     System.out.println("value in cache is :" +mycache.get("Name"));
    //     System.out.println("cache services are :" +mycache.getCacheService());
    regards
    chandra

  • How to put email contacts on IPad2 and update apps over 20mb

    I cannot see any of the contacts and need to send emails from Ipad.   Is there anyway to get these.   Also when Trying to update bejeweled it states over 20mb connect to wiifii or use itunes on computer to download.   What does that mean   Will I be able to update the Ipod?   What would wifii do.   My cell phone has internet and states the same thing

    Downloads from the iTunes or app store over 20Mb are limited to use only a wifi connection.  So you cannot download them over a 3G connection but would have to wait until you have a wifi connection.  This is supposedly at the behest of the cellular networks so as not to clog their bandwidth, but honestly, they should be able to handle it.

  • How do I make image backgrounds black and white while maintaining color in the foreground objects?

    I have a close up close-up image of an orchid with blurred background.  I am trying to make the background black and white while maintaining the foreground color on the petals, buds and stems.  Any ideas?

    Use the Blank & White Brick and either brush the effect onto the background or brush is away from the foreground.  "Detect Edges" will help control the edge of the mask.
    You might be interested in knowing that you can brush on/away masks of different strengths, and thus produce effects in between 0% and 100%.
    Search the forum -- there are several good posts detailing how to create this effect.
    Sample search.
    Message was edited by: Kirby Krieger -- added sample search.

  • How do I fix this error "An error occurred while sending mail. The mail server responded: Authentication is required before sending [R0107005]. Please verify

    My previous request had an incorrect email. This error began yesterday and I can't reply or send new emails from my PC, but email is working on my iphone.

    I have been doing that. Here is the complete message I get. It was cut off in my initial question. "An error occurred while sending mail. The mail server responded: Authentication is required before sending [R0107005]. Please verify that your email address is correct in your Mail preferences and try again."

  • How to implement  mailing in ABAP

    Hi all,
    I want to send mail from my abap program to number of recepient, at a perticular time. Is it possible in ABAP to run a perticuler module at a pericler time say 8 AM every morning?

    Hi,
    Check this link for mailing..
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Check this link for scheduling..
    http://help.sap.com/saphelp_46c/helpdata/EN/c4/3a7f87505211d189550000e829fbbd/frameset.htm
    Thanks,
    Naren
    Message was edited by: Narendran Muthukumaran

  • How to reflect a new field in Bank data while making payment through F-53?

    Hello Experts,
    How can i reflect a new field (payment reference) in bank data while making payment through F-53?
    I have tried to do it by Field status group(OBC4) but the same is replicating in vendor invoice but not in vendor payment.
    I tried it at both level,fsg anf posting key,But no use.
    Is there any other process to make available and required field in BANK DATA of vendor payment?
    Please suggest .
    Regards,
    Sumeya offrin

    Hello Sumeya,
    Please consider note 145864 which explains what you have to do to
    make this field visible in your selection criteria:
    "In Transaction FB00 (Financial Accounting Editing Options -> Open items
    activate the flag 'Payment reference as selection criterion'.
    This is valid for incoming payment; please test if the same procedure
    is valid for outgoing payment as well.
    I  check the  issue, and unfortunately these function seems to not be supported for vendor open items.
    When you try to select the 'Payment Reference' in Additional selections
    the following messages is arised:
    'No account specified, items selected via document no. or reference'
    That means,when you do not specify an account in F-53 you can only
    via Reference and/or document. This is not a bug but system design.
    For additional reference you can check the note 451105.
    The note made clear that the specification of an account is required for vendors during the selection via payment
    reference.
    Kind Regards,
    Fernando Evangelista

  • Read external mail through ABAP

    Hi All,
    i want read external mail ( say yahoo, gamil etc) through ABAP code with attachments.
    Thanks and regards
    JK

    Hi,
    Reading external email through pure ABAP won't be an easy task as far as I know. Because it needs user login and password authentication. Therefore it would be better to use something like cURL, which is a good tool for simulating a user's actions at a web browser. You can use cURL on a web server with php installed and after reading the emails pass the contents to ABAP.

  • Difference b/w ACC and BCC while data modifying

    HI Guys,
    What is the main diffeence b/w ACC and BCC  with respect to data modification
    what will happen it i modify data through acc and bcc

    Use the ACC during development:
    Browse and edit component configurations and live values
    Build scenarios
    View And edit pipelines
    View and edit repository data
    Business Control Center- UI for Business Users to upload content to Catalogs, create promotions, create price list.
    In a B2B scenario we can use it to create and manage
    Merchant Organization
    Sub OrganizationsBusiness units
    Catalogs
    Price list
    Associate Price list to each Sub Organization or to Each Business units based on the Contract.
    Basically used for content deployment and admnistration

Maybe you are looking for

  • R/3 ABAP report to BW

    HI Gurus, I have a report in R/3. This is using around 4 tables to populate the output. Where the output has around 30 fields to populate. But, when we analysed we found that some of the values are populating wrong values. But, anyhow the requirement

  • Tank Wars In Java.....Any Startup Ideas?

    Hey well i have to make a project for my grade 11 computer science class and i wanted to do something hard. i was thinking of a game called tank wars. Here is an example of the game i want to recreate: http://www.addictinggames.com/tankwars.html. I j

  • How can I reinstall Contribute CS3?

    I'm having problems with my Adobe products. At first I couldn't uninstall CS3 so I've downloaded Revo Uninstall and managed to delete the programme but I still can't reinstall it. My cd will open, begin to run then just go quiet. I've also bought a c

  • Caution: A1081 Cinema (2007) to Mac Mini (2014). Adapter does not work

    I bought a new Mac Mini along with the Mini Displayport to DVI adapter (MB570Z/B). Exchanged for the HDMI adapter which does work. (After testing both with the full rig at the Genius Bar.)  I suspect that this is a generic problem and not specific to

  • Did I lose my work? Help!

    Yesterday I used Procedure Builder to create a specification and body. I compiled and made changes and compiled until there were no more errors. There was no option to save as it appeared to save when I compiled. Today, I can't find my promgram units