Mandatory field validation error occurs when user cancels out of blank "cre

Hi - I'm building an application using Oracle 10g 9.0.5.2, with ADF/UIX/Struts.
I followed the technique described in the tutorial
http://otn.oracle.com/obe/obe9051jdev/uixtutorial/lesson_uix.htm
In that example they have a page called BrowseDeptEmp. On this page is a
create button, which is linked to a /createEmpAction before displaying the
FormEmp uix page, where the user is supposed to enter new employee data.
So I did the same thing, but I added a cancel button on the FormEmp.uix page.
If the user presses cancel on the FormEmp page, it goes through a 'rollback' DataAction (with a rollback operation dragged on it) and then back
to the main page.
here's my problem:
If the user
1. clicks the create button on the BrowseDeptEmp page
2. Sees the blank form in the FormEmp page
3. Changes his mind (does not want to add a new employee) and clicks cancel
The FormEmp page displays validation errors on the fields that are mandatory in the DB! So the user
can't cancel out of the create page unless he fills in the mandatory fields...!!
How do I cancel out of a create page 1) without entering any data on the page and 2) without getting
mandatory field validation messages?
It must be simple but i can't figure it out....
Please help :)
Thanks
Des

I don't understand how this can happen if the user has not entered any data.
Is there a commit action somewhere that is being triggered before the rollback?
is your cancel button a submit button?
one way to fix this is to convert the submit button into a
regular button and have the regular button go directly to your DataAction (the one with the rollback).
you can automatically create this button by drawing a pageLink from the page to the DataAction in the page flow diagram.

