Help needed to display character vaiable in currency format

Hi Friends
In a SAP Script I am passing a currency field to the subroutine as an i/p parameter and since it gets converted to character format in subroutine because of 'itcsy' , ihave deleted the trailing zeroes and decimal points from the field and performed calculations on the field, now i need to pass this char field back to SAP script but i need to display that field in currency format with commas and decimal points in the script...how do i do that???
Thanks
Vishal.

Hi Vishal,
When you pass the currency amount into the perform, no need to remove the trailing zeros and the decimal point.
Only thing you need to remove is the comma seperator as it gives a runtime error during calculation.
To convert it back to the format with comma, write the below command:
WRITE v_Item_total currency '2' to v_item_char.
CONDENSE v_item_char.
Here v_item_total is a number which is converted to comma seperated number and passed to char variable.
This char variable is then passed to the SCRIPT.
regards,
Gaurav.

Similar Messages

  • Help need to display record in same line

    Hi all,
    Correct output is not coming. 
    Movement type u2018261u2019 is material of type raw material.
    Movement type u2018101u2019 is material of type finished prodcut.
    I need to display finished product material details & beside that raw materials in the same line .
    Help me in this regard . I am watching this thread.
    DATA : BEGIN OF  i_final OCCURS 0,
              aufnr LIKE afko-aufnr,
              gstrp LIKE afko-gstrp,
              gltrp LIKE afko-gltrp,
              mblnr LIKE mseg-mblnr,        "mat doc.no
              bwart LIKE mseg-bwart,        "movement type
              matnr LIKE mseg-matnr,
              werks LIKE mseg-werks,
              lgort LIKE mseg-lgort,
              charg LIKE mseg-charg,
              menge LIKE mseg-menge,
              meins LIKE mseg-meins,
           END OF i_final.
    DATA : BEGIN OF i_final2 OCCURS 0,
              aufnr LIKE afko-aufnr,
              gstrp LIKE afko-gstrp,
              gltrp LIKE afko-gltrp,
              mblnr LIKE mseg-mblnr,        "mat doc.no
              bwart LIKE mseg-bwart,        "movement type
              matnr LIKE mseg-matnr,
              werks LIKE mseg-werks,
              lgort LIKE mseg-lgort,
              charg LIKE mseg-charg,
              menge LIKE mseg-menge,
              meins LIKE mseg-meins,
              mqty1 LIKE mseg-menge,        "MILD STEEL SCRAP
              mqty2 LIKE mseg-menge,        "PIG IRON
              mqty3 LIKE mseg-menge,        "FOUNDRY RETURN NORMAL
              mqty4 LIKE mseg-menge,        "CALCINED PETROLEUM COK
              mqty5 LIKE mseg-menge,        "FERRO SILICON
              mqty6 LIKE mseg-menge,        "FERRO MANGANESE
              mqty7 LIKE mseg-menge,        "COPPER SCRAP
              prueflos LIKE qals-prueflos,            "inspection lot number
              merknr LIKE qamr-merknr,                "inspection characteristic no
              kurztext LIKE qamv-kurztext,            "short text of characteristic
              qc_c  LIKE qamr-original_input,
              qc_mn LIKE qamr-original_input,
              qc_ni LIKE qamr-original_input,
           END OF i_final2.
    DATA : BEGIN OF i_final3 OCCURS 0,
               aufnr LIKE afko-aufnr,
               gstrp LIKE afko-gstrp,
               gltrp LIKE afko-gltrp,
               mblnr LIKE mseg-mblnr,        "mat doc.no
               bwart LIKE mseg-bwart,        "movement type
               matnr LIKE mseg-matnr,
               werks LIKE mseg-werks,
               lgort LIKE mseg-lgort,
               charg LIKE mseg-charg,
               menge LIKE mseg-menge,
               meins LIKE mseg-meins,
               mqty1 LIKE mseg-menge,        "MILD STEEL SCRAP
               mqty2 LIKE mseg-menge,        "PIG IRON
               mqty3 LIKE mseg-menge,        "FOUNDRY RETURN NORMAL
               mqty4 LIKE mseg-menge,        "CALCINED PETROLEUM COK
               mqty5 LIKE mseg-menge,        "FERRO SILICON
               mqty6 LIKE mseg-menge,        "FERRO MANGANESE
               mqty7 LIKE mseg-menge,        "COPPER SCRAP
               prueflos LIKE qals-prueflos,            "inspection lot number
               merknr LIKE qamr-merknr,                "inspection characteristic no
               kurztext LIKE qamv-kurztext,            "short text of characteristic
               qc_c  LIKE qamr-original_input,
               qc_mn LIKE qamr-original_input,
               qc_ni LIKE qamr-original_input,
            END OF i_final3.
    DATA : indx TYPE i,
           indx2 TYPE i.
    LOOP AT i_final.
        i_final2-aufnr = i_final-aufnr.
        i_final2-gstrp = i_final-gstrp.
        i_final2-gltrp = i_final-gltrp.
        i_final2-mblnr = i_final-mblnr.
        i_final2-bwart = i_final-bwart.
        i_final2-matnr = i_final-matnr.
        i_final2-werks = i_final-werks.
        i_final2-lgort = i_final-lgort.
        i_final2-charg = i_final-charg.
        i_final2-menge = i_final-menge.
        i_final2-meins = i_final-meins.
        APPEND i_final2.
        CLEAR i_final2.
      ENDLOOP.
      LOOP AT i_final2.
        indx = sy-tabix.
        IF i_final2-bwart = '261'.
          LOOP AT i_final WHERE aufnr = i_final2-aufnr.
         IF sy-subrc EQ 0.
            IF i_final2-matnr = 'MSCRAP'.
              i_final2-mqty1 = i_final-menge.
            ELSEIF i_final2-matnr = '100072'.    "PIG IRON
              i_final2-mqty2 = i_final-menge.
            ELSEIF i_final2-matnr = 'RETFDYNORM'.  "FOUNDRY RETURN NORMAL
              i_final2-mqty3 = i_final-menge.
            ELSEIF i_final2-matnr = '100062'.      "CALCINED PETROLEUM COK
              i_final2-mqty4 = i_final-menge.
            ELSEIF i_final2-matnr = '100063'.      "FERRO SILICON
              i_final2-mqty5 =   i_final-menge.
            ELSEIF i_final2-matnr = '100065'.      "FERRO MANGANESE
              i_final2-mqty6 =  i_final-menge.
            ELSEIF i_final2-matnr = '100070'.
              i_final2-mqty7 =  i_final-menge.
            ENDIF.
          ENDLOOP.
         ENDIF.
        ENDIF.
        READ TABLE i_qals WITH KEY aufnr = i_final2-aufnr.
        IF sy-subrc EQ 0.
          i_final2-prueflos = i_qals-prueflos.
        ENDIF.
        IF i_final2-bwart = '101'.
          LOOP AT i_results WHERE prueflos = i_final2-prueflos.
         IF sy-subrc EQ 0.
            i_final2-merknr = i_results-merknr.
            i_final2-kurztext = i_results-kurztext.
            IF i_final2-kurztext = 'C'.
              i_final2-qc_c = i_results-original_input.
            ELSEIF i_final2-kurztext = 'Mn'.
              i_final2-qc_mn = i_results-original_input.
            ELSEIF  i_final2-kurztext = 'Ni'.
              i_final2-qc_ni = i_results-original_input.
            ENDIF.
          ENDLOOP.
        ENDIF.
        MODIFY i_final2 INDEX indx.
       ENDIF.
    ENDIF.
      ENDLOOP..
      LOOP AT i_final2.
        i_final3-aufnr = i_final2-aufnr.
        i_final3-gstrp = i_final2-gstrp.
        i_final3-gltrp = i_final2-gltrp.
        i_final3-mblnr = i_final2-mblnr.
        i_final3-bwart = i_final2-bwart.
        i_final3-matnr = i_final2-matnr.
        i_final3-werks = i_final2-werks.
        i_final3-lgort = i_final2-lgort.
        i_final3-charg = i_final2-charg.
        i_final3-menge = i_final2-menge.
        i_final3-meins = i_final2-meins.
        i_final3-prueflos = i_final2-prueflos.       "inspection lot number
        i_final3-merknr = i_final2-merknr.                "inspection characteristic no
        i_final3-kurztext = i_final2-kurztext.            "short text of characteristic
        i_final3-qc_c = i_final2-qc_c.
        i_final3-qc_mn = i_final2-qc_mn.
        i_final3-qc_ni = i_final2-qc_ni.
        APPEND i_final3.
        CLEAR i_final3.
      ENDLOOP.
      LOOP AT i_final3 WHERE bwart = '101'..
        indx2 = sy-tabix.
        LOOP AT i_final2 WHERE aufnr = i_final3-aufnr AND
                               bwart = '261'.
          IF i_final3-bwart = '101'.
            i_final3-mqty1 = i_final2-mqty1.
            i_final3-mqty2 = i_final2-mqty2.
            i_final3-mqty3 = i_final2-mqty3.
            i_final3-mqty4 = i_final2-mqty4.
            i_final3-mqty5 = i_final2-mqty5.
            i_final3-mqty6 = i_final2-mqty6.
            i_final3-mqty7 = i_final2-mqty7.
          ENDIF.
        ENDLOOP.
        MODIFY i_final3 INDEX indx2.
      ENDLOOP.
    I am displaying i_final3 with alv
    Edited by: uday madhav chebrolu on May 20, 2008 3:22 PM

    863765 wrote:
    Is there any jsp code to display in same page rather than using ajaxJSPs are on the server, so any "JSP code" will be executed on the server.
    The client has HTML and javascript. The only way to not have the client move to a new page is to use something like Ajax.

  • Help needed- Reg: Display page number in SQL Reports

    Hi,
    I need to display page number in " page no: X of Y " format where X is current page & Y is total number of pages. Now I am able to display only the current page using ' sql.pno '. but not able to display in ' X of Y ' format.
    Any inputs in this regard will be helpful.
    Thanks & Regards,
    Anilkumar.

    Hello Anil,
    If you have the above requirement for Oracle Reports then follow the steps:
    1.In the Paper Layout view or Paper Design view, choose InsertPage Number.
    2. In the Insert Page Number dialog box, choose from the list the location for the page number.
    3.Click the desired page number format: Page Number Only or Page Number and Total Pages.
    Cheers,
    Suresh

  • Help needed finding display port (NOT mini) to VGA adapter please!

    I bought a macbook in 2009 and urgently need a VGA adapter (female) but I don't have a mini display port! Help! I can't seem to find an adapters that suit macbooks before the mini dislay port was brought out.
    Thanks
    Kirsten

    Welcome to Apple Support Community.
    If you have an earlier MacBook 2006-early 2009, it has a mini-DVI port.
    http://store.apple.com/us/product/M9320G/A/apple-mini-dvi-to-vga-adapter
    Search for 'mini DVI to VGA adapter' online, and you will find many sources for an adapter compatible with your MacBook.

  • Help needed in displaying BI Queries, Views in CRM 2007

    Hi Friends,
    I am working on an upgrade project( CRM 2007 from CRM 5.0). In the earlier system, there are using portal for opportunity management. In portal on clicking Reports workcenter link, they were getting the following options.
    Open Query - This gives the list of BI Queries.
    Open View - This gives the list of views that are already created.
    Save View - This gives the provision to save the view.
    Now i need to replicate this functionality in NEW UI(CRM 2007). I am stuck up in how to approach this requirement.
    Any pointers on this will be really helpful.
    Thanks,
    Udaya

    Hi,
    BI Content is shipped in the delivery version (D version). Before you can work with BI Content objects, you have to copy them from the delivery version (D version) to the active version (A version). This means that you must activate the BI Content.
    You can collect the delivered BI Content in the function area BI Content of the Data Warehousing Workbench and copy it to the active version. This ensures that all additional required objects are automatically included, as is the sequence of activation. You can choose whether you want to copy, match, or not install the BI Content objects.
    If you do not compare the versions, the delivery version is used and the active customer version is overwritten when you activate the BI Content.
    We recommend that you install BI Content objects in the following cases:
    After a BI Content release upgrade
    An upgrade to a new BI Content release usually contains a large number of new and modified BI Content objects. If you want to use the new and modified BI Content, you have to reinstall the BI Content objects. Refer to the comments in the Release Notes for BI Content documentation for the particular release. They are available on help.sap.com  ® SAP NetWeaver  ® BI Content. In some cases, we recommend explicitly that you install the A versions of certain objects.
    After installing a BI Content support package
    Refer to the SAP Notes that are delivered with each Content support package. These SAP Notes contain information on why certain BI Content objects are being redelivered. An overview of the SAP Notes can be found at service.sap.com/bi ® Product Information SAP NetWeaver 7.0 BI ® Support Packages ® BI Business Content.
    For More Information Go through the below link
    http://help.sap.com/saphelp_nw04s/helpdata/en/8c/131e3b9f10b904e10000000a114084/frameset.htm
    Regards,
    Marasa.

  • Help needed to display Values one below the other

    Hi Experts,
    I am having three characteristics among eight others whose values are to be displayed in BEx Analyzer. These three characteristics values are line items whose values are being displayed side by side.
    Now, I want them to be displayed one below the other. I do not know how to do it.
    Can anyone guide me?
    Waiting for the reply,
    Thanks in advance,
    With Kind Regards,
    Shreeem

    Hi Shreem,
    As of my knowledge we have only one options for your requirement that is "Hierarchies'.
    You have to create hierarchy for all your line items but this not good pratice.
    Otherwise in reporting only you have to set the hierarchy :- Go to Rows in Rows tab -> Right click-> Select Hierarchy.
    Hope it helps you.
    Thanks and Regards,
    Venkat.

  • Help needed identifying display problem

    I have a 17 inch Powerbook G4. I saw that a lot of people have got display problems and unfortunately I have too. Hopefully you can help me figure out what’s exactly wrong so I can try to fix it!
    Here are the symptoms:
    The upper third of the display is working fine.
    The middle and lower third of the display are darker / faded and flicker a bit at around 20/30 hertz. (But this part is backlit, only a lot less)
    No other symptoms, also the grey part isn’t deformed)
    What I would like to know is, if someone can tell me if this is the Logicboard / Inverterboard or the Display itself.
    Thanks in advance for your help!!

    I have run several tests. Nothing seems to be wrong with video memory or so. The external display port produces a fine image on an external monitor too.
    I have made some pictures of what the screen looks like:
    http://www.renessance.nl/powerbook/display01.jpg
    http://www.renessance.nl/powerbook/display02.jpg
    http://www.renessance.nl/powerbook/display03.jpg
    http://www.renessance.nl/powerbook/display04.jpg
    http://www.renessance.nl/powerbook/display05.jpg
    The bad part is harder to read, doesn't get really black and flickers @ 60hz or so.
    So I'm still wondering if it's the inverterboard or display itself.
    Your help is really appreciated!

  • Help needed to display my form,very urgent

    i have a Main.java to display my tabs, then a PlayerTab.java which contains all the buttons, Create, Update, Delete and View and a CreatePanel.java which contain the form for adding new members.
    The flow is like this when user click on the PlayerTab it will show the 4 buttons.Then when user click on the Create button, i want to show the create panel which contains the form which is inside CreatePanel.java.Then click on other buttons will show other forms. Please teach me how to hide the forms too thanks.
    Main.java
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.awt.Toolkit;
    import javax.swing.BorderFactory;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    public class Main extends JFrame {
         // Constructor
         public Main(){
              setSize(800,600);
              setTitle("S-League Management System");
              setResizable(false);
              setVisible(true);
              Container frame=getContentPane();
              //centralise the screen
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              Dimension frameSize = frame.getSize();
              frame.setLocation((screenSize.width - frameSize.width) / 2,
                   (screenSize.height - frameSize.height) / 2);
              // create new tabbedPane object
              JTabbedPane tabbedPane = new JTabbedPane(){
                   ImageIcon imageIcon = new ImageIcon("");
                   Image image = imageIcon.getImage();
                   public void paintComponent (Graphics g) {
                        g.setColor(new Color(220,220,220));
                        g.fillRect(0,0,800,74);
                        g.drawImage(image, 0, 4, this);
                        super.paintComponent(g);
              //tabbedPane.addTab(" Team Management ", null, new TeamTab());
              tabbedPane.addTab(" Player Registration ",null, new PlayerTab());
              //tabbedPane.setSelectedIndex(1);
              tabbedPane.setBorder(BorderFactory.createEmptyBorder(78,0,0,0));
              frame.add(tabbedPane);
         public static void main(String[] args) {
              Main main = new Main();
              main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              main.toFront();
              main.show();     
    PlayerTab.java
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class PlayerTab extends JPanel implements ActionListener{
         //JPanel mainPanel = new JPanel();
         JButton createbutton = new JButton("Create");
         JButton updateButton = new JButton("Update");
         JButton deleteButton = new JButton("Delete");
         JButton viewButton = new JButton("View");
         public PlayerTab() {
              this.setLayout(null);
              createbutton.setBounds(new Rectangle(10, 16, 79, 27));
              updateButton.setBounds(new Rectangle(10, 64, 79, 27));
              deleteButton.setBounds(new Rectangle(10, 113, 79, 27));
              viewButton.setBounds(new Rectangle(10, 161, 79, 27));
              this.add(createbutton, null);
              createbutton.addActionListener(this);
              this.add(updateButton, null);
              updateButton.addActionListener(this);
              this.add(deleteButton, null);
              deleteButton.addActionListener(this);
              this.add(viewButton, null);
              viewButton.addActionListener(this);
         public void actionPerformed(ActionEvent e)
              String cmd = e.getActionCommand();     
              if ("Create".equals(cmd))     
                   JPanel createPanel = new CreatePanel();
                   createPanel.show();
              }//close of if
         }//close of action perform
    CreatePanel.java
    import java.awt.*;
    import javax.swing.*;
    public class CreatePanel extends JPanel {
         JPanel createPanel = new JPanel();
         JLabel jLabel1 = new JLabel();
         JLabel jLabel2 = new JLabel();
         JLabel jLabel3 = new JLabel();
         JLabel jLabel4 = new JLabel();
         JLabel jLabel5 = new JLabel();
         JLabel jLabel6 = new JLabel();
         JLabel jLabel7 = new JLabel();
         JLabel jLabel8 = new JLabel();
         JLabel jLabel9 = new JLabel();
         JTextField nricNo = new JTextField();
         JTextField name = new JTextField();
         JRadioButton singleRadio = new JRadioButton();
         JRadioButton marriedRadio = new JRadioButton();
         JRadioButton divorcedRadio = new JRadioButton();
         JComboBox position = new JComboBox();
         JComboBox team = new JComboBox();
         JTextField address = new JTextField();
         JTextField salary = new JTextField();
         JTextField contactNo = new JTextField();
         JTextField dob = new JTextField();
         JButton submitButton = new JButton();
         JButton clearButton = new JButton();
         JButton retrieveButton = new JButton();
         public CreatePanel() {
              createPanel.setBounds(new Rectangle(108, 10, 690, 472));
              createPanel.setLayout(null);
              jLabel1.setText("NRIC:");
              jLabel1.setBounds(new Rectangle(14, 6, 41, 17));
              jLabel2.setText("Name:");
              jLabel2.setBounds(new Rectangle(14, 48, 41, 17));
              jLabel3.setText("Address:");
              jLabel3.setBounds(new Rectangle(14, 90, 57, 17));
              jLabel4.setText("Salary:");
              jLabel4.setBounds(new Rectangle(14, 132, 41, 17));
              jLabel5.setText("Contact No:");
              jLabel5.setBounds(new Rectangle(14, 174, 68, 17));
              jLabel6.setText("Marital Status:");
              jLabel6.setBounds(new Rectangle(14, 216, 83, 17));
              jLabel7.setText("Position:");
              jLabel7.setBounds(new Rectangle(14, 258, 58, 17));
              jLabel8.setText("D.O.B:");
              jLabel8.setBounds(new Rectangle(14, 300, 41, 17));
              jLabel9.setText("Team:");
              jLabel9.setBounds(new Rectangle(14, 342, 41, 17));
              nricNo.setText("jTextField1");
              nricNo.setBounds(new Rectangle(101, 3, 63, 21));
              name.setText("jTextField2");
              name.setBounds(new Rectangle(101, 44, 63, 21));
              singleRadio.setSelected(true);
              singleRadio.setText("Single");
              singleRadio.setBounds(new Rectangle(102, 210, 103, 25));
              marriedRadio.setText("Married");
              marriedRadio.setBounds(new Rectangle(221, 210, 103, 25));
              divorcedRadio.setText("Divorced");
              divorcedRadio.setBounds(new Rectangle(340, 210, 103, 25));
              position.setBounds(new Rectangle(102, 256, 128, 24));
              team.setBounds(new Rectangle(102, 337, 128, 24));
              address.setText("jTextField3");
              address.setBounds(new Rectangle(101, 87, 63, 21));
              salary.setText("jTextField4");
              salary.setBounds(new Rectangle(101, 130, 63, 21));
              contactNo.setText("jTextField5");
              contactNo.setBounds(new Rectangle(101, 171, 63, 21));
              dob.setText("jTextField6");
              dob.setBounds(new Rectangle(103, 299, 63, 21));
              submitButton.setText("Submit");
              submitButton.setBounds(new Rectangle(114, 409, 79, 27));
              clearButton.setText("Clear");
              clearButton.setBounds(new Rectangle(332, 409, 79, 27));
              retrieveButton.setText("Retrieve");
              retrieveButton.setBounds(new Rectangle(356, 0, 105, 27));
              createPanel.add(clearButton, null);
              createPanel.add(submitButton, null);
              createPanel.add(jLabel1, null);
              createPanel.add(nricNo, null);
              createPanel.add(jLabel2, null);
              createPanel.add(name, null);
              createPanel.add(jLabel3, null);
              createPanel.add(address, null);
              createPanel.add(jLabel4, null);
              createPanel.add(salary, null);
              createPanel.add(jLabel5, null);
              createPanel.add(contactNo, null);
              createPanel.add(jLabel6, null);
              createPanel.add(singleRadio, null);
              createPanel.add(marriedRadio, null);
              createPanel.add(divorcedRadio, null);
              createPanel.add(jLabel7, null);
              createPanel.add(position, null);
              createPanel.add(jLabel8, null);
              createPanel.add(dob, null);
              createPanel.add(jLabel9, null);
              createPanel.add(team, null);
              createPanel.add(retrieveButton, null);
              add(createPanel);

    1. make createPanel an instance variable
    public class PlayerTab extends JPanel implements
    ActionListener{JPanel createPanel = null;
    2. consistent with how you are coding, add the panel,
    public void actionPerformed(ActionEvent e)
    String cmd = e.getActionCommand();
    if ("Create".equals(cmd))
    {if( null == createPanel ) {
    createPanel = new CreatePanel();
    createPanel.setBounds( 20, 16, 300, 300 );
    add( createPanel, null );
    createPanel.show();
    }//close of ifyou can also search for the specific panel, remove and then add a new instance rather then reusing the same createPanel once it is instantiated.

  • Help need: cannot display exchangeprofile

    When I start URL
    http://<host FQDN>:50100/ExchangeProfile
    I get 404 not found
    The requested resource does not exist.
      Details:   Go to main page of this application!
    The instance number is 01.
    Points guaranteed if you can help. Thx.

    Hi Jennifer,
    Please check this thread.
    404 error - SXMB_IFR
    cheers,
    Prashanth

  • Help needed in displaying textbox in fresh page

    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
    msg.document.write("<HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write("<body>Hi</body>");
    </script>
    </head>
    <body>
    <form>
    <input type="button" name="Button1" value="Push me" onclick="WinOpen()">
    </form>
    </body>
    </html>
    whenever i save the abouve code in .htm extension and try to run it, I am able to run it sucessfully.
    But whenever I run the below code by saving it as .htm extension then its not running sucessfully:
    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
    msg.document.write("<HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write("<body><form>
    <TABLE cellSpacing=1 cellPadding=1 width="75%" bgColor=silver border=1>
    <TR>
    <TD><STRONG>Enter Numeric Value *:</STRONG> </TD>
    <TD><INPUT name="tbAlphaNumeric" CatsType="NUMERIC" label="Alphanumeric" Mandatory="YES"> </TD>
    </TR>
    </TABLE>
    </form></body>");
    </script>
    </head>
    <body>
    <form>
    <input type="button" name="Button1" value="Push me" onclick="WinOpen()">
    </form>
    </body>
    </html>
    Here I want to display text box in a new fresh field...
    Thanks in advance:)

    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
    msg.document.write("<HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write("<body>Hi</body>");
    </script>
    </head>
    <body>
    <form>
    <input type="button" name="Button1" value="Push me" onclick="WinOpen()">
    </form>
    </body>
    </html>
    whenever i save the abouve code in .htm extension and try to run it, I am able to run it sucessfully.
    But whenever I run the below code by saving it as .htm extension then its not running sucessfully:
    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
    msg.document.write("<HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write("<body><form>
    <TABLE cellSpacing=1 cellPadding=1 width="75%" bgColor=silver border=1>
    <TR>
    <TD><STRONG>Enter Numeric Value *:</STRONG> </TD>
    <TD><INPUT name="tbAlphaNumeric" CatsType="NUMERIC" label="Alphanumeric" Mandatory="YES"> </TD>
    </TR>
    </TABLE>
    </form></body>");
    </script>
    </head>
    <body>
    <form>
    <input type="button" name="Button1" value="Push me" onclick="WinOpen()">
    </form>
    </body>
    </html>
    Here I want to display text box in a new fresh field...
    Thanks in advance:)

  • Help needed in displaying rows in table

    hi gurus,
    i have created a table and using select statement i was able to retrieve the data.the problem iam facing is ..when i run the application and give a value for a field and clicked on the button i was able to see only one record in the web dynpro table..actually the database table contains 10 records and i was able to see only one record,i didnt give any where condition in the select statement,i have changed the cardinality property of the node to 0..n and the sys was throwing error and if i put 0..1 or 1..1 it was running fine..
    Please give me your valuable inputs for solving this...
    Thanks in advance
    Regards
    ravi

    hi David ,
    thanks for the reply...
    this is the select statement code iam using ..
    data: it_csunit type /BI0/PCS_UNIT.
        select * from /BI0/PCS_UNIT into it_csunit.
        ls_n2-Cs_unit = it_csunit-Cs_unit.
        ls_n2-Company = it_csunit-Company.
        ls_n2-Cons_ba = it_csunit-Cons_ba.
        ls_n2-Country = it_csunit-Country.
        ls_n2-Co_area = it_csunit-Co_area.
    endselect.
    CALL METHOD LO_ND_N2->SET_STATIC_ATTRIBUTES
      EXPORTING
       INDEX             = USE_LEAD_SELECTION
        STATIC_ATTRIBUTES = ls_n2.
    Regards
    ravi

  • Help needed with referencing single Excel cells and formatting resulting text

    In InDesign CS5 I am putting together a 20pp catalogue of about 200 products. The plan is to have the product information, SKU code, quantity etc fixed, but have the prices (there are two i.e. pack price and individual price) being linked to an Excel spreadsheet. This is so that the prices can be updated in the Excel file and the InDesign file will pull the new prices through. In case you are wondering why I don't pull the whole set of information through, this is because there are a lot of copywriting changes done to the information once it's in InDesign - it's only going to be the prices that will be updated.
    I am planning on having two single cell tables in their own text frame, duly formatted with cell style, table style and paragraph style for the two price variables. This I am then going to have to repeat 200 times making sure I link to the next row down in Excel. This is going to be a hideous task but I see know way of modifying the cell in InDesign to point it to the next row in Excel. That's my first problem.
    My second problem is this. In the Excel sheet, the prices are formatted as UK currency and are therefore like this...
    £2.00
    £0.40
    £1.43
    £9.99
    £0.99
    £0.09
    What I will require is once I import that data (and refresh the data via a newly saved Excel file) is that the prices end up like this...
    £2.00
    40p
    £1.43
    £9.99
    99p
    9p
    So if the value is lower than £1.00 it needs a trailing 'p' added  and the leading zero and '£' sign stripped off. If the value is lower than £0.10 it also needs the zero after the decimal point stripping off.
    Then formatting wise, the '£' sign needs to be superscripted and the same for the 'p'. This I am assuming could be done via GREP?
    In summary, can anyone help with the first task of referecing the Excel cells on a cell by cell basis, given that it is the same cell column each time, but the next row down, and also point me in the right direction of the price formattting issues.
    Any help will be gratefully received.

    I would do this:
    Create on line with the formatting.
    Export as InDesign tagged text (TXT)
    Read out these tags
    In Excel exists a function to connect text from several cells and predfined text, there connect the content from cells with the paragraph styling tags. Do it in a seperate sheet. (Better would be to use a database like Access, there you can link your Excel sheet).
    Export this sheet as txt file
    Place this sheet as tagged text (there is an option in one of the sialog boxes).
    In preferences  < file handling you can specify that Tablecalculation Sheets and text is not embedded but linked, turn it on.

  • ALV: How to display amount respective to currency format in ALV?

    Hi All,
    Normally in ALV, to display the amount respective to its currency, we just simply pass the currency field(coming from the t_outtab  of FM REUSE_ALV_GRID_DISPLAY) to CFIELDNAMEof ALV field catalog.
    For ordinary currencies with 2 decimal places, like USD, etc, it will work fine.
    But for currencies like KWD and IDR, their decimal place is always 3 via SAP standard definition in transaction OY04.
    Given this, ALV field catalog CFIELDNAME cannot handle as such automatic formatting.
    Is there any other way without using the code below?
    WRITE <amount_field_name> CURRENCY <currency_field_name>.
    Thanks.

    Answer:
    'WAERK' to w_alv_fcat-cfieldname,

  • Conversion of character field to currency format

    Hi All
    I am reading an excel file witch has a netwr amount fiels as character type ,  but when I try to update the field table netwr which is CURR data type the program dumps sayin it can not do that becuase of the format .
    is there any way of converting the character or string field into CURR and vice versa
    any help woul do
    Thanks.

    Hi
    Write this FM
    FUNCTION Z_CONV_CHAR_TO_DECIM.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_NUMBER) TYPE  STRING
    *"     REFERENCE(I_CURRENCY) TYPE  WAERS_ISO
    *"  EXPORTING
    *"     VALUE(E_AMOUNT) TYPE  DEC_16_02_S
    *"     REFERENCE(E_AMOUNT_DISPLAY) TYPE  CHAR20
    *"     REFERENCE(E_NO_OF_DECIMALS) TYPE  INT_1
    *"     REFERENCE(E_MAX_NO_OF_DECIMALS) TYPE  INT_1
    *"  EXCEPTIONS
    *"      ERROR_IN_CONTENT
    *"      ERROR_IN_DECIMALS
      data: l_amt_1_s         type string.
      data: l_amt_2_s         type string.
      data: l_amt_1(30)       type c.
      data: l_amt_2(20)       type c.
      data: l_amt_3(20)       type c.
      data: l_amt_4(20)       type c.
      data: l_amt_1N(20)      type n.
      data: l_amt_2N(2)       type n.
      data: l_amount          type dmbtr.
      data: l_no_of_decimals  type i.
      e_max_no_of_decimals = 2.
      clear e_amount.
      split i_number
            at   ','
            into l_amt_1 l_amt_2.
      l_no_of_decimals = strlen( l_amt_2 ).
      e_no_of_decimals = l_no_of_decimals.
      REPLACE ' ' WITH '0' INTO l_amt_2.
      do.
        split l_amt_1 at '.'
              into l_amt_3
                   l_amt_4.
        if l_amt_4 = space.
          exit.
        endif.
        concatenate l_amt_3 l_amt_4 into l_amt_1.
      enddo.
      if l_amt_1 co '-0123456789 '.
      else.
        raise error_in_content.
      endif.
      if l_amt_2 co '-0123456789 '.
      else.
        raise error_in_content.
      endif.
      if l_amt_1 = '-'.
        l_amt_1 = '-0'.
      endif.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = l_amt_1
        IMPORTING
          OUTPUT = l_amt_1n.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = l_amt_2(2)
        IMPORTING
          OUTPUT = l_amt_2n.
      e_amount = l_amt_1n.
      do l_no_of_decimals times.
        e_amount = e_amount * 10.
      enddo.
      if l_amt_1 cs '-'.
        e_amount = e_amount - l_amt_2n.
      else.
        e_amount = e_amount + l_amt_2n.
      endif.
      e_amount = e_amount / 100  .
      write e_amount to e_amount_display
            decimals l_no_of_decimals.
    ENDFUNCTION.
    REGARDS.

  • Help needed on Transforming input File to EDI Format

    I have an input flat file in one location. Using BizTalk, i need to pick that file from that Recieve location, transform it to EDI format and send it to Destination location.
    Now, when I place input file in the "Recieve location", it is being processed and it is erased from recieve location. But I am not able to see the output in the Destination location.
    And when i query it in BizTalk Administration console, the state is "Completed" without any errors.
     Any guidance/suggestions are appreciated. Thanks in advance.

    Hi all, I have just collated everything and have put it in my words below..Please
    let me know your valuable inputs as I am struck in this point from more than a week.
    I need to fetch an input flat file (.txt format) from the "Receive location" and I am supposed to transform that to an EDI message X12 format and send it to Destination folder.
    I have set up the receive port and send port configurations in the Admin Console, have created the Trading Partners, agreement and other settings.
    The problem I am facing : Now, when I place input file in the "Receive location", it is being processed and I am able to pick up the file from the input folder
    but I am not able to figure out why the file is not being processed and sent to the destination folder.. (If I query for All In Progress instances, suspended instances or Running instances : I am not getting any results and the below grid is always empty).
    And when i query it in Biz-talk Administration console for Tracked instances, the Receive pipeline component's state is "Completed" without any errors.
    And I am not using any Orchestration in between..
    Thank you all in advance....

Maybe you are looking for

  • Windows 7 Crashes (Blue Screen Of Death) As Soon As My iPhone4 Connects

    Ok, so I have Windows 7 with the latest version of iTunes and the latest software version for my iPhone4, everything was working fine until just the other day, whenever I plug my iPhone into my computer, as soon as it makes that little noise when it

  • How do I use Time Machine

    I don't know how to get started with Time Machine. Also, I want to change to a SSD hard drive and I was told that I could save evrything in Time Machine and then load all my software files from Time Machine onto the new SSD. Is this possible? If so,

  • Crackle noise with plug-ins at the beginning of a region

    I've experienced problems with some TC plug-ins and logic. Mostly with the Brickwall Limiter and TC Helicon Voice Modeler. When I insert one of those plug-ins in a track, the crackle noise occures when the SPL is almost before the start of the region

  • I need a good DVD creator app for Mac

    I have been researching DVD creator apps in the App Store and I am really not finding anything good. A large majority (80%+) have poor reviews and the others either have no reviews or the positive reviews are very suspect like the creators friends an

  • Struts - question about attribute help

    In an Action class, I have actionMapping.setAttribute("xxx") and then I use actionMapping to forward it to another jsp. How can I use EL to get the value of xxx? Thank you!!