How to execute Custom java data source LOV view object from a common mthd?

Hi,
My application contains Custom java data source implemented LOVs. I want to have a util method which gets the view accessor name, find the view accessor and execute it. But i couldn't find any API to get the view accessors by passing the name.
Can anyone help me iin how best view accessors can be accessed in common but no by creating ViewRowImpl class (By every developer) and by accessing the RowSet getters?
Thanks in advance.

I am sorrry, let me tell my requirement clearly.
My application is not data base driven. Data transaction happens using tuxedo server.
We have entity driven VOs as well as programmatic VOs. Both are custom java data source implemented. Entity driven VOs will participate in transactions whereas programmatic VOs are used as List view object to show List of values.
Custom java datasource implementation in BaseService Viewobject Impl class looks like
        private boolean callService = false;
    private List serviceCallInputParams = null;
    public BaseServiceViewObjectImpl()
        super();
     * Overridden for custom java data source support.
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams)
        List dataFromService = null;
        if(callService)
            callService = retrieveDataFromService(serviceCallInputParams);
        setUserDataForCollection(qc, dataFromService != null? dataFromService.iterator(): null);   
        super.executeQueryForCollection(qc, params, noUserParams);
     * Overridden for custom java data source support.
    protected boolean hasNextForCollection(Object qc)
        Iterator<BaseDatum> datumItr = (Iterator<BaseDatum>) getUserDataForCollection(qc);
        if (datumItr != null && datumItr.hasNext())
            return true;
        callService = false;
        serviceCallInputParams = null;
        setFetchCompleteForCollection(qc, true);
        return false;
    }Individual screen developer, who want to load data to VO, will do something like the below code in their VO impl class
    public void fetch()
        BaseServiceViewObjectImpl vo = this;
        vo.setCallService(true);
        vo.setServiceCallInputParams(new ArrayList());
        vo.executeQuery();
    }As these custom java data source implemented LOV VOs comes across the screens, i want to have a util method at Base VOImpl class, that gets the view accessor name, finds the LOV VO instance, retrieves data for that. I want to do something like
     * Wrapper method available at Base Service ViewObject impl class
    public void fetchLOVData(String viewAccessorName, List serviewInputParams)
        // find the LOV View object instance
        BaseServiceViewObjectImpl lovViewObject  = (BaseServiceViewObjectImpl) findViewAccessor(viewAccessorName);
        // Get data for LOV view object from service
        lovViewObject.setCallService(true);
        lovViewObject.setServiceCallInputParams(serviewInputParams);
        lovViewObject.executeQuery();
Question:
1. Is it achievable?
1. Is there any API available at View Object Impl class level, that gets the view accessor name and returns the exact LOV view object instance? If not, how can i achieve it?

