In smartforms i want to display NETWR as 132678,90 not in other format

Hi All,
    when i am printing my smartform in the print preview its appearing NET Value as :  1,32.678.90 for currency JPY
I want to displat that as 132678,90  only for the currency type = JPY.
Any one can you please tell me how to do...
Regards,
Sudhakar Reddy.A

Hi Sudhakar,
I am facing the same issue while printing the Japanese currency. Please can you provide me the solution.
Thanks in Advance
Vinod

Similar Messages

  • In smartforms i want to display one page in A4 and other in A3 size paper.

    1)in smartforms i want to display one page in A4 and other in A3 size paper.  How?
    2) in front page all the values and in back page all the terms and condition of the company. this will b going on for all the printed documents.pls brief me about this.
    Thanks in advance
    gouranga

    Hi,
    In case of sap script u can not. But in case of smartforms u can assign one format for 1 page and 2 format for 2 page it is possible.
    In Global setting -> Form Attributes -> Output Options define your format.
    Rewards points if it is useful.

  • In scripts i want to display the total puchage order amount in text format

    Hi to all,
    Here my requirement is to display puchage order number,date,amount for individual order and total purchage order amount in same window in decimal format and i want to display this purchage order total amount in text format in another window ,is it possible or not
    please give solution asap urgent.
    regards,
    surya.

    Hi Surya
    It is possible ....jst call the routine in script..
    /:PERFORM SPELL_AMOUNT IN PROGRAM ZXYZ
    /:USING &REGUD-SWNES&
    /:USING &REGUD-WAERS&
    /:CHANGING &WORDS&
    /:CHANGING &DECIMAL&
    /:CHANGING &WAERS&
    /:ENDPERFORM
    P1 <C1>&WORDS& AND &DECIMAL&
    ....and write the code in  tht routine program....
    data: it_spell like spell.
    data: swnes type regud-swnes,
          waers type regud-waers,
          var1(20) type c,
          var2(20) type c.
    *&      form  spell_amount
          text
         -->input      text
         -->output     text
    form SPELL_AMOUNT  tables  input structure itcsy
                               output structure itcsy.
      read table input index 1.
    input = swnes.
      replace all occurrences of '*' in input-value with space.
      shift input-value left deleting leading space.
      translate input-value using ', '.
      condense input-value no-gaps.
      split input-value at '.' into var1 var2.
      condense: var1, var2.
      swnes = input-value.
      read table input index 2.
      waers = input-value.
      call function 'SPELL_AMOUNT'
       exporting
         amount          = swnes
         currency        = waers
      filler          = ' '
         language        = sy-langu
       importing
         in_words        = it_spell
       exceptions
         not_found       = 1
         too_large       = 2
         others          = 3
      if sy-subrc eq 0.
        refresh: output.
        output-name = 'WORDS'.
        condense waers.
        case waers.
          when 'USD'.
            concatenate it_spell-word 'DOLLARS' into
             it_spell-word separated by space.
          when 'EUR'.
            concatenate it_spell-word '' into
             it_spell-word separated by space.
           concatenate var2 'euros' into var2 separated by space.
          when others.
        endcase.
        output-value = it_spell-word.
        append output.
        output-name = 'WAERS'.
        output-value = waers.
        append output.
        condense waers.
        case waers.
          when 'USD'.
            concatenate var2 'CENTS***' into var2 separated by space.
          when 'EUR'.
            concatenate var2 'EUROS' into var2 separated by space.
          when others.
        endcase.
        output-name = 'DECIMAL'.
        output-value = var2.
        append output.
      endif.
    endform.                    "spell_amount
    this will give output as TEN DOLLARS & 20 CENTS....
    u can change the code as per ur requrement...
    Reward if Helpful....
    thnx
    Rohit

  • SMARTFORM - I WANT TO DISPLAY THE SYMBOL u00D8

    Hi,
    I am getting the data from routing ( in operation descrption for eg -Rough Bore Ø12.5 / Ø18.5 ).
    If  the same text is appering in smartforms as Rough Bore I I I2.5 / I I I18.5.
    PLz help me to solve the problem
    Regards,
    Rani.

    PDF forms are converted using either the Adobe LiveCycle Designer or Adobe Acrobat 8 Professional applications. Information and free evaluation copies of these applications is provided on the Adobe downloads page.
    now i think ur next question is
    What is the Adobe LiveCycle Reader Extension Licence?
    Reader Extensions embed usage rights into PDF files that activate greater functionality in the free Adobe Reader.  DIISR has acquired a number of Adobe LiveCycle Reader Extension licences for use in business related forms owned by government entities and hosted on DIISR servers.  DIISR will actively manage these licences and as such may contact agencies to confirm the SmartForm's currency.
    i'm attaching a tutorial link to give u brief idea of doing that
    [http://www.smartforms.business.gov.au/developer/images/SDCdocuments/create_a_simple_smartform_tutorial.pdf]
    if help ful reward points
    thanks

  • Want to display from database but javaclas not returning values to servlets

    I am trying to view values stored in database using jsp, servlets and java class. Jsp is calling servlet and servlet calls java class file. and javaclass file retrieves data from database and sends it back to servlet. But my problem is servlet doesnt print the values.
    Here is my code
    This is the javaclass file.
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
      public Vector result;
      public Vector getResult() throws ClassNotFoundException, InstantiationException, IllegalAccessException
                /* Connection is established to retrieve data from the database */
                Vector v = new Vector();
                ResultSet rs = null;
                PreparedStatement st = null;
                try
                 Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
                  st = connection.prepareStatement("Select * from samp");
                  rs = st.executeQuery();
                  while(rs.next())
                      v.addElement(rs.getString("empid"));
                  st.close();
                  connection.close();
                 catch(SQLException esql)
                      esql.printStackTrace();
                  this.result = v;
                 /* Control is sent back to the servlet */
                 return result;
    }Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try
              employbean ebean = new employbean();
              Vector v = ebean.getResult();
              Enumeration en = v.elements();
              while(en.hasMoreElements())
                out.println("employee id= "+ en.nextElement());
              out.println("employid"+employid);
             catch(Exception m)
               out.println(m);
             out.close();
            // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
    }Please help me with my code as where i might have gone wrong and help me rectifying the errors.
    I also would like to know if this is MVC pattern.
    Thanks in Advance

    Try this one
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
    public Vector result;
    public Vector getResult() throws Exception
    /* Connection is established to retrieve data from the database */
    Vector v = new Vector();
    ResultSet rs = null;
    PreparedStatement st = null;
    try
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
    st = connection.prepareStatement("Select * from samp");
    rs = st.executeQuery();
    while(rs.next())
    v.addElement(rs.getString("empid"));
    st.close();
    connection.close();
    catch(SQLException esql)
         throw e;
    this.result = v;
    /* Control is sent back to the servlet */
    return result;
    Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try
    employbean ebean = new employbean();
    Vector v = ebean.getResult();
    Enumeration en = v.elements();
    while(en.hasMoreElements())
    out.println("employee id= "+ en.nextElement());
    // out.println("employid"+employid);
    catch(Exception m)
    out.println(m);
    out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /** Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    try
    processRequest(request,response);
    catch(Exception e)
    /** Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    try
    processRequest(request,response);
    catch(Exception e)
    /** Returns a short description of the servlet.
    public String getServletInfo()
    return "Short description";
    Send me the output

  • Want to display from database but javaclass not returning values to servlet

    I am trying to view values stored in database using jsp, servlets and java class. Jsp is calling servlet and servlet calls java class file. and javaclass file retrieves data from database and sends it back to servlet. But my problem is javaclass file doesnt return the value to servlet and print. Here is my code
    This is the javaclass file.
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
      public Vector result;
      public Vector getResult() throws ClassNotFoundException, InstantiationException, IllegalAccessException
                /* Connection is established to retrieve data from the database */
                Vector v = new Vector();
                ResultSet rs = null;
                PreparedStatement st = null;
                try
                 Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
                  st = connection.prepareStatement("Select * from samp");
                  rs = st.executeQuery();
                  while(rs.next())
                      v.addElement(rs.getString("empid"));
                  st.close();
                  connection.close();
                 catch(SQLException esql)
                      esql.printStackTrace();
                  this.result = v;
                 /* Control is sent back to the servlet */
                 return result;
    }Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try
              employbean ebean = new employbean();
              Vector v = ebean.getResult();
              Enumeration en = v.elements();
              while(en.hasMoreElements())
                out.println("employee id= "+ en.nextElement());
              out.println("employid"+employid);
             catch(Exception m)
               out.println(m);
             out.close();
            // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
    }Please help me with my code as where i might have gone wrong and help me rectifying the errors.
    I also would like to know if this is MVC pattern.
    Thanks in Advance

    I am trying to view values stored in database using jsp, servlets and java class. Jsp is calling servlet and servlet calls java class file. and javaclass file retrieves data from database and sends it back to servlet. But my problem is javaclass file doesnt return the value to servlet and print. Here is my code
    This is the javaclass file.
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
      public Vector result;
      public Vector getResult() throws ClassNotFoundException, InstantiationException, IllegalAccessException
                /* Connection is established to retrieve data from the database */
                Vector v = new Vector();
                ResultSet rs = null;
                PreparedStatement st = null;
                try
                 Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
                  st = connection.prepareStatement("Select * from samp");
                  rs = st.executeQuery();
                  while(rs.next())
                      v.addElement(rs.getString("empid"));
                  st.close();
                  connection.close();
                 catch(SQLException esql)
                      esql.printStackTrace();
                  this.result = v;
                 /* Control is sent back to the servlet */
                 return result;
    }Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try
              employbean ebean = new employbean();
              Vector v = ebean.getResult();
              Enumeration en = v.elements();
              while(en.hasMoreElements())
                out.println("employee id= "+ en.nextElement());
              out.println("employid"+employid);
             catch(Exception m)
               out.println(m);
             out.close();
            // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
    }Please help me with my code as where i might have gone wrong and help me rectifying the errors.
    I also would like to know if this is MVC pattern.
    Thanks in Advance

  • Displaying Line Items of a BAPI in Table Format

    have a custom Bapi ZPM_GET_ORDERS.
    It has a Model structure like
    Orders_Hdr
    Operations [Multiple Line Items]
    I want to display the operations line items in the table format in a View when we click on the Orders_Hdr.
    For that I am wondering what should the code on the onLeadSelect of Orders_Hdr table at the ViewController?
    In other words how can I display those line items on a click of a Header record. I am looking for some pseudo code that goes in the onActionLeadSelect()of View.
    Thank You . Any help is appreciated

    Hi Vivek,
             On LeadSelect .....just get the current selected node element and also store a attribute value from the currnet selected to a variable (like orderid)which is common in both the node ....then loop through the operations node and put the condition equal to orderid using the variable ...if mathces the put node elemnt in to some node created(value node of same type )...
    for copying the node u can use the WSCopyService class...
    Regards,
    Yash

  • Not to display the document which are not due at the time of making the pay

    Hi,
    My user dont want to display the document which are not in due at the time of making the payment through F-53.
    For example:
    Vendor Code: 1001 has the open item as below:
    Due Date - 29.09.2009 Amount 50000
    Due Date - 30.09.2009 Amount 10000
    Due Date - 15.10.2009 Amount 40000 (due date is in future)
    Now my user want to make the payment for the above vendor through T-Code: F-53 / F-58, while clicking the process Open item the syste, shows all the document (which inclues the future due date document).
    My user dont want to display the document which is in future due date because by wrongly he should not make the payment for the future due dated document.
    Kindly provide me the solution how to disable the document which are not in due.
    Regards
    JS

    Hi,
    You can try the following -
    Execute transaction code O7F4, and maintain the field FAEDT. Then execute F-53 and check if the option to enter net due date appears in the additional selection or not.
    Please revert.
    Thanks and Regards,
    Anit

  • Want to display data in receipt form in Smartforms

    Hi friends,
        I want to display data in receipt form in smartforms....Format is given below:
        Name : [fieldname1]
      number : [fieldname2]        country code : [fieldname3]
    n so on....It should display 1 record on one page and so on.......how can i go about it....
    Regards,
    Vijaya

    Hi Vijaya,
    First, you need to design the lay-out for your pages.
    Say for example in your case you take a window XYZ (variable type) to print:-
    Name : fieldname1
    number : fieldname2 country code : fieldname3
    Now you have some amount of data for this detail.
    Say you print this data in a table.
    After the last node for printing data, insert a command line under the last node (in main area of the table control).
    And on the next page use the same MAIN window (or use next page of PAGE1 as PAGE1).
    In other way, if you are printing a single record on a page.
    Then this can be done by simply taking a loop statement in the main window of the page followed by text-fields (from internal_table into work_area).
    Under the loop statement, in these text-fields you can simply print your data (using the work area) :-
    Detail 1 : &wa-field_name&
    and so on....
    After the last detail (node), insert a command line and write 'NEW-PAGE'.
    This will break your control on to next page and eventually one records will be printed on a single page.
    Hope this solves your problem.
    Thanks & Regards.
    Tarun Gambhir.

  • I want to display icons in ALV

    Hi friends,
    I want to display icon indicators in ALV ???
    can anybody tell me ??/
    Thanks...

    Hi sturdy,
    this code will help u...copy paste and run...
    *& Report  ZFI_TEST                                                    *
    REPORT ZFI_ICON_TEST MESSAGE-ID zz .
    *& TABLES DECLARATION *
    TABLES: vbak.
    *& TYPE POOLS DECLARATION *
    TYPE-POOLS: slis.
    *& INTERNAL TABLE DECLARATION *
    DATA: BEGIN OF itab OCCURS 0,
    icon TYPE icon-id,                 "itab-icon = '@08@' -> Green ;     '@09@' -> Yellow ;     '@0A@' -> Red
    vbeln LIKE vbak-vbeln,
    audat LIKE vbak-audat,
    vbtyp LIKE vbak-vbtyp,
    auart LIKE vbak-auart,
    augru LIKE vbak-augru,
    netwr LIKE vbak-netwr,
    waerk LIKE vbak-waerk,
    END OF itab.
    *INTERNAL TABLE FOR FIELD CATALOG
    DATA: wa_fieldcat TYPE slis_fieldcat_alv,
    it_fieldcat TYPE slis_t_fieldcat_alv.
    IT_FIELDCAT TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV
    WITH HEADER LINE,
    *INTERNAL TABLE FOR EVENTS
    DATA: it_event TYPE slis_t_event,
    wa_event TYPE slis_alv_event,
    *INTERNAL TABLE FOR SORTING
    it_sort TYPE slis_t_sortinfo_alv,
    wa_sort TYPE slis_sortinfo_alv,
    *INTERNAL TABLE FOR LAYOUT
    wa_layout TYPE slis_layout_alv.
    *& VARIABLE DECLARATION *
    DATA : v_repid TYPE sy-repid,
    v_pagno(4) TYPE n,
    v_date(8) TYPE c.
    *& CONSTANTS *
    CONSTANTS: c_x TYPE c VALUE 'X'.
    *& SELECTION SCREEN *
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
    s_vbtyp FOR vbak-vbtyp DEFAULT 'C'.
    SELECTION-SCREEN: END OF BLOCK b1.
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-003.
    PARAMETERS: p_list RADIOBUTTON GROUP rad1 DEFAULT 'X'.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-004.
    PARAMETERS: p_grid RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN: END OF BLOCK b2.
    AT SELECTION-SCREEN.
      PERFORM validate_screen.
    *& START OF SELECTION *
    START-OF-SELECTION.
      CLEAR: itab, itab[].
    V_REPID = SY-REPID.
      PERFORM get_data.
      PERFORM display_data.
    *& END OF SELECTION *
    END-OF-SELECTION.
    *--DO ALV Process
      v_repid = sy-repid.
    *--Sort the Output Fields
      PERFORM sort_fields.
    *--Build Field catalog for the Output fields
    PERFORM BUILD_FIELDCAT.
    *--Set the Layout for ALV
      PERFORM set_layout.
    *& Form GET_DATA
    text
    TO GET THE DATA FROM TABLES INTO ITAB
    FORM get_data .
      SELECT vbeln
      audat
      vbtyp
      auart
      augru
      netwr
      waerk
      INTO CORRESPONDING FIELDS OF TABLE itab
      FROM vbak
      WHERE vbeln IN s_vbeln AND
      audat > '04.04.2005'
      AND netwr > 0.
      LOOP AT itab.
        IF itab-netwr < 10000.
          itab-icon = '@08@'.
        ELSEIF itab-netwr > 10000 AND itab-netwr < 100000.
          itab-icon = '@09@'.
        ELSEIF itab-netwr > 100000.
          itab-icon = '@0A@'.
        ENDIF.
        MODIFY itab INDEX sy-tabix.
      ENDLOOP.
    ENDFORM. " GET_DATA
    *& Form sort_fields
    FORM sort_fields .
      CLEAR wa_sort.
      wa_sort-fieldname = 'VBTYP'.
      wa_sort-spos = '1'.
      wa_sort-up = 'X'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
      wa_sort-fieldname = 'NETWR'.
      wa_sort-spos = '2'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO it_sort.
    ENDFORM. " sort_fields
    *& Form set_layout
    FORM set_layout .
      IF p_list = c_x .
        wa_layout-window_titlebar = 'LIST DISPLAY'(016).
        wa_layout-zebra = 'X'.
    *-- ALV LIST DISPLAY
        PERFORM list_display TABLES itab.
    *-- ALV GRID DISPLAY
      ELSEIF p_grid = c_x.
        wa_layout-window_titlebar = 'GRID DISPLAY'(017).
        wa_layout-zebra = 'X'.
        PERFORM grid_display TABLES itab.
      ENDIF.
    ENDFORM. " set_layout
    *& Form list_display
    FORM list_display TABLES p_itab .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = v_repid
          is_layout          = wa_layout
          it_fieldcat        = it_fieldcat[]
          it_sort            = it_sort[]
          i_save             = 'U'
        TABLES
          t_outtab           = itab
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM. " list_display
    *& Form GRID_DISPLAY
    FORM grid_display TABLES p_itab .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = v_repid
          is_layout          = wa_layout
          it_fieldcat        = it_fieldcat[]
          it_sort            = it_sort[]
          it_events          = it_event
        TABLES
          t_outtab           = itab
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM. " GRID_DISPLAY
    *& Form VALIDATE_SCREEN
    text
    --> p1 text
    <-- p2 text
    FORM validate_screen .
      DATA: lv_vbeln LIKE vbak-vbeln.
      IF NOT s_vbeln IS INITIAL.
        SELECT vbeln
        INTO lv_vbeln
        UP TO 1 ROWS
        FROM vbak
        WHERE vbeln IN s_vbeln.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'INVALID SALES DOC'.
        ENDIF.
      ENDIF.
    ENDFORM. " VALIDATE_SCREEN
    *& Form display_data
    text
    --> p1 text
    <-- p2 text
    FORM display_data .
      DEFINE m_fieldcat.
        add 1 to wa_fieldcat-col_pos.
        wa_fieldcat-fieldname = &1.
        wa_fieldcat-ref_tabname = 'VBAK'.
        wa_fieldcat-do_sum = &2.
        wa_fieldcat-cfieldname = &3.
        append wa_fieldcat to it_fieldcat.
      END-OF-DEFINITION.
      DATA:
      ls_fieldcat TYPE slis_fieldcat_alv,
      lt_fieldcat TYPE slis_t_fieldcat_alv.
      m_fieldcat 'ICON' '' ''.
      m_fieldcat 'VBELN' '' ''.
      m_fieldcat 'AUDAT' '' ''.
      m_fieldcat 'VBTYP' '' ''.
      m_fieldcat 'AUART' '' ''.
      m_fieldcat 'AUGRU' '' ''.
      m_fieldcat 'NETWR' 'C' 'WAERK'.
      m_fieldcat 'WAERK' '' ''.
    ENDFORM. " display_data[/code]

  • Smartform-Suppress Zero and Display Zero for same field in Diff Conditions?

    Hi,
    I have a scenario in smartform, where for a quantity field of length p15 and Dec3, needs to display ZERO for one scenario and display SPACE for another condition. To display ZERO i have made it as &quantity(c)&, so that i can display zero. It displays ZERO, but for another condition, when i want to display space, there also it displays 0.000 ! how to display SPACE there ?
    thanks,
    Padma

    Hi,
    I think then in that case we need to use (NZ) I am not sure. But however why don't you use the Condition Tab in the Text by Including the Condition Quantity > 0.000.
    Please let me know if anyone of this works for you.
    Regards,
    SRinivas

  • User wants to display the % symbol beside the value

    Hi all,
    I have a key figure ..which is added to formula(aggregation tab set as average of a characteristic).
    its displaying average correctly in the report output ,but user want it to be displayed % symbol beside that .
    how can i do that ..
    For other KPI ..i got the requirement as A-B/B and here i applied A-B %A B and its working fine.
    What if i need to put % symbol beside a value ??

    Hi Bilvanth ,
    You can follow the below steps to achieve the desired output :
    1) Create a formula in the query designer . Suppose your key figure is Y which you want to display with % symbol .
        Take this key figure in the formula . Then from the Percentage Functions choose (%A)Percentage Share. Then after this write 100 .
    So your formula would be : Y %A 100 .
    2) Hide your original key figure Y and display this formula in the report . It will come with the percentage symbol .
    Hope the above steps will help you to achieve the desired output .
    Thanks & regards,
    Ashutosh Singh

  • ALV report i want to display in each P.O , i want to display item details

    Hi all,
    in alv report i want to display in each P.O , i want to display item details. is it possible without hierarchical display.

    hi,
    once you retrive po number from ekko then retrive data from ekpo and loop at ekpo and append all the item details to your internal table.

  • Dont want to display "Report Successfully Run" applet

    Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Document.If my report is sent to printer successfully there is no need to display browser window with the above mentioned message. Is there any solution for this???

    Code in when-button-pressed
    DECLARE
    V_Usr_Prm Varchar2 (1000);
    BEGIN
    V_Usr_Prm :=
    'FROM_REF_NO='
    || P_FRM_REF_NO
    || '+TO_REF_NO='
    || P_FRM_REF_NO
    || '+P_PRE_BY='
    || P_PRE_BYE
    || '+P_VR_TYPE='
    || P_VOR_TYP
    || '+YEAR1='
    || P_VOR_YER
    || '+MNU_IDE=0'
    || '+P_PRN_FLG=1';
    web_show_document_proc ('HTMLCSS', 'Y:\02\\02\VOR_PRN.REP', V_USR_PRM);
    END;
    Procedure Web_Show_Document_Proc is
    PROCEDURE WEB_SHOW_DOCUMENT_PROC (runformat varchar2,
    reportname varchar2,
    userparameters vARCHAR2)
    IS
    i NUMBER (10);
    v_a VARCHAR2 (10);
    v_b VARCHAR2 (10);
    vc_url VARCHAR2 (1000);
    vc_url_temp VARCHAR2 (1000);
    vc_user_name VARCHAR2 (30) := GET_APPLICATION_PROPERTY (username);
    vc_user_pw VARCHAR2 (30) := GET_APPLICATION_PROPERTY (password);
    vc_user_connect VARCHAR2 (30)
    := GET_APPLICATION_PROPERTY (connect_string) ;
    BEGIN
    vc_url :=
    'userid='
    || vc_user_name
    || '/'
    || vc_user_pw
    || '@'
    || vc_user_connect;
    FOR i IN 1 .. LENGTH (vc_url)
    LOOP
    v_a := LTRIM (TO_CHAR (TRUNC (ASCII (SUBSTR (vc_url, i, 1)) / 16)));
    IF v_a = '10'
    THEN
    v_a := 'A';
    ELSIF v_a = '11'
    THEN
    v_a := 'B';
    ELSIF v_a = '12'
    THEN
    v_a := 'C';
    ELSIF v_a = '13'
    THEN
    v_a := 'D';
    ELSIF v_a = '14'
    THEN
    v_a := 'E';
    ELSIF v_a = '15'
    THEN
    v_a := 'F';
    END IF;
    v_b := LTRIM (TO_CHAR (MOD (ASCII (SUBSTR (vc_url, i, 1)), 16)));
    IF v_b = '10'
    THEN
    v_b := 'A';
    ELSIF v_b = '11'
    THEN
    v_b := 'B';
    ELSIF v_b = '12'
    THEN
    v_b := 'C';
    ELSIF v_b = '13'
    THEN
    v_b := 'D';
    ELSIF v_b = '14'
    THEN
    v_b := 'E';
    ELSIF v_b = '15'
    THEN
    v_b := 'F';
    END IF;
    vc_url_temp := vc_url_temp || '%' || v_a || v_b;
    END LOOP;
    vc_url :=
    '/reports/rwservlet?server=rep_appsrv_frhome1+'
    || vc_url_temp
    || '+report='
    || reportname
    || '+destype=Printer+desformat='
    || runformat
    || '+paramform=No+'
    || userparameters;
    WEB.SHOW_DOCUMENT (vc_url, '_blank');
    END;

  • Dont want to display "Report Successfully Run"

    Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Document.If my report is sent to printer successfully there is no need to display browser window with the above mentioned message. Is there any solution for this???

    Code in when-button-pressed
    DECLARE
    V_Usr_Prm Varchar2 (1000);
    BEGIN
    V_Usr_Prm :=
    'FROM_REF_NO='
    || P_FRM_REF_NO
    || '+TO_REF_NO='
    || P_FRM_REF_NO
    || '+P_PRE_BY='
    || P_PRE_BYE
    || '+P_VR_TYPE='
    || P_VOR_TYP
    || '+YEAR1='
    || P_VOR_YER
    || '+MNU_IDE=0'
    || '+P_PRN_FLG=1';
    web_show_document_proc ('HTMLCSS', 'Y:\02\\02\VOR_PRN.REP', V_USR_PRM);
    END;
    Procedure Web_Show_Document_Proc is
    PROCEDURE WEB_SHOW_DOCUMENT_PROC (runformat varchar2,
    reportname varchar2,
    userparameters vARCHAR2)
    IS
    i NUMBER (10);
    v_a VARCHAR2 (10);
    v_b VARCHAR2 (10);
    vc_url VARCHAR2 (1000);
    vc_url_temp VARCHAR2 (1000);
    vc_user_name VARCHAR2 (30) := GET_APPLICATION_PROPERTY (username);
    vc_user_pw VARCHAR2 (30) := GET_APPLICATION_PROPERTY (password);
    vc_user_connect VARCHAR2 (30)
    := GET_APPLICATION_PROPERTY (connect_string) ;
    BEGIN
    vc_url :=
    'userid='
    || vc_user_name
    || '/'
    || vc_user_pw
    || '@'
    || vc_user_connect;
    FOR i IN 1 .. LENGTH (vc_url)
    LOOP
    v_a := LTRIM (TO_CHAR (TRUNC (ASCII (SUBSTR (vc_url, i, 1)) / 16)));
    IF v_a = '10'
    THEN
    v_a := 'A';
    ELSIF v_a = '11'
    THEN
    v_a := 'B';
    ELSIF v_a = '12'
    THEN
    v_a := 'C';
    ELSIF v_a = '13'
    THEN
    v_a := 'D';
    ELSIF v_a = '14'
    THEN
    v_a := 'E';
    ELSIF v_a = '15'
    THEN
    v_a := 'F';
    END IF;
    v_b := LTRIM (TO_CHAR (MOD (ASCII (SUBSTR (vc_url, i, 1)), 16)));
    IF v_b = '10'
    THEN
    v_b := 'A';
    ELSIF v_b = '11'
    THEN
    v_b := 'B';
    ELSIF v_b = '12'
    THEN
    v_b := 'C';
    ELSIF v_b = '13'
    THEN
    v_b := 'D';
    ELSIF v_b = '14'
    THEN
    v_b := 'E';
    ELSIF v_b = '15'
    THEN
    v_b := 'F';
    END IF;
    vc_url_temp := vc_url_temp || '%' || v_a || v_b;
    END LOOP;
    vc_url :=
    '/reports/rwservlet?server=rep_appsrv_frhome1+'
    || vc_url_temp
    || '+report='
    || reportname
    || '+destype=Printer+desformat='
    || runformat
    || '+paramform=No+'
    || userparameters;
    WEB.SHOW_DOCUMENT (vc_url, '_blank');
    END;

