Error in Creating Custom Business Methods using ADF Business Comp. Tutorial

I've been working with Jdev 10g Preview for a while. Now that we have Jdev 10g, I have to unlearn some of the Preview methods and learn the "real" way of doing things. To that end, I went out to the "Creating Custom Business Methods using ADF Business Components" tutorial. Unfortunately, I've found what I think is a mistake in the example code.
Specifially, ADF treats the default iterator on View Objects differently than previous BC4J versions. In the older versions, the iterator was positioned before the first row when you first executed a query. In that case, the hasNext() method was used to see if you had any rows at all. In ADF, however, the default iterator is positioned at the first row. So, if your query only returns one row, then the hasNext() method returns false!
Here's the code posted in the tutorial:
public Number getDeptSalaryTotal(String dept_id)
// get a department view object
DepartmentsViewImpl dept = getDepartmentsView1();
dept.setWhereClause("DEPARTMENT_ID = " + dept_id);
dept.executeQuery();
dept.first();
EmployeesViewImpl emps = getEmployeesView3();
Number salaryTotal = new Number(0);
while (emps.hasNext() )
Row empsRow = emps.next();
salaryTotal =
salaryTotal.add((Number)(empsRow.getAttribute("Salary")));
return salaryTotal;
As you can see, this is coded using the pre-10g semantics. It checks hasNext() at the top of the while loop. If there is only one Employee in the Department, hasNext() will return false since the emps View Object will already be positioned at the first and only row. There won't be a next row. So, the salaryTotal will be zero instead of the correct value. Alternatively, if there is more than one row, then hasNext() will be true, but the routine will skip the first row and start totalling salaries from the second row on.
The routine should be recoded as follows:
public Number getDeptSalaryTotal(String dept_id)
// get a department view object
DepartmentsViewImpl dept = getDepartmentsView1();
dept.setWhereClause("DEPARTMENT_ID = " + dept_id);
dept.executeQuery();
dept.first();
EmployeesViewImpl emps = getEmployeesView3();
Number salaryTotal = new Number(0);
Row empsRow = emps.first(); // Get the first row
while (empsRow != null ) // while we have a row
salaryTotal =
salaryTotal.add((Number)(empsRow.getAttribute("Salary"))); // add in the salary
empsRow = emps.next(); // get the next row
return salaryTotal;
I haven't actually executed this code, so there may be a typo or two in there. However, the basic idea is sound -- I think!
Please update the tutorial so we don't mislead people right at the start! :-)

Gary:
I have two questions for you:
1) Could you post the preferred code here?
2) Why is it the preferred method? I would think that creating and destroying another object (the temporary iterator) would be a bad thing.

