Giving problem in ecc6.0

Hi experts,
  PARAMETERS:
  P_TABLE LIKE DD03L-TABNAME.
DATA: BEGIN OF XTABLE OCCURS 10,
      string(3000),
      END OF XTABLE.
  SELECT * FROM (P_TABLE) INTO TABLE XTABLE ORDER BY PRIMARY KEY.
The above code is working in 4.6 but not in ECC6.0 because the type of p_table and xtable are not convertable each other.
Kindly give a solution how to declare the internal table to store the data coming from the table which we entered on  selection-screen.
Thanks & Regards,
Sweta.

REPORT  ZSRK_024                                .
TYPE-POOLS : ABAP.
PARAMETERS: P_TABLE LIKE DD03L-TABNAME.
DATA: BEGIN OF XTABLE OCCURS 10,
STRING(3000),
END OF XTABLE.
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
             <DYN_WA>,
             <DYN_FIELD>,
             <DYN_WA1> TYPE C,
             <DYN_XTABLE> TYPE C.
DATA: DY_TABLE TYPE REF TO DATA,
    DY_LINE  TYPE REF TO DATA,
    XFC TYPE LVC_S_FCAT,
    IFC TYPE LVC_T_FCAT.
PERFORM GET_STRUCTURE.
PERFORM CREATE_DYNAMIC_ITAB.
PERFORM GET_DATA.
LOOP AT <DYN_TABLE> INTO <DYN_WA>.
  ASSIGN <DYN_WA> TO <DYN_WA1> CASTING.
  ASSIGN XTABLE  TO <DYN_XTABLE>  CASTING.
  <DYN_XTABLE> = <DYN_WA1>.
  APPEND <DYN_XTABLE> TO XTABLE.
  CLEAR <DYN_XTABLE>.
ENDLOOP.
*&      Form  get_structure
      text
FORM GET_STRUCTURE.
  DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
       XDETAILS TYPE ABAP_COMPDESCR.
  DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
Get the structure of the table.
  REF_TABLE_DES ?=
      CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
  IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
  LOOP AT IDETAILS INTO XDETAILS.
    CLEAR XFC.
    XFC-FIELDNAME = XDETAILS-NAME .
    XFC-DATATYPE = XDETAILS-TYPE_KIND.
    XFC-INTTYPE = XDETAILS-TYPE_KIND.
    XFC-INTLEN = XDETAILS-LENGTH.
    XFC-DECIMALS = XDETAILS-DECIMALS.
    APPEND XFC TO IFC.
  ENDLOOP.
ENDFORM.                    "get_structure
*&      Form  create_dynamic_itab
      text
FORM CREATE_DYNAMIC_ITAB.
Create dynamic internal table and assign to FS
  CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    EXPORTING
      IT_FIELDCATALOG = IFC
    IMPORTING
      EP_TABLE        = DY_TABLE.
  ASSIGN DY_TABLE->* TO <DYN_TABLE>.
Create dynamic work area and assign to FS
  CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
  ASSIGN DY_LINE->* TO <DYN_WA>.
ENDFORM.                    "create_dynamic_itab
*&      Form  get_data
      text
FORM GET_DATA.
Select Data from table.
    SELECT * INTO TABLE <DYN_TABLE>
             FROM (P_TABLE) ORDER BY PRIMARY KEY.
ENDFORM.                    "get_data
Edited by: sreekanth reddy on Nov 4, 2008 5:03 PM
Edited by: sreekanth reddy on Nov 4, 2008 5:04 PM

