Problem while working wwith tree control

hi all
i am working with tree control the prolems i have been facing are
i am not able o get the event for a single click on the tree node .
i am displaying the purchase order in the tree and once i select on sinlge click a purchase order ,now i want to create the sales order on the another screen and once i click on the button it should call another screen on which i have to create the sales order ,
please help

hi gandhivarun,
i am posting the code which will give idea on Tree display.
REPORT  ZALVGRID_PG.
TABLES: SSCRFIELDS.
DATA: V_BELNR TYPE RBKP-BELNR.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: IRNO FOR V_BELNR.
PARAMETERS: P_GJAHR TYPE RBKP-GJAHR.
SELECTION-SCREEN END OF BLOCK B1.
DATA: WA TYPE ZALVGRID_DISPLAY,
      ITAB TYPE STANDARD TABLE OF ZALVGRID_DISPLAY.
DATA: IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA: GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA: L_IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA: L_TREE TYPE REF TO CL_GUI_ALV_TREE_SIMPLE.
TYPE-POOLS: SLIS,SDYDO.
DATA: L_LOGO TYPE SDYDO_VALUE,
      L_LIST TYPE SLIS_T_LISTHEADER.
END-OF-SELECTION.
CLASS CL_LC DEFINITION.
  PUBLIC SECTION.
    METHODS: DC FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID IMPORTING E_ROW E_COLUMN.
ENDCLASS.
CLASS CL_LC IMPLEMENTATION.
  METHOD DC.
    DATA: WA1 TYPE ZALVGRID_DISPLAY.
    READ TABLE ITAB INTO WA1 INDEX E_ROW-INDEX.
    BREAK-POINT.
    SET PARAMETER ID 'BLN' FIELD WA1-BELNR.
    CALL TRANSACTION 'FB02'.
  ENDMETHOD.                    "DC
ENDCLASS.
DATA: OBJ_CL TYPE REF TO CL_LC.
START-OF-SELECTION.
  PERFORM SELECT_DATA.
  IF SY-SUBRC = 0.
    CALL SCREEN 100.
  ELSE.
    MESSAGE E000(0) WITH 'DATA NOT FOUND'.
  ENDIF.
  INCLUDE ZALVGRID_PG_STATUS_0100O01.
  INCLUDE ZALVGRID_PG_LOGOSUBF01.
  INCLUDE ZALVGRID_PG_SELECT_DATAF01.
INCLUDE ZALVGRID_PG_USER_COMMAND_01I01.
***INCLUDE ZALVGRID_PG_STATUS_0100O01 .
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'AB'.
*  SET TITLEBAR 'xxx'.
  IF IDENTITY IS INITIAL.
    CREATE OBJECT IDENTITY
    EXPORTING
      CONTAINER_NAME = 'ALVCONTROL'.
    CREATE OBJECT GRID
    EXPORTING
      I_PARENT = IDENTITY.
    CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
         I_STRUCTURE_NAME              = 'ZALVGRID_DISPLAY'
      CHANGING
        IT_OUTTAB                     = ITAB.
    CREATE OBJECT OBJ_CL.
    SET HANDLER OBJ_CL->DC FOR GRID.
    ENDIF.
    IF L_IDENTITY IS INITIAL.
      CREATE OBJECT L_IDENTITY
      EXPORTING
        CONTAINER_NAME = 'LOGO'
      CREATE OBJECT L_TREE
      EXPORTING
        I_PARENT = L_IDENTITY.
      PERFORM LOGOSUB USING L_LOGO.
      CALL METHOD L_TREE->CREATE_REPORT_HEADER
        EXPORTING
          IT_LIST_COMMENTARY    = L_LIST
          I_LOGO                = L_LOGO.
     ENDIF    .
ENDMODULE.                 " STATUS_0100  OUTPUT
***INCLUDE ZALVGRID_PG_LOGOSUBF01 .
FORM LOGOSUB  USING    P_L_LOGO.
  P_L_LOGO = 'ERPLOGO'.
ENDFORM.                    " LOGOSUB
***INCLUDE ZALVGRID_PG_SELECT_DATAF01 .
FORM SELECT_DATA .
  SELECT RBKP~BELNR
         RBKP~BLDAT
         RSEG~BUZEI
         RSEG~MATNR
         INTO TABLE ITAB
         FROM RBKP INNER JOIN RSEG
    ON RBKP~BELNR = RSEG~BELNR
    WHERE RBKP~BELNR IN IRNO
    AND RBKP~GJAHR = P_GJAHR.
ENDFORM.                    " SELECT_DATA
***INCLUDE ZALVGRID_PG_USER_COMMAND_01I01 .
  CASE SY-UCOMM.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'CANCEL'.
       EXIT.
       ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
Warm Ragrds,
PavanKumar.G
Edited by: pavankumar.g on Jan 30, 2012 11:02 AM

