Urgent plz help in currency conversions

hi to all
         wrbtr = sum of dmbtr
wrbtr = document currency
dmbtr = local currency
how can i match these
there is any function module to convert one to other.
plz help me in this issue
take example wrbtr = 20,000
sum of dmbtr =200
i am not understanding does i should use a fm or some other to make
wrbtr = sum of dmbtr
does the local currency and document currencies r same.
plz helpme
Message was edited by: kranthi reddy

Hi,
  Local currency & document currencies need not be same, and that is the reason function modules are used ( Convert_to_local_currency & Convert_to_foreign_currency ) to convert the amount either to your Local or to Document currency, if they are same there is no need for conversions,
  Can you elaborate on your query related to summing up the values as it is not clear,
Rgds,

Similar Messages

  • 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

  • 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.

  • 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

  • Need help with Currency Conversion

    Hello,
    I need to implement currency conversion in our existing classic planning application (11.1.2.1) which was initially set as a multi-currency application but so far we didn’t have the users entering data in their local currencies. We were entering all the values in USD. Now the users will be entering data in their local currencies and we need to convert their local data into USD  for reporting purposes.
    I don’t have much experience with multi-currency applications and so I would really appreciate if the gurus here can guide and help me.
    Our currency dimension has the following three members USD, B, C. Our reporting currency is USD which is the default currency for our application.
    After reading some forum posts and documentation below are the steps I tried but couldn’t get it to work right. Correct me if I am doing something wrong, or in the wrong order or missing something.
    Administration – Manage – Exchange Rates – Create – A_FY13 – Edit – Chose all the options – Average, Ending, BegBalance, Historical, Method – Clicked Next – Chose the Year as FY13 from the drop down (in Show Years) and entered the exchange rates for both B & C – Save.
                          A message was displayed – “Exhange Rate has been saved successfully”. 
    Administration – Manage – Currency Conversions – A_FY13 – Next - Currency - USD, Scenario – Actual, Version Type – Target, Version – Working – Save.
                                  A message was displayed – “Scripts were successfully created”.
    In EAS both the scripts – HspCRtT & A_FY13 were created.
    Edited the A_FY13 script FIXs to only work on year FY13 for one month for testing purposes.
    In workspace edited the Actual scenario to be associated with the A_FY13 exchange rate table.
    In EAS ran the HspCRtT script first followed by ACT_FY13. The scripts completed successfully.
    While pulling data (Level 0 data) in Excel the data is present in “Local” intersection for the accounts I am looking at but when looked at the USD intersection the data is converted right for only one account, for some other accounts there is no data in the intersection and for another account which is a weight account (weight of a product) which doesn’t need to get converted the values got converted. For some reason the conversion isn’t working right for the accounts.
    Are there any steps that I am missing here?  Please let me know your ideas and help me. Any help is appreciated and I will be looking forward for suggestions and ideas.
    Thanks.
    ~ Adella
    P.S ~ I had posted a similar question a couple months earlier but still couldn't really get things to work... and so I am posting it again to get more help. For those who are feeling that they have read this kind of a question earlier from me...please bear with me as I couldn't get my issues resolved and still couldnt get things implemented successfully. Again, I would really appreciate if you could further help me with your ideas and suggestions.

    replied to the old thread
    Regards
    Celvin
    http://www.orahyplabs.com

  • 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

  • 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

  • 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

  • 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

  • Need help in currency conversion

    i am doing currency conversion at query level.
    i am getting this error message for the output.
    Diagnosis
    The exchange rate 19.334.782,61- was calculated via the base currency INR. This produced a rate which exceeds the maximum allowed value of 9999.99999.
    System Response
    The processing can not be continued because the calculated rate can not be used.
    Procedure
    Check the conversion rate to the base currency INR and the exchange rate type MA. If the rates are correct, you must agree different conversion factors for the currencies in question (e.g. 100:1 instead of 1:1), so that the resulting conversion rate does not exceed the value 9999.99999.
    Notification Number SG 119
    how do i change that factor from 1:1 to 100:1 , which is mentioned above ?

    Hi,
    thanks for reply.
    But changing in SPRO ->  is just the display option.
    But the issue that is being faced is with the currency conversion in the query.  since the rate for that currecny maintained in tcurr table is a very small value, the conversion is not happening and its displayed as it is in the query output.
    also, we cannot go with the option of changing the ratio in tcurr table for this currency, because there are so many dependent objects and then we have to change some logic for all those to incorporate this rates. and our Basis team has mentioned that changing the ratio will not be done because of this.
    how do i go about?  whether any other methods available?

  • 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();
      }

  • Need Urgent Help on Currency Conversion Routine

    I am trying to load data from Cube2 to cube1. If cube2 has static currency as EUro then i have to convert the amount into GBP. I managed to convert the amount, but it Local currency is still showing as Euro where it should have been GBP. Any ideas? Please let me know if i need to put fullstop(.) or , in the code.
    The code i am using is as follows:
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
    EXPORTING
    CLIENT = SY-MANDT
    DATE = COMM_STRUCTURE-pstng_date
    FOREIGN_AMOUNT = COMM_STRUCTURE-inv_rc_val
    FOREIGN_CURRENCY = COMM_STRUCTURE-loc_currcy
    LOCAL_CURRENCY = 'GBP'
    RATE = 0
    TYPE_OF_RATE = 'M'
    READ_TCURR = 'X'
    IMPORTING
    local_amount = RESULT
    EXCEPTIONS
    NO_RATE_FOUND = 1
    OVERFLOW = 2
    NO_FACTORS_FOUND = 3
    NO_SPREAD_FOUND = 4
    DERIVED_2_TIMES = 5
    OTHERS = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.

    Hi Swapna,
    Just mark 'Unit Conversion in the Routine' in update rules.
    system provides two new lines of coding
    result value of the unit
      UNIT = .
    Just add desired currency ( e.g. UNIT = 'GBP' . )
    Hope this helps
    Joe

  • Urgent plz help me out about cartesian product

    plz...its urgent,can anyone help in the following query where iam getting cartesian product,so how to get result without cartesian product
    this is the query
    SELECT DISTINCT MIS.segment1 "ITEM CODE",
    MIS.DESCRIPTION "DESCRIP"
    ,MIS.Primary_uom_code "UOM",
    MTL.LOT_NUMBER "LOT NUMBER"
    ,A.PARTY_NUMBER "CUSTOMER NUMBER",
    A.PARTY_NAME "CUSTOMER NAME",
    (A.ADDRESS1||A.ADDRESS2||A.ADDRESS3||A.ADDRESS4) "SHIP TO",
    B.DELIVERY_DETAIL_ID "DO NO",B.SHIPPED_QUANTITY "SHIPPED QUANTITY"
    ,C.ULTIMATE_DROPOFF_DATE "ISSUED DATE"
    ,D.ORDER_NUMBER "SALES ORDER NUMBER"
    ,E.LINE_NUMBER "SALES ORDER LINE"
    FROM MTL_SYSTEM_ITEMS MIS
    ,MTL_TRANSACTION_LOT_NUMBERS MTL
    ,HZ_PARTIES A,
    WSH_DELIVERY_DETAILS B,
    WSH_NEW_DELIVERIES C,
    OE_ORDER_HEADERS_ALL D,
    OE_ORDER_LINES_ALL E
    WHERE MIS.INVENTORY_ITEM_ID=MTL.INVENTORY_ITEM_ID
    AND B.INVENTORY_ITEM_ID=MIS.INVENTORY_ITEM_ID
    AND A.PARTY_ID=B.CUSTOMER_ID
    AND B.DELIVERY_DETAIL_ID=C.DELIVERY_ID
    AND MIS.INVENTORY_ITEM_ID=E.INVENTORY_ITEM_ID
    AND D.HEADER_ID=E.HEADER_ID

    A lot of times when I get duplicate results, I'll do a select * and see why. Often one of those tables will have a sequenced value that could repeat several times for a combination of values.
    If thats the case, you may need to add something like:
    ...and a.id = (select min(id)
                     from b
                    where a.col = b.col)

  • Upgrade HP SAN & Restore the data URGENT Plz Help

    Dear All,
    We are going to upgrade HP SAN(Drivers and space) in windows 2003.
    Please Suggest caution and safety measure .We have to take Full Offline Backup.
    If data get crash ,how to recover because sap is also installed in SAN.
    Plz suggest Step By Step it is urgent.
    Thanks in Advance.
    Edited by: pallav mohan on Jul 28, 2008 3:18 PM

    Hi Pallav,
    Assuming that the backup device (TAPE Drive/ LTO Drive) is attached to your sap server,You can follow the steps as below..
    1, Stop SAP from MMC
    2, Shut down the DB server.
    3, Start >program>Administrator tools -->Services..
        This will open another MMC screen by listing  all the Services running. From the list stop SAP services,  
        Oracle Services.
    4, now goto >start> Program > accessories > system tools --> Backup (NTbackup) .
    5, in Backup select all the drives, and select "system Information" which will be below the drives.
    Hope this help.
    regards
    Virendra

Maybe you are looking for

  • New Macbook a good replacement for 12" Powerbook?

    I think, besides the inch in display difference, that the new macbook WOULD HAVE made a GREAT GREAT GREAT replacement for users loving or wanting the portability, yet pro versatility of the old 12" Powerbooks. I think however that Apple has missed th

  • How to display Titles in Browser using Flex 3

    Hi , How is it possible to have a Title Name on the Browser window ?? Any ideas ?? Thanks in advnace .

  • Flatfile loading-info packager settings

    hi guys, Im trying to load one flatfile into infocube. when Im doing settings in infopackage,I came across a tabstrip with name EXTERNAL DATA....in that I didnot understand 1. the two options they gave where I have to choose one.Can u explain the mea

  • 55GB software update

    I've just installed Mountain Lion and the new version of OS X server on my Mac mini Server. I had not yet configured the server settings and I'm not particularly server savy but had been planning on using it for offsite access in my small business. T

  • Print Control

    Dear Experts In FBCJ Cash Journal after posting transaction when i m trying to print payment advice for the same(from downside Print Receipt button which is beside Follow on Document button),this takes me to next screen with warning message that syst