Maybe you are looking for

  • How I remove previous MC created with createmovieClip() and attachMovie()

    Hello. i have another problem today, :-) my little application contain a combobox and a MC "filmstrip" in my _root. the combobox work with an xml file containing links to other xml files. Inside my MC "filmstrip" i have a script loading with a for lo

  • Non functioning system

    Purchased a KT3 Ultra2 after reading good reviews. Replaced old Chaintech CT-7AJA motherboard. Fitted new 512MB DDR memory module (PC2100). Reconnected all devices etc. Switched on power. Front panel power LED came on. Hard drive LED came on for 20 s

  • I have a touch 3  8gb and it won't update to ios 5 why?

    a window just pops up and says 4.2.1. is the current version please help

  • Safari doesnt load pages

    In Safari when i want to go to Google for instance the web page never stops loading. The blue bar in the address bar gets about 3/4 and stops, but never finishes loading or stops there. The only way i can get the webpage to show up is if i hit the st

  • Plantage d'InDesign (CS6 et CC) au démarrage - Quelqu'un pour me sortir de cette horreur ?

    Bonjour à tous,   Je me permets de poster un topic sur ce forum (pour la première fois) car j'ai un gros problème urgent (je dois rendre un travail mardi soir au plus tard) auquel je ne trouve pas de solution depuis 2 jours.   Je bossais sur InDesign