Similar Messages

  • How to do sorting/filtering on custom java data source implementation

    Hi,
    I have an entity driven view object whose data should be retrieved and populated using custom java data source implementation. I've done the same as said in document. I understand that Query mode should be the default one (i.e. database tables) and createRowFromResultSet will be called as many times as it needs based on the no. of data retrieved from service, provided we should write the logic for hasNextForCollection(). Implementation sample code is given below.
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams) {      
    Iterator datumItr = retrieveDataFromService(qc, params);
    setUserDataForCollection(qc, datumItr);
    hasNextForCollection(qc);
    super.executeQueryForCollection(qc, params, noUserParams);
    protected boolean hasNextForCollection(Object qc) {
    Iterator datumItr = (Iterator) getUserDataForCollection(qc);
    if (datumItr != null && datumItr.hasNext()){
    return true;
    setCallService(false);
    setFetchCompleteForCollection(qc, true);
    return false;
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet resultSet) {
    Iterator datumItr = (Iterator) getUserDataForCollection(qc);
    Object datumObj = datumItr.next();
    ViewRowImpl r = createNewRowForCollection(qc);
    return r;
    Everything is working fine include table sorting/filtering. Then i noticed that everytime when user perform sorting/filtering, executeQueryForCollection is called, which in turn calls my service. It is a performance issue. I want to avoid. So i did some modification in the implementation in such a way that, service call will happen only if the callService flag is set to true, followed by executeQuery(). Code is given below.
    private boolean callService = false;
    public void setCallService(boolean callService){
    this.callService = callService;
    public boolean isCallService(){
    return callService;
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams){
    if (callService)
    Iterator datumItr = retrieveDataFromService(qc, params);
    setUserDataForCollection(qc, datumItr);
    hasNextForCollection(qc);
    super.executeQueryForCollection(qc, params, noUserParams);
    Issue i have:
    When user attempts to use table sort/filter, since i skipped the service call and set null as userDataCollection, createRowFromResultSet is not called and data which i retrieved and populated to view object is totally got vanished!!. I've already retrived data and created row from result set. Why it should get vanished? Don't know why.
    Tried solution:
    I came to know that query mode should be set to Scan_Entity_Cache for filtering and Scan_View_Rows for sorting. I din't disturb the implementation (i.e. skipping service call) but overrided the executeQuery and did like the following code.
    @Override
    public void executeQuery(){
    setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
    super.executeQuery();
    By doing this, i could able to do table filtering but when i try to use table sorting or programmatic sorting, sorting is not at all applied.
    I changed the code like beolw*
    @Override
    public void executeQuery(){
    setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
    super.executeQuery();
    Now sorting is working fine but filtering is not working in an expected way because Scan_View_rows will do further filtering of view rows.
    Question:
    I don't know how to achieve both filtering and sorting as well as skipping of service call too.
    Can anyone help on this?? Thanks in advance.
    Raguraman

    Hi,
    I have an entity driven view object whose data should be retrieved and populated using custom java data source implementation. I've done the same as said in document. I understand that Query mode should be the default one (i.e. database tables) and createRowFromResultSet will be called as many times as it needs based on the no. of data retrieved from service, provided we should write the logic for hasNextForCollection(). Implementation sample code is given below.
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams) {
      Iterator datumItr = retrieveDataFromService(qc, params);
      setUserDataForCollection(qc, datumItr);
      hasNextForCollection(qc);
      super.executeQueryForCollection(qc, params, noUserParams);
    protected boolean hasNextForCollection(Object qc) {
      Iterator datumItr = (Iterator) getUserDataForCollection(qc);
      if (datumItr != null && datumItr.hasNext()){
        return true;
      setFetchCompleteForCollection(qc, true);
      return false;
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet resultSet) {
      Iterator datumItr = (Iterator) getUserDataForCollection(qc);
      Object datumObj = datumItr.next();
      ViewRowImpl r = createNewRowForCollection(qc);
      return r;
    }Everything is working fine include table sorting/filtering. Then i noticed that everytime when user perform sorting/filtering, executeQueryForCollection is called, which in turn calls my service. It is a performance issue. I want to avoid. So i did some modification in the implementation in such a way that, service call will happen only if the callService flag is set to true, followed by executeQuery(). Code is given below.
    private boolean callService = false;
    public void setCallService(boolean callService){
      this.callService = callService;
    public boolean isCallService(){
      return callService;
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams){
      if (callService) {
        Iterator datumItr = retrieveDataFromService(qc, params);
        setUserDataForCollection(qc, datumItr);
      hasNextForCollection(qc);
      super.executeQueryForCollection(qc, params, noUserParams);
    }Issue i have:
    When user attempts to use table sort/filter, since i skipped the service call and storing of userDataCollection, createRowFromResultSet is not called and data which i retrieved and populated to view object is totally got vanished!!. I've already retrived data and created row from result set. Why it should get vanished? Don't know why.
    Tried solution:
    I came to know that query mode should be set to Scan_Entity_Cache for filtering and Scan_View_Rows for sorting. I din't disturb the implementation (i.e. skipping service call) but overrided the executeQuery and did like the following code.
    @Override
    public void executeQuery(){
      setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
      super.executeQuery();
    }By doing this, i could able to do table filtering but when i try to use table sorting or programmatic sorting, sorting is not at all getting applied.
    I changed the code like below one (i.e. changed to ViewObject.QUERY_MODE_SCAN_VIEW_ROWS instead of ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS)
    @Override
    public void executeQuery(){
      setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
      super.executeQuery();
    }Now sorting is working fine but filtering is not working in an expected way because Scan_View_rows will do further filtering of view rows.
    If i OR'ed the Query Mode as given below, i am getting duplicate rows. (vewObject.QUERY_MODE_SCAN_ENTITY_ROWS | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS) Question:
    I don't know how to achieve both filtering and sorting as well as skipping of service call too.
    Can anyone help on this?? Thanks in advance.
    Raguraman
    Edited by: Raguraman on Apr 12, 2011 6:53 AM

  • Bill Presentment Architecture, how to Overide Default Rule and ensure the AR Invoice/Transaction Chooses "Customer Transaction Data Source"

    Hi Intelligentsia,
      we are on 12.2.4 on linux, i have setup external template with supplementary Data source as "Customer Transaction Data Source", when i test it fails, i am not able to debug it , however when i run the BPA Transaction Print Program (Multiple Languages) it always gives me the default layout.
    Query is
    How do i ensure the Default rule Does not apply to my Invoice and i am able to override it
    is there a method to explicitly Ensure the Supplementary Data Source as "Customer Transaction Data Source", when i am creating the AR Invoice/ Transaction?  Am i missing some setup in AR Invoice Transaction Flexfield where i need to setup this "Customer Transaction Data Source" as the DFF Context ?
    please let me know if you need any more information.
    Abdulrahman

    Hello,
    Thanks for the answer. When you say rule data is that Rule creation date or the "Bill Creation From Date" that we setup while creating the rule? I have created a new invoice after the rule created, but it did not pick the new custom template.
    I have another issue. It would be greate if you could help. I have split my logo area into 2 vertically to display logo in one and legal entity and addres on the other one. In the Online Preview I can see the logo and Legal address. But in the print preview , i am not able to see them. It just shows a blank space. Any Idea?
    Thanks in advance

  • How can i lookup a data source v5 in WSAD 5.1?

    Hi all,
    I'm using WSAD 5.1 to developer a web application based on J2EE 1.3 that have a simple java classes. My application uses a data source version 5 to have access the database. I?m using service locator pattern to lookup a JNDI but it dont work properly on stand alone java classes, only on EJB components.
    How can i lookup a data source version 5 from my java class on WSAD 5.1?
    Can anyone help?
    Thanks,

    Oh I did not realize that you were talking about a stand-alone application. You cannot use the server datasources in your stand-alone application.
    You can use the Oracle helper classes to construct a DataSource on the client side.
    http://java.sun.com/j2se/1.4.2/docs/api/javax/sql/DataSource.html and driver specific documentation to achieve this. I will try to send a few links, if I find any.
    In a stand-alone application, you can use some connection pooling mechanism on your own.
    The ideal thing to do is to keep your data access in your middle tier (EJBs) and call the EJB's. This way you can reuse things in multiple client tiers and use the container provided datasource and connection pooling mechanisms.
    Hope this helps.
    Vijay

  • Customized java date function in heart of JDK

    hi
    how can i force JDK to return Persian or Arabic date instead of christian era?
    i have an application in java platform. i couldn't change code of program, because source is closed and is not reachable. i want to know how can i use a wrapper for date function in java? if it is possible how can i replace java date functionality with my desired date function?
    thanks for any help

    Thanks for your help.
    however i looking for one thing, similar a function wrapper that can substitute original method.
    I don't know where the application use date function and how calls it. so i think that it is possible to change behavior of java itself.

  • Customized delta data source for deleting data record in the source system.

    Hello Gurus,
           there is a customized delta data source,  how to implement delta function for deleting data record in the source system?
    I mean if there is record deleted in the source sytem, how to notify SAP BW system for this deleting change by this customized delta
    data source?
    Many thanks.

    Hi,
    when ever record deleted we need to write the code to insert the record in  Z table load this records into BW in a cube with similar structure.while loading into this cube multiply the Keyfigure by -1.
    add this cube in the Multi Provider.The union of the records in the orginal cube and the cube having deleted records will result in zero vale and will not be displayed in report .
    Regards,

  • Building a custom hierarchy data source extractor

    Hi SDN,
    The ECC side has given us a Z table which contains a hierarchy. I will write a function module to extract the hierarchy and pass on to BI.
    Can someone assist with steps needed to accomplish this? Obviously FM, Z table and view over it, etc are custom. What should the function module generate and fill what to load into BI? How do you generate a data source for such a custom situation?
    Please advise.
    Thanks.

    Hi Shahid,
    Only way you can extract is dumping the data or hierarchy  into flat file and loading into BI. Download the data into flat file and then you have upload the same. You cannot create Generic datasource for Hierarchy.
    If you have your data in Flat structure in the table then this same code may help you.
    report zbiw_glacc_hier line-size 250.
    data :
         begin of itab occurs 0,
          seg(5),
          segname(30),
          spu(5),
          spuname(30),
          bu(5),
          buname(30),
          pu(15),
          puname(30),
         cust(8),
         custname(60),
          end of itab.
    data : itab_all like itab occurs 0 with header line,
             itab_root like itab occurs 0 with header line.
    data : begin of i_hier occurs 0.    " BIW Structure to hold hirearchy
           INCLUDE STRUCTURE E1RSHND.
    data:   nodeid like e1rshnd-nodeid,           "NODE ID
            infoobject like e1rshnd-infoobject,   "infoobjectNAME
            nodename like e1rshnd-nodename,       "nodename year
            link(5), "   LIKE E1RSHND-LINK,              "linkname
            parentid like e1rshnd-parentid.       "parent id
    data:   leafto(32),                           "Interval - to
            leaffrom(32).                         "Interval - from
            include structure e1rsrlt.
            include structure rstxtsml.
    *DATA : PARENT LIKE E1RSHND-NODENAME.
    data : end of i_hier.
    data : sr(8) type n value '00000000'.
    data : begin of itab1 occurs 0, " Node Level1 of Hierarchy
           z_ah_level1 like itab-seg,
           z_ah_level2 like itab-spu,
           z_ah_desc_level2 like itab-spuname,
           end of itab1.
    data : begin of itab2 occurs 0, " Node Level1 of Hierarchy
           z_ah_level2 like itab-spu,
           z_ah_level3 like itab-bu,
           z_ah_desc_level3 like itab-buname,
           end of itab2.
    data : begin of itab3 occurs 0,   " Node Level3 of Hierarchy
           z_ah_level3 like itab-bu,
           z_ah_level4 like itab-pu,
           z_ah_desc_level4 like itab-puname,
           end of itab3.
    data wa like itab.
    data : begin of itab_first occurs 0, " Node Level2 of Hierarchy
           z_ah_level1 like ITAB-SEG,
           end of itab_first.
    data : begin of itab_sec occurs 0, " Node Level2 of Hierarchy
           z_ah_level2 like ITAB-SPU,
           end of itab_sec.
    data : begin of itab_third occurs 0, " Node Level2 of Hierarchy
           z_ah_level3 like ITAB-BU,
           end of itab_third.
    data : begin of i_download occurs 0,
           record(250),
           end of i_download.
    data : v_pid like e1rshnd-nodeid,
           v_line(250).
    start-of-selection.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'C:/'
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = itab .
    IF SY-SUBRC  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    itab_all[] = itab[].
      itab_root[] = itab_all[].
      sort itab_all by seg spu bu pu .
      sort itab_root by seg.
      delete adjacent duplicates from itab_root comparing seg.
    Appending Root level of node
    sr = 00000001.
    move : sr to i_hier-nodeid,
           '0HIER_NODE' to i_hier-infoobject,
           'SHA HIERARCHY' to i_hier-nodename,
           '00000000' to i_hier-parentid,
           'EN' to i_hier-langu,
           'SHA HIERARCHY' to i_hier-txtmd.
    append i_hier.
    clear i_hier.
    v_pid  = '00000000'.
    loop at itab_root.
    if itab_root-seg = itab_root-spu.
      delete itab_root.
    endif.
    endloop.
      loop at itab_root.
    Appending first level of the node
        sr = sr + 1.
        move : sr to i_hier-nodeid,
              '0HIER_NODE' to i_hier-infoobject,
               itab_root-seg to i_hier-nodename,
               v_pid to i_hier-parentid,
              'EN' to i_hier-langu,
              itab_root-segname to i_hier-txtsh,
              itab_root-segname to i_hier-txtmd,
              itab_root-segname to i_hier-TXTLG.
        append i_hier.
        clear i_hier.
      endloop.
      loop at itab_all.
        move itab_all to wa.
    Separation of level 3 of the node
        at new spu.
          if not wa-spu is initial.
            move : wa-seg to itab1-z_ah_level1,
                   wa-spu to itab1-z_ah_level2,
                   wa-spuname to itab1-z_ah_desc_level2.
            append itab1.
            clear itab1.
          endif.
        endat.
    Separation of level 3 of the node
        at new bu.
          if not wa-bu is initial.
            move : wa-spu to itab2-z_ah_level2,
                   wa-bu to itab2-z_ah_level3,
                   wa-buname to itab2-z_ah_desc_level3.
            append itab2.
            clear itab2.
          endif.
        endat.
    Separation of level 2 of the node
        at new pu.
          if not wa-pu  is initial.
            move : wa-bu to itab3-z_ah_level3,
                   wa-pu to itab3-z_ah_level4,
                   wa-puname to itab3-z_ah_desc_level4.
            append itab3.
            clear itab3.
          endif.
        endat.
        clear wa.
      endloop.
      sort itab1 by z_ah_level1 z_ah_level2.
      delete adjacent duplicates from itab1 comparing z_ah_level1
                                                  z_ah_level2.
      sort itab2 by z_ah_level2 z_ah_level3.
      delete adjacent duplicates from itab2 comparing z_ah_level2
                                                      z_ah_level3.
      sort itab3 by z_ah_level3 z_ah_level4.
      delete adjacent duplicates from itab3 comparing z_ah_level3
                                                      z_ah_level4.
    loop at itab_root.
    move itab_root-SEG to itab_first-z_ah_level1.
    append itab_first.
    clear itab_first.
    endloop.
    itab_sec[] = itab2[].
    itab_third[] = itab3[].
    sort itab_first by z_ah_level1.
    delete adjacent duplicates from itab_first.
    sort itab_sec by z_ah_level2.
    delete adjacent duplicates from itab_sec.
    sort itab_third by z_ah_level3.
    delete adjacent duplicates from itab_third.
    data : indx like sy-tabix.
    clear indx.
    loop at itab_first.
    indx = sy-tabix.
    read table itab_sec with key z_ah_level2 = itab_first-z_ah_level1
                            binary search.
    if sy-subrc eq 0.
    delete itab_first index indx.
    endif.
    endloop.
    clear indx.
    loop at itab_sec.
    indx = sy-tabix.
    read table itab_third with  key z_ah_level3 = itab_sec-z_ah_level2
                            binary search.
    if sy-subrc eq 0.
    delete itab_sec index indx.
    endif.
    endloop.
    clear indx.
    clear indx.
    loop at itab1.
    If itab1-z_ah_level1 = itab1-z_ah_level2.
      delete itab1.
    endif.
    endloop.
    loop at itab2.
    If itab2-z_ah_level2 = itab2-z_ah_level3.
      delete itab2.
    endif.
    endloop.
    loop at itab3.
    If itab3-z_ah_level3 = itab3-z_ah_level4.
      delete itab3.
    endif.
    endloop.
    Appending First level node to Hierarchy table
      loop at itab_root.
        loop at itab1 where z_ah_level1 = itab_root-SEG.
          read table i_hier with key nodename = itab1-z_ah_level2.
           if sy-subrc ne 0.
          read table i_hier with key nodename = itab1-z_ah_level1.
          if sy-subrc eq 0.
          move i_hier-nodeid to i_hier-parentid.
    Appending First level node to Hierarchy table
          sr = sr + 1.
          move  : sr to i_hier-nodeid,
                  '0HIER_NODE' to i_hier-infoobject,
                  itab1-z_ah_level2 to i_hier-nodename,
                  'EN' to i_hier-langu,
                  itab1-z_ah_desc_level2 to i_hier-txtsh,
                  itab1-z_ah_desc_level2 to i_hier-txtmd,
                  itab1-z_ah_desc_level2 to i_hier-txtlg.
          append i_hier.
          clear i_hier.
          endif.
          endif.
        endloop.
      endloop.
    Appending second level node to Hierarchy table
      loop at itab_sec.
        loop at itab2 where z_ah_level2 = itab_sec-z_ah_level2.
          read table i_hier with key nodename = itab2-z_ah_level3.
           if sy-subrc ne 0.
          read table i_hier with key nodename = itab2-z_ah_level2.
           if sy-subrc eq 0.
          move i_hier-nodeid to i_hier-parentid.
    Appending second level node to Hierarchy table
          sr = sr + 1.
          move : sr to i_hier-nodeid,
                '0HIER_NODE' to i_hier-infoobject,
                itab2-z_ah_level3 to i_hier-nodename,
                'EN' to i_hier-langu,
                itab2-z_ah_desc_level3  to i_hier-txtsh,
                itab2-z_ah_desc_level3 to i_hier-txtmd,
                itab2-z_ah_desc_level3 to i_hier-txtlg.
          append i_hier.
          clear i_hier.
         endif.
         endif.
        endloop.
      endloop.
    Appending third level node to Hierarchy table
      loop at itab_third.
        loop at itab3 where z_ah_level3 = itab_third-z_ah_level3.
          read table i_hier with key nodename = itab3-z_ah_level4.
        if sy-subrc ne 0.
          read table i_hier with key nodename = itab3-z_ah_level3.
           if sy-subrc eq 0.
          move i_hier-nodeid to i_hier-parentid.
    Appending third level node to Hierarchy table
          sr = sr + 1.
          move : sr to i_hier-nodeid,
               'ZGL_AC_CD' to i_hier-infoobject,
                '0GL_ACCOUNT' to i_hier-infoobject,
                itab3-z_ah_level4 to i_hier-nodename,
                'EN' to i_hier-langu,
                itab3-z_ah_desc_level4 to i_hier-txtsh,
                itab3-z_ah_desc_level4 to i_hier-txtmd,
                itab3-z_ah_desc_level4 to i_hier-txtlg.
          append i_hier.
          clear i_hier.
          endif.
            endif.
        endloop.
      endloop.
      loop at i_hier.
        concatenate i_hier-nodeid i_hier-infoobject i_hier-nodename
                    i_hier-link i_hier-parentid i_hier-leafto
                    i_hier-leaffrom i_hier-langu i_hier-txtsh
                    i_hier-txtmd i_hier-txtlg into v_line
                    separated by ','.
        move  v_line to i_download-record.
        append i_download.
        write : / i_hier.
      endloop.
      perform f_download.
    **&      Form  f_download
          text
    -->  p1        text
    <--  p2        text
    form f_download.
      call function 'DOWNLOAD'
       exporting
      BIN_FILESIZE                  = ' '
      CODEPAGE                      = ' '
      FILENAME                      = ' '
          filetype                      = 'DAT'
      ITEM                          = ' '
      MODE                          = ' '
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      SILENT                        = 'S'
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      FILESIZE                      =
      CANCEL                        =
        tables
          data_tab                      = i_download
      FIELDNAMES                    =
    EXCEPTIONS
      INVALID_FILESIZE              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      CUSTOMER_ERROR                = 7
      OTHERS                        = 8
      if sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " f_download
    this code may need modification as your requirement and this may be the optimized one.
    First you have to read data from you Z-table into internal table then need to separate a each node level.
    hope this helps.
    There is PDF article on this. Good Luck.
    Regards
    Satish Arra
    Edited by: Satish Arra on Feb 11, 2009 1:45 AM

  • How can I  custom my date  in OBIEE.

    How can I custom my date in OBIEE.I want to see date in my user friendly format for Date Format MM/DD/YYYY to filter with
    leading zero(number) eg (01.21.2008) and not M/D/YYYY (1.21.2008) that i am seeing.I would appreciate it if you could give me a step by step process on how to do it in RPD.I know how to change the data format in my column propeties since i have more that 5000 columns that need changed.I am looking for a localised area
    that can take care of business.
    Thanks

    Edit the following parameters in OracleBI\web\config\localedefinitions.xml
    - Search for the locale that you want to customize by looking for the tag *<localeDefinition name="en">*
    - Customize the following tags as you require
    <property name="dateShortFormat">MM/DD/YYYY</property>
    <property name="dateLongFormat">dddd, MMMM dd, yyyy</property>
    - Restart the presentation server

  • How can I manage my data sources better?

    I'm learning WebLogic and my installation already has a data source configured to point to one of our eight databases. As we move through different phases of development, I need to point to a different database and changing it in WL is cumbersome. What I would like is to have all eight databases added as eight sources and enable only one at a time depending on our needs. I'd like to know:
    1) How does WebLogic know which data source to use for my .ear?
    2) With more than one data source, how do I ensure that only the one I want is used by my ear?
    Many thanks,
    TenLeftFingers

    It depends a bit on what you want to do (what you mean by "manage"), but perhaps this will help:
    Settings app > iCloud >
    http://help.apple.com/ipad/7/#/iPad995bbafe

  • How to import custom java jar/class into oracle to be used in java proc ?

    Hi
    I would like to know how to import custom java jar/class files into oracle to be used in java stored procedure.
    I am developing a oracle pl/sql procedure to call java program. The java program will be created as procedure and will be published.
    But, my question is that I do have a other external jar/class file that need to be imported into this java program.
    example
    raise_sal.java
    import java.util.*;
    import oracle.sql.*;
    <<reference other java programs >>
    import cmpmsgsvc.xxxx.* ;
    import cmpmsgsvc.yyyy.* ;
    import cmpmsgsvc.zzzz.* ;
    how do I import the cmpmsgsvc jar/class file into oracle so that I don't have any
    compilation errros on raise_sal.java program ??
    what are the steps to import/compile and validate to do this?
    thanks for your help in advance.
    Thanks
    rrb.

    Kuassi
    Problem is that, I have 6 jar files that are needed to be included in the main java program. And, there are more than 50+ classes, propertiers in those 6 jar files.
    It might be not good idea to have all those 50+ classes in the production database.
    Is there anyway that I keep all those 6 jar files in unix box (our's is oracle erp installation with oracle being installed on unix box) and just refer them in the main java program. I mean database will be loaded with main java program and it should able to refer other 6 jar files from unix.
    if we create a directory and keep all jar files in there and include that directory in classpath variable, does this works? or what is other method?
    Please let me know.
    Thanks

  • How to connect to different data sources in  XI 3.1 UNIVERSE?

    hi experts,
    We are going to migrate from BO 6.5 to  BO XI3.1.
    and we have different data sources to extract and generate the reports using various tools like Webi,Crystal Reports, Deski etc.
    1         How to connect to different data sources like SAP BI query, DB2, Oracle etc,, provide me the step by step solution.
    2     We need to migrate the universes and reports from BO 6.5 to BO XI 3.1 using the Report Conversion Tool.
    can we directly convert from the deski reports to Webi or do we need to migrate first through Import Wizard?
    3    Scheduling the Reports through Infoview
    4    Various issues and how to resolve those issues, we generally face while scheduling, and while creating the queries like for example time out errors etc..
    5    BO Security
    6    Universe creation with best practices and the loops,contexts,aliases etc..
    please provide me the step by step solution documents and links.
    thans in advance
    venuscm

    I would recommend to take a look at the official documentation. YOu can find this here
    http://help.sap.com
    NAvugate to SAP BusinessObjects->All products and the select the product you want eg. BusinessObjects ENterprise or Universe designer and the appropriate version XI 3.1. Take a look at the admin and the user guides.
    Currently the Data FEderator will allow you to buid a universe that access data from various data sources. Another option is to merge queries from different universes at report level.
    Regards,
    Stratos

  • How can we create a data source on structures

    Hi,
       How can we create a data source on structures.
    Regs,
    abdul

    Abdul,
        Welcome to SDN!
        We can't create Datasource using Strcutres. We need to have base tables.
        For Function Module Extractors, we will create strctures. We will use these strctures as Extract Structures. But, we will get the data from Base tables only not from Strcutures.
    Strctures won't contain data.
    all the best.
    Regards,
    Nagesh Ganisetti.

  • How can we call java control source methods within jsp

    Hi guys!
              How can we access java control source methods that are defined in java control projects within jsp.I am getting error when I tried to call java control source's methods in scriptlet of JSP page.Any help/suggestion is appreciated.
              Thanks
              -Chandu

    Uh, what?
    (And you are sure that it's not a Weblogic-specific question?)

  • How to create 3.x data source in bi 7

    Hi Guys,
                 can anyone tell me<b> how to create 3.x data source(emulated) in bi 7.0 </b>
    pls reply  me this is urgent
    ravi

    Ravi,
    Please do not multiply the same question several times. The answer is given in the other replica:
    how to create 3.x filesystem data source(emulated) in bi 7.0

  • How to create customer master data for walking customer in retail

    hi experts !!!!!!
    for retail industry e.g books trading industry
    how to create customer master data for walking customer in retail
    its dummy or one time customer
    if i create one time customer then same customer number can i use for every new order and every new customer how ?????
    thanks

    Dear Hanumant,
    As per my view,,
    You can use one time customer functionality to full fill your requirement.
    When you create sales order with one time customer system take you to the customer data maintanence screen through that you can maintain the one time customer data.
    Same one time customer number you can use for every new order through maintaining different data.
    I hope this will help you,
    Regards,
    Murali.
    Edited by: Murali Mohan.Tallapaneni on Dec 19, 2008 6:08 AM

Maybe you are looking for