Similar Messages

  • Mandatory field validation on Page links.

    We have created a Portal application where we included different applications as taskflows. We have also created a tabbed interface which helps us to communicate from one task flow to another taskflow. When we are in one page of taskflow and try to move to another page of different taskflow using tabbed interface we receive mandatory field validation error which prevents us to move to any other page until we fill all the mandatory fields. We need to move to different page of taskflow by using the tabbed interface even without filling all the necessary mandatory fields. Can anyone help us to resolve this issue as this is very important for our project.

    <b>Layout</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Check Pernr " >
        <htmlb:form>
          <htmlb:textView text   = "Personnel No."
                          design = "EMPHASIZED" />
          <htmlb:inputField id    = "pernr"
                            value = "<%= lv_pernr %>" />
    <%
    if lv_no_pernr = 'X'.
    %>
    <script language="Javascript">
    alert ("Personnel no. is not Valid")
    </script>
    <%endif.%>
       </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>ONINPUTPROCESSING</b>
    DATA: l_pernr TYPE persno.
      DATA: data TYPE REF TO cl_htmlb_inputfield.
      data ?= cl_htmlb_manager=>get_data( request = runtime->server->request
                                             name     = 'inputField'
                                             id       = 'pernr' ).
      IF data IS NOT INITIAL.
        l_pernr = data->value.
      ENDIF.
    CLEAR lv_no_pernr.
    SELECT SINGLE pernr FROM pa0000 INTO l_pernr WHERE pernr EQ lv_pernr.
    IF sy-subrc NE 0.
      lv_no_pernr = 'X'.
    ENDIF.
    <b>PAGE ATTRIBUTES</b>
    lv_no_pernr     TYPE     FLAG
    lv_pernr     TYPE     PERSNO
    hope this helps.
    A

  • Getting mandatory attribute validation error when the value is defaulted through customization

    Hi
    I am getting Mandatory attribute validation error when we default the value through customization.
    In the UI we have attribute called Last Name which is mandatory at EO level. Customer wanted to default Last name to some value, through page composer it is defaulted to some text and saved.
    When ever we open the page the the same value is defaulted as Last Name and appearing in the UI. But when we submit the page, EO level validation is failing. hence we are getting last name is missing.
    When i debug the code last name attribute value for EO is blank.
    In the UI the attribute last name is associated with bindings  --> #{bindings.lastname.inputvalue}
    The validation is failing if we remove the default binding associated with inputtext box.
    Can some body help what can be reason and is there any solution?
    Thanks,
    Praveen

    version 12.1.2
    I am struggling with same situation, I can't set the default value at business component because, the default value comes from a REST service at run time. In page A,  I have a field F1 that contains value from REST service. Page B has a database bound field F2, whose default value should come from F1 in Page A when a user navigates from Page A to Page B. If I set the value of F2 to be the value of F1, then it displays the value in the UI, but nothing gets submitted to EO and fails at commit.
    To make things difficult, here is my situation: Page A lives in bounded taskflow TF1, and Page B lives in bounded taskflow TF2. So I have created an input parameter P1 in TF 2, which carries over the value of F1 in Page A to Page B. When I am in Page B, I can successfully see the value of the taskflow input parameter P1. So, how do I  programmatically set the value of field F2 with the value of input parameter P1?
    I tried setting the F2.inputValue  in a method call M1 in  taskflow TF2 prior to Page B, but I get null pointer exception as it can't see field F2 yet.
    It seems like a simple thing to do, but I have spent a lot of time trying to make it work without any success.
    I would greatly appreciate any guidance.

  • DTW - Error occurs when updating UDF field

    Error occurs when updating UDF field:"bank does not exist in the company Application-defined or
    object-defined error65171"
    What is the meaning of this message?
    thanks
    Edited by: Nadav Greifman on Oct 11, 2009 12:39 PM

    You may check these threads forst:
    Invalid valid value '0003' Error 65171
    bank account is missing application -define or object define Error 65171
    Re: Journal entries
    Re: Error importing Incoming Payments using the Data Transfer Workbench
    Thanks,
    Gordon

  • Internal error occured when writing

    Hi all
    I successfully imported an APO planning area into the quality systems, however the same request ends with error 12 in the production system. Landscape is SCM 5.0 sp8 with BI 7.0 sp12. When i checked the import job RDDEXECL (user DDIC), it shows:
    Date Time Message text Message class Message no. Message type
    07/08/2007 00:02:57 Job started 00 516 S
    07/08/2007 00:02:57 Step 001 started (program RDDEXECL, variant , user ID DDIC) 00 550 S
    07/08/2007 00:02:57 All DB buffers of application server <server_name> were synchronized PU 170 S
    07/08/2007 00:03:17 <b>Internal error occurred when writing</b> D0 054 E
    07/08/2007 00:03:17 Job cancelled after system exception ERROR_MESSAGE 00 564 A
    I thought there will be an ABAP dump, I found this internal error (in bold in the log above). I tried searching for info on this but no help, it does not says error writing to what? Please help.
    Thanks
    Ali

    It seems a syncronization problem..
    You can create a customer message providing the following information:
    1. The symptoms that occurred
    2. The highest Support Package
    3. The current SAP_BASIS Support Package level
    4. The queue that is currently selected
    Header Data

  • An error occurs when trying to exit from ALV report

    Hi,
    I have a report which imports and display in ALV data from an excel file. Unfortunately when I'm trying to exit I receive an error as I copied below.
    Runtime Errors         MOVE_TO_LIT_NOTALLOWED_NODATA
    Date and Time          17.10.2008 08:39:18
    Short text
         Error at assignment: Overwritten protected field.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLSLVC_FULLSCREEN" had to be terminated because it
          has
         come across a statement that unfortunately cannot be executed.
    Error analysis
         A new value is to be assigned to the field "<L_BOX>", although this field is
         entirely or partly protected against changes.
         The following are protected against changes:
         - Character literals or numeric literals
         - Constants (CONSTANTS)
         - Parameters of the category IMPORTING REFERENCE for functions and
         methods
         - Untyped field symbols not yet assigned a field using ASSIGN
         - TABLES parameters if the actual parameter is protected against changes
         - USING reference parameters and CHANGING parameters for FORMs, if the
         actual parameter is protected against changes and
         - Accesses using field symbols if the field assigned using ASSIGN is
         protected (or partially protected, e.g. key components of an internal
         table with the type SORTED or HASHED TABLE) against changes
         - Accesses using references, if the field bound to the reference is
         protected (or partially protected) against changes
         - External write accesses to READ-ONLY attributes,
         - Content of a shared object area instance accessed using a shared lock
         (ATTACH_FOR_READ).
    Trigger Location of Runtime Error
         Program                                 SAPLSLVC_FULLSCREEN
         Include                                 LSLVC_FULLSCREENF02
         Row                                     686
         Module type                             (FORM)
         Module Name                             MARKS_SAVE
    How can I solve the problem ?
    Thanks
    Stefan

    Hi ,
      Please check the GUI status you are using for the ALV.
    Looking at the code what i feel is that the error occurs when the user action is the code &SAL' or '&ALL'.
    Please put a break point at the statement and see why is the error occurring
    Regards,
    Arun

  • Combo LOV firing mandatory field validation

    Hello,
    I am using Jdev 11.1.1.6.
    My VO is entity based. I have 3 fields in this VO as F1, F2, F3
    All 3 fields are mandatory.
    F1 has model based Combo Lov implemented. List Attribute lookupId from LOV is returned to F1 and List Attribute lookupDesc to F2.
    F2 is mandatory and editable. Idea is that default text is returned by lov and then user can update the description.
    Scenario 1: <does not work>
    At runtime, in create mode, when I try to select a value for this combo lov, it fires mandatory field validation for F2 (only for F2 and not F3) and does not show list of values. I can not make it to show list until enter some data in F2.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false" and F2 has partialTriggers="id of F1"
    Scenario 2: <works>
    For test purpose, if I make F2 read-only then it works perfectly but F2 is editable and mandatory as well.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false" and F2 has partialTriggers="id of F1"
    Scenario 3: <works>
    On other pages, I have implemented combo lov where the lov is implemented on reference field and returning the value to only Id column and not to any other field. This scenario works perfectly even with mandatory fields present on page.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false".
    Thanks,
    Jai

    Try to remove partialTrigger from F2 (has partialTriggers="id of F1"),
    and attach valueChangeListener on F1, in which you can partially refresh F2 (by code)
    Of course, make F1 autoSubmit.
    Scenario 1: <does not work>
    At runtime, in create mode, when I try to select a value for this combo lov, it fires mandatory field validation for F2 (only for F2 and not F3) and does not show list of values. I can not make it to show list until enter some data in F2.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false" and F2 has partialTriggers="id of F1"

  • "An error occurred when communicating with the server. Check connectivity with your administrator to determine whether further action is necessary", then attempt to approve TimeSheet.

    Kind day, colleague.
    It was required to organize a statement chain for TimeSheet of employees, as we realized. Everything is good, but at linear managers in PSW opportunity to execute Approve when viewing TimeSheet of the employee remained, and in attempt to approve TimeSheet there
    is a mistake.
    500 Internal Server Error
    "An error occurred when communicating with the server.  Check connectivity with your administrator to determine whether further action is necessary. "
    Accept, is carried out as it is necessary.
    It is a bug or we not correctly realized approval chain?

     issue is  related to the user booking time against a task that was past the finish/end date listed in the Project Schedule.
    To resolve the user needs to submit their time on a valid task that is still within the current reporting timeframe, or have the Project Manager
    update the task in questions so that the finish/end dates are at or beyond the submission period and then republish the project. After that, the user should be able to go in and submit their timesheet with success.
    http://patrickdrews.com/2012/09/project-server-2010-timesheet-submission-produces-an-error-occurred-while-communicating-with-the-server/
    kirtesh

  • PL/SQL: ORA-04052: error occurred when looking up remote object.

    Hi All,
    I'm getting the following error message while executing a PL/SQL Block.
    PL/SQL: ORA-04052: error occurred when looking up remote object UPLDUSER.filestatushistory@FTS
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03106: fatal two-task communication protocol error
    ORA-02063: preceding line from FTSStatement
    declare
    v_coun number;
    begin
    select count(*) into v_coun
    from updluser.filestatushistory@fts;
    end;Back ground of the situation as follows,
    My DataBase version 10.2.0.3 DB Name :DB1
    Table Owner : UPLDUSER
    Table Name : FILESTATUSHISTORY
    I have a report user on the same database and I have grant all on the above table to report user
    Report User : RPT_FTS
    SQL> GRANT ALL ON FILESTATUSHISTORY_V TO RPT_FTS;Now Please find the below database details where I'm getting subjected error.
    Database version : 9.2.0.8
    DB Name : DB2
    User Name : RPT_REPORTS
    I Have create a dblink from RPT_REPORTS to RPT_FTS on DB1 and the dblink works fine. But getting the above error while running it.
    but When I do the same other 10.2.0.3 db , the above PL/SQL block works fine without any problem.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Now the strange about this is that I have Created a new table on DB1 db like below;
    SQL> CREATE TABLE UPLDUSER.ABC AS SELECT * FROM FILESTATUSHISTORY;and retry my code on DB2 (9.2.0.8) after changing the table to ABC and it worked. Now I don't know whats wrong with a original table(FILESTATUSHISTORY).
    To over come the problem and a work-a-round method I create a view on the DB1 (RPT_FTS) like the below
    SQL> CREATE VIEW FILESTATUSHISTORY AS SELECT * FROM UPLDUSER.FILESTATUSHISTORY;and was able to run the PL/SQL block Remotely.
    Just wants To know what whould have been the cause for this .
    Cheers
    Kanchana

    Hi Kanchana,
    Perhaps following link of google search has answer to your query
    ORA-04052. The search result contains some useful articles whose URLs I shan't post in the forums.
    HTH!
    *009*

  • I have Lightroom 5 installed on my MacBook Air but when I try to open the program I receive the message "An error occurred when attempting to change modules".  I uninstalled, emptied trash and re-installed but I continue to get the same message.

    I have Lightroom 5 installed on my iMac which I downloaded (uploaded?) to my MacBook Air (via wi-fi) but unlike the iMac, I'm unable to use the program on the MacBook Air.  When I open the program on the iMac and click 'file', (as people using the program would know) there are 21 options - import pics, export, etc, etc - however, in the version on the MacBook Air, opening 'file' gives me four options - New Catalogue, Open Catalogue, Page Setup and Printer - and with that comes the pop-up message "An error occurred when attempting to change modules".  Any ideas please?

    A forum thread from 3 years ago talking about LR 1.x which had this problem seems to need permissions fixed or new folders created with the corrected permissions.  You might try doing a repair permissions for your user and/or run LR as an administrator user.  I am a PC person so cannot tell you exactly how to do that.
    https://forums.adobe.com/message/1457020

  • An error occurred when processing the spool request.  (Possibly due to memory problems)

    Hi SAP,
    My backgroud job is failing with log as shown below
    Job started
    Step 001 started (program ZMRS0065, variant SUS
    Step 002 started (program ZDRS0090, variant SUS
    Step 003 started (program ZFRS0305, variant SUS
    Step 004 started (program ZFRS0300, variant SUS
    Access error
    Job cancelled after system exception ERROR_MESSAGE
    An error occurred when processing the spool request.  (Possibly due to memory problems)
    Kindly help out in this issue
    Regards
    Mohammed

    Hello Mohammed,
    Have you seen any error in your SM21 system log and developer trace of spool work process
    during that time?
    The maximum size when create spool is 2GB.Pls also check if you are creating a spool
    larger than it.
    Best Regards
    Jie Bai

  • Error in executing ABAP program. Error occurred when creating dataset

    hi,
    when I use LKM SAP ERP to Oracle (SQLLDR) to extract data from SAP ERP server. I execute my interface, and it's stop at extract data step.
    This is message:
    java.lang.RuntimeException: Error occured in open tool execute method...Error in executing ABAP program...Error in executing ABAP program...Error occurred when creating dataset/abc/ZODI_13001_6001_GLOBAL.txt
    I tried others path name, tried slash or backslash. This is content in code tab
    OdiSAPAbapExecute "-UPLOAD=1" "-EXECUTE=1" "-EXECUTEBASE_RKM=0" "-ZRFC_RUN_INSTALL=1" "-ABAP_PROGRAM_NAME=ZODI_13001_6001" "-HOST=10.86.87.24" "-USER=sv_hoa" "-PASSWORD=<@=snpRef.getInfo("SRC_PASS") @>" "-SAP_CLIENT=800" "-SAP_LANGUAGE=EN" "-SAP_SYSTEM_NUMBER=02" "-SAP_FUNCTION_GROUP_NAME=ZODI_FGR_13001" "-CONNECTION_POOL_NAME=SAP_ODI_ERP_POOL_10.86.87.24" "-CONNECTION_POOL_SIZE=10" "-FILE_DELIMITER=<@=""+(char)8@>" "-FILE_NAME=ZODI_13001_6001_GLOBAL.txt" "-FTP_HOST=10.86.82.108" "-FTP_USER=anh" "-FTP_PASSWORD=<@=sFtpPassword@>" "-FTP_PASSIVE_MODE=1" "-FTP_TRANSFER_TIMEOUT=100000" "-ODI_VARIABLE_NAMES=" "-ODI_VARIABLE_VALUES=" "-USER_ABAP_PARAMETER_NAMES=IV_DELIMITER,CHAR3;IV_FILENAME,CHAR255;IV_USER,CHAR35;IV_PWD,CHAR35;IV_HOST,CHAR35;IV_HASHVALUE,CHAR35;IV_PATH,CHAR35;IV_MAX_ROW_CNT,SYTABIX;IV_FETCH_BATCH_SIZE,SYTABIX;" "-USER_ABAP_PARAMETER_VALUES=<Value>" "-USER_ABAP_PARAMETER_SEPARATOR=<Value>" "-ABAP_TABLE_PARAMETERS=RETURN,BAPIRETURN;ET_FILE_RETURN,BAPIRET2" "-ABAP_EXPORT_PARAMETERS=ERRORMESSAGE;SY-MSGV1" "-LOG_FILE_NAME=C:\Users\anh\AppData\Local\Temp\SapAbapExecuteOpenTool_13001.log" "-FTP_PATH=/abc/" "-DEV_CLASS=ZODI_DEVCLASS" "-MAX_ROW_COUNT=" "-FETCH_BATCH_SIZE=100000" "-HASH_VALUE_MARKER=HVM" "-ABAP_PROGRAM_BODY=
    *Final Type declarations
    TYPES : BEGIN OF ty_final,
    Y03HOCSINH_HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID,
    Y03HOCSINH_MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH,
    Y03HOCSINH_TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH,
    Y03HOCSINH_GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH,
    Y03HOCSINH_DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI,
    Y03HOCSINH_GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU,
    END OF ty_final.
    *Final Temp Type Declarations
    TYPES : BEGIN OF ty_final_tmp,
    Y03HOCSINH_HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID ,
    Y03HOCSINH_MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH ,
    Y03HOCSINH_TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH ,
    Y03HOCSINH_GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH ,
    Y03HOCSINH_DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI ,
    Y03HOCSINH_GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU ,
    END OF ty_final_tmp.
    *Final Target Type Declarations
    TYPES : BEGIN OF ty_final_target,
    C0_Y03HOCSINH_HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID,
    C1_Y03HOCSINH_MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH,
    C2_Y03HOCSINH_TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH,
    C3_Y03HOCSINH_GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH,
    C4_Y03HOCSINH_DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI,
    C5_Y03HOCSINH_GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU,
    END OF ty_final_target.
    * Table type for Y03HOCSINH
    TYPES : BEGIN OF ty_Y03HOCSINH,
    HOCSINH_ID TYPE
    Y03HOCSINH-HOCSINH_ID,
    MA_HOC_SINH TYPE
    Y03HOCSINH-MA_HOC_SINH,
    TEN_HOC_SINH TYPE
    Y03HOCSINH-TEN_HOC_SINH,
    GIOI_TINH TYPE
    Y03HOCSINH-GIOI_TINH,
    DIA_CHI TYPE
    Y03HOCSINH-DIA_CHI,
    GHI_CHU TYPE
    Y03HOCSINH-GHI_CHU,
    END OF ty_Y03HOCSINH.
    TYPES: BEGIN OF gs_text,
    line(843) TYPE c,
    END OF gs_text.
    *Structure Declarations
    DATA: wa_final_string TYPE string,
    wa_final TYPE ty_final,
    wa_final_target TYPE ty_final_target,
    wa_Y03HOCSINH TYPE ty_Y03HOCSINH,
    *Table Declarations
    tt_final TYPE STANDARD TABLE OF ty_final,
    tt_Y03HOCSINH TYPE STANDARD TABLE OF ty_Y03HOCSINH,
    tt_final_target TYPE STANDARD TABLE
    OF ty_final_target,
    tt_final_tmp TYPE STANDARD TABLE OF ty_final_tmp,
    tt_final_tmp1 TYPE STANDARD TABLE OF ty_final,
    gt_result TYPE STANDARD TABLE OF gs_text,
    *Variable Declarations
    lv_path TYPE string,
    lv_flag TYPE char1,
    C0_Y03HOCSINH_HOCSINH_ID TYPE
    STRING,
    C1_Y03HOCSINH_MA_HOC_SINH TYPE
    STRING,
    C2_Y03HOCSINH_TEN_HOC_SINH TYPE
    STRING,
    C3_Y03HOCSINH_GIOI_TINH TYPE
    STRING,
    C4_Y03HOCSINH_DIA_CHI TYPE
    STRING,
    C5_Y03HOCSINH_GHI_CHU TYPE
    STRING,
    wa_final_tmp TYPE ty_final_tmp,
    lv_file TYPE string,
    lv_datum TYPE sy-datum,
    lv_date TYPE char10,
    wa_result TYPE string,
    lv_delimiter type string,
    lv_cnt TYPE sytabix,
    *-Cursor Declaration
    lv_Y03HOCSINH_dbcur TYPE cursor,
    lv_tabix_frm TYPE sy-tabix.
    lv_delimiter = iv_delimiter.
    IF iv_hashvalue = 'HVM'.
    *Open/delete output file
    CONCATENATE iv_path iv_filename INTO lv_path.
    *Check for file existence, if found, delete it
    OPEN DATASET lv_path FOR INPUT
    IN TEXT MODE
    ENCODING DEFAULT.
    IF sy-subrc EQ 0.
    DELETE DATASET lv_path.
    ENDIF.
    *Open/create output file
    OPEN DATASET lv_path FOR APPENDING
    IN TEXT MODE
    ENCODING DEFAULT.
    IF sy-subrc EQ 0.
    *Batch Processing
    OPEN CURSOR WITH HOLD lv_Y03HOCSINH_dbcur FOR
    SELECT HOCSINH_ID
    MA_HOC_SINH
    TEN_HOC_SINH
    GIOI_TINH
    DIA_CHI
    GHI_CHU
    FROM Y03HOCSINH.
    DO.
    *Check for the counter, only for first batch
    *process new line is required...
    lv_cnt = lv_cnt + 1.
    REFRESH tt_Y03HOCSINH.
    FETCH NEXT CURSOR lv_Y03HOCSINH_dbcur
    APPENDING TABLE tt_Y03HOCSINH
    PACKAGE SIZE IV_FETCH_BATCH_SIZE.
    IF NOT tt_Y03HOCSINH IS INITIAL.
    ELSE.
    EXIT.
    ENDIF.
    LOOP AT tt_Y03HOCSINH INTO wa_Y03HOCSINH.
    MOVE wa_Y03HOCSINH-HOCSINH_ID
    TO wa_final_tmp-Y03HOCSINH_HOCSINH_ID.
    MOVE wa_Y03HOCSINH-MA_HOC_SINH
    TO wa_final_tmp-Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_Y03HOCSINH-TEN_HOC_SINH
    TO wa_final_tmp-Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_Y03HOCSINH-GIOI_TINH
    TO wa_final_tmp-Y03HOCSINH_GIOI_TINH.
    MOVE wa_Y03HOCSINH-DIA_CHI
    TO wa_final_tmp-Y03HOCSINH_DIA_CHI.
    MOVE wa_Y03HOCSINH-GHI_CHU
    TO wa_final_tmp-Y03HOCSINH_GHI_CHU.
    APPEND wa_final_tmp TO tt_final_tmp.
    ENDLOOP.
    free : tt_Y03HOCSINH.
    LOOP AT tt_final_tmp INTO wa_final_tmp.
    MOVE wa_final_tmp-Y03HOCSINH_HOCSINH_ID
    TO wa_final_target-C0_Y03HOCSINH_HOCSINH_ID.
    MOVE wa_final_tmp-Y03HOCSINH_MA_HOC_SINH
    TO wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_final_tmp-Y03HOCSINH_TEN_HOC_SINH
    TO wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_final_tmp-Y03HOCSINH_GIOI_TINH
    TO wa_final_target-C3_Y03HOCSINH_GIOI_TINH.
    MOVE wa_final_tmp-Y03HOCSINH_DIA_CHI
    TO wa_final_target-C4_Y03HOCSINH_DIA_CHI.
    MOVE wa_final_tmp-Y03HOCSINH_GHI_CHU
    TO wa_final_target-C5_Y03HOCSINH_GHI_CHU.
    Append wa_final_target to tt_final_target.
    ENDLOOP.
    free : tt_final_tmp.
    Clear wa_final_target.
    IF NOT iv_max_row_cnt IS INITIAL.
    Loop at tt_final_target into
    wa_final_target TO iv_max_row_cnt.
    MOVE wa_final_target-C0_Y03HOCSINH_HOCSINH_ID
    TO C0_Y03HOCSINH_HOCSINH_ID.
    MOVE wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH
    TO C1_Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH
    TO C2_Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_final_target-C3_Y03HOCSINH_GIOI_TINH
    TO C3_Y03HOCSINH_GIOI_TINH.
    MOVE wa_final_target-C4_Y03HOCSINH_DIA_CHI
    TO C4_Y03HOCSINH_DIA_CHI.
    MOVE wa_final_target-C5_Y03HOCSINH_GHI_CHU
    TO C5_Y03HOCSINH_GHI_CHU.
    CONCATENATE
    C0_Y03HOCSINH_HOCSINH_ID
    C1_Y03HOCSINH_MA_HOC_SINH
    C2_Y03HOCSINH_TEN_HOC_SINH
    C3_Y03HOCSINH_GIOI_TINH
    C4_Y03HOCSINH_DIA_CHI
    C5_Y03HOCSINH_GHI_CHU
    INTO wa_final_string
    SEPARATED BY lv_delimiter.
    IF sy-tabix EQ 1 AND lv_cnt EQ 1.
    CONCATENATE wa_final_string
    lv_delimiter INTO wa_final_string.
    ELSE.
    CONCATENATE '<@=""+(char)8@>' lv_delimiter wa_final_string
    lv_delimiter INTO wa_final_string.
    ENDIF.
    APPEND wa_final_string TO gt_result.
    CLEAR : C0_Y03HOCSINH_HOCSINH_ID,
    C1_Y03HOCSINH_MA_HOC_SINH,
    C2_Y03HOCSINH_TEN_HOC_SINH,
    C3_Y03HOCSINH_GIOI_TINH,
    C4_Y03HOCSINH_DIA_CHI,
    C5_Y03HOCSINH_GHI_CHU.
    ENDLOOP.
    ELSE.
    Loop at tt_final_target into wa_final_target.
    MOVE wa_final_target-C0_Y03HOCSINH_HOCSINH_ID
    TO C0_Y03HOCSINH_HOCSINH_ID.
    MOVE wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH
    TO C1_Y03HOCSINH_MA_HOC_SINH.
    MOVE wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH
    TO C2_Y03HOCSINH_TEN_HOC_SINH.
    MOVE wa_final_target-C3_Y03HOCSINH_GIOI_TINH
    TO C3_Y03HOCSINH_GIOI_TINH.
    MOVE wa_final_target-C4_Y03HOCSINH_DIA_CHI
    TO C4_Y03HOCSINH_DIA_CHI.
    MOVE wa_final_target-C5_Y03HOCSINH_GHI_CHU
    TO C5_Y03HOCSINH_GHI_CHU.
    CONCATENATE
    C0_Y03HOCSINH_HOCSINH_ID
    C1_Y03HOCSINH_MA_HOC_SINH
    C2_Y03HOCSINH_TEN_HOC_SINH
    C3_Y03HOCSINH_GIOI_TINH
    C4_Y03HOCSINH_DIA_CHI
    C5_Y03HOCSINH_GHI_CHU
    INTO wa_final_string
    SEPARATED BY lv_delimiter.
    IF sy-tabix EQ 1 AND lv_cnt EQ 1.
    CONCATENATE wa_final_string
    lv_delimiter INTO wa_final_string.
    ELSE.
    CONCATENATE '<@=""+(char)8@>' lv_delimiter wa_final_string
    lv_delimiter INTO wa_final_string.
    ENDIF.
    APPEND wa_final_string TO gt_result.
    CLEAR : C0_Y03HOCSINH_HOCSINH_ID,
    C1_Y03HOCSINH_MA_HOC_SINH,
    C2_Y03HOCSINH_TEN_HOC_SINH,
    C3_Y03HOCSINH_GIOI_TINH,
    C4_Y03HOCSINH_DIA_CHI,
    C5_Y03HOCSINH_GHI_CHU.
    ENDLOOP.
    ENDIF.
    free : tt_final_target.
    IF NOT gt_result IS INITIAL.
    CLEAR wa_result.
    LOOP AT gt_result INTO wa_result.
    TRANSFER wa_result TO lv_path.
    ENDLOOP.
    ENDIF.
    REFRESH gt_result.
    *End of main loop for batching
    ENDDO.
    *Close dataset
    CLOSE DATASET lv_path.
    CLOSE CURSOR lv_Y03HOCSINH_dbcur.
    ELSE.
    DATA: lv_mesg TYPE string.
    CLEAR et_file_return.
    et_file_return-type = 'E'.
    CONCATENATE
    'Error occurred when creating dataset' lv_path
    INTO lv_mesg.
    et_file_return-message = lv_mesg.
    Append et_file_return.
    ENDIF.
    ELSE.
    CLEAR et_file_return.
    et_file_return-type = 'E'.
    et_file_return-message =
    'Installed ABAP program does not match interface definition'.
    APPEND et_file_return.
    ENDIF.
    Thanks for help

    r u able to figure it out..........i got the same error .......can someone help me fix this issue

  • A critical program error occured when running a workbook

    Some end users get a critical program error occured when running a workbook when they want to make selections.
    In the trace they get the following message
    System.ArgumentException: Item has already been added.  Key in dictionary: "44ABATDK7TYM365CYLQ0VDKU6"  Key being added: "44ABATDK7TYM365CYLQ0VDKU6"
    This happens only on some PC clients !
    Thanks for any help !
    Ivan

    Hi Vid,
    Thanks for your suggestion.
    I am using a different patch i.e.
    BI AddOn 7.X (based on 7.10), Support Package 5, Revision 1083
    and it helps to solve my problem.
    Cheers.

  • "Internal error occurred" when launching Acrobat Pro X (AAMEE 3.1.150.0)

    AAMEE 3.1.105.0 generated packages run fine when pushed to Macs that do not have an existing previous version of CS.
    However, if pushed to a Mac that has CS4 installed, CS6 installs but Acrobat Pro X will not launch ("Internal error occurred").
    We are using the latest Adobe CS6 Design & Web Premium installer DMGs from licensing.adobe.com and we are following the standard workflow.
    I know Adobe's position is "We don't recommend or support concurrent installs of Creative Suite" (I get that).
    Since OS X lacks package management (ala Yum, RPM, etc.), the term "Uninstall" is vague, but we appreciate Adobe's "cleaner tool".
    Unfortunately the "cleaner tool" is only marginally effective, it leaves a mess behind.
    And...when "cleaner tool" is used to remove CS4, it whacks CS6.
    Wait...it gets worse...when "cleaner tool" is used, we now can't push our CS6 package to the Mac...we get...<drumroll>..."Internal error occurred" when launching Acrobat Pro X.
    Someone shoot me...please put me out of my misery.
    Why can't deploying CS6 be as simple as...
    http://www.toysrus.com/product/index.jsp?productId=3938350&CAWELAID=479925582
    Don

    OK, we resolved the issue. Apparently there was a ~/Library/ColorSync folder present, not owned by the logged in user, and the logged in user had no access. Given OS X's domain model, it looks like Acrobat Pro X looks at that folder when it launches, even though it doesn't need to, and it can't get into it, so it tosses up the error.
    Removing the folder (since it's not needed) resolves the issue. If the folder was needed, we would change ownership and permissions so Acrobat Pro X could access it.
    Problem solved.
    Thanks,
    Don

  • An error occurred when attempting to change modules Lightroom 5 CC

    I've seen other users pose this question but haven't seen any solutions that work for me.  I get the error: "An error occurred when attempting to change modules" when I open up Lightroom 5 on one user, but on another user it opens up fine.  I've tried moving and trashing preferences, uninstalling and reinstalling the program.  It's the same whether I open an existing catalog or try to open Lightroom while creating a new project.  Any help would be greatly appreciated.  This occured after updating to Mavericks on a 2011 iMac.  All other Creative Cloud apps seem to have installed just fine.

    Hi 99jon,
    Many thanks for that. Had been going through this list yesterday and now again today:
    Ref  Solution 1: Lightroom is at its latest update
    Ref  Solution 2: It's interesting how I cannot find the Preferences file anywhere on my mac. (new mac pro, OS 10/9.2) . . .
    Ref  Solution 3: Lightroom doesn't allow me to do anything after the error message appears
    Ref  Solution 4: don't have any Nik Software plug-ins
    Ref  Solution 5: checked permissions and changed all to "Read & Write" - makes no difference
    Ref  Solution 6: I don't have a different user account on my mac.
    Not sure what else to do.

Maybe you are looking for

  • Unit of Measurement Field showing Gray while created asset master

    Dear All, When I am try to create the asset sstem is showing the Quantity Filed but the Unit of Measurement is showing in Gray. I also check the screen layout rule but still it not coming as an input field. Kindly help me out to resolve this ASAP. Re

  • Form template with lines that shouldn't print are printing

    I have Windows 8.1 and Adobe Reader 11.0.09. I have had a template from my employer that we use to create address labels. There are lines for name, address, etc that are supposed to be invisible when printed, but that has not been the case the past f

  • How can I reduce clicking when saving images?

    I often open a set of JPEG files and edit them. Unfortunately, saving them after editing is far from streamlined. I have to click three times (save, overwrite, jpeg settings) if I want to save a single file, with wait times in between. Ideally, I wou

  • Compiling with nested packages

    Hello, I have a problem trying to compile packages. Let's assume the following: - The classpath variable is set to include ..jdkxxx\lib\dt.jar;..jdkxxx\lib\tools.jar - I have a directory called 'd:\com\mycompany\mainpackage' - Inside dir mainpackage,

  • Missing CreateException in new EJBs from Wizard

    Hi there, I am creating EJBs using the Wizard, but in the main bean class ejbCreate method the "throws CreateException" is always missing. Is there a way to make JDeveloper to alwais include the "throws" clause for that mandatory exception? thanks, I