Similar Messages

  • Error While Creating Custom IDOC Segment using WE31

    Could anyone please help me resolve this issue.
    I am getting following error when trying to create a custom IDOC segment type using WE31.
    "Name range violation: Name Z1WOHDR not permitted in SAP system"
    Segment type trying to create: Z1WOHDR
    Regards
    Venu

    Try changing the name , But i am not getting any such error with the name you are using.
    Just Try with some onther name

  • Error while creating customer account sites from backend

    I am creating Customer Account Sites using the TCA API from Toad.
    I am getting the following error
    The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    The Operating unit has been defined.
    I am using the following code:
    DECLARE
    p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_cust_acct_site_id NUMBER;
    BEGIN
    p_cust_acct_site_rec.cust_account_id := 9462;
    p_cust_acct_site_rec.party_site_id := 5473;
    --p_cust_acct_site_rec.language := 'US';
    p_cust_acct_site_rec.org_id := 126;
    p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
    hz_cust_account_site_v2pub.create_cust_acct_site(
    'T',
    p_cust_acct_site_rec,
    x_cust_acct_site_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line(SubStr('x_return_status =
    '||x_return_status,1,255));
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
    IF x_msg_count >1 THEN
    FOR I IN 1..x_msg_count
    LOOP
    dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
    FND_API.G_FALSE ), 1, 255));
    END LOOP;
    END IF;
    END;
    Thanks and Regards,
    K tanna

    Duplicate post.
    Error while creating customer account sites
    Error while creating customer account sites

  • How to create custom report plugin using child region report metadata

    Hi,
    I want to ask for help on how to create custom report plugin using child region report metadata. My idea is to create a child region, a classic report and set the condition to never.
    Then i will query the child report metadata from apex view and use it to create a custom report like using jquery jq-grid. Any idea how i can create a process that will use the child report
    metadata? I dont know how i can create a process just like how apex work, how apex render report, coz i want it to be control using the standard apex report attribute. This plugin will
    render according to the child report attribute.
    Is there anybody here had ever done this?

    Hi Nicolette,
    Thanks for the reply. I know where to find the metadata, just asking for idea on how the rendering process will be.
    Start from determining column heading, column order until finish rendering the report. The same way how apex
    render the classic report.
    Previously this imy my rendering process:
    FUNCTION GETCOLUMN(P_REGION IN APEX_PLUGIN.T_REGION,
                         P_PLUGIN IN APEX_PLUGIN.T_PLUGIN,
                         P_VALUE  IN VARCHAR2) RETURN SYS.DBMS_SQL.DESC_TAB2 IS
        VSQLHANDLER     APEX_PLUGIN_UTIL.T_SQL_HANDLER;
        VCOLCOUNT       NUMBER;
        VCOLNAMES       VARCHAR2(2000);
        VAJAXIDENTIFIER VARCHAR2(100);
        VPAGESIZE       TYPEATTR := P_REGION.ATTRIBUTE_04;
        VJSCODE         VARCHAR2(32767);
      BEGIN
        VSQLHANDLER := APEX_PLUGIN_UTIL.GET_SQL_HANDLER(P_SQL_STATEMENT  => 'select * from s_emp',
                                                        P_MIN_COLUMNS    => 1,
                                                        P_MAX_COLUMNS    => 999,
                                                        P_COMPONENT_NAME => P_REGION.ID);
        VCOLCOUNT := VSQLHANDLER.COLUMN_LIST.COUNT();
        FOR I IN 1 .. VCOLCOUNT LOOP
          VCOLNAMES := VCOLNAMES || '{name: "' ||
                       UPPER(VSQLHANDLER.COLUMN_LIST(I).COL_NAME) || '",';
        END LOOP;
        APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
        RETURN VSQLHANDLER.COLUMN_LIST;
      EXCEPTION
        WHEN OTHERS THEN
          APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
          RAISE;
      END GETCOLUMN;
    So this is how i get the header for my report plugin. The same method is use to get the value / data for each column. This process is work. So now
    i want to extend my plugin so that i will use all attributes from the child report to render my plugin. So the column header, column order, all will depend
    on the child report. And the column display condition is set, it will also check the condition before render the column. Sounds like i want to reinvent
    the normal apex rendering process but this is what i want to achieve.
    I need help to find the correct logic for my render process. Don't want too much for starting, just want to render the plugin correctly, same with child report,
    same columns alias, column ordering and column  conditional display.
    Thanks,
    akulala

  • Error while creating customer account sites

    I am creating Customer Account Sites using the TCA API from Toad.
    I am getting the following error
    The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    The Operating unit has been defined.
    I am using the following code:
    DECLARE
    p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_cust_acct_site_id NUMBER;
    BEGIN
    p_cust_acct_site_rec.cust_account_id := 9462;
    p_cust_acct_site_rec.party_site_id := 5473;
    --p_cust_acct_site_rec.language := 'US';
    p_cust_acct_site_rec.org_id := 126;
    p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
    hz_cust_account_site_v2pub.create_cust_acct_site(
    'T',
    p_cust_acct_site_rec,
    x_cust_acct_site_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line(SubStr('x_return_status =
    '||x_return_status,1,255));
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
    IF x_msg_count >1 THEN
    FOR I IN 1..x_msg_count
    LOOP
    dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
    FND_API.G_FALSE ), 1, 255));
    END LOOP;
    END IF;
    END;
    Thanks and Regards,
    K tanna

    Hi,
    Please mention the application release along with the database version and OS.
    Please see if ('Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly [ID 732671.1]) helps.
    More details about setting the application context can be found in these docs.
    Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
    Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
    Note: 462383.1 - SQL Queries and Multi-Org Architecture in Release 12
    Note: 165042.1 - FAQ - Multiple Organizations Architechure (Multi-Org)
    Thanks,
    Hussein

  • Error while creating the DWH tables using DAC

    Hi,
    I am getting error while creating the DWH tables using DAC. I have created a ODBC DSN using merant driver with DAC repository DB credentials and the test connection is successful. And while creating the tables i gave the olap dw credentials and the DSN name which i created earlier. But it throws the error as below:
    Please find the below mentioned error message
    =====================================
    STD OUTPUT
    =====================================
    CREATING SIEBEL DATABASE OBJECTS
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ******* /c DB_DAC /G "SSE_ROLE" /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
    Error while importing Siebel database schema.
    =====================================
    ERROR OUTPUT
    =====================================
    Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.
    User agrees that any use of this software is governed by: (1) the applicable
    user limitations and other terms and conditions of the license agreement which
    has been entered into with Siebel Systems or its authorized distributors; and
    (2) the proprietary and restricted rights notices included in this software.
    WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
    UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
    OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
    If you have received this software in error, please notify Siebel Systems
    immediately at (650) 295-5000.
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ***** /c DB_DAC /G SSE_ROLE /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
    Connecting to the database...
    28000: [DataDirect][ODBC Oracle driver][Oracle]ORA-01017: invalid username/password; logon denied
    Unable to connect to the database...
    any help is appreciated.
    Thanks,
    RM

    The fact that you are getting an "ORA-01017: invalid username/password; logon denied" message indicates that you are at least talking to the database.
    The log shows that username "infdomain" is being used. Can you double check the username and password you have in DAC in a SQL*Plus/SQL Developer session?
    Please mark if useful/helpful,
    Andy.

  • XML Parser Error while creating Web service Client using JAX RPC

    hello evryone,
    Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
    wscompile -gen:client -d build -classpath build config-wsdl.xml
    here im getting Error:
    error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
    Please help me out.
    Many thanks in advance,
    Kacee

    Can i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.

  • How to create Custom WEB ADI using API Only for both Dowload/Upload process

    I am able to create custom WEB ADI using API for upload process. I have written the following code to create custom WEB ADI using API for upload process.
    DECLARE
    v_application_id NUMBER:= 20003;
    v_object_code VARCHAR2(255):='WEBADI_API_DEM_17';
    v_int_user_name VARCHAR2(255):='WEBADI_API_DEM_17';
    v_language VARCHAR2(255):='US';
    v_source_lang VARCHAR2(255):='US';
    v_user_id NUMBER :=1345;
    v_integrator_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTG';
    v_param_list_code VARCHAR2(255);
    --v_interface_code  VARCHAR2(255);
    v_interface_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTF';
    p_layout_code VARCHAR2(255):='WEBADI_API_DEM_17_LAYOUT';
    V_MAPPING_CODE VARCHAR2(255);
    BEGIN
    BNE_INTEGRATOR_UTILS.CREATE_INTEGRATOR(P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_USER_NAME =>v_int_user_name,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_INTEGRATOR_CODE =>v_integrator_code);
    BNE_INTEGRATOR_UTILS.CREATE_INTERFACE_FOR_API (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_API_PACKAGE_NAME =>'XXDH_PRICE_LIST_POC_PKG',
    P_API_PROCEDURE_NAME =>'CREATE_PRICE_LIST',
    P_INTERFACE_USER_NAME =>'WEBADI_API_DEM_17',
    P_PARAM_LIST_NAME =>'WEBADI_API_DEM_17',
    P_API_TYPE =>'PROCEDURE',
    P_API_RETURN_TYPE =>NULL,
    P_UPLOAD_TYPE =>2,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANG =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_PARAM_LIST_CODE =>v_param_list_code,
    P_INTERFACE_CODE =>v_interface_code);
    BNE_INTEGRATOR_UTILS.CREATE_DEFAULT_LAYOUT
    (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_INTERFACE_CODE =>v_interface_code,
    P_USER_ID =>v_user_id,
    P_FORCE =>FALSE,
    P_ALL_COLUMNS =>TRUE,
    P_LAYOUT_CODE =>p_layout_code);
    BNE_CONTENT_UTILS.CREATE_CONTENT_COLS_FROM_VIEW (P_APPLICATION_ID =>v_application_id,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_VIEW_NAME =>'XXDH_PRICE_LIST_POC_V',
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id);
    BNE_CONTENT_UTILS.CREATE_CONTENT_TO_API_MAP (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_INTERFACE_CODE =>v_interface_code,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_MAPPING_CODE =>V_MAPPING_CODE);
    END;
    I need to know what are API we can use to create download+upload ADI? anyone has already prepared script....please share it it me. My email id - [email protected]
    Thanks

    Use FNDLOAD, it's the only way.
    There are 2 seperate scripts, 1 for the Integrator and 1 for Layout.
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bneintegrator.lct <your name>.ldt BNE_INTEGRATORS INTEGRATOR_ASN="XXX" INTEGRATOR_CODE="<your code>"
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bnelay.lct <your name>.ldt BNE_LAYOUTS LAYOUT_ASN="XXX" LAYOUT_CODE="<your code>"
    Cheers
    Jeroen

  • ADF FACES (10.1.3)---How to create custom service methods?

    Hi,
    I need to put some custom service method in my ADF Faces App. Tried the ways for 9.0.5 but in 10.1.3, there is no Data Action (Servlet, I believe). I was able to expose the method to the client interface, which means I can see the method in the Data Control Palette. When I try to add it to a JSP, it appeas to be either a link or a button.
    Can I bind service methods to a submit button? How to do it? Thank you so much for the help.
    Annie

    hi,
    first of all thank you vry much.its nice to see yours replies.Actually,that was my first post. Well, i got your steps.But still m having a some doubts.
    i'l tell u the scenario.
    i'm using one java class object called CD as complex datatype.i have created ths in separete class from my main class whc i m gng to expose as web service.
    Ths CD complex type has three elements(Basic datatypes)
    label(string),artist(string),price(int)
    i have created xsd file for ths CD data type as u told.
    Now While creating Web Service from java class,in third step of custom mapping
    it asks for three things.
    First is Java class
    (Whc one i should specify...My main java class whc contains methods
    or whc contains jst defination for CD type)
    Second thing is XML qualified name - here i'l specify my schema whc i created
    and Wht is tht third thing
    Serializer Class ????
    Thank you vry much.
    -mishit

  • Error while creating a business partner / sponsor

    Hi experts,
    I am getting the following error (same as the one posted by one of the other users) when i try to create a business partner in the 'sponsor' role:
    Sponsor does not have a customer associated with it.
    Because of this error I AM STUCK!!! and cannot move forward with the rest of the customization. I searched all the settings and researched this error - couldnt find anything useful.
    Can you guys PLEASE HELP???
    Thank you,
    Ajay

    Dear Ajay,
    The sponsor should have a customer number behind
    Please have a look at the online help:[http://help.sap.com/saphelp_erp60_sp/helpdata/en/8d/b6283b85b6666be10000000a114084/frameset.htm]
    See Customizing Grantee Management   ->GM-GTE Customizing: Master Data  -> GM-GTE Master Data Customizing: Sponsor
    You can adjust your customizing in a way to create the customer automatically at the time of creating the sponsor, or you can first create the sponsor and link it to a customer afterwards. This will depend on how the sponsor Role (Standard is PSSP01) is set.
    you can find it in the IMG> Master Data Synchronization> Customer/Vendor Integration> Business Partner Settings> Settings for Customer Integration> Set BP Role Category for Direction BP to Customer
    and check options 'Customer-based' or 'Optional for Customer'
    Hope this will help
    Kind regards
    Mar

  • Errors while creating a template file using

    Hi,
    I am new to jdeveloper 10g (10.1.3.4.0). I am developing a project where i was creating a template using ADF face core page in the component pallete. I select and drag the panel page component on the visual editor. I could see that the errors folder is created in the structure pane and i could see the following error messages in that folder. Can somebody help me in resolving these errors.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHtmlTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHtmlTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHtmlTag not found.
    Method setParent(com.sun.faces.taglib.jsf_core.ViewTag) not found in <unknown>.
    Method doStartTag() not found in <unknown>.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHeadTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHeadTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHeadTag not found.
    Method setParent(<unknown>) not found in <unknown>.
    Method setTitle(java.lang.String) not found in <unknown>.
    Method doStartTag() not found in <unknown>.
    Method doEndTag() not found in <unknown>.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlBodyTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlBodyTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlBodyTag not found.
    Method setParent(<unknown>) not found in <unknown>.
    Method doStartTag() not found in <unknown>.
    Method doEndTag() not found in <unknown>.
    Method doEndTag() not found in <unknown>.Thanks in advance

    Hi,
    since 10.1.3 does not have templates I am wondering what you were attempting to do? It appears as if the Faces libraries are not available for the project, so you may want to give us a steb-by-step instruction of how to reproduce the error
    Frank

  • Error while creating customer

    While creating customer from AR responsibility, I am getting an error while clicking "details" tab for "Ship to"
    error I am getting are
    1. The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: KeyFlexfieldDefinitionFactory.getStructureNumber could not find the structure definition for the flexfield specified by Application = SQLGL, Code = GL# and Structure number =
    2. Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-20001: Operating unit -1 does not exist in the target database. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.GL_GLOBAL", line 65 ORA-06512: at line 1 ;
    any idea why is it coming, I checked Operating unit profile option i.e MO: Op Unit and MO: Sec. , all are fine.

    The error is occuring because Oracle is trying to validate/set a DFF.
    Check the DFF attached to the customer entity, address entity or site use entity.
    Especially look at the value sets attached to the DFF.
    Look at the value set definition and the default value for the field.
    Hope this helps,
    Sandeep Gandhi

  • Error While Creating Customer Account Site.

    Hi ,
    I am creating a customer thru API's.
    I am succesffuly creating location,party,party site,party site use,customer account.But unable to create customer account site. I am getting the below error:
    Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    Could anyone help me to resolve out this issue.

    Hi,
    What is the application release?
    Did you set the Application/Multi-org context properly before using this API?
    Note: 732671.1 - 'Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly
    Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
    Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
    Regards,
    Hussein

  • View not copied or enhanced with wizard Error while creating Event Handler method in Z Component

    Hello Friends,
    In one Z Component (Custom Component), in one of the views, while creating event handler, it gave me error message that view not copied or enhanced with wizard.
    I am aware that in Standard Component, if we want to create the event handler method then we need to first Enhance the Component and then we need to enhance the view.
    But, in the Z Component (Custom Component), how to create event handler method in one of the views as while creating event handler method i am getting view not copied or enhanced with wizard error.

    Hi,
    Add a method in views impl class with naming convention eh_on__* with htmt and html_ex parameters.  I dont have have the system right now. Please check any existing event import export parameters.
    Check out do handle event method in the same class.
    Redefine that method.  Call that event method in this handle method. See existing code for reference.
    Attach that event to the button on click event in .htm page.
    Regards,
    Bhushan

  • Error while creating customer master data

    dear sir,
    i have created customer master and maintined all level general,compnay code and sales level data.and again deleted all areas thru t-code XD06.and thru se16n i have deleted the entires in kna1 knb1 knvv table
      again while creating one with same name showing error while maintaing sales level data
    Check: Table KNA1 does not exist, table KNVI does
    Message no. F2061
    plz help how do i rectify this problem and maintain the same cutomer no (external) again.
    regards,
    Debesh

    Hi,
    you did the wrong thing, don't remove the entries from standard table like KNA1, KNVV etc, SAP will maintained the entries in lot of tables same time.
    XD06 is used to set delete indicator, after wards you may create new customer master, if any problem for name you may change the name field as 'delete' for old customer.
    Now to solve your issue, i believe you need to first save the entries with maintainace of general data (KNA1) and then use XD02 to maintain the Sales area data, pl try this way it should work.
    If this way will not work, pl maintain the tax indicator in table KNVI manually to solve the issue.
    regards
    Vivek.
    Edited by: Vievk Vardhan on Dec 7, 2009 6:41 PM

Maybe you are looking for

  • Down Payment Clearing Account Vs Down Payment Interim Account

    Hi Experts What is the use of Down Payment Interim Account & Down Payment Clearing Account?? Difference b/w Down Payment Clearing Account Down Payment Interim Account ?? regards anand

  • Java script error from smart view  HFM reports

    All, We are getting the below Javascript error message when we try to open the HFM reports using SmartView. From Workspace , reports are opening without any issue. Version : 11.1.2.3.00  & IE 10. We installed Firefox 17 ESR and made FF as default bro

  • Transfer PC amounts

    Hi, While viewing in FBL1n (profit center wise), I can see some line items in 2120 profit center. And profit center 1120 is blank. I did post a document through 1KEL. But there is no reflection/impact in the FBL1N report. I need 2120 profit center em

  • Link to Internal Forum

    Hi , I am a new oracle employee. And I have been working on a new jdev version which is not public yet. Can you provide me link to the internal forum where I can ask questions. Thanks and Regards, Tarun

  • How to become a tester for apple

    How to I become a tester or get and invite to test apple products? I have done field testing for a cellular giant in the Islands (Jamaica) for 4 years from 2004 - 2008 on various OEM devices not limited to data devices...Homologations that I performe