LSMW ERROR IN FOLLOWING CODE SHOWING ERROR  AT LINE NO 79

ALL GURUs,
I AM CREATING A NEW LSMW (RECORDING TYPE), FOR MOVEMENT TYPE 309,BUT AT THE 11TH LEVEL IN (CONVERT DATA) DUMP IS COMING SHOWING THE ERROR
in the Include "/1CADMC/SAP_LSMW_CONV_00000124 " in line 79:
"For type "C", a length specification from 1 to 65535 is allowed.
PL. HELP ITS VERY URGENT.
PONTS WILL BE REWARDED FOR CORRECT SOLUTION
LSM Workbench: Data Conversion Program
Program:      /1CADMC/SAP_LSMW_CONV_00000124
Date:         11.02.2008
Time:       19:07:03
User:          VMDM_SUNITA
Project:       CUTOVER
Subproject:   BALANCES
Object:        TRIAL
report /1CADMC/SAP_LSMW_CONV_00000124
  message-id /sapdmc/lsmw.
Global data definitions and table declarations
include:
  /SAPDMC/SAP_LSMW_INC_GLOBALS.
Additional data definitions and table declarations
include:
  /sapdmc/sap_lsmw_conv_data.
Target structure definitions
data:
  begin of TRANSFERPO occurs 0,
    TABNAME(000030) type C,
    TCODE(000020) type C,
    TRANSACTION_TYPE(000003) type C,
    REFERANCE(000003) type C,
    MOVEMENT_TYPE(000003) type C,
    DOC_DATE(000010) type C,
    POSTING_DATE(000010) type C,
    OUTPUT(000001) type C,
    LINE(000004) type C,
    SOURCE_ITEM(000040) type C,
    DEST_ITEM(000040) type C,
    SOURCE_PLANT(000030) type C,
    DEST_PLANT(000030) type C,
    SOURCE_SLOC(000016) type C,
    DEST_SLOC(000016) type C,
    QUANTITY(000017) type C,
  end of TRANSFERPO .
data:
  init_TRANSFERPO like TRANSFERPO,
  prev_TRANSFERPO like TRANSFERPO.
Source structure definitions
data:
  begin of LSMW_TP309,
    DOC_DATE(008) type C,
    POSTING_DATE(008) type C,
    LINE(004) type C,
    SOURCE_ITEM(018) type C,
    DEST_ITEM(018) type C,
    SOURCE_PLANT(004) type C,
    DEST_PLANT(004) type C,
    SOURCE_SLOC(004) type C,
    DEST_SLOC(004) type C,
    QUANTITY(010) type C,
  end of LSMW_TP309.
data:
  begin of TP309 occurs 0.
        include structure LSMW_TP309.
data:   recnr_000001 type i.
data:
  end of TP309.
Counters
data:
  g_cnt_TP309  type i.
Counter ct_xxxxxxxxxx: number of transferred records
data:
  ct_TRANSFERPO  type i,
  cs_TRANSFERPO  type i.
Fixedvalues
data:
  fv_309TRF(000000) type C.
parameters:
  p_filept no-display,
  p_trfcpt no-display,
  p_packge(5) type n no-display.
Select-option for wildcard value in file names
selection-screen begin of block selopts3
                 with frame title text-003.
select-options:
  so_wldcd for /sapdmc/lsofiw-wildcardvalue no-display.
selection-screen end of block selopts3.
initialization.
Object identifer
  g_project = 'CUTOVER        '.
  g_subproj = 'BALANCES       '.
  g_object = 'TRIAL          '.
  g_objecttype = '02'.
start-of-selection.
Initializations
  perform initializations.
Reset counters and flags
  perform reset_counters_and_flags.
Reset tables
  perform reset_tables.
Create initial structures with nodata characters
  perform create_initial_structures.
Assign values to fixedvalues
  read table gt_lsratt with key
             ruletype = con_rule_fixedvalue
             rulename = '309TRF'.
  if sy-subrc = 0.
    if gt_lsratt-fixedvalue is initial.
      write: / text-019, '309TRF                        '.
    else.
      fv_309TRF = gt_lsratt-fixedvalue.
    endif.
  endif.
Execute data conversion.
  perform execute_data_conversion.
Final message
  perform final_message.
Close files
  perform close_files.
