Select -option Date field in MM/YYYY format!

Hi.. Friends..
   Iam having DATE field as selection screen SELECT_OPTION parameter.
And I am fetching records from one of my tables with where condition of this select-option.
Now my reuirement is to modify that DATE select-option with 7 characters i.e. MM/YYYY
So if user enters 09/2008 as DATE-LOW.. I have to fetch all records of September 2008.
If user enters 09/2008(lower limit) and 02/2009(Upper limit)...
I have to fetch records between... September 1st 2008 to 28th february 2009.
What is the simplest way to impliment this?
Thanks,
Naveen.I

Hi
Use data element SPMON as in below code.
  TABLES: S001.
  DATA: l_year(4)  TYPE n,
        l_month(3) TYPE n,
        g_sdate TYPE sy-datum,
        g_edate TYPE sy-datum.
  RANGES: gr_pdate FOR sy-datum.
  CONSTANTS: lc_low   TYPE sy-datum VALUE '00010101',
             lc_high  TYPE sy-datum VALUE '99990101'.
  SELECT-OPTIONS:   s_spmon  FOR  s001-spmon.
  l_year  = s_spmon-low(4).
  l_month = s_spmon-low+4(2).
* Get the first day of PERIOD-LOW
  CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
    EXPORTING
      i_gjahr        = l_year
      i_periv        = 'K2'
      i_poper        = l_month
    IMPORTING
      e_date         = g_sdate
    EXCEPTIONS
      input_false    = 1
      t009_notfound  = 2
      t009b_notfound = 3
      OTHERS         = 4.
  l_year  = s_spmon-high(4).
  l_month = s_spmon-high+4(2).
* Get the last day of PERIOD-HIGH
  CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
    EXPORTING
      i_gjahr        = l_year
      i_periv        = 'K2'
      i_poper        = l_month
    IMPORTING
      e_date         = g_edate
    EXCEPTIONS
      input_false    = 1
      t009_notfound  = 2
      t009b_notfound = 3
      OTHERS         = 4.
  IF NOT s_spmon-low IS INITIAL.
    gr_pdate-low = g_sdate.
  ELSE.
    gr_pdate-low = lc_low.
  ENDIF.
  IF NOT s_spmon-high IS INITIAL.
    gr_pdate-high = g_edate.
  ELSE.
    gr_pdate-high = lc_high.
  ENDIF.
  IF NOT s_spmon-low IS INITIAL OR NOT s_spmon-high IS INITIAL.
    gr_pdate-option = 'BT'.
    gr_pdate-sign = 'I'.
    APPEND gr_pdate.
  ENDIF.
" SELECT RECORDS
" >>> SELECT field1 field2 FROM TAB1 WHERE erdat IN gr_pdate. <<<

