Urgent plz help me.error fixing--full marks given

Hi..this is regarding error fixing for prgm below in ecc 6.0
*& Report  ZCLEAREM
REPORT  ZCLEAREM.
TABLES: LFA1, LFB1, BSIK.
PARAMETERS: CLRDATE LIKE BSIK-AUGDT.
SELECT-OPTIONS:  ALLOCATE FOR BSIK-ZUONR,
                 CLIENT   FOR BSIK-MANDT.
DATA:  BEGIN OF CLEARING OCCURS 3000,
       LIFNR  LIKE BSIK-LIFNR,
       BUKRS  LIKE BSIK-BUKRS,
       BUDAT  LIKE BSIK-BUDAT,
       ZUONR  LIKE BSIK-ZUONR.
DATA:  END OF CLEARING.
DATA: SESSION(12) VALUE 'CLEARVENDORS'.
DATA: BEGIN OF BDC_TAB OCCURS 10.
        INCLUDE STRUCTURE BDCDATA.
DATA: END OF BDC_TAB.
DATA: FROM_DATE(10), TO_DATE(10), COMPANY_CODE LIKE KOST1-BUKRS.
DATA: CTR(4) TYPE N VALUE 0, HOLD_LIFNR LIKE BSIK-LIFNR.
DATA: HOLD_BUKRS LIKE BSIK-BUKRS.
CALL FUNCTION 'BDC_OPEN_GROUP'
     EXPORTING
          CLIENT   = SY-MANDT
          GROUP    = SESSION
          HOLDDATE = '07/01/96'
          USER     = SY-UNAME
          KEEP     = 'X'.
CONCATENATE: CLRDATE4(2) '/' CLRDATE6(2) '/'
  CLRDATE+0(4) INTO FROM_DATE.
WRITE : / 'CLEARING DATE USED IS ', CLRDATE.
START-OF-SELECTION.
GET BSIK LATE.
  CHECK CLIENT.
  CHECK ALLOCATE.
  IF ( BSIK-QSSHB GT 0 ) AND ( BSIK-AUGBL EQ '          ' ).
    MOVE-CORRESPONDING BSIK TO CLEARING.
    APPEND CLEARING.
  ENDIF.
END-OF-SELECTION.
  WRITE : / 'SELECTED ', CTR, ' RECORDS FOR CLEARING...'.
  SORT CLEARING BY LIFNR BUKRS BUDAT.
  DELETE ADJACENT DUPLICATES FROM CLEARING COMPARING LIFNR BUKRS.
  LOOP AT CLEARING.
    WRITE : / CLEARING-LIFNR, ' ', CLEARING-BUKRS, ' CLEARED. '.
    PERFORM GENERATE_BDC_DATA.
    CTR = CTR + 1.
    CALL FUNCTION 'BDC_INSERT'
         EXPORTING
              TCODE     = 'F-44'
         TABLES
              DYNPROTAB = BDC_TAB.
  ENDLOOP.
  CALL FUNCTION 'BDC_CLOSE_GROUP'.
  WRITE: /'end of generation of bdc session - ', SESSION, SY-MANDT,
         SY-UNAME, SY-UZEIT.
  WRITE: / 'WILL CLEAR A TOTAL OF ', CTR, ' RECORDS.'.
      FORM GENERATE_BDC_DATA                                        *
FORM GENERATE_BDC_DATA.
  REFRESH BDC_TAB.
  PERFORM DYNPRO USING:
       'X' 'SAPMF05A' '0131',
       '' 'RF05A-AGKON' CLEARING-LIFNR,
       '' 'BKPF-BUKRS'  CLEARING-BUKRS,
       '' 'BKPF-BUDAT'  FROM_DATE,
       '' 'RF05A-XPOS1(2)' 'X',
       '' 'BDC_OKCODE' '/16',
       'X' 'SAPMF05A'  '0731',
       '' 'RF05A-SEL01(1)' CLEARING-ZUONR,
       '' 'BDC_OKCODE' '/16',
LOOP AT
       'X' 'SAPDF05X' '1102',
       ''  'BDC_OKCODE'  'BU'.
ENDFORM.
      FORM DYNPRO                                                   *