Write protocol.
  perform write_protocol.
End program
  exit.
Form Routines
  include:
    /sapdmc/sap_lsmw_conv_forms,
    /sapdmc/sap_lsmw_conv_prot.
*&      Form  execute_data_conversion
      text
form execute_data_conversion.
  data: struc_length type i.
  do.
    perform read_next_record.
    if g_flg_end_of_file = yes. exit. endif.
    case g_record.
      when 'TP309'.
        if g_flg_convert_transaction = yes.
          perform convert_transaction.
          perform clear_source_tables.
        else.
          g_flg_convert_transaction = yes.
        endif.
        assign gs_buffer-data to <g_buffer_to_struc>
               casting like lsmw_TP309.
        move-corresponding <g_buffer_to_struc> to TP309.
        TP309-recnr_000001 = g_cnt_records_read.
        append TP309.
        add 1 to g_cnt_TP309.
        add 1 to g_cnt_transactions_read.
      when others.
perform insert_message using ... .
    endcase.
    if ( so_tcntr-option = 'BT' and
         g_cnt_transactions_read > so_tcntr-high ) or
       ( so_tcntr-option = 'EQ' and
         g_cnt_transactions_read > so_tcntr-low ).
      exit.
    endif.
  enddo.
Process last transaction.
  perform convert_transaction.
  perform clear_source_tables.
endform.                    "execute_data_conversion
*&      Form  convert_transaction
      text
form convert_transaction.
  check so_tcntr.
  loop at TP309.
    perform convert_0001. " TRANSFERPO
  ENDLOOP.
End of transaction
  transfer_transaction.
endform.                    "convert_transaction
*&      Form  clear_source_tables
      text
form clear_source_tables.
  clear TP309[].
endform.                    "clear_source_tables
*&      Form  create_initial_structures
      text
form create_initial_structures.
  perform initialize_with_nodata using
          'TRANSFERPO' init_TRANSFERPO.
endform.                    "create_initial_structures
*&      Form  convert_0001
      text
form convert_0001. " TRANSFERPO
  check g_skip_transaction = no.
  g_skip_record = no.
  g_record = 'TRANSFERPO'.
--- __BEGIN_OF_RECORD__
  TRANSFERPO = INIT_TRANSFERPO.
--- TRANSFERPO-TABNAME
  TRANSFERPO-TABNAME = 'TRANSFERPO'.
--- TRANSFERPO-TCODE
  TRANSFERPO-TCODE = 'MIGO'.
--- TRANSFERPO-TRANSACTION_TYPE
  TRANSFERPO-TRANSACTION_TYPE = 'A08'.
--- TRANSFERPO-REFERANCE
  TRANSFERPO-REFERANCE = 'R10'.
--- TRANSFERPO-MOVEMENT_TYPE
  TRANSFERPO-MOVEMENT_TYPE = '309'.
--- TRANSFERPO-DOC_DATE
  TRANSFERPO-DOC_DATE = TP309-DOC_DATE.
--- TRANSFERPO-POSTING_DATE
  TRANSFERPO-POSTING_DATE = TP309-POSTING_DATE.
--- TRANSFERPO-OUTPUT
  TRANSFERPO-OUTPUT = '2'.
--- TRANSFERPO-LINE
  TRANSFERPO-LINE = TP309-LINE.
--- TRANSFERPO-SOURCE_ITEM
  TRANSFERPO-SOURCE_ITEM = TP309-SOURCE_ITEM.
--- TRANSFERPO-DEST_ITEM
  TRANSFERPO-DEST_ITEM = TP309-DEST_ITEM.
--- TRANSFERPO-SOURCE_PLANT
  TRANSFERPO-SOURCE_PLANT = TP309-SOURCE_PLANT.
--- TRANSFERPO-DEST_PLANT
  TRANSFERPO-DEST_PLANT = TP309-DEST_PLANT.
--- TRANSFERPO-SOURCE_SLOC
  TRANSFERPO-SOURCE_SLOC = TP309-SOURCE_SLOC.
--- TRANSFERPO-DEST_SLOC
  TRANSFERPO-DEST_SLOC = TP309-DEST_SLOC.
--- TRANSFERPO-QUANTITY
  TRANSFERPO-QUANTITY = TP309-QUANTITY.