Similar Messages

  • Problem while working with Access Control List assigned to Group

    Hi,
    We have a following scenario for which Access Control List is not Working.
    We have a group "Webi_Grp" who should acess only Webi Reports (can perform all operations related to Webi).
    Following Steps are performed but still no success...
    Pl. review and provide the solutions.
    1) Create a Group "Webi_Grp"
    2) Create user "user3"
    3) Assign User to a a group (Now user3 is part of Webi_Grp)
    4) Create Access Ctrl List (ACL) "Webi_ACL"
    5) Goto Included Rights section of "Webi_ACL" & select "YES" for all Webi Operations.
    6) User Security in ACL shows
               a) Administrator -> Full Control (Inherited)
               b) Everyone -> No Access
    7) Included Right for ACL has all Webi Rights as "GRANTED", all Deski Rights "DENY", & Few of the General Rights "GRANTED"
    8) Go  to Users & Group
    9) Select "Webi_Grp"
    10) User Security
    11) Add Principal
    12) Add "User3" and its Security as "Webi_ACL"
    13) Thus User Security in "Webi Grp" shows
              a) Administrators -> Full Control
              b) "user3" -> Webi_ACL
    14) Login With "user3", but still cant create any Webi Report
    Pl. let me know any further settings are required or not.
    Regards,
    Purav

    Hi James,
    Thanks for help.
    I have given ACL to Universe & now user can create Adhoc Query.
    But while I run this query it gives following error "You Donot Have Rights to Access Data in this Universe"
    When I check the rights status in ACL we have following rights granted for "System Universe"
    Create & Edit Query Based on Universe
    Data Access
    Edit Access Restrictions
    New List of Values
    etc... all other rights in this category are granted.
    Still problem persist.
    Could you let me know where else should I check for permissions / rights for data access.
    Regards,
    Purav

  • I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope y

    I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope you will find a solution for the same.Help with using Adobe Muse CC

    Thanks,
    I have tried with a new site it's working perfectly.
    See the screenshot of the error.
    Thanks for your support Rohit

  • Problem while working with function module RFC_READ_TABLE

    Dear Experts,
                     I am facing a problem while working on the FM RFC_READ_TABLE, in which there is a tables parameter options which is of table type, to which I am passing the condition of selection.  In the debugg mode I found the select quiry in the source code of function module is not executing the condition passed in the options parameter.
    My actual requirement is to fetch all the custom programs in a remote server, the code I have written is below.
    TYPES :
             BEGIN OF ty_tadir,
               pgmid  TYPE pgmid,
               object TYPE  trobjtype,
               obj_name  TYPE  sobj_name,
             END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
            wa_tadir TYPE ty_tadir.
      data: stmp_dokhl  like TAB512       occurs 100000 with header line.
      data: options1    like rfc_db_opt occurs     10 with header line.
    data: wa_options1 like line of options1.
      data: nametab1    like rfc_db_fld  occurs     10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5)  TYPE C,
           W_VALUE1(20) TYPE C.
    W_VALUE1 =  'OBJ_NAME like'.
    W_VALUE = 'z*'.
    CONCATENATE 'OBJ_NAME LIKE' ' ''' W_VALUE '''' INTO OPTIONS1-TEXT.
    CONCATENATE W_VALUE1 W_VALUE INTO wa_OPTIONS1-TEXT SEPARATED BY SPACE.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
        call function 'RFC_READ_TABLE'
             destination                'zard'
             exporting
                  query_table          = 'TADIR' "'ZBANK_GUARANTEE'
             tables
                  options              = options1
                  fields               = nametab1
                  data                 = stmp_dokhl
             exceptions
                  table_not_available  = 1
                  table_without_data   = 2
                  option_not_valid     = 3
                  field_not_valid      = 4
                  not_authorized       = 5
                  data_buffer_exceeded = 6
                  others               = 7 .
    Please give me some inputs on this,
    With warm regards,
    Murthy.
    Edited by: pr murthy on Sep 18, 2008 1:49 PM
    Edited by: pr murthy on Sep 18, 2008 2:14 PM

    Hi
    I have tried this and with small change this is working fine.
    TYPES :
    BEGIN OF ty_tadir,
    pgmid TYPE pgmid,
    object TYPE trobjtype,
    obj_name TYPE sobj_name,
    END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
    wa_tadir TYPE ty_tadir.
    data: stmp_dokhl like TAB512 occurs 100000 with header line.
    data: options1 like rfc_db_opt occurs 10 with header line.
    data: wa_options1 like line of options1.
    data: nametab1 like rfc_db_fld occurs 10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5) TYPE C,
    W_VALUE1(20) TYPE C.
    W_VALUE1 = 'OBJ_NAME LIKE ''Z%'''.
    wa_options1-text = w_value1.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
    call function 'RFC_READ_TABLE'
    *destination 'zard'
    exporting
    query_table = 'TADIR' "'ZBANK_GUARANTEE'
    tables
    options = options1
    fields = nametab1
    data = stmp_dokhl
    exceptions
    table_not_available = 1
    table_without_data = 2
    option_not_valid = 3
    field_not_valid = 4
    not_authorized = 5
    data_buffer_exceeded = 6
    others = 7 .

  • Problems While Working With CLOB fields

    HI Friends,
    I am facing one big problem while working with CLOB fields. I work in crystal reports in my project and My team is works in BMC Remedy tool. As per database configuration by default the date fields are stored in numbers. There is a field named Work Log which stores the complete history information of a ticket or a call.
    While generating reports I convert the date fields from numbers into date values by using to_date function. But I am not able to change the dates mentioned in the worklog which is a CLOB field. As a result when I am generating reports text part of the work log is comming fine but the date fields are comming in numbers.
    Please refer the below example:-
    *1291012455anilkumarptesting*
    Full Name:
    PRG Name - EUC-APP PKGN1291012585anilkumarptesting
    Full Name:
    PRG Name - EUC-APP PKGN1291012631anilkumarptest
    Full Name:
    PRG Name - EUC-APP PKGN1291207510anilkumarpfd
    Full Name: Anil Kumar Pantangi
    PRG Name - Prod_Ops1291207535anilkumarpf
    Full Name: Anil Kumar Pantangi
    PRG Name - Prod_Ops
    Assignment notification disabled for this transaction1291212517kapilbasd
    Full Name: Anil Kumar Pantangi
    PRG Name - Prod_Ops
    See the first line of the worklog "1291012455anilkumarptesting", 1291012455 is referring a date value, but due to database configuration it's comming in number. All the other numbers in the above text are dates only which need's to be converted. These dates are captured in remedy tool when someone updates that ticket.
    I am not able to decide how to change this numbers into dates. As it is containing lot's of numbers i am really confused how to come with a solution.
    Can I expect a solution from you, atleast a way how to proceed resolving this problem. Should I have to write a procedure for this??
    Please help..........
    Kindly let me know if you need any more input.
    Regards,
    Arijit

    937670 wrote:
    1291012455 represents a date value,What date value does it represent? Since it's not obvious to us what date you want that converted into, it's obviously hard for us to help. For example, perhaps you want that to be Jan 29, 2010 with "12455" representing a time component in some non-obvious format. Perhaps you want that to be December 1991 at 1:24:55. Perhaps you want to convert it to a completely different date. You're going to need to tell us in words how to convert your numeric data into a date.
    My question is how can I convert all the numbers into date in the CLOB field and present it in a proper manner.Given your sample data, what do you expect the output to be? Do you expect many rows of data, one for every date in the CLOB? Do you expect a comma-separated list? Something else?
    Justin

  • My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    I just did a reset all settings on both.
    Will see where this gets me.
    Thank you for your helpfull input.

  • Problem while working with shuttle lists in APEX 3.2

    Hi all,
    My requirement is to populate a table whose SQL DDL is:
    CREATE TABLE "C_BIA_MOD_PROD_LINE_VER_REL"
    (     "PRODUCT_LINE_VERSION" VARCHAR2(100) NOT NULL ENABLE,
         "MODULE_CODE" VARCHAR2(100) NOT NULL ENABLE,
         CONSTRAINT "C_BIA_MOD_PROD_LINE_VER_R_PK" PRIMARY KEY ("PRODUCT_LINE_VERSION", "MODULE_CODE") ENABLE
    ALTER TABLE "C_BIA_MOD_PROD_LINE_VER_REL" ADD CONSTRAINT "C_BIA_MOD_PROD_LINE_VER_R_FK1" FOREIGN KEY ("MODULE_CODE")
         REFERENCES "C_BIA_MODULE" ("MODULE_CODE") ENABLE;
    ALTER TABLE "C_BIA_MOD_PROD_LINE_VER_REL" ADD CONSTRAINT "C_BIA_MOD_PROD_LINE_VER_R_FK2" FOREIGN KEY ("PRODUCT_LINE_VERSION")
         REFERENCES "C_PRODUCT_LINE_VERSION" ("PRODUCT_LINE_VERSION") ENABLE;
    Now in the CREATE form of C_BIA_MODULE, I have added a region and an item, of "Shuttle list type" for PRODUCT_LINE_VERSION. For the button CREATE, I have prepared the PL/SQL as:
    DECLARE
    prodlinever_selected APEX_APPLICATION_GLOBAL.VC_ARR2;
    BEGIN
         prodlinever_selected := APEX_UTIL.STRING_TO_TABLE(:P4_PRODUCT_LINE_VERSION);
         FOR i IN 1..prodlinever_selected.count
         LOOP
              INSERT INTO C_BIA_MOD_PROD_LINE_VER_REL (MODULE_CODE, PRODUCT_LINE_VERSION)
                   VALUES (:P4_MODULE_CODE, prodlinever_selected(i));
         END LOOP;
    return true;
    END;
    The question is where to use this PL/SQL? The "Conditions" column under "Edit Page Buttons" SHOULD not have this. Also, the "database action" options are not sufficient to populate by selections in a table other(C_BIA_MOD_PROD_LINE_VER_REL) than the current table page (C_BIA_MODULE) . Any other approach? Please help. Insufficient info given in user guide.
    Thanks
    -Bhavesh
    Edited by: Bhavesh Agarwal on Jul 14, 2009 12:26 AM
    Edited by: Bhavesh Agarwal on Jul 22, 2009 10:08 PM

    Thanks Varad it worked, with the debug output is:
    0.00: A C C E P T: Request="CREATE"
    0.00: Metadata: Fetch application definition and shortcuts
    0.01: NLS: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us
    0.02: alter session set nls_language="AMERICAN"
    0.02: alter session set nls_territory="AMERICA"
    0.02: NLS: CSV charset=WE8MSWIN1252
    0.02: ...NLS: Set Decimal separator="."
    0.02: ...NLS: Set NLS Group separator=","
    0.02: ...NLS: Set date format="DD-MON-RR"
    0.02: ...Setting session time_zone to -05:00
    0.02: Fetch session state from database
    0.03: ...Check session 3821879497713545 owner
    0.03: ...Check for session expiration:
    0.03: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.03: Session: Fetch session header information
    0.03: ...Metadata: Fetch page attributes for application 19562, page 21
    0.03: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.04: ...Check authorization security schemes
    0.04: Session State: Save form items and p_arg_values
    0.04: ...Session State: Saved Item "P21_MODULE_CODE" New Value="bhavesh"
    0.04: ...Session State: Saved Item "P21_MODULE_NAME" New Value="bhavesh test"
    0.04: ...Session State: Save "P21_MODULE_DESCR" - saving same value: ""
    0.04: ...Session State: Save "P21_INSTALLED_FLAG" - saving same value: ""
    0.04: ...Session State: Save "P21_CREATED_BY" - saving same value: ""
    0.04: ...Session State: Save "P21_CREATION_DATE" - saving same value: ""
    0.04: ...Session State: Save "P21_LAST_UPDATED_BY" - saving same value: ""
    0.04: ...Session State: Save "P21_LAST_UPDATE_DATE" - saving same value: ""
    0.05: ...Session State: Save "P21_LAST_UPDATE_LOGIN" - saving same value: ""
    0.05: ...Session State: Saved Item "P21_PRODUCT_LINE_VERSION_CODE" New Value="SBL80:SBL811"
    0.05: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.05: Branch point: BEFORE_COMPUTATION
    0.05: Computation point: AFTER_SUBMIT
    0.05: Tabs: Perform Branching for Tab Requests
    0.05: Branch point: BEFORE_VALIDATION
    0.05: Perform validations:
    0.05: Branch point: BEFORE_PROCESSING
    0.05: Processing point: AFTER_SUBMIT
    0.05: ...Process "Process Row of C_BIA_MODULE": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:C_BIA_MODULE:P21_MODULE_CODE:MODULE_CODE|IUD
    0.05: ...Do not run process "reset page", process point=AFTER_SUBMIT, condition type=, when button pressed=DELETE
    0.05: ...Process "Process Shuttle of C_BIA_MODULE": PLSQL (AFTER_SUBMIT) DECLARE prodlinever_selected APEX_APPLICATION_GLOBAL.VC_ARR2; BEGIN prodlinever_selected := APEX_UTIL.STRING_TO_TABLE(:P21_PRODUCT_LINE_VERSION_CODE); wwv_flow.debug('Count=' || prodlinever_selected.count); --DELETE FROM C_BIA_MOD_PROD_LINE_VER_REL w
    0.05: Count=2
    0.05: Adding..SBL80
    0.05: Adding..SBL811
    0.05: Branch point: AFTER_PROCESSING
    0.06: ...Evaluating Branch: AFTER_PROCESSING type: "REDIRECT_URL" button: (No Button Pressed) branch: (Unconditional)
    0.06: ...Unconditional branch taken
    0.01:
    0.01: S H O W: application="19562" page="20" workspace="" request="" session="3821879497713545"
    0.01: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.02: alter session set nls_language="AMERICAN"
    0.02: alter session set nls_territory="AMERICA"
    0.02: NLS: CSV charset=WE8MSWIN1252
    0.02: ...NLS: Set Decimal separator="."
    0.02: ...NLS: Set NLS Group separator=","
    0.02: ...NLS: Set date format="DD-MON-RR"
    0.03: ...Setting session time_zone to -05:00
    0.03: NLS: Language=en-us
    0.03: Application 19562, Authentication: CUSTOM2, Page Template: 839820919892290442
    0.03: ...Session ID 3821879497713545 can be used
    0.03: ...Application session: 3821879497713545, user=BHAVESH
    0.03: ...Determine if user "BHAVESH" workspace "711335503583907939" can develop application "19562" in workspace "711335503583907939"
    0.03: ...Check for session expiration:
    0.03: Session: Fetch session header information
    0.03: ...Metadata: Fetch page attributes for application 19562, page 20
    0.03: Fetch session state from database
    0.03: Branch point: BEFORE_HEADER
    0.04: Fetch application meta data
    0.04: Computation point: BEFORE_HEADER
    0.04: Processing point: BEFORE_HEADER
    0.04: Show page template header
    0.04: Computation point: AFTER_HEADER
    0.04: Processing point: AFTER_HEADER
    0.04: Computation point: BEFORE_BOX_BODY
    0.04: Processing point: BEFORE_BOX_BODY
    0.04: Region: Report on C_BIA_MODULE
    0.04: using existing session report settings
    0.04: Computation point: BEFORE_BOX_BODY
    0.04: Processing point: BEFORE_BOX_BODY
    0.04: Region: Report on C_BIA_MODULE
    0.04: using existing session report settings
              Rows                    
    * Select Columns
    * Filter
    * Sort
    * Control Break
    * Highlight
    * Compute
    * Aggregate
    * Chart
    * Flashback
    * Save Report
    * Reset
    * Help
    * Download
         Create      
    Edit
    select
    null as apxws_row_pk,
    "MODULE_CODE",
    "MODULE_NAME",
    "MODULE_DESCR",
    "INSTALLED_FLAG",
    "LAST_UPDATED_BY",
    "LAST_UPDATE_DATE",
    count(*) over () as apxws_row_cnt
    from (
    select * from (
    select "MODULE_CODE",
    "MODULE_NAME",
    "MODULE_DESCR",
    "INSTALLED_FLAG",
    "CREATED_BY",
    "CREATION_DATE",
    "LAST_UPDATED_BY",
    "LAST_UPDATE_DATE",
    "LAST_UPDATE_LOGIN"
    from "#OWNER#"."C_BIA_MODULE"
    ) r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    0.05: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="10000"
    0.06: Printing rows. Row window: 16-30. Rows found: 15
    0.06: Computation point: AFTER_BOX_BODY
    0.06: Processing point: AFTER_BOX_BODY
    0.06: Computation point: BEFORE_FOOTER
    0.06: Processing point: BEFORE_FOOTER
    0.06: Show page tempate footer
    0.06: Computation point: AFTER_FOOTER
    0.06: Processing point: AFTER_FOOTER
    0.06: Log Activity:
    0.07: Execute Count=88
    0.07: End Show:
    Can you please tell me what is wwv_flow.debug ???
    Also, now when this is done, I want to come to my second doubt i.e.
    when I click EDIT on the C_BIA_MODULE report, I would like to show my right side of shuttle being populated from the associated PRODUCT LINE VERSIONS (info present in C_BIA_MOD_PROD_LINE_VER_REL), how can I do that, I have tried writing a process for fetching the rows under Page Rendering section, but it didn't work. As C_BIA_MOD_PROD_LINE_VER_REL has two columns MODULE_CODE, PLV_CODE both Foreign keys, so combination of them is a PK here, so while creating a process, I input these two columns in primary and secondary key column values. On the right side of shuttle, it shows me the values I associated last time on this page (so have to delete this cache element also)
    Thanks Varad

  • Problem while working with JSP DYNPAGE

    Hi
    I have to make use of JDBC System in my program to connect to a Sql database.  I had written a code and its working fine with Abstract Portal Component.  Once after successful execution, I copied the same code into Page Processor Component, and here my problem started, Im unable to execute the code and getting errors like below in my Eclipse IDE:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com/sapportals/portal/security/usermanagement/IUMPrincipal.
    Exception id: 03:45_14/12/04_0036
    See the details for the exception ID in the log file
    AND IN LOG FILE this is the EXCEPTION DETAIL.
    [email protected]58f #
    Dec 14, 2004 12:23:35 AM # SAPEngine_Applica... Fatal           Exception ID:12:23_14/12/04_0028
    com.sapportals.portal.prt.component.PortalComponentException: Error in init method
    Component : oratest2.oratest2
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:248)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:216)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:264)
         at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:384)
         at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:423)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:536)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:151)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:373)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:250)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:321)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:299)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:698)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:146)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
    Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class oratest2.oratest2 of Portal Component oratest2.oratest2 because: Could not instantiate implementation class
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:266)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:158)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:660)
         at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:100)
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:239)
         ... 26 more
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [PortalApplicationItem.__prepareClassLoaderAndDependencies]: oratest2
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.__prepareClassLoaderAndDependencies(PortalApplicationItem.java:361)
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:207)
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.getCoreLoader(PortalApplicationItem.java:276)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.getClassLoader(PortalComponentItem.java:524)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getClassLoader(PortalComponentItemFacade.java:101)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:225)
         ... 30 more
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [PortalApplicationItem.__prepareClassLoaderAndDependencies]: com.sap.portal.usermanagement.usermanagement
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.__prepareClassLoaderAndDependencies(PortalApplicationItem.java:361)
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:207)
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.__prepareClassLoaderAndDependencies(PortalApplicationItem.java:352)
         ... 35 more
    Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application com.sap.portal.usermanagement.usermanagement
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.__prepareClassLoader(PortalApplicationItem.java:518)
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.__prepareClassLoaderAndDependencies(PortalApplicationItem.java:356)
         ... 37 more
    Can any one help me out?
    thanks
    raj

    Hi,
    You say:
    > e code into Page Processor Component, and here my
    > problem started, Im unable to execute the code and
    > getting errors like below in my Eclipse IDE:
    > Portal Runtime Error
    the code has to be placed in the JSPDynpage not in the PageProcessor...
    public class PEGLink extends PageProcessorComponent {
      public DynPage getPage() {
        return new DynPageOne();
       public class DynPageOne extends DynPage {
             place Your code here. E.g. in the PBO Method for testing
    Walter

  • Problem while working with packages?

    hi,
    I am new to java.while running the program which is using package i am getting the following error
    *Exception in thread "main" java.lang.NoClassDefFoundError: HelloServlet2 (wrongname: coreservlets/HelloServlet2)
    at java.lang.ClassLoader.defineClass1(Nativ... Method)
    at java.lang.ClassLoader.defineClass(Unknow... Source)
    at java.security.SecureClassLoader.defineCl... Source)
    at java.net.URLClassLoader.defineClass(Unkn... Source)
    at java.net.URLClassLoader.access$100(Unkno... Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivile... method)
    at java.net.URLClassLoader.findClass(Unknow... Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadCla... Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(... Source).*iam using windows xp and iam working with jdk1.5 version.plz any one help me to solv this problem.
    thanks in advance.

    This is the program iam trying to run
    package coreservlets;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    /** Simple servlet for testing the use of packages.
    * <P>
    * Taken from Core Servlets and JavaServer Pages 2nd Edition
    * from Prentice Hall and Sun Microsystems Press,
    * http://www.coreservlets.com/.
    public class HelloServlet2 extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String docType =
    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
    "Transitional//EN\">\n";
    out.println(docType +
    "<HTML>\n" +
    "<HEAD><TITLE>Hello (2)</TITLE></HEAD>\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1>Hello (2)</H1>\n" +
    "</BODY></HTML>");
    I have installed jre1.5 version.and i have specified my class name has coreservlet.HelloServlet in my web.xml.after sending the request sever giving the exception like
    javax.servlet.ServletException: Wrapper cannot find servlet class coreservlet.HelloServlet2 or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Unknown Source)
    iam using Tomcat 5.5 web server for my web appln.After compiling the above program the coreservlets subdirectory must be created in development directory right,but it is not doing that. plz help me.

  • Problem while saveing in Table Control.

    Hi
    I am geting error while saving data in table control.
    This table contol is pop up window at end of screen .
    user enter qty & uom in TC..
    Error i am getting is...
    Field symbol has not been assigned.
    Error analysis                                                                               
    The system tried to access an anasigned field symbol (data segment        
    number 32772).                                                                               
    The field symbol is no longer assigned, because a Unicode program         
    previously tried to set the field symbol using an ASSIGN statement with   
    an offset/length declaration. The memory addressed in this offset/length  
    declaration, however, no longer lay within the valid range.                                                                               
    Information on where terminated                                                                               
    The termination occurred in the ABAP program "SAPLOMCV" in                
    "CONVERSION_EXIT_MATN1_INPUT".                                           
    i Have coded like this..
    MODULE USER_COMMAND_0112 INPUT.
      CASE OKCODE.
        WHEN 'BACK' or 'CANCEL'.
          SET SCREEN 0.
    This iti is contain data which diplay in TC
         when 'DISPLAY'.
              LOOP AT ITI.
              read table iti with key ingr_code = iti-ingr_code
                                      ingr_desc = iti-ingr_desc.
              wka1-ingr_code = iti-ingr_code.
              wka1-ingr_desc = iti-ingr_desc.
              wka1-conc = iti-conc.
              wka1-quantity = iti-quantity.
              wka1-uom = iti-uom.
            append wka1 to itf.
            ENDLOOP.
         WHEN 'SAV'.
          loop at itf where check = 'x' .
                  update zacg_ns
                    set ingr_code = itf-ingr_code
                    col_name = itf-ingr_desc
                    conc = itf-conc
                    quantity = itf-quantity
                      UOM =  itf-UOM
                      ru = itf-ru
                      where ingr_code = itf-ingr_code
                      and col_name = itf-ingr_desc.
        zacg_ns-ingr_code = itf-ingr_code.
       zacg_ns-col_name = itf-ingr_desc.
       zacg_ns-conc = itf-conc.
      zacg_ns-quantity = itf-quantity.
    zacg_ns-UOM = itf-UOM.
    update zacg_ns.
                     endloop.
                     leave program.
                  ENDCASE.
              ENDMODULE.                 " USER_COMMAND_0112  INPUT
    MODULE read_table_control INPUT
    MODULE read_table_control INPUT.
      MODIFY itf  INDEX tc-current_line.
    ENDMODULE.                    "read_table_control INPUT
    *&  Include           ZACG_NS_2                                        *
    *&      Module  STATUS_0111  OUTPUT
          text
    MODULE STATUS_0111 OUTPUT.
      SET PF-STATUS 'ZNEWSHADE'.
      SET TITLEBAR 'ZNS'.
    ENDMODULE.                 " STATUS_0111  OUTPUT
    *&      Module  STATUS_0112  OUTPUT
          text
    MODULE STATUS_0112 OUTPUT.
      SET PF-STATUS 'ZTC'.
    SET TITLEBAR 'xxx'.
      DESCRIBE TABLE itf LINES lines.
      tc-lines = lines.
    ENDMODULE.                 " STATUS_0112  OUTPUt
                                                                                    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0112.
    LOOP at itf WITH CONTROL TC CURSOR tc-current_line.
        MODULE TC_PBO  .
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE CANCEL AT EXIT-COMMAND.
    LOOP at itf .
        module read_table_control.
      ENDLOOP.
    MODULE USER_COMMAND_0112.
    Can any one help me..

    Hi,
    Did you enter that filed later after creating the table control?
    You check in the element list whether for that element u have an entry or not..
    Regards,
    Nishant

  • Problem while working with Business Indicator in oracle BPM11.1.1.7

    I am working for  process analytic and BAM dash board for our application. currently i am having following problems
    I have define  business indicator of type counter, measure and dimension.I am able to see counter and dimension business indicator(BI)   Both in data association editor and  custom dash board editor  in work space. However , measure BI appears in brown color in data association editor  and i am not able to perform any mapping to it. additionally,  Measure BI  does not appear  even in work space customer editor .
    Any solution for above problem is welcome

    Hi
    I have tried this and with small change this is working fine.
    TYPES :
    BEGIN OF ty_tadir,
    pgmid TYPE pgmid,
    object TYPE trobjtype,
    obj_name TYPE sobj_name,
    END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
    wa_tadir TYPE ty_tadir.
    data: stmp_dokhl like TAB512 occurs 100000 with header line.
    data: options1 like rfc_db_opt occurs 10 with header line.
    data: wa_options1 like line of options1.
    data: nametab1 like rfc_db_fld occurs 10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5) TYPE C,
    W_VALUE1(20) TYPE C.
    W_VALUE1 = 'OBJ_NAME LIKE ''Z%'''.
    wa_options1-text = w_value1.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
    call function 'RFC_READ_TABLE'
    *destination 'zard'
    exporting
    query_table = 'TADIR' "'ZBANK_GUARANTEE'
    tables
    options = options1
    fields = nametab1
    data = stmp_dokhl
    exceptions
    table_not_available = 1
    table_without_data = 2
    option_not_valid = 3
    field_not_valid = 4
    not_authorized = 5
    data_buffer_exceeded = 6
    others = 7 .

  • I am facing problem while working for userexit for vendor master and Editor

    Hi,
    I am working one userexit for vendor master. My objective is after MK01 transaction, I want to attach MM01 transaction using userexit SAPMF02K on IDES version.
    1) Function module is EXIT_SAPMF02K_001 and Include is ZXF05U01.
      while duble click on Include is ZXF05U01, I am getting below error.
      (Program names ZX...are reserved for includes of exit function groups).
    2) Second userexit is Menu exit.
        I want to create a sub menu in ABAP Editor under Utilities->Customer Exit.
       If double click on Customer exit then MM01 should be called.
       So I got one userexit SEU00001  and Function module under that EXIT_SAPLEDITOR_001  and incluse is ZXSEUU21
       If I double click on ZXSEUU21 then same error getting displayed
       (Program names ZX...are reserved for includes of exit function groups).
    Can any one help me to resolve this.
    Waiting for quick response.
    Best Regards,
    BDP

    Hi Bansidhar.,
    If you have created the include with same name and implemented youe logic , then it should stop in your include when you have put breakpointin it.
    Please try to find the case in  which you user exit is called .
    It is not necessary that you include will be executed in all cases , please try to use data which is suitable for your case.

  • Oracle workshop 10GR3 Problem while working from rational clear case.

    Hi,
    I am continuously getting the below pop up windows when working in oracle workshop mainly connecting to rational clear case and working with the clear case projects directly from workshop, this is the approach we are asked to follow, but the workshop is getting closed after these pop up's. Could you please tell me what the problem is here.
    The pop up message is like this:
    The exception unknown software exception (0xccccdead) occurred in the application at location 0x7c812afb.
    JVM terminated Exit Code=-858988883
    this is my workshop.ini default setings, is there any change s required.
    -vm
    D:/bea/jrockit_160_05/jre/bin/javaw.exe
    -startup
    D:/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118awtswtbridge.jar
    --launcher.library
    D:/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118
    -vmargs
    -Xms384m
    -Xmx768m
    -XX:MaxPermSize=256m
    -XX:PermSize=192m
    -XX:NewRatio=3
    -Xss256k
    -DprodMode=production
    -Dweblogic.home=D:/bea/wlserver_10.3
    -Dsun.lang.ClassLoader.allowArraySyntax=true
    -Dnitrox.boot.jar=file:D:/bea/workshop_10.3/nitrox-boot.jar
    -Dosgi.install.area=D:/bea/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse
    -Dosgi.instance.area.default=D:/bea/user_projects/workspaces/default
    -Dosgi.configuration.area=D:/bea/workshop_10.3/workshop4WP/eclipse/configuration
    -Declipse.product=com.bea.workshop.product.workshop
    -Dosgi.splashPath=file:D:/bea/workshop_10.3/workshop4WP/eclipse/plugins/com.bea.workshop.product
    Please suggest..

    Hi
    Are you getting the output or not?
    You can just ignore this warning in EPC
    as this FORM USER_COMMAND  is always called indirectly only
    But check the Output and see?
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Display problem while working in j2me

    Hi
    I have a problem. I am making a j2me application which is combination of forms and alerts. I am also doing multi threading in the application. I have set a form as current display. Now let's suppose that user, while my application is running and this form is displayed on screen, with the help of shortcut button on the phone, opens some other thing like main menu or calender. Now screen is showing the thing opened by the user and my application is running and can be accessed by using shortcut menu. Now problem is that when my thread does something, it displays an alert on the screen. For now, my thread changes the current display of my application to that alert window by using the code getDisplay().setCurrent(get_alertwin()), but problem is that this alert will only be visible to the user when user switches back to my application. I want that this alert should be displayed always on the screen irrespective of what user is doing at that time. Can anyone tell me how can i acheive this functionality?
    Thanks

    you that there is a forum dedicaded to J2ME technologies....

  • Problem while working with Standard KM Layoutset

    Hi All,
    We are facing a typical problem with KM layout sets.
    Few of the standard layout sets are not working
    like NewsBrowser.
    When we navigate into the folder of the iview it throughs error
    403
    The requested operation is forbidden for this resource.
    We navigate to the layout set link under
    System admin>Km adminstration>Content managment-->User Interface (here we get warning Invalid areas Settings)
    --> Setting(here we get a warning Invalid topics layout set)
    Please help us in this regards.
    Sai

    Hello Sai,
    I seriously doubt that the layout set is the reason you're getting a 403 Forbidden error, are you sure this pccMimesSelector layout set is the one being used by your iview? You can check this in the properties of the iview in the PCD.
    It's more likely the error is in fact caused by some authorisation issues with the content you are trying to view? So where is this content stored? What type of repository? If it's a CM repository then what's the persistence mode? Does the issue happen for all users, even admin users? What permissions do you have defined for the affected users on these resources? If you browse to the resources that should be displayed in this iview from Content Admin > KM Content are you able to access them without issues?  Do you have anonymous access enabled on your system?
    It would be a good idea to have a look at the default trace file when you reproduce this issue to see if there is anything relevant traced.
    It's not a good idea to go deleting layout sets, especially SAP delivered layout sets, as these could be used in various different locations and this would most likely lead to further inconsistencies.
    Regards,
    Lorcan.

Maybe you are looking for

  • How do I update Adobe Creative Suite Design Standard from CS5.0 to CS5.5?

    How do I upgrade CS Design Standard from 5.0 to 5.5?

  • Problems with the performance pack for Linux.

    Hi, I have just installed sp9 for WL 5.1 and with it the performance pack. But I get many of these exceptions: Wed Jun 06 15:46:09 EDT 2001:<E> <HTTP> Connection failure java.net.SocketException: Error in poll for fd: '30', revents: '23' at weblogic.

  • 11.2.0.3, DBMS_DATAPUMP import ower db link, DATA_REMAP does not work

    This is related to impdp: should network_link and remap_data work together? that I accidentally marked as answered. Documentation says, I can supply NULL as value of schema for DATA_REMAP: See   DBMS_DATAPUMP That does not work, it gives an error: ER

  • Setting the minimize/maximize size of Firefox

    Hi, Not really sure where to start, so I figured i'd start here. What i'm trying to do is the following: I want Firefox to shrink/grow to a particular size whenever I press the minimize and maximize buttons. Can this actually be done inside of Firefo

  • Moving a schema

    I am attempting to move a schema called "App" from one Oracle server to a completely separate Oracle server. It's a basic production/test environment where we need to test on production data. I've looked at the data pump functionality and I believe I