Similar Messages

  • Print Output problem in ECC6

    Hi Friends,
    I am getting print output problem in ECC6.
    In VF03 I am giving issue output for invoice printing. Whenever I am presseing issue output one screen is coming for selecting output type. I have selected one output type and I pressed print preview then in print preview one item and corresponding amounts it is showing properly for the first time. But the problem is after the print preview if I come back and again if i press print preview button values are not getting refreshed and same item is repeated for twice and the amounts are also getting added. Again for the third time if i come back and again if i press print preview one more item is getting repeated and the amounts are also getting added which should not suppose to happen.
    What could be the problem and how to resolve it?
    Rewarded,
    Steve

    Hi,
    clear those variables in the program .
    Regards,
    Bharat.
    Reward points if helpful

  • SHARED MEMORY AND DATABASE MEMORY giving problem.

    Hello Friends,
    I am facing problem with EXPORT MEMORY and IMPORT MEMORY.
    I have developed one program which will EXPORT the internal table and some variables to the memory.This program will call another program via background job. IMPORT memory used in another program to get the first program data.
    This IMPORT command is working perfect in foreground. But  it is not working in background.
    So, I have reviewed couple of forums and I tried both SHARED MEMORY AND DATABASE MEMORY.  But no use. Still background is giving problem.
    When I remove VIA JOB  parameter in the SUBMIT statement it is working. But i need to execute this program in background via background job. Please help me . what should I do?
    pls find the below code of mine.
    option1
    EXPORT TAB = ITAB
           TO DATABASE indx(Z1)
                FROM   w_indx
                CLIENT sy-mandt
                ID     'XYZ'.
    option2
    EXPORT ITAB   FROM ITAB
      TO SHARED MEMORY indx(Z1)
      FROM w_indx
      CLIENT sy-mandt
      ID 'XYZ'.
       SUBMIT   ZPROG2   TO SAP-SPOOL
                      SPOOL PARAMETERS print_parameters
                       WITHOUT SPOOL DYNPRO
          *_VIA JOB name NUMBER number*_
                       AND RETURN.
    ===
    Hope every bidy understood the problem.
    my sincere request is ... pls post only relavent answer. do not post dummy answer for points.
    Thanks
    Raghu

    Hi.
    You can not exchange data between your programs using ABAP memory, because this memory is shared between objects within the same internal session.
    When you call your report using VIA JOB, a new session is created.
    Instead of using EXPORT and IMPORT to memory, put both programs into the same Function Group, and use global data objects of the _TOP include to exchange data.
    Another option, is to use SPA/GPA parameters (SET PARAMETER ID / GET PARAMETER ID), because SAP memory it is available between all open sessions. Of course, it depends on wich type of data you want to export.
    Hope it was helpful,
    Kind regards.
    F.S.A.

  • HT1222 I have iphone 4 and the software is ios 7.0.2. I am facing problems with my phone. Since the last software update my phone has started giving problems. like it hangs sometime when i recieve an incoming call. The carrier status bar shifts down a bit

    I have iphone 4 and the software is ios 7.0.2. I am facing problems with my phone. Since the last software update my phone has started giving problems. like it hangs sometime when i recieve an incoming call. The carrier status bar shifts down a bit and sometimes it vanishes automatically. I,m confused.
    Secondly i have an update IOS 7.0.4 waiting in my Software Update menu. I have tried so many times to update my iphone but it always fails to update the IOS 7.0.4. Any body suggest anything regarding this

    Wow. Lots of help. Thanks apple

  • Fullname giving problem

    Hi,
    I am getting problem while setting the fullname attribute of the user while creating and assigning the resources [AD,Domino,LDAP]. i am using PeopleSoftActiveSync Resource, which is our Authoritative source. whenever a new entry comes to PeopleSoft, i have to create an Account in IDM and to all the resources. I am using Process Rule to call the create WorkFlow from where i am calling different Sub Process for creating resources. but some of the resources are giving problem and the error which i am getting using "WF_ACTION_ERROR" says "Missing required Attribute Fullname".
    Eventhough i am setting fullname attribute while creating the IDM account. But the resources are assigned properly.
    Please help me.....

    Hello Srinivasa
    Two years ago I had the very same problem when I added a new field to an already existing and filled customer table. I debugged the maintenance view and saw that the new field contained an undefined value but not the initial value.
    You could try and use the DB utility (<b>SE14</b>) and activate the table again (of course without deleting the table entries).
    Alternatively, you could write a simple ABAP to initialize the field value, e.g.:
    DATA:
      gs_mchb   TYPE mchb,
      gt_mchb    TYPE STANDARD TABLE OF mchb.
      SELECT * INTO TABLE gt_mchb.
      gs_mchb-zvbeln_inquiry = ' '. " space
      MODIFY gt_mchb FROM gs_mchb
        TRANSPORTING zvbeln_inquiry
        WHERE ( zvbeln_inquiry ne ' ' ).
      UPDATE mchb FROM TABLE gt_mchb.
    Regards
      Uwe

  • I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • My previous Visa was giving problems. I introduced a new visa and still my account is blocked. Can you help me?

    Hello,
    My previous credit card (Visa) was giving problems.
    I introduced the details of a new card and still my account is blocked, so I can't use the programs.
    Can you help me solve this problem please?
    Thank you.

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Nokia 9500-Speaker giving problem

    I have Nokia 9500, 2 years old and its speaker has started giving problems. I have got it repaired from Nokia Care point about 7 times and it works fine for 2-3 days, then it goes bad. Care point guys are not able to figure out the problem. Let me know if anyone of you have experienced this. Also how do i directly report this to Nokia, since care point guys are clueless

    what is the exact problem can you let us know in detail
    tongue is too confused on what to speak

  • Shockwave flash keeps giving problems

    I have read all the articles about the shockwave flash problem but it keeps giving problems, saying it is busy or does nt react anymore, continue or stop.
    If I continue nothing happens, if I stop the web-page disapears.
    Should I use another browser ? I'm fond of Firefox but what to do?
    I'm using W 8.1 and the latest Flash (15.0.0.152)
    Thank you in advance for reacting.
    Jan M Reerink

    You can check for problems with current Shockwave Flash plugin versions and try this:
    *check for updates for your graphics drive drivers<br>https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    See also:
    *http://kb.mozillazine.org/Flash#Troubleshooting
    You can also try to uninstall and reinstall Flash
    *http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
    Note that this will remove all installed Flash players.
    You can find the latest Flash player versions for Firefox on this page:
    *http://www.adobe.com/special/products/flashplayer/fp_distribution3.html

  • Problem with ECC6 system name

    Hi,
        Recently we upgraded our system from 4OB to ECC6. In new system when I try to change order through t.code KO02, It is giving message as 'Order Can not be changed in the current system SBX'.
       Our new system name is SBX & we changed this name from CAD. Does this have any effect on this data.How to rectify this error.
    Regards,
    Karthik.k

    Can anybody help me.

  • "following domains are not available" error - functionally trusted domains but with same NETBIOS dc computernames giving problems.

    For SCOM monitoring and user permissions I am trying to add the Action Account from HQ.local domain to some other domains like DOMAIN1.local, TEST1.local and TEST2.local. 
    (a trust persists between the domains en HQ.local, and DNS Conditional forwarders are configured to correctly resolve the FQDN DNS names).
    Problem is, when adding a user from the HQ.local domain to the Active Directory of the DC's SRVPDC01.DOMAIN1.local or SRVPDC01.TEST1.local domain I get an error:
    "The Active Directory Domain Controllers Required to find the selected objects in the following domains are not available:
    HQ.local
    Ensure the Active Directory Domain Controllers are available, and try to select the objects again."
    But when I try to do the same thing, so add user1 from HQ.local to the AD on TESTDC01.TEST2.local…. No error!
    The other way around, like adding users from DOMAIN1.local, TEST1.local or TEST2.local to the DC01.HQ.local Active directory… also no error!
    To make things even more strange, when I validate the trust with HQ.local… and then try to add user1.HQ.local -> No problem, but only for about 1 minute.. After that
    it doesn't recognize user1.HQ.local and only displays some CN=S-1-5... ID of the user. Also when trying to add a new user, I receive the error again.
    My guess is that the problem has something to do with the same NETBIOS names of the DC's (server 3 and 4). because authenticating users from HQ.local and TEST2.local
    doesn't give me errors and all other domains which have same DC names are giving errors. 
    (for testing purposes I set-up TESTDC01.TEST2.local with a different DC servername to see if the error persists, and it didn't).
    Overview of the servers and situation:
    - All server 3, 4 and 5 are on separate Vlan's and have no connectivity among each other. But they do have connectivity to the internet, the HQ.local domain and its servers
    DC01 and DC02.
    - same firewall settings for each vlan
    - even Server 4 and server 5 are on the same Vlan for testing purposes, just to make sure the firewall is not the problem.
    Server no.
    DC FQDN name
    Domain DNS name
    1
    DC01.HQ.local
    HQ.local
    2
    DC02.HQ.local
    HQ.local (secondary DNS)
    3
    SRVPDC01.DOMAIN1.local
    DOMAIN1.local
    4
    SRVPDC01.TEST1.local
    TEST1.local
    5
    TESTDC01.TEST2.local
    TEST2.local
    Two-Way Forest Trusts are configured without any problems but here's an overview when the error occurs.
    On SRVPDC01.DOMAIN1.local -> adding user1.HQ.local to the AD =
    error
    On DC01.HQ.local -> adding user1.DOMAIN1.local to the AD = no problem.
    On SRVPDC01.TEST1.local -> adding user1.HQ.local to the AD =
    error
    On DC01.HQ.local -> adding user1.TEST1.local to the AD = no problem.
    On TESTDC01.TEST2.local -> adding user1.HQ.local to the AD = no problem.
    On DC01.HQ.local -> adding user1.TEST2.local to the AD = no problem.
    What are my options to fix this? There must be more possibilities than renaming the DC names.
    And why does the problem only occur when adding users in Foreign domain ->from-> HQ.local and not HQ.local ->from-> Foreign domain. Because that's the only
    thing I really need: users from HQ.local having permissions in groups of the other domains… :(
    Any advise or help would be much appreciated. I've been struggeling with this for a while now and i'm pretty much out of ideas.

    Hi aperelli,
    On srvpdc01.DOMAIN1.local
    nslookup
    set type=all
     _ldap._tcp.dc._msdcs.hq.local
    Result:
    C:\Windows\system32>nslookup
    DNS request timed out.
        timeout was 2 seconds.
    Default Server:  UnKnown
    Address:  ::1
    > set type=all
    > _ldap._TCP.DC._msdcs.HQ.local
    Server:  UnKnown
    Address:  ::1
    Non-authoritative answer:
    _ldap._TCP.DC._msdcs.HQ.local  SRV service location:
              priority       = 0
              weight         = 100
              port           = 389
              svr hostname   = dc01.hq.local
    _ldap._TCP.DC._msdcs.HQ.local  SRV service location:
              priority       = 0
              weight         = 100
              port           = 389
              svr hostname   = dc02.hq.local
    dc01.hq.local  internet address = 192.168.1.200
    dc02.hq.local  internet address = 192.168.1.201
    =======================
    On srvpdc01.TEST1.local
    nslookup
    set type=all
     _ldap._tcp.dc._msdcs.hq.local
    Result:
    C:\Windows\system32>nslookup
    DNS request timed out.
        timeout was 2 seconds.
    Default Server:  UnKnown
    Address:  ::1
    > set type=all
    > _ldap._TCP.DC._msdcs.HQ.local
    Server:  UnKnown
    Address:  ::1
    Non-authoritative answer:
    _ldap._TCP.DC._msdcs.HQ.local  SRV service location:
              priority       = 0
              weight         = 100
              port           = 389
              svr hostname   = dc01.hq.local
    _ldap._TCP.DC._msdcs.HQ.local  SRV service location:
              priority       = 0
              weight         = 100
              port           = 389
              svr hostname   = dc02.hq.local
    dc01.hq.local  internet address = 192.168.1.200
    dc02.hq.local  internet address = 192.168.1.201
    =======================
    On DC01.HQ.local
    nslookup
    set type=all
     _ldap._tcp.dc._msdcs.domain1.local
    Result:
    C:\Windows\system32>nslookup
    Default Server:  dc01.hq.local
    Address:  192.168.1.200
    > set type=all
    > _ldap._tcp.dc._msdcs.domain1.local
    Server:  dc01.hq.local
    Address:  192.168.1.200
    Non-authoritative answer:
    _ldap._tcp.dc._msdcs.domain1.local      SRV service location:
              priority       = 0
              weight         = 100
              port           = 389
              svr hostname   = srvpdc01.domain1.local
    srvpdc01.domain1.local     internet address = 10.0.113.150
    =======================
    I have tested port 3268 and 3269 with Port Query UI and ports are listening on alle DC servers.

  • Condition in Interface Determination giving problem - URGENT!

    Hello experts,
    In my scenario I have one idoc posted from the SAP R/3 and I need to write max of 3 files in the same receiver file system based on some condition i.e. based on the value of some field in the incoming idoc.
    What I have done is in my interface determination, I have given that condition for all the 3 inbound interface. that is in the condition field in interface determination, for each inbound interface I chose that perticular field in idoc and gave the condition for which that interface should run.
    Now when I am pusing an idoc, if that idoc contains only one condition than my interface is working fine by creating only that file. I have checked this for all 3 files by sending 3 different conditions in 3 idocs. It creates 3 different files for 3 idocs.
    But if I send all 3 conditions in one idoc (since idocs can have multiple segments - in few segments i am giving one condition and in few others the 2nd conditon and in the rest the 3rd condition), I expect all 3 files to be created in my file system with data fulfilluing only that perticular condition. but this is not happening. In interface determination only one of the 3 is getting executed. Rest 2 is ignored and i cannot trace it anywhere (RWB, SXI_MONITOR etc)
    I have tried all possible combinations but this is not working if i send in 1 single idoc?
    Please help me in solveing this as this is a production issue and they cannot send 3 diffent idoc for 3 conditions. Where am i going wrong?
    Waiting for your responses.
    Thanks,
    Yash

    Hi Jakub,
    My scenario is one idoc say IDOC 1 and 3 files says FILE1, FILE2 and FILE3. Now the target message type for these three files are MT_FILE1, MT_FILE2 and MT_FILE3 (3 different message types).
    The only catch point here is i have 2 different interface for creating FILE3 (same message type but different mapping, interface etc). Each interface is based on a condition.
    Now when I send one doc which includes condition for only FILE1 and FILE2, it creates 2 file.
    If I have condition of only FILE3 (one condition of FILE 3 as FILE3 has 2 conditions) and FILE2, it creates both files.
    If I have both condition for FILE3 and FILE2, it creates FILE3 with only one condition and FILE2.
    If i have condition for FILE1, FILE2 and both conditions for FILE3, it creates FILE1 and FILE2 both no FILE3 at all.
    I guess the problem might be that I have same message type for both conditions for FILE3 but I m not sure. Let me try by creating seperate message type for both and see. But is there any other problem?
    Yash

  • DataScroller Giving problem in tomahowk JSF

    Hi All
    I am generating dynamic datatable content by giving following code
    <t:dataTable
    value="#{ListHolderBean.resultList}"
    sortable="true"
    var="result"
    id="employeeTable"
    rowClasses="TableLeftMaint"
    footerClass="TableLeftSub"
    headerClass="TableLeftSub"
    width="100%"
    preserveDataModel="true"
    rows="5" binding="#{populateDataBean.dynamicDataTable}">
    </t:dataTable>
    Data content is beign generate by binding attribute ...
    I had attached below data scroller
    <t:dataScroller id="dataScroller"
         for="employeeTable"
    paginator="true"
    fastStep="5"
    pageCountVar="pageCount"
         pageIndexVar="pageIndex"
         rowsCountVar="rowsCount"
         firstRowIndexVar="firstRowIndex"
         paginatorMaxPages="10"
    paginatorTableClass="paginator"
    paginatorActiveColumnStyle="font-weight:bold;FONT- FAMILY : Verdana,Arial,Helvetica,sans-serif;"
    >
    <f:facet name="first">
    <t:graphicImage url="/graphics/arrow-first.gif" border="0"/>
    </f:facet>
    <f:facet name="last">
    <t:graphicImage url="/graphics/arrow-last.gif" border="0"/>
    </f:facet>
    <f:facet name="previous">
    <t:graphicImage url="/graphics/arrow-previous.gif" border="0"/>
    </f:facet>
    <f:facet name="next">
    <t:graphicImage url="/graphics/arrow-next.gif" border="0" />
    </f:facet>
    <f:facet name="fastforward">
    <t:graphicImage url="/graphics/arrow-ff.gif" border="0"/>
    </f:facet>
    <f:facet name="fastrewind">
    <t:graphicImage url="/graphics/arrow-fr.gif" border="0"/>
    </f:facet>
    <f:param value="#{rowsCount}/" />
              <f:param value="#{displayedRowsCount}" />
              <f:param value="#{firstRowIndex}" />
              <f:param value="#{lastRowIndex}" />
              <f:param value="#{pageIndex}" />
              <f:param value="#{pageCount}" />
    </t:dataScroller>
    Problem Is
    Data is coming with all page index like 1,2,3,4 but once I click on any of them it will give all data vanish ...means data lost ...once I click on any of them .
    With Thanks

    I got the solution I change preserveDataModel="false".
    Now it's working fine .
    Sorry for inconvenient
    Thanks

  • SHOW h:message giving problem

    Hi every body ,
    I am facing one peculiar problem in my App.
    I am validating some textfields , radiobuttons , checkboxes by JSF (I am using JSF 1.1) simple validation (by required "true") and showing message by h:message .But when I am pressing the SUBMIT button it will validation only radiobuttons , it is not validatinf text fields or checkboxes , after I click the radio button & again click the SUBMIT button then only it is validating other fields like text fields / check boxes .
    So suppose I am submitting empty from with out click any thing , then JSF showing only the radio button's message , it is not showing all other fields.When I click only the radio button (with out click check box / filling nothing in the text field )& press the SUBMIT button then it is showing all error message in the view page .
    Could any body explain me why it is happing ?
    ** I am validating all fields in the SUBMIT button click by this way :
    in the required field I am giving :
    required="#{ not empty param['form:submit'] } here SUBMIT button's ID is submit.
    Thanks
    S

    Ok, that's what happens, but the idea was that the "test" appear at the second line. Think about that, and if the "test" was a label for another textbox? So The label would appear at the first line and its textbox at the second line. We can't configure the panelgrid for 2 columns, because we need a column for the h:message.
    Try out this code:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <h:panelGrid columns="3" border="0" cellpadding="5" cellspacing="3" headerClass="login-heading">
    <h:outputLabel for="userNameInput">
    <h:outputText value="Enter your user name:"/>
    </h:outputLabel>
    <h:inputText id="userNameInput" size="20" maxlength="30" required="true">
    <f:validateLength minimum="5" maximum="30"/>
    </h:inputText>
    <h:message for="userNameInput"/>
    <h:outputLabel for="passwordInput">
    <h:outputText value="Enter your user password:"/>
    </h:outputLabel>
    <h:inputText id="passwordInput" size="20" maxlength="30" required="true">
    <f:validateLength minimum="5" maximum="30"/>
    </h:inputText>
    <h:message for="passwordInput"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Date validation 'validateDateTimeRange ' giving problem

    Hello Guys,
    We are using ADF 11g(11.1.1.2).
    Here we are trying to validate the date using validateDateTimeRange to validate the date.
    <af:inputDate id="dateLaborIt" required="true"
    binding="#{ClaimsBean.dateLaborPerformedI}">
    *<af:validateDateTimeRange maximum="#{ClaimsBean.currentDate}"*
    *minimum="#{ClaimsBean.purchaseDate}"/>*
    </af:inputDate>
    Occatinally this validation giving me problem when the min and max dates are equal.
    It is giving the validation error as:
    Error : The date is outside the valid Range
    the date must be between "6/25/2011" and "6/25/2011".
    Can any body help me in resolving this issue.
    Regards
    Ahamed

    This is the code that is being generated. The error is occuring on thie line
    var value = field.value;
    The problem is obvious, since the field does not exist it can't get the value... I would like to avoid having to write my own validateDate method..
    function validateDate(form) {
           var bValid = true;
           var focusField = null;
           var i = 0;
           var fields = new Array();
           var formName = form.getAttributeNode("name");
           oDate = eval('new ' + formName.value + '_DateValidations()');
           for (x in oDate) {
               var field = form[oDate[x][0]];
               var value = field.value;
               var datePattern = oDate[x][2]("datePatternStrict");
               // try loose pattern
               if (datePattern == null)
                   datePattern = oDate[x][2]("datePattern");

Maybe you are looking for

  • Connect a pc to my network?

    I have an imac G5 connected to the internet with an airport extreme and my new roommate has the misfortune to own a pc laptop running windows XP that she'd like to connect to my network. Basically I have been surfing for ages and looking in all the b

  • Indesign mac: Plugin Built using Xcode 5.0.2 is not loading in Indesign CC 2014

    Hi, I have copied my project files from version 4.5.2 (which I was using for Indesign CC) to XCode 5.0.2. After this, I moved the *.plist of my plugin from sources folder to resources folder and then did the release build. But when I am opening Indes

  • How do I complain about the way a support issue was handled?

    I'm very grateful that a long standing and reoccuring issue with the disabling of my account seems to have been solved.  What I am NOT happy about is the email I received at the end of the long battle accusing me of violating the ITunes Store agreeme

  • Xcelcius 2008 with BW Query and one variable

    HI, i am trying to create a Dashboard using the sap bw query as the connection. in the bw Query i have a variable for Cost center . I need to create a dashboard in such a way that the user selects the cost center and based on the cost center a table

  • Servlet sessions

    As per theory an HttpSession is needed only in case the following three conditions are met 1. Your application entails multiple http requests. 2. You need to remember certain data between requests. 3. There is a server side object that needs to persi