Similar Messages

  • ISE guest access - can't match on Optional Data fields

    Hi all
    I need to have 2 different types of guest users that will get different level of access with DACL / Airspace ACL
    I thought that best way to do that is simply matching one of optional data fields you can setup in Sponsor Portal
    Unfortunately as soon as I reference Optional Data field in Authorization rule I get no match. Can't also match on username which would not help anyway.
    getting redirected, login, getting redirected again etc.......
    This is affecting both wireless and wired.
    As soon as I remove that additonal condition from authz rule guest access works fine - getting redirected, log in, surf the internet.
    Is this is bug with ISE that you can't match guest optional data fields?

    Hi evnafets,
    You were right. How silly I am didnt see that small thing- but STILL PROBLEM IS UNSOLVED.
    [ore]
    java.sql.SQLException: [Microsoft][ODBC Microsoft
    Access Driver] Missing ), ], o
    r Item in query expression 'Post_Date LIKE
    to_date('04-06-2005',' dd/MM/yyyy''.
    Like it says, you have a missing ")" character
    rs=stmt.executeQuery("SELECT Name FROM
    NoticeBoardTable WHERE Post_Date LIKE to_date('"+
    date_str+"', 'dd/MM/yyyy' <--HERE NEED A CLOSING
    BRACKET ");
    When I did this it said to_date function is not available that because Ms-access doesn't have this function. Then I just changed the query to:-
    rs=stmt.executeQuery("SELECT Name FROM NoticeBoardTable WHERE Post_Date LIKE "+ date_sql ); . Although it didnt generate any exception, but dont show any record.
    But even better would be to use a prepared
    statement.
    String sql = "SELECT Name FROM NoticeBoardTable
    WHERE Post_Date LIKE  ?";
    PreparedStatement stmt = con.prepareStatement(sql);
    stmt.setDate(1, date_sql);
    ResultSet rs = stmt.executeQuery();
    I had prepared statement in my final servlet, I made this one just to check why its not working on dates. Also on your advice I changed it to prepared statement. It runs fine but didn't show any record with date 04-06-2005 although I have it in my database (not generating any exception).
    I print the sql date throuht servlet just to check , its showing 2005-06-04. May be its formate problem.
    Thanks
    Regards

  • Valiadtion of date in dd.mm.yyyy format

    i have a selection screen in which i want user to enter date in dd.mm.yyyy format only.how can i validate that.any FM.
    i also want that date to be changed in yyyymmdd format coz i have to update that in a field which has yyyymmdd format.
    so is there any fm for this also ( to change dd.mm.yyyy to yyyymmdd).
    any pointers will help.

    Hi Govind,
    Based on the user defaults in the transaction SU01 the date will be verified based on the date format selected in the user details.
    Declare the selection screen variable as of type Sy-DATUM.
    what ever format you had entered the date in the selection screen the variable will hold the value in the format yyyymmdd.
    no need to do any format for the date.
    hope this might help you.
    regards,
    Phani.

  • Displaying date in dd/MM/yyyy format

    Hi all,
    I am having one date field .To display the date in correct format, I created a dictionary simple type of type date and entered dd/MM/yyyy in representation tab.
    I was using 2004 and it was working properly. Now I am using 2004s for the same application. The problem is when I am selecting a date , it is showing the date in MM/dd/yyyy format in first time. If I selects the date again, then it will be in dd/MM/yyyy format. How can I make the selection in dd/MM/yyyy in first time itself
    Thanks 
    Fahad Hamsa

    Hi,
       Try this:
    1. Create a simple type in the local dictionary. Call it say, CustomDateType.
    2. Set the built-in type as date.
    3. Go to the representation tab and under "External Representation" set the format to "dd/MM/yyyy".
    4. Create a context value attribute day, CustomDate and set its type to CustomDateType.
    5. Create an inputfield with id say, "DateField" and bind its value property to CustomDate.
    6. Now in your wdDoModifyView() write the following code:
    if(firstTime){
       IWDViewElement e = view.getElement("DateField");
       e.requestFocus();
    Regards,
    Satyajit.

  • Insertion of date in dd-mmm-yyyy format

    I have a jsp page, from that i can enter values in oracle database.
    my jsp page is working, but the problem is that it can only accept the date
    dd-mmm-yyyy format. i.e 20-jun-2004, but when i enter date in dd/mm/yyyy format i.e 20/06/2004, it does not accept.
    i want to enter to do enter date in dd/mm/yyyy format in the form, and it can save the date field in database in dd-mmm-yyyy format.
    my code is as bellow:
    <html>
    <body>
    <table>
    <tr>
    <td>
    <%@ page import =" java.sql.Date.*" %>
    <%@ page import =" java.text.SimpleDateFormat.*" %>
    <%@ page import =" java.util.Date.*" %>
    <%@ page import =" java.text.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page language="java" import="java.sql.*" %>
    <%
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection("jdbc:odbc:pf","scott","ttlscott");
    System.out.println("got connection");
    %>
    <%
    char pay_post,pay_type;
    String action = request.getParameter("action");
    if (action != null && action.equals("save")) {
    conn.setAutoCommit(false);
    PreparedStatement pstmt = conn.prepareStatement(
    ("INSERT INTO pay_header VALUES (?, ?, ?, ?, ?, ?,?,?)"));
    pstmt.setString(1,request.getParameter("vou_no"));
    pstmt.setString(2,request.getParameter("pay_date"));
    pstmt.setString(3,request.getParameter("pay_post"));
    pstmt.setString(4,request.getParameter("pay_narr"));
    pstmt.setString(5, request.getParameter("chq_no"));
    pstmt.setString(6,request.getParameter("chq_date"));
    pstmt.setFloat(7,Float.parseFloat(request.getParameter("chq_amt")));
    pstmt.setString(8,request.getParameter("pay_type"));
    pstmt.executeUpdate();
    conn.commit();
    conn.setAutoCommit(true);
    %>
    <%
    Statement statement = conn.createStatement();
    ResultSet rs = statement.executeQuery
    ("SELECT * FROM pay_header ");
    %>
    <tr>
    <form action="payment_save1.jsp" method="get">
    <input type="hidden" value="save" name="action">
    <th><input value="" name="vou_no" size="10"></th>
    <th><input value="" name="pay_date" size="10"></th>
    <th><input value="" name="pay_post" size="15"></th>
    <th><input value="" name="pay_narr" size="15"></th>
    <th><input value="" name="chq_no" size="15"></th>
    <th><input value="" name="chq_date" size="15"></th>
    <th><input value="" name="chq_amt" size="15"></th>]
    <th><input value="" name="pay_type" size="15"></th>
    <th><input type="submit" value="save"></th>
    </form>
    </tr>
    <%
    while ( rs.next() ) {
    %>
    <tr>
    <form action="payment_save1.jsp" method="get">
    <input type="hidden" value="save" name="action">
    <td><input value="<%= rs.getString("vou_no") %>" name="vou_no"></td>
    <td><input value="<%= rs.getDate("pay_date") %>" name="gl_descr"></td>
    <td><input value="<%= rs.getString("pay_post") %>" name="pay_post"></td>
    <td><input value="<%= rs.getString("pay_narr") %>" name="pay_narr"></td>
    <td><input value="<%= rs.getString("chq_no") %>" name="chq_no"></td>
    <td><input value="<%= rs.getDate("chq_date") %>" name="chq_date"></td>
    <td><input value="<%= rs.getFloat("chq_amt") %>" name="chq_amt"></td>
    <td><input value="<%= rs.getString("pay_type") %>" name="pay_type"></td>
    <td><input type="submit" value="save"></td>
    </form>
    </tr>
    <%
    %>
    </table>
    <%
    // Close the ResultSet
    rs.close();
    // Close the Statement
    statement.close();
    // Close the Connection
    conn.close();
    } catch (SQLException sqle) {
    out.println(sqle.getMessage());
    } catch (Exception e) {
    out.println(e.getMessage());
    %>
    </td>
    </tr>
    </body>
    </html>

    thanx for u r help..
    now i have used simple date format method and also apllied setDate() method.
    bit its coming error NULL
    code:
    SimpleDateFormat sdf = new SimpleDateFormat("dd/mm/yyyy");
    java.util.Date pay_date_temp = null;
    java.util.Date pay_post_temp = null;
    PreparedStatement pstmt = conn.prepareStatement(
    ("INSERT INTO pay_header VALUES (?, ?, ?, ?, ?, ?,?,?)"));
    java.sql.Date pay_date = new java.sql.Date(pay_date_temp.getTime());
    java.sql.Date chq_date = new java.sql.Date(pay_post_temp.getTime());
    pstmt.setString(1,request.getParameter("vou_no"));
    pstmt.setDate(2,pay_date);
    pstmt.setString(3,request.getParameter("pay_post"));
    pstmt.setString(4,request.getParameter("pay_narr"));
    pstmt.setString(5, request.getParameter("chq_no"));
    pstmt.setDate(6,chq_date);
    pstmt.setFloat(7,Float.parseFloat(request.getParameter("chq_amt")));
    pstmt.setString(8,request.getParameter("pay_type"));
    help me

  • Insert date in dd-mmm-yyyy format

    I have a jsp page, from that i can enter values in oracle database.
    my jsp page is working, but the problem is that it can only accept the date
    dd-mmm-yyyy format. i.e 20-jun-2004, but when i enter date in dd/mm/yyyy format i.e 20/06/2004, it does not accept.
    i want to enter to do enter date in dd/mm/yyyy format in the form, and it can save the date field in database in dd-mmm-yyyy format.
    my code is as bellow:
    <html>
    <body>
    <table>
    <tr>
    <td>
    <%@ page import =" java.sql.Date.*" %>
    <%@ page import =" java.text.SimpleDateFormat.*" %>
    <%@ page import =" java.util.Date.*" %>
    <%@ page import =" java.text.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page language="java" import="java.sql.*" %>
    <%
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection("jdbc:odbc:pf","scott","ttlscott");
    System.out.println("got connection");
    %>
    <%
    char pay_post,pay_type;
    String action = request.getParameter("action");
    if (action != null && action.equals("save")) {
    conn.setAutoCommit(false);
    PreparedStatement pstmt = conn.prepareStatement(
    ("INSERT INTO pay_header VALUES (?, ?, ?, ?, ?, ?,?,?)"));
    pstmt.setString(1,request.getParameter("vou_no"));
    pstmt.setString(2,request.getParameter("pay_date"));
    pstmt.setString(3,request.getParameter("pay_post"));
    pstmt.setString(4,request.getParameter("pay_narr"));
    pstmt.setString(5, request.getParameter("chq_no"));
    pstmt.setString(6,request.getParameter("chq_date"));
    pstmt.setFloat(7,Float.parseFloat(request.getParameter("chq_amt")));
    pstmt.setString(8,request.getParameter("pay_type"));
    pstmt.executeUpdate();
    conn.commit();
    conn.setAutoCommit(true);
    %>
    <%
    Statement statement = conn.createStatement();
    ResultSet rs = statement.executeQuery
    ("SELECT * FROM pay_header ");
    %>
    <tr>
    <form action="payment_save1.jsp" method="get">
    <input type="hidden" value="save" name="action">
    <th><input value="" name="vou_no" size="10"></th>
    <th><input value="" name="pay_date" size="10"></th>
    <th><input value="" name="pay_post" size="15"></th>
    <th><input value="" name="pay_narr" size="15"></th>
    <th><input value="" name="chq_no" size="15"></th>
    <th><input value="" name="chq_date" size="15"></th>
    <th><input value="" name="chq_amt" size="15"></th>]
    <th><input value="" name="pay_type" size="15"></th>
    <th><input type="submit" value="save"></th>
    </form>
    </tr>
    <%
    while ( rs.next() ) {
    %>
    <tr>
    <form action="payment_save1.jsp" method="get">
    <input type="hidden" value="save" name="action">
    <td><input value="<%= rs.getString("vou_no") %>" name="vou_no"></td>
    <td><input value="<%= rs.getDate("pay_date") %>" name="gl_descr"></td>
    <td><input value="<%= rs.getString("pay_post") %>" name="pay_post"></td>
    <td><input value="<%= rs.getString("pay_narr") %>" name="pay_narr"></td>
    <td><input value="<%= rs.getString("chq_no") %>" name="chq_no"></td>
    <td><input value="<%= rs.getDate("chq_date") %>" name="chq_date"></td>
    <td><input value="<%= rs.getFloat("chq_amt") %>" name="chq_amt"></td>
    <td><input value="<%= rs.getString("pay_type") %>" name="pay_type"></td>
    <td><input type="submit" value="save"></td>
    </form>
    </tr>
    <%
    %>
    </table>
    <%
    // Close the ResultSet
    rs.close();
    // Close the Statement
    statement.close();
    // Close the Connection
    conn.close();
    } catch (SQLException sqle) {
    out.println(sqle.getMessage());
    } catch (Exception e) {
    out.println(e.getMessage());
    %>
    </td>
    </tr>
    </body>
    </html>

    thanx for u r help..
    now i have used simple date format method and also apllied setDate() method.
    bit its coming error NULL
    code:
    SimpleDateFormat sdf = new SimpleDateFormat("dd/mm/yyyy");
    java.util.Date pay_date_temp = null;
    java.util.Date pay_post_temp = null;
    PreparedStatement pstmt = conn.prepareStatement(
    ("INSERT INTO pay_header VALUES (?, ?, ?, ?, ?, ?,?,?)"));
    java.sql.Date pay_date = new java.sql.Date(pay_date_temp.getTime());
    java.sql.Date chq_date = new java.sql.Date(pay_post_temp.getTime());
    pstmt.setString(1,request.getParameter("vou_no"));
    pstmt.setDate(2,pay_date);
    pstmt.setString(3,request.getParameter("pay_post"));
    pstmt.setString(4,request.getParameter("pay_narr"));
    pstmt.setString(5, request.getParameter("chq_no"));
    pstmt.setDate(6,chq_date);
    pstmt.setFloat(7,Float.parseFloat(request.getParameter("chq_amt")));
    pstmt.setString(8,request.getParameter("pay_type"));
    help me

  • How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?

    Hi
    How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?
    This is my Input data.
    11/25/2007.
    By using below query, it is inserted into database.
    sql>Insert into tblname values(to_date('11/25/2007','MM/DD/YYYY'));
    But using stored procedure, the same query is not running.
    It shows error like
    ORA-01843: not a valid month ORA-06512: at line 1
    Procedure:
    create or replace procedure Date_Test(datejoin in DATE) is
    begin
    insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    end Date_Test;
    I had used 'nls_date_language = american' also.
    Prcodeure is created but not worked in jsp. The same error is thrown.
    Pls provide a solution

    This might help you....
    SQL> Create Table DateTest(col1 Date);
    Table created.
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    BEGIN Date_Test('11/25/2007'); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    BEGIN Date_Test(To_Date('11/25/2007','mm/dd/yyyy')); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at "CTBATCH.DATE_TEST", line 3
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(datejoin);
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> Select * from DateTest;
    COL1
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in VarChar2) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'mm/dd/yyyy'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> select * from DateTest;
    COL1
    25-NOV-07
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL>

  • How to convert date  into dd mon yyyy format

    hi all,
    i have a problem in date format i am using date like below .
    <%java.util.Date date = new java.util.Date();%>
    i am inserting date into a table and its storing like this
    insert into tablename (d_date) values (date)
    and its inserting date like below
    Sun Oct 19 09:05:45 GMT+03:00 2003
    i want to fetch date in dd mon yyyy format.
    with this format i want to make a select query.i struck with the format conversion.
    how to do this.
    any comments please.
    any help

    hi all,
    i understand now where i am wrong.
    the below code is not working why because in my server where i am executing code the regional setting month value is in arabic.
    i executed the same code in a different server where date and time jones are english its working fine.
    All the problem is in regional setting and not the jsp code.
    <%
    String whtEverDateFormatYouWAnt = "dd MMM yy";
    String str = new SimpleDateFormat(whtEverDateFormatYouWAnt).format(new SimpleDateFormat("EEE MMM dd HH:mm:ss vvv yyyy").parse("Sun Oct 19 09:05:45 GMT+03:00 2003"));
    out.print(str);
    %>
    Thanks a lot for the excellent solution.
    Thanks again.

  • How to get date in dd/mm/yyyy format ?

    Hello,
    for this query :
    >select to_date(to_char(sysdate),'dd/mm/yyyy') from dual;
    i wanted to get date in dd/mm/yyyy format , but this query is not returning in correct date format .
    How to get that ?

    select id,
    to_date(to_char(dt1,'mm/dd/yyyy'),'dd/mm/yyyy') dt1,
    to_date(to_char(dt2,'mm/dd/yyyy'),'dd/mm/yyyy') dt2
    from t_table1 where no=23;This is my actual query.
    But this query is giving error.
    ORA-01843: not a valid monthWhen i issued this query :
    select id,dt1,dt2 from t_table1 where no=23 ;
    this is the output :
    ID DT1 DT2
    001 10/7/2011 10/19/2011Edited by: bootstrap on Oct 8, 2011 2:13 PM
    Edited by: bootstrap on Oct 8, 2011 2:13 PM

  • SELECT OPTIONS DATE.

    Hello , I need your help ,  to access to  every date in an interval of the select option , in order to execute a function module that use date in one of its parameters .
    select-options : dat for sy-datum .
       CALL FUNCTION 'ZPRUEBA''
         EXPORTING
           offic                =
           chdsk                =
           inicio_periodo       =
         FIM_PERIODO          =  dat  "but i need here every date of the interval
         NO_UPDATE            =
       IMPORTING
         NR_COBRANCAS         =
       ENDSELECT.
    How can I do that ? , tnhx.

    hi
    put the function module in the loop.
    data : date like sy-datum.
    select-options : s_date for date.
    while ( s_date-low LE s_date-high ).
    CALL FUNCTION 'ZPRUEBA''
    EXPORTING
    offic =
    chdsk =
    inicio_periodo =
    FIM_PERIODO = s_date-low
    NO_UPDATE =
    IMPORTING
    NR_COBRANCAS =
    add 1 to s_date-low.
    endwhile.
    reward if helpful
    prasanth

  • Please enter the expiry date in dd.mm.yyyy format

    Dear All,
    I have configured SAP AA in Dev. Now I want to craete asset master. But it is showing the following error, when I am going to save:
    Please enter the expiry date in dd.mm.yyyy format
    Can anyone tell me the solution?
    Thanks
    Azimul

    Thanks Jigar for your reply.
    My company is using SAP last 2.5 years. During SAP Implementation, Consultants configured SAP AA, but during testing it showed error in Asset Accounting. That is why, we donu2019t use SAP AA.
    Now we want to use Asset Accounting in SAP. I have configured SAP AA in Development. Then I try to Create Asset Master, But it is showing Error:
    Please enter the expiry date in dd.mm.yyyy format
    I cannot get Error message no also. If I double click on error, it is not opening.
    I donu2019t know about Validations. Can u please guide me?
    Thanks,
    Azimul
    Edited by: Azimul on Oct 1, 2011 7:58 AM

  • Select Options for Field

    Hi all,
    I have a requirement to make a select options low field disable and high field editable.
    Can anyone guide me on this.......!!!
    Awiting u r reply.
    Regards,
    Rashmi

    you write the code under "at-selection-screen output" event.....make one loop on screen....and make the screen enable & disable as you wish..
    ELECTION-SCREEN BEGIN OF BLOCK b1 .
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN COMMENT 40(25) text-010  .
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) text-002 FOR FIELD pernr.
    PARAMETERS pernr TYPE pa0001-pernr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) text-008 FOR FIELD ename.
    PARAMETERS ename TYPE pa0001-ename.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) text-003 FOR FIELD persg.
    PARAMETERS persg TYPE pa0001-persg.
    SELECTION-SCREEN COMMENT 45(15) text-009 FOR FIELD werks.
    PARAMETERS werks TYPE pa0001-werks.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) text-004 FOR FIELD persk.
    PARAMETERS persk TYPE pa0001-persk.
    SELECTION-SCREEN COMMENT 45(15) text-005 FOR FIELD kostl.
    PARAMETERS kostl TYPE pa0001-kostl.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) text-006 FOR FIELD orgeh.
    PARAMETERS orgeh TYPE pa0001-orgeh.
    PARAMETERS orgehtxt TYPE person-orgeh_txt .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 20(15) text-007 FOR FIELD plans.
    PARAMETERS plans TYPE pa0001-plans.
    PARAMETERS planstxt TYPE person-plans_txt .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    *AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT .
      LOOP AT SCREEN.
        IF screen-name = 'ENAME'
        OR screen-name = 'PERSG'
        OR screen-name = 'PERSK'
        OR screen-name = 'KOSTL'
        OR screen-name = 'WERKS'
        OR screen-name = 'ORGEH'
        OR screen-name = 'PLANS'
        OR screen-name = 'ORGEHTXT'
        OR screen-name = 'PLANSTXT'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
      LOOP AT SCREEN.
        IF screen-name = 'ORGEHTXT'
        OR screen-name = 'PLANSTXT'.
          screen-output = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Edited by: Arunima Rudra on Jan 8, 2009 5:39 PM

  • Select-a-date field not working on iPhone

    I'm having trouble getting this form to work on a mobile device: www.centralparkpetretreat.com/contact-us
    There are 2 select-a-date fields on this form (drop-off date and pick-up date). The first one works and the second one doesn't. It seems to only be a problem on an iPhone. Has anyone else encountered this problem? Any ideas?
    Thanks!

    HI Vivek,
    Go to Universe Designer
    click on object (Latest Approved Date)
    click on definition
    go to TYPE scroll down and select type as DATE
    and export now check the filter it will work
    try once
    Regards,
    Ranjeet

  • Converting string to date in mm/dd/yyyy format

    Hi,
    I used simpledateformat to convert date to "MM/dd/yyyy" format.
    Now when i want to insert into db, i want the value as date object instead of string [returned by format method of SimpleDateFormat]
    what should i do?
    Date dt = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    System.out.println("Formatted date is coming as "+sdf.format(dt));
    Date dt1 = sdf.parse(sdf.format(dt);
    System.out.println("parsed date is coming as " +dt1);
    output :
    1 SOP returns 11/07/2007 [current date]
    2 SOP returns Wed Nov 07 00:00:00 GMT+05:30 2007

    If you are using PreparedStatements setDate method, you need a java.sql.Date object, not a Java.util.Date object. You can create an sql.Date object from a util.Date object as follows:
    java.sql.Date sqlDate = new java.sql.Date(dt.getTime());And, if you are not using PreparedStatement and its setDate method, then change now.
    Doing
    Date dt1 = sdf.parse(sdf.format(dt));is meaningless. You format the date to string, then parse the string back to a date? Why? Why not just use the original Date object? And you won't get a sql.Date object that way, either, as the DateFormat classes return a util.Date object.
    Edit: And for more info:
    A Date does not have a format. It is simply a number. The "format" only comes into play when printing the String representation of the Date, and that is not handled by the Date object itself (except when calling toString either explicitly or implicitly).

  • Date in mm/dd/yyyy format

    I have a dunning output that is prodcuing the date in mm/dd/yyyy format despite the user settings being dd/mm/yyyy - and there is no set country command on the form - any ideas of why this is occuring or how I change it.

    Hi,
    This can be because at time the date settings can be pulled from customer records.
    For example. In SPRO you can configure date settings based on countries.
    So if your customer belongs to XXXX country then it can pick up the date settings from SPRO.
    You can check with a functional guy for the node where you do settings for different countries.
    I will try and send you the details later as i dont have system handy.
    Thanks

Maybe you are looking for

  • My iphone 5 is not listed in support page anymore

    I took my iphone 5 for sevice last suturday with a microphone issue.Since yesterday i could see it in my support page with other apple products.Today is not there! Any clue???

  • Images not showing up...Please Help!

    I am fairly new to web design. I recently uploaded my dreamweaver site to a hosting site using FTP. I can see all my files through the fill manager, but on the actual site everything is messed up. None of the images are showing up and the layout is c

  • Classpath and manifest.mf

    what is the difference between classpath, buildpath and a Manifest.mf paths? I believe class path is used at run time to look for the classes referred in this path. Build path is used to build the application i.e. to link the components used while co

  • Error -10010?

    "Disk is too slow or System Overload." This is the error that pops up when I try to listen to one of the logic express demo songs. What does this mean and how can I fix it? I'm on a brand spankin' new macbook pro that I haven't quite figured out yet.

  • Howto check the Partner function

    Hi all, My requirement is to get partner (like sales employee in VA41) from the user. I need to check the value given bythe user whether it is correct or wrong.how to achive this.