-->  DYNBEGIN                                                      *
-->  NAME                                                          *
-->  VALUE                                                         *
FORM DYNPRO USING DYNBEGIN NAME VALUE.
  IF DYNBEGIN = 'X'.
    CLEAR BDC_TAB.
    MOVE: NAME TO BDC_TAB-PROGRAM,
    VALUE TO BDC_TAB-DYNPRO,
    'X' TO BDC_TAB-DYNBEGIN.
    APPEND BDC_TAB.
  ELSE.
    CLEAR BDC_TAB.
    MOVE: NAME TO BDC_TAB-FNAM,
        VALUE TO BDC_TAB-FVAL.
    APPEND BDC_TAB.
  ENDIF.
ENDFORM.

In abap editor menu path
Goto-->Attributes
here in Logical Database name define KDF.
It will work.
regards
shiba dutta

Similar Messages

  • When i upgrade my Mac Pro to yosemite safari doesn't good work and doesn't save bookmark plz help me to fix it

    when i upgrade my Mac Pro to yosemite safari doesn't good work and doesn't save bookmark plz help me to fix it

    hi
    when i save a page as boomark shown at the bookmark list when i close safari and restart safari evry bookmark that i saved dosn't show at the bookmark list
    excuse me for whriting i speak a little english
    1 save bookmark and show at the bookmarklist
    2 i close safari
    3 and reopen it
    4any bookmark ,i saved them dosn't show at the bookmark list

  • How to install adapters in pi 7.0 ex(tibco adapter) its urgent plz help

    hi  friends
                   can any one help me how  to insatlll  the tibco adapter in pi 7.0 its urgent plz help
    thanks in advance
    bye
    raja

    Hi Raj,
    Is  your Sender System  Tibco If  so  Use  JMS Adapter  to get  the Data from tibco  and Use  IDOC  Adapter  to Post  in R3. For this you no need to Install any Adapter in XI System.
    Similar discussions ,
    XI integration with Tibco
    XI Integration with Tibco EMS (Using JMS Adapter)
    Regards
    Agasthuri Doss

  • Hi plZ help me to fix the error to my Blackberry 9300 Uncaught exception: java.lang.​NullPointe​rException

    ;   hi good plzz do help me to fix the error to my bb9300 i just update my bb9300 the the i see 
    error b    Uncaught exception: java.lang.NullPointerException    anyone here can help me to fix i appreciate

    I am guessing that you are not a Java developer, and it is not your application that is causing the Null Pointer Exception. 
    It sounds like you have updated the OS on your Blackberry device and one of the applications that you have installed is not coping with the upgrade.  
    If you press on an application icon and then that causes the error, then you know there is a problem with that application and so you need to report this to the developers of that application and get an updated version. 
    If this is happening when you restart your device, then it appears that one of the installed applications is failing at start up time and so it is not obvious which application.  So you need to see which of your applications doesn't appear to be providing all the functions it used to, and it would be a good guess that it is that application that is causing the problem.  Again you need to go back to the developer to get an update. 
    Let us know if that does not help.
    Also you have posted in the Java developer forum.  If this really is not your program causing the problem, then I suggest a better place to post a question relating to the 9300 is in the appropriate device forum here:
    http://supportforums.blackberry.com/t5/BlackBerry-​Curve/bd-p/Curve

  • Need help in error fixing in Unicode platform in ECC 6.0

    Hello Experts,
    I am getting an error as below:
    "TEMP_HEX" must be a character-type data object (data type C, N, D, T     or STRING) .  for the code below:
    data: TEMP_HEX(1) TYPE X VALUE '7F',     
    temp_char type string 'plz help me'.
    REPLACE ' ' WITH TEMP_HEX INTO temp_char.
    could anyone suggest the solution for converting '7f' to character...
    plz its urgent i am having an issue about this...
    Thanks,
    Laxmi.

    Hi Laxmi,
    Can u pls explain exactly u want to do.
    becoz u can use replace syntax only with the data types
    Char,Numc,Date,String and Time . No other data type is allowed.can u explain what is ur need ???
    Regards,
    Balakumar.G.

  • RECORDING WITH F-32 .......ITS URGENT PLZ HELP ME

    HI GUYS
    HERE IS MY REQUIREMENT
    I WANT TO DO A RECORDING USING F-32 AND I HAVE TO DO THE FOLLOWING WAYS
    1- ENTER ACCOUNT
    2-COMPANY CODE
    3-CLEARING DATE
    4-OPENITEM SELETION
    5-I HAVE TO SELECT THE REFERENCE RADIO BUTTON
    HERE IS MY ERROR , I DONT KNOW WHAT ARE THE VALUE I HAVE TO ENTER IN THE REFERENCE FIELD AND HOW TO PROCEED ,PLZ HELP ME IT IS VERY VERY URGENT FOR ME.
    THANKS A LOT
    MRUTYUN

    This should get you started:
    FORM clearing USING    p_purch_order
                           p_cus
                           p_ven.
      DATA: okcode(3).
      CLEAR bdcdata.
      CLEAR messtab.
      REFRESH bdcdata.
      REFRESH messtab.
      MESSAGE s205 WITH 'Clearing A/R Invoice to Invoice Receipt.'.
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0131',       "Clear Customer: Header Data
       ' ' 'RF05A-AGKON'      bill_to,
       ' ' 'BKPF-BUDAT'       today_ch,
       ' ' 'BKPF-BUKRS'      'UOFT',
       ' ' 'BKPF-WAERS'      'CAD',
       ' ' 'RF05A-XNOPS'     'X',
       ' ' 'RF05A-XPOS1(2)'  'X',
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0730',       "Amount popup
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0730'.       "Press enter
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0710',"Clear Customer: Enter selection criteri
       ' ' 'RF05A-AGBUK'     'UOFT',
       ' ' 'RF05A-AGKON'      bill_to,
       ' ' 'RF05A-AGKOA'     'D',
       ' ' 'RF05A-XNOPS'     'X',
       ' ' 'RF05A-XMULK'     'X',
       ' ' 'RF05A-XPOS1(1)'  'X',
       ' ' 'BDC_OKCODE'      '/16'.        "Process Open Items
      PERFORM dynpro USING:
       'X' 'SAPMF05A'        '0609',       "Additional Accounts popup
       ' ' 'RF05A-AGKON(1)'   p_ven,
       ' ' 'RF05A-AGKOA(1)'  'K',
       ' ' 'RF05A-XNOPS(1)'  'X'.
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      'OMX'.        "Select all
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      '/6'.         "Inactive
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      '/6'.         "Find
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '2000',       "Select search criteria popup
       ' ' 'BDC_OKCODE'      '/24'.        "Next page
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '2000',       "Select search criteria popup
       ' ' 'RF05A-XPOS1(10)' 'X'.          "Allocation
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '0731',       "Search for Allocation
       ' ' 'RF05A-SEL01(1)'   p_purch_order.                    "PO
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',       "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'      'OMX'.        "Select all
      PERFORM dynpro USING:
    'X' 'SAPDF05X'        '1102',         "Clear Customer: Select open item
       ' ' 'BDC_OKCODE'    '/05'.          "Active
      IF p_test = space.
        okcode = '/11'.                    "save
      ELSE.
        okcode = 'BS'.                     "simulate
      ENDIF.
      PERFORM dynpro USING:
       'X' 'SAPDF05X'        '1102',
       ' ' 'BDC_OKCODE'       okcode.      " save or check
      IF p_test NE space.                  "exit from screen after check
        PERFORM dynpro USING:
         'X' 'SAPMF05A'        '0700',
         ' ' 'BDC_OKCODE'       '/15'.     "Save or check
        PERFORM dynpro USING:              "popup
         'X' 'SAPLSPO1'        '0200',
         ' ' 'BDC_CURSOR'      'SPOP-OPTION1'.       "choose yes
      ENDIF.
      CALL TRANSACTION 'F-32' USING bdcdata MODE u_mode UPDATE 'S'
                                            MESSAGES INTO messtab.
      PERFORM get_message TABLES messtab USING text 'CL'.
      IF text IS INITIAL.
        PERFORM batch_input USING 'F-32'.
      ENDIF.
    ENDFORM.                               " CLEARING
    Rob

  • Runtime error...plz help me .ful amrks wud be given

    Hi gurus..
    m running a user defined transaction ZV48cji which includes all standard Programs..it gives short dump after running it..the description is as follows.
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was
    not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    A PERFORM was used to call the routine "GENERIERUNG_PRUEFEN" of the program
    "RV14ALLE".
    The current call contains 4 actual parameter(s),
    but the routine "GENERIERUNG_PRUEFEN" expects 5 parameters.
    can anybody help me hw to resolve this as this is a standard program..any solution..
    full marks wud be given for answers..
    waiting for the reply
    Regards
    Sahil

    hai..
    please give d exceptions condition in d function module .. den u won't get d dump...
    eg:
    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
       <b> 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.</b>

  • FlashPlayer suddenly turns black screen, urgent plz help

    I am a game developer. my game work fine for two months. but recently some player told me that when in playing games flashplayer suddenly turns black screen. when i using flashplayer debug. it didn't throw any excepetion or error. and when i right click in flashplayer content. the menu show 2 opptions. do not load movie and flashplayer verison is 11.6.602.180...
    many many player told me about this. and my game is still running for all the player. so plz help, verry urgent, thx

    If they are on Windows, they may need to update their display adapter drivers; see http://forums.adobe.com/thread/945765

  • Refreshing JEditorPane (Urgent) plz help

    hello programmers,
    i'm building an html editor:
    My html editor has a split pane, the 2 pane got of the split pane are JEditorPanes, one on which i write tag and the other i display them,... thankfully all's working great, my syntax is highlighting and the html is displayed well but i've got the following problem:
    when i save a html page , i wanna my browser (on the right side of the slipt pane) to display the html page... it's ok .. it displays it with the method JHTMLEditorPane.setPage(file:/// directory/ file) but the problem is that when i save the page again using the same filename... my html page on the JHTMLEditorPane stays the same... it does not update...
    is their a refresh function for the JEditorPane? how can i update my JHTMLPane to reflect the changes i've brought to it? ONe thing , the page changes when i save it by aother file name..... PLz help it's very urgent!!!!!!!
    Bernard

    Have you tried to close and then re-open the file in your editorpane after you've saved?
    It will work when you change the name because it has to open the file as new. Java can't dynamically update values upon files like C does with pointers.

  • Query on FBL3N................Urgent  plz help me on this.

    Hi Friends
         Here is my query,
    I am changing the tcode FBL3N to add one extra field into it and to display data in the name1 field for the spcific entries in the selection screen,
    After selecting the All item radio button and giving the range in the select-options when i am pressing F8 it is giving me the correct output,after that when i am trying to display the name1 field by selecting the ctrl+f8 button and pressing the apply button  it is giving me the error as
    "An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT
    for program RFITEM_INC.
    This is due to inconsistencies between table T021S (special fields) and
    structure RFPOSEXT."
    I changed everything to Y* but still it is giving the error.
    Plz help me in this if someone face the same prob or someone having idea on this.
    Thanks a lot in Advance
    Mrutyun^

    Hi Mrutyunjaya,
    Did you manage to resolve this error?
    Thanks and Regards
    Pras

  • Java Mail Project HELP Required....URGENT PLZ HELP!!!

    hello there!!
    i took up a pjct for my engineering on java mail..got the code..and i thought that ill analyse it...the code is submitting the mail to the smtp server but after dat its failing to deliver to the client..as i can see this error in the logs on SMTP server...can anyone help me out in analysing this code!!!
    plz help, exams are near...(am new to java)
    //java FINAL!
    import javax.swing.*;
    import java.net.URL;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class EmailProg extends JPanel implements ActionListener {
    protected JTextArea textArea;
    protected String newline = "\n";
    static final private String composemail = "compose";
    static final private String sendmail = "send";
    static final private String about = "about";
    static final private String submit = "submit";
    static final private String exit = "exit";
    JLabel lSubmit = new JLabel("Submit");
    JButton subbutton = new JButton();
    JTextArea emailfrom = new JTextArea(1,1);
    JTextArea emailto = new JTextArea(1, 1);
    JTextArea emailsubject = new JTextArea(1, 1);
    JTextArea emailmessage = new JTextArea(25, 1);
    //------BAG LAYOUT
    JLabel lFrom = new JLabel("From:");
    JTextField cFrom = new JTextField(32);
    JLabel lTo = new JLabel("To:");
    JTextField cTo = new JTextField(32);
    JFrame frame2 = new JFrame("Compose New");
    JLabel lSubject = new JLabel("Subject");
    JTextField cSubject = new JTextField(32);
    JLabel lMessage = new JLabel("Body");
    JTextArea cMessage = new JTextArea(5,32);
    //====================================
    public EmailProg() {
    super(new BorderLayout());
    //Create the toolbar.
    JToolBar toolBar = new JToolBar();
    addButtons(toolBar);
    //Create the text area used for output. Request
    //enough space for 5 rows and 30 columns.
    textArea = new JTextArea(5, 30);
    textArea.setEditable(false);
    textArea.setText("Welcome to Jeff's email program! With this program you can compose and send emails. I hope I get a good grade on thise, and marine world finds a good use for it :-D:-D (implements really just testing the scroller!!!)");
    JScrollPane scrollPane = new JScrollPane(textArea);
    //Lay out the main panel.
    setPreferredSize(new Dimension(450, 110));
    add(toolBar, BorderLayout.NORTH);
    add(scrollPane, BorderLayout.CENTER);
    //==================================
    protected void addButtons(JToolBar toolBar) {
    JButton button = null;
    //first button
    button = makeNavigationButton("/toolbarButtonGraphics/general/ComposeMail24.gif", composemail ,"Compose new Email", "compose new");
    toolBar.add(button);
    //second button
    button = makeNavigationButton("toolbarButtonGraphics/general/SendMail24.gif", sendmail,"Send The Mail","send");
    toolBar.add(button);
    //third button
    button = makeNavigationButton("toolbarButtonGraphics/general/About24.gif", about,"About","About");
    toolBar.add(button);
    //exit button
    button = makeNavigationButton("toolbarButtonGraphics/general/Stop24.gif", exit, "Exit", "Exit");
    toolBar.add(button);
    //===================================
    protected JButton makeNavigationButton(String imageName, String actionCommand, String toolTipText, String altText) {
    //Look for the image.
    String imgLocation = imageName;
    URL imageURL = EmailProg.class.getResource(imgLocation);
    //Create and initialize the button.
    JButton button = new JButton();
    button.setActionCommand(actionCommand);
    button.setToolTipText(toolTipText);
    button.addActionListener(this);
    if (imageURL != null) {                      //image found
    button.setIcon(new ImageIcon(imageURL));
    } else {                                     //no image found
    button.setText(altText);
    System.err.println("Resource not found: "+ imgLocation);
    return button;
    //=============================
    public void actionPerformed(ActionEvent e) {
    String cmd = e.getActionCommand();
    String description = null;
    // Handle each button.
    if (exit.equals(cmd)){
    textArea.setText("");
    description = "EXITING";
    System.exit(0);
    if (composemail.equals(cmd)) { //first button clicked
    textArea.setText("");
    description = "Write new mail.";
    composeWindow();
    } else if (sendmail.equals(cmd)) { // second button clicked
    textArea.setText("");
    description = "This button does'nt do anything yet :x";
    } else if (about.equals(cmd)) { // third button clicked
    textArea.setText("");
    description = "About this program. (See pop-up)";
    coolWindow();
    else if (submit.equals(cmd))
    if (cFrom.getText().equals("")||cTo.getText().equals("")||cSubject.getText().equals("")||cMessage.getText().equals(""))
    textArea.setText("One or more of the fields was not filled in.");
    else{
    try {
    String smtpServer="serverhere";
    String to=cTo.getText();
    String from=cFrom.getText();
    String subject=cSubject.getText();
    String body=cMessage.getText();
    send(smtpServer, to, from, subject, body);
    textArea.setText("");
    description = "Mail Sent.";
    JOptionPane.showMessageDialog(null, "Message Sent.");
    catch (Exception ex)
    System.out.println("Usage: java com.lotontech.mail.SimpleSender"
    +" smtpServer toAddress fromAddress subjectText bodyText");
    //CLOSE THE FRAME2 WINDOW IIIIIIIIFFFFFFF SENDING IS SUCCESSFUL!!
    }//end of else during send
    }//end of if of submit
    displayResult(description);
    //============================
    protected void displayResult(String actionDescription) {
    textArea.append(actionDescription + newline);
    //=============================
    public void coolWindow() {
    JFrame frame = new JFrame("About");
    JTextArea filecontents = new JTextArea();
    filecontents.setText("Use the tool bar to compose\n compose new emails, in which you can\n send to anyone on the\n srvhs email server. \n Fill in all the blanks before pressing send. If you dont\n you will receive an error! \n For more information about this program click on the\n information button.");
    frame.getContentPane().add(filecontents, BorderLayout.CENTER);
    frame.pack();
    frame.setResizable(false);
    frame.setSize(300,200);
    frame.setVisible(true);
    //===============================
    public void composeWindow() {
    frame2.getContentPane().setLayout(new GridBagLayout());
    frame2.setResizable(false);
    frame2.setSize(600,500);
    frame2.setVisible(true);
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.insets = new Insets(5, 10, 5, 10);
    cMessage.setLineWrap(true);
    subbutton = makeNavigationButton("toolbarButtonGraphics/general/SendMail24.gif", submit,"submit","submit");
    addRow(gbc, lFrom, cFrom);
    addRow(gbc, lTo, cTo);
    addRow(gbc, lSubject, cSubject);
    addRow(gbc, lMessage, cMessage);
    addRow(gbc, lSubmit, subbutton);
    //===============================
    private void addRow(GridBagConstraints gbc, Component left, Component right) {
    gbc.gridx = GridBagConstraints.RELATIVE;
    gbc.gridy = GridBagConstraints.RELATIVE;
    gbc.gridheight = 1;
    gbc.gridwidth = 1;
    gbc.anchor = GridBagConstraints.EAST;
    frame2.getContentPane().add(left, gbc);
    gbc.gridwidth = GridBagConstraints.REMAINDER;
    gbc.anchor = GridBagConstraints.WEST;
    frame2.getContentPane().add(right, gbc);
    frame2.pack();
    //=======================
    public static void send(String smtpServer, String to, String from, String subject, String body) {
    try {
    Properties props = System.getProperties();
    props.put("localhost", smtpServer);
    Session session = Session.getDefaultInstance(props, null);
    System.out.println(smtpServer);
    // -- Create a new message --
    Message msg = new MimeMessage(session);
    // -- Set the FROM and TO fields --
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
    // -- We could include CC recipients too --
    // if (cc != null)
    // msg.setRecipients(Message.RecipientType.CC
    // ,InternetAddress.parse(cc, false));
    // -- Set the subject and body text --
    msg.setSubject(subject);
    msg.setText(body);
    // -- Set some other header information --
    msg.setHeader("X-Mailer", "LOTONtechEmail");
    msg.setSentDate(new Date());
    // -- Send the message --
    Transport.send(msg);
    System.out.println("Message sent OK.");
    catch (Exception ex)
    ex.printStackTrace();
    public static void main(String[] args) {
    JFrame frame = new JFrame("EmailProg");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    EmailProg newContentPane = new EmailProg();
    newContentPane.setOpaque(true);
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    }

    The code to retrieve the messages from SMTP
    finally all working fine...
    thanx guys!!!
    package EmailProg;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
      * A simple email receiver class.
    public class SimpleReceiver
        * Main method to receive messages from the mail server specified
        * as command line arguments.
      public static void main(String args[])
        try
          String popServer=args[0];
          String popUser=args[1];
          String popPassword=args[2];
          receive(popServer, popUser, popPassword);
        catch (Exception ex)
          System.out.println("Usage: java com.mail.SimpleReceiver" +" popServer popUser popPassword");
        System.exit(0);
         * "receive" method to fetch messages and process them.
       public static void receive(String popServer, String popUser, String popPassword)
         Store store=null;
         Folder folder=null;
         try
           // -- Get hold of the default session --
           Properties props = System.getProperties();
           Session session = Session.getDefaultInstance(props, null);
           // -- Get hold of a POP3 message store, and connect to it --
           store = session.getStore("pop3");
           store.connect(popServer, popUser, popPassword);
           // -- Try to get hold of the default folder --
           folder = store.getDefaultFolder();
           if (folder == null) throw new Exception("No default folder");
           // -- ...and its INBOX --
           folder = folder.getFolder("INBOX");
           if (folder == null) throw new Exception("No POP3 INBOX");
           // -- Open the folder for read only --
           folder.open(Folder.READ_ONLY);
           // -- Get the message wrappers and process them --
           Message[] msgs = folder.getMessages();
           for (int msgNum = 0; msgNum < msgs.length; msgNum++)
             System.out.println(msgs[msgNum]);
         catch (Exception ex)
           ex.printStackTrace();
         finally
           // -- Close down nicely --
           try
             if (folder!=null) folder.close(false);
             if (store!=null) store.close();
           catch (Exception ex2) {ex2.printStackTrace();
      }

  • Hi problem with the transaction XD02.please help..full marks given

    Hi,
    I am running a transaction XD02 and providing the following details.
    Tcode: XD02
    Customer: J101
    Company Code: C800
    Sale Org: CJRP
    Dist Chan: 00
    Divison: CH
    <ENTER> and then
    Click on pushbutton "Other Communication" - the popup does not include option INT Internet mail (SMTP).it has got other options like fax,pager services,printer,remote mail,telephone but no internet mail.
    can anybody help me in adding this functionality.
    full marks wud be given for the right person..

    Hi, customer screens will come depending on our settings in SPRO. we can make them visible or invisible through our settings. Basically SD Consultants do that.
    any way. As you are using XD02, find out the customer account group and follow the steps for that account group in SPRO. the seetings will reflect in XD01, 02 and 03 transactions.
    But in your case may be you are doing the steps for different account group (sold-to, ship-to, bill-to..etc). You can find account group in KNA1 table.
    Save the entries and then check. try using logon again.

  • Urgent plz help me......plz

    Am very nem to jsp.
    am doing my final year project in jsp.
    I want to retreive value in the textbox depending on the selectino made in the dropdown.
    in the dropdown menu i retrieve employee id frm backend. n in the textbox i shuld get employee name depending on the selection made in the dropdown list. that is data in the textbox shuld change depending on the selectin made in dropdown.
    here is my code which i tired but in the textbox the value is alwys remaning the last record value n it is not changing depending on slectino made in dropdwon list
    <%@ page import="java.util.*" %>
    <%@ page language="java" %>
    <%@ page import="java.sql.*" %>
    <HTML>
    FAQ
    Category choice
    <FORM ACTION="selection.jsp" METHOD="POST">
    <%
    String nameselection = null;%>
    <SELECT NAME="Category" id= Category >
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection("jdbc:odbc:man","scott","tiger");
    Statement statement = conn.createStatement();
    ResultSet rs = statement.executeQuery("SELECT DISTinCT empid FROM employee" );%>
    <OPTION VALUE='nochoice'>Please choose a category</OPTION>";
    <%while(rs.next()) {
    nameselection = rs.getString("empid");%>
    <OPTION value ="optcategory"><%out.println(nameselection);%>
    </OPTION>
    <% } %>
    </SELECT>
    Question selection
    <%
    String password = null;%>
    <%ResultSet m1 = statement.executeQuery("SELECT * FROM employee WHERE empid = ( '" + nameselection + "')");
    String mm1;
    while(m1.next()){%>
    <input type =text name=mm value="<%= m1.getString(2) %>">
    <%}%>
    </FORM>
    </HTML>
    plz help me....
    am very new to it.
    Thanx in advance

    hi manisha
    good try & sorry for late reply
    To say the truth i'm too new to jsp
    i'll give u my code see it for reference.. if u have any doubts in that pls don't forget to ask me
    function display()
      var index=document.form1.drug.value;
      document.form1.hid.value=index;
      form1.submit();
    function refresh()
         var indexOfcombobox = document.form1.drughid.value;
         sel = document.form1.drug;
         for (i=0; i<sel.options.length; i++) {
              if (sel.options.text ==indexOfcombobox ) {
                   sel.selectedIndex = i;
    <form name="form1" method="post" action="">
    <body onload="refresh() ">
    <select name="drug" id="drug" value="hid" onChange="display()">
    <option value="" selected> </option>
    <%
    while(rs.next())
    %>
    <OPTION VALUE="<%=rs.getString("DrugName")%>"><%=rs.getString("DrugName") %></OPTION>
    <%
    %>
    </select>
    <input type="hidden" name="hid">
    </div></td>
    </tr>
    <tr>
    <td>NDC code #</td>
    <td>
    <%
    //query for selecting the values from the database
    String sql1 = "SELECT ProductCode,DrugName,Dosageform from ProductMaster where DrugName='"+request.getParameter("hid")+"' ";
    rs=stm.executeQuery(sql1);
    %>
    <% while (rs.next())
    String val1=rs.getString("ProductCode");
    String val2=rs.getString("DrugName");
    String val3=rs.getString("Dosageform");
    out.println (val1 +"</td>");
    out.println ("<input type=hidden name=ndc value='" + val1 + "'>");
    out.println ("<input type=hidden name=drughid value='" + val2 + "'>");
    out.println("<td>Dosageform    :     "+val3);
    }Regards
    kalai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Urgent Plz Help

    hi
    actually my problem is that i have to print the page which is not in the brouser
    i,e a html page which cannnot be viewed but has to printed.
    normlly a page opened in any brouser can be given to the printer but how to give the unseen page to a printer .I dont know if it can be done through java but if it can it has to be done using jdk1.3.
    plz help me in this..

    First of all , Wrong forum!! This is a client side issue(unless you are trying to print the page in a server side printer). Anyway, to print in client side put the unseenable data in a hidden frame and use javascript window.print(). If you are using DHTML enabled browser(IE 5+) , you will be able to use CSS to specify alternate document for printing <link rel=alternate media=print href="printversion.doc"> .See http://www.pageresource.com/dhtml/d_a_01.htm

  • Maitaining of AP Datasource (Urgent) plz help ...

    hi Edwin ,
    This is prakash,
    My requirement is to design the Account Payables (line item) cube for that one i am using business content datasource is 0FIAP_3 this is the line item details ,in intial stage i want to add the some more fields like (allocation number,business area,material,purchase order date) these fields are not avilable for predefined structure.i want these fields  also so, how can i add the fields ? ,is it going to enhancement or to add the extract structure  ?
    iam confusued so plz help me
    advanced thanks
    prakash
    Message was edited by:
            Prakash V
    Message was edited by:
            Prakash V

    Hi,
    Follow the information given in the below help;
    http://help.sap.com/saphelp_bw32/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm
    That means if the required field is available either in BSIK or in BSAK, then just add the field to CI_BSIK and no code in CMOD.
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for

  • I need help connecting my HDV 1080i to my Macbook Pro

    I bought a Sony HDV 1080i, and I cannot get it to record onto my 2011 macbook pro. Serial # HDR-HC1 I have a firewire cable, but when I connect my camera nothing shows up... I really want this film on my computer.. If anyone could help id be more the

  • After reinstall, can't get sound to work

    I did a full reinstall of windows XP to a new hard dri've after my old one crashed, and I can't get the sound card to work. I am getting no sound whatsoever. I have the Soundblaster? X-fi disc that came with my Dell computer, and I used that to insta

  • Two versions of XSD with same namespace in one project

    I'm working with a two very large version of the same set of XSDs. For some uses I need to use the old version for other the new ones. They use the exact same namespace. So when I include them in the same project there is overlap and conflicts. The s

  • Download adobe flash player on iMac

    I bought imac this week and i tried to play video clips from youtube straithway but it needed adobe flash player, so I downloaded it however there is something wrong in here i didnt touch anything but this computer can't accept this program. even the

  • Spaces and MS Word for Mac 2008..anyone else having this problem

    Hello, I know MS Word for Mac 2008 isn't a Apple Product but is anyone else having the same problem as me and is there a solution? I have it set up to be in "spaces 4" and I'll be working on it and suddenly it ends up in space 2, or 1. Really aggrava