--- __END_OF_RECORD__
  transfer_record.
  g_skip_record = no.
endform.                    "convert_0001

the bad guy is
data:
fv_309TRF(000000) type C.
check the definition of this fixed value in step 6, especially whether output length is > 0.
Then generate the conversion program and try again.
Cheers
Thomas

Similar Messages

  • HR t.code showing error

    Hii,
    T.code (S_PHO_48000513) in  reporting tools of HR  is showing error
    No user group created
    i have used t.code SQ02,SQ03.
    thanks
    Edited by: aks on Dec 6, 2008 5:33 AM

    Hi Adamski,
    I have been facing the same problem with Ad Hoc query (S_PHO_48000513 ) Your suggestion helped me.
    This tcode will work only for standard query area user groups and infosets
    Whereas S_PHO_48000510 will work for global query areas and infosets.
    Thanks,
    Raghu Kolukuluri

  • TRIED THis CODE for TO FIND THE FIBONACCI USING THREAD ,BUT SHOWING ERROR FOR FOLLOWING CODE  fib = fib(k+1);

    showing following error in line 34
    error: cannot find symbol
    fib = fib(k+1);
           ^
      symbol:   method fib(int)
      location: class FibN
    1 error
    import java.util.*;
    class AsynchFunctionTest
    public static void main(String[]args)
    Scanner in = new Scanner(System.in);
    System.out.print("enter value for n");
    int n = in.nextInt();
    FibN t = new FibN(n);
    t.start();
    try
      t.join();
    catch(InterruptedException e){}
    System.out.println("Fib("+n+") = "+ t.getResult());
    class FibN extends Thread
    private int n;
      private long result;
    public FibN(int nn)
      n = nn;
      public void run()
    long fib = 1;
    int k = 0;
    while(k < n){
    fib = fib(k+1);
    k++;
    result = fib;
    public long getResult()
    return result;

    rinojoseph wrote:
    sorry for that this is the error i getting for that code
    error: cannot find symbol   line 34
    fib = fib(k+1);
           ^
      symbol:   method fib(int)
      location: class FibN
    1 error
    Process completed.
    sorry
    Hmm - well you declared 'fib' like this:
    >
    long fib = 1;
    >
    So how do you expect to call a 'long' as if it were a function?

  • Error: Cannot Display Page----showing error when displaying SRS window.

    Hi All,
    Iam getting error when trying to display concurrent Program result view page i.e 'FNDCPREQUESTVIEWPAGE'
    You cannot complete this task because one of the following events caused a loss of page data:
    Your login session has expired.
    A system failure has occurred.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    i wrote the code there in the link http://oracleanil.blogspot.com/2009/04/steps-for-insert-in-eo.html
    Please anybody tell me what the reason behind this error.??
    Edited by: 881533 on Nov 10, 2011 1:15 AM

    Hi,
    This page normally dont have back button ,
    if u use browser back button some times it throws error,
    Create a link on this page using personailization and call some function to navigate to the page which u want,
    u can navigate u another page using the link instaed of using broeser back buton.
    Thanks
    Raju

  • SAPKW70017  shows error XPRA_EXECUTION

    Dear Support,
    While applying SAPKW70017 it shows error.
    The import was stopped, since an error occurred during the phase
    XPRA_EXECUTION, which the Support Package Manager is unable to resolve
    without your input.
    After you have corrected the cause of the error, continue with the
    import by choosing Support Package -> Import queue from the initial
    screen of the Support Package Manager.
    The following details help you to analyze the problem:
        -   Error in phase: XPRA_EXECUTION
        -   Reason for error: TP_STEP_FAILURE
        -   Return code: 0012
        -   Error message: OCS Package SAPKW70017, tp step R, return code
            0012
    This is our BI Server. On XI and ECC Server i have applied without any error.
    Please revert with the helful suggetion.
    Regards,
    Ajit

    Hi ajit,
    you can solve the problem by update R3trans, tp and spam sofrware (service.sap.com/swdc) or update your kernel on your Server.
    i have faced this problem XPRA_EXECUTION by update kernel with latest kernel
    env :
    SAP NW 7.01 EHP1
    Windows intel x64 and DB2 Database
    thanks
    ghochi

  • How to find code responsible  Error Message generated in MIRO transaction

    Hi Gurus,
                    I have to find the code responsible for generating ERROR message in Miro tcode through DEBUGGING. Let me tell you the case...................
    In MIRO,
    We input
    In Basic data tab,
    Invoice Date,
    Posting Date,
    Reference,
    PO no. &
    Tax code as V5 ( VAT @ 8% )  in item data  & then
    In Details tab,
    We enter Business Area    & then
    In Payment Tab
    Baseline date        & then
    In Basic data tab
    We check the check box for Calculate tax &
    entered Amount     & then click entered .
    It displays GREEN button.
    When we click Simulate button & click post then it shows 1 message that " Invoice document still contains messages .".
    And then if we click Messages Button it shows " MSG No. & text -  Enter Bussiness area ."
    So the problem is though we input Business Area , still it shows message Enter Business area.
    So plz tell me how to find that code responsible for error message.

    Ashish- It is because, the error message is called using function module / BAPI. But Ideally when a developer codes to populate the structure of type BAPIRET2, he.she should also follow the following rule, to make the message traceable:
    "Populate BAPI structure for error message
    "Following code will not get called, but is for documentation for traceability.
    if 1 = 2.
      message e004.
    endif.
    That is why i said in my comment, if it is "coded properly" then we will be able trace
    Bottom line: you will not be able to find the program line using this approach.
    But now since you now the error message and number, you can go to the underlying program of MIRO (SAPLMR1M and SAPLFDCB)..click on the find button on the application toolbar, enter the message# and find..PLEASE SELECT THE RADIO BUTTON "In the main program".
    Hope this helps.
    Sajan Joseph.

  • Report App Server;Error code:-2147215349 Error code name:docNotReady.......

    Hi Experts,
    In our application we are trying to connect to the RAS server  for the ad hoc reporting capabilities that allow users to modify reports over the Web.
    In order to do this what are servers need to run on the server side( I am looking for settings on server side like, what are the servers and services to be run on).
    When we try to open the document  we are getting the error. The code and error msg are as follows.
    private void GetReportClientDocument()
              try {
                   sessionManager = CrystalEnterprise.getSessionMgr();
                   enterpriseSession = sessionManager.logon(username,password, servername, "SecEnterprise");
                   iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
                   String sampleReportName = "Test_Open";
                   IInfoObjects infolist = iStore.query("Select SI_CUID From CI_INFOOBJECTS Where  SI_NAME='" + sampleReportName + "' and SI_INSTANCE=0");
                   int lookUpId = 0;
                   for (int i = 0; i < infolist.size(); i++) {
                        IInfoObject siId = (IInfoObject) infolist.get(i);
                        lookUpId = siId.getID();
                   System.out.println("The CUID is: "+lookUpId);
                   IInfoObjects list = iStore.query("select * From CI_INFOOBJECTS Where SI_ID="+lookUpId);
                   IInfoObject report = (IInfoObject) list.get(0);
                   ReportClientDocument rcd = new ReportClientDocument();
                   IReportAppFactory appFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");
                   try {
                        System.out.println("Name of Document: "+rcd.getReportDocument().getName());
                        rcd = appFactory.openDocument(report, OpenReportOptions._openAsReadOnly,null);
                   } catch (ReportSDKException e) {
                        e.printStackTrace();
              } catch (SDKException e) {
                   e.printStackTrace();
    Error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: The document has not been opened.---- Error code:-2147215349 Error code name:docNotReady
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException.throwReportSDKClientDocException(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getDatabaseController(Unknown Source)
         at Viewer.GetReportClientDocument(Viewer.java:98)
         at Viewer.main(Viewer.java:27)
    Thanks in advance for your help.

    Hi Qiang,
    Please check http://metalink.oracle.com/metalink/plsql/ml2_documents.showFrameDocument?p_database_id=NOT&p_id=1047650.6 for possible solutions for this error.
    Thanks,
    Erik

  • How to show error message next to the field?

    Hi All,
    I am writing my own form handler and I am trying to show form field errors without using errormessageforeach droplet for learning purpose.
    I am able to show to the fields errors but I want to show them next to the fields.
    How can i achieve this functionality?
    Regards,
    Prateek

    PrateekG wrote:
    Hi All,
    I am writing my own form handler and I am trying to show form field errors without using errormessageforeach droplet for learning purpose.
    I am able to show to the fields errors but I want to show them next to the fields.
    How can i achieve this functionality?
    Regards,
    Prateek
    You can use JQuery/JavaScript to validate for errors and div to show error after field like below:
    <dsp:input type="text"  bean="MyFormHandler.cashierId"  />
         <dsp:valueof bean="MyFormHandler.errorMap.firstname"/>
    <div id="firstNameError">Your error message will goes here<div>
    -RMishra

  • Show Errors Problem

    I created a procedure and compilied it in DBA Studio. It came back as invalid so I pressed the Show Errors button and nothing was in the box. I also add the procedure through SQL Plus, same thing, compiled with errors. Did a show errors there and nothing. I recently upgraded from Oracle 8.1.6 to 8.1.7, I never had a problem before, is anyone else having this problem?

    I have struggled with this problem also and am very curious if
    any of the Oracle wizards out there have come across a solution?
    DBA Studio and frequently SQL*Plus will not display the errors
    encountered during a function or procedure compile.
    I created a procedure and compilied it in DBA Studio. It came back as invalid so I pressed the Show Errors button and nothing
    was in the box. I also add the procedure through SQL Plus, same
    thing, compiled with errors. Did a show errors there and
    nothing. I recently upgraded from Oracle 8.1.6 to 8.1.7, I never
    had a problem before, is anyone else having this problem?

  • Error in Local Message System: Error when opening an RFC connection Message

    Hi Gurus,
    We are not able to create support messages in our ECC production system but it can created in Development and Quality. Support message created appears in solution manager system. ECC System displays error message as
    Error in Local Message System: Error when opening
    an RFC connection Message was Not Created
    I have checked RFC connection between ECC and Solution Manager which displays following message
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: partner "local:sapgw00' not reached
    Error Details     LOCATION: SAP-Gateway on host local / sapgw05
    Error Details     DETAIL: NiPConnect2
    Error Details     CALL: connect
    Error Details     COMPONENT: NI (network interface)
    Error Details     COUNTER: 40142
    Error Details     ERROR NUMBER: 10060
    Error Details     ERROR TEXT: WSAETIMEDOUT: Connection timed out
    Error Details     MODULE: nixxi.cpp
    Error Details     LINE: 2835
    Error Details     RETURN CODE: -10
    Error Details     SUBRC: 0
    Error Details     RELEASE: 701
    Error Details     TIME: Wed Jan 11 23:26:54 2012
    Error Details     VERSION: 38
    Kindly Help.....

    Hi
    Based on the instance number of the servers, you can determine the gateway to be used.
    IF your ECC instance number is , 01 then gateway would be , sapgw01 (in ECC system)
    So check and change the settings accordingly, in the RFC connection. Also check, if this entry sapgw01 is made in /etc/service file. Also check, in transaction smgw for gateway parameters.
    Hope this info helps,
    ~ Raj

  • LSMW - Error BDC_INSERT, Transaction code .. is invalid XD01

    Dear all.
    I have done the following Steps:
    1 - Maintain Object Attributes. Chose the Object type Batch Recording, then created a Record using the name (CLI_PMR). And created the Batch record and then assign the fields name.
    2 - Maintain Source Structures – Created the Struture (CLI_PMR1)
    3 - Maintain Source Fields – Assign the fields name and length that I used in my program. (CLI_PMR1).
    4 - Maintain Structure Relations – Assign the Struture (CLI_PMR1 to CLI_PMR)
    5 - Maintain Field Mapping and Conversion Rules – The normal thing in this point.
    6 - Specify Files - Specified the Legacy Data, path for the file.
    7 - Generate Read Program – Generated the Program.
    8 – Read Data – Executed this Step and every thing is correct
    9 - Generate Conversion Program – Generated the program
    10 - Convert Data – Convert data
    11 - Display Converted Data – Every thing is fine, with no errors
    12 - Create Batch Input Session- At this the error message appears Error BDC_INSERT, Transaction code .. is invalid  time.
    At the time we have created other LSMW programs for this T-Code and every thing is OK.
    I'm using the T-CODE=XD01
    Best Regards
    Pedro Miguel Rodrigues

    Hi, I had the same problem in LSMW when generating a batch input for trx IE01. The cause was that there were tab/newline-characters in my text file (some descriptions contained tab-characters). Since I used a tab delimited file, these tabs/newlines in the fields messed up my file.
    The excel file contained multiple lines per cell in some description fields. When this was exported to tab delimited text, it contained additional tabs. After checking the contents and removing the tabs/newlines from Excel and performed a new export to txt-file, it was solved.
    Best regards,
    Jan-Peter Molenaar
    SAP EAM Consultant

  • Show errors on UIX page from Java code?

    Hello all:
    I've got a simple Login page in Jdev 10g (9.0.5.2) that I'm setting up. The basics work fine -- if I type in a valid login/password, it works. If I type in an incorrect login/password, it loops back to the login page. The problem is that I can't seem to get my Invalid Login error message to appear.
    The loginPage.uix is based on a template. The template contains the following code:
    <messages>
    <messageBox automatic="true" />
    </messages>
    as a named child inside a <pageLayout> UIX node. The login page is:
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:pas="http://www.paslists.com/pas/templates"
    expressionLanguage="el">
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="pasPageLayout.uit"/>
    </templates>
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui" >
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title="PAS Login Page"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <pas:pasPageLayout selectedGlobalHeader="3">
    <contents>
    <stackLayout>
    <contents>
    <spacer height="10"/>
    <styledText text="Please enter your Web ID and Password, then press the Log In button."/>
    <spacer height="10"/>
    <flowLayout>
    <contents>
    <styledText text="If you don't have an ID, please send an e-mail to our "/>
    <link destination="mailto:[email protected]" text="Web Administrator" />
    <styledText text=" requesting one."/>
    </contents>
    </flowLayout>
    <spacer height="10"/>
    <form name="loginForm" method="POST">
    <contents>
    <labeledFieldLayout labelWidth="25%" fieldWidth="80%" columns="2" width="80%" >
    <contents>
    <messageTextInput prompt="ID:" name="username" columns="20" />
    <messageTextInput prompt="Password:" name="password" secret="true" columns="20" />
    </contents>
    </labeledFieldLayout>
    <rowLayout hAlign="right">
    <contents>
    <submitButton text="Log In" formName="loginForm" event="goLogin"/>
    <spacer width="10" />
    <resetButton text="Reset" formName="loginForm" />
    <spacer width="10" />
    </contents>
    </rowLayout>
    </contents>
    </form>
    </contents>
    </stackLayout>
    </contents>
    <start>
    <flowLayout>
    <contents>
    <sideNav selectedIndex="0">
    <contents>
    <link destination="login.do" text="Logging In"/>
    <link destination="logoff.do" text="Log Off"/>
    </contents>
    </sideNav>
    </contents>
    </flowLayout>
    </start>
    </pas:pasPageLayout>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="goLogin">
    <go name="login"/>
    </event>
    </handlers>
    </page>
    My Java code is:
    public class LoginAction extends DataAction
    public void findForward(DataActionContext actionContext) throws Exception
    HttpServletRequest request = actionContext.getHttpServletRequest();
    HttpSession session = request.getSession();
    ActionErrors errors = actionContext.getActionErrors();
    String target = "fail";
    //Get the result of the Model Method Call
    JUCtrlActionBinding method = actionContext.getCustomMethod();
    boolean successfulLogon = ((Boolean)method.getResult()).booleanValue();
    Integer attempts = (Integer)session.getAttribute("loginAttempts");
    int intAttempts = 0;
    if (attempts != null)
    intAttempts = attempts.intValue();
    if (!successfulLogon || intAttempts > 3)
    // If the Logon fails we need to do the follwoing
    // 1. Increment the counter. Once this exceeds 3 any logon will fail
    // 2. Create an error message to display on the logon screen.
    // Be sure that this is non-specific so crackers can't tell if
    // a portion if the username is correct or that there is a
    // Max attempts value.
    session.setAttribute("loginAttempts",new Integer(++intAttempts));
    errors.add("InvalidLogin",new ActionError("loginerr.invalid"));
    actionContext.setActionErrors(errors);
    else
    session.setAttribute("loginStatus", new String("true"));
    target = "success";
    actionContext.setActionForward(target);
    This goes to a "success" actionForward if the login works and a "fail" actionForward if the login fails.
    My ApplicationResources.properties file contains:
    loginerr.invalid=Invalid username/password. Please try again.
    This matches up with the key I used in the new ActionError() statement above.
    My structs-config.xml for this section looks like this:
    <action path="/mainAction" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataAction" name="DataForm">
    <set-property property="modelReference" value="loginUIModel"/>
    <forward name="success" path="/loginPage.do"/>
    <forward name="login" path="/loginAction.do"/>
    </action>
    <action name="DataForm" path="/loginAction" className="oracle.adf.controller.struts.actions.DataActionMapping" type="com.paslists.view.LoginAction">
    <set-property property="modelReference" value="loginUIModel"/>
    <set-property property="methodName" value="loginUIModel.login"/>
    <set-property property="resultLocation" value="${requestScope.methodResult}"/>
    <set-property property="numParams" value="2"/>
    <set-property property="paramNames[0]" value="${param.username}"/>
    <set-property property="paramNames[1]" value="${param.password}"/>
    <forward name="fail" path="/mainAction.do"/>
    <forward name="success" path="/getHomePageAction.do"/>
    </action>
    <action name="DataForm" path="/loginPage" forward="/loginPage.uix" validate="false"/>
    mainAction has a success forward to loginPage.uix. loginPage.uix has a "login" event attached to the submit button, which forwards to loginAction. loginAction executes the code declaratively and forwards to success or fail. If success, it continues on. If fail, it loops back to mainAction.
    Again -- this all works (almost). The only thing that does not work is that my ActionErrors() are not displaying on the web page.
    What am I doing wrong here?

    Solved my own problem. See the following thread for the answer:
    Displaying Struts messages/errors in 10g
    I modified my error code to be:
    actionContext.getActionErrors().add(ActionErrors.GLOBAL_ERROR,new ActionError("loginerr.invalid"));
    this.saveErrors(request,actionContext.getActionErrors());
    I modified my template to contain:
    <struts:dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <contents>
    <messageBox messageType="error" automatic="true"/>
    </contents>
    </struts:dataScope>
    I also added xmlns:struts="http://xmlns.oracle.com/uix/struts" to the templateDefinition.
    It now works.

  • I have a problem for download in app store . it shows error code : 1009

    i have a problem for download in app store . it shows error code : 1009

    https://discussions.apple.com/thread/2439043

  • Download error under apps. After following download steps multiple times still showing error message.

    Download error under apps. After following download steps multiple times still showing error message.

    Hi There,
    Kindly try the below mentioned links.
    Creative Cloud Help | Download Error in Apps tab of Creative Cloud Desktop Application
    Creative Cloud - Download error - stubborn error
    Thanks,
    Atul Saini

  • When i try to open itunes its showing error 7 code 193

    when i try to open itunes its showing error 7 code 193. it wont let me open it at all. i dont want to lose my music. i did the repair option already and it did not work.

    That article has been withdrawn.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

Maybe you are looking for

  • Can I highlight and post-it-note a pdf on a tablet and then open it later on my laptop (and vice-versa)?

    Thank you for your time and clear answers. Obviously I would save it and then transfer it to my laptop. One more thing: I am interested in purchasing a tablet primarily for reading PDFs (often scanned books and articles).  But I must be able to highl

  • How to call translation template from bursting control file.

    Hi All, Greetings!!!!!!!!!!!!! Need help on calling translation template from the bursting control file. While calling the translation template from bursting control file it ends in error. Following is the error [063010_063059160][][EXCEPTION] The UR

  • Reg: ALV Field catalog refresh

    Hello All, Initially I have to display an ALV grid. Upon a buttons click(User Command)  , an additional col should be displayed for which the field catalog of the ALV needs to be changed. Iam using FM ''REUSE_ALV_GRID_DISPLAY'.My question is , how cl

  • Metric collection error for Oracle 10g(10.2.0.4) database.

    Hi, i just confirured OEM11G(11.1.0.1) on my client test machine and installed 11.1.0.1 agent on one target where 10.2.0.4 database is running. OS is windows 2003 R2. after installing the agent, i am able to see the database name in the oem --> datab

  • Receipt Default Conversion Rate

    Hello, We create a Receipt Interface Script to create the Transactions Automatic and receive the items from the PO, when we checked the receipt created the conversion rate was coming from the PO Header but now comes from the PO Distributions and our