Returning a single custom instance.

Hi,
I am loading data into a jdo class using
CustomResultSetResultObjectProvider.
All is working well.
I am in fact using a CachedRowSet (optional download from the sun website).
I wish to load records 20 to 30 from the resultset into a collection of jdo
objects.
I use providerinstance.getResultList( rs ). This works well, except that I
wish to retreive a block of items from the java ResultSet, not the entire
collection.
How would I achieve this. There does not seem to be a way to read a single
instance (I would then iterate through records 20-30). The only option seems
to be getResultList which returns the entire set.
Please Help
Regards
Craig.

Yes, the result object provider interfaces are oriented around lists. So,
if you only want to load a single object, you still have to put it in a
list.
There is nothing in that interface that requires that you iterate over the
entire ResultSet, however -- you can control when to stop iterating
through the data by overriding CustomResultObjectProvider.advance().
-Patrick
On Sat, 31 May 2003 12:38:49 +0200, Craig Main wrote:
Hi,
I am loading data into a jdo class using
CustomResultSetResultObjectProvider.
All is working well.
I am in fact using a CachedRowSet (optional download from the sun website).
I wish to load records 20 to 30 from the resultset into a collection of jdo
objects.
I use providerinstance.getResultList( rs ). This works well, except that I
wish to retreive a block of items from the java ResultSet, not the entire
collection.
How would I achieve this. There does not seem to be a way to read a single
instance (I would then iterate through records 20-30). The only option seems
to be getResultList which returns the entire set.
Please Help
Regards
Craig.--
Patrick Linskey
SolarMetric Inc.

Similar Messages

  • Playing multiple videos in single FLV instance.

    Hi, I'm trying to get a video application to work. The basic
    question I have is: can i get multiple videos on a flash streaming
    server to play in a single FLVPlayback instance? (I want the user
    to be able to choose the video based on a button, not play in
    succession.) Or do I have to set up a custom player using
    NetConnection and NetStream classes along with the
    NetStream.play(vidname) method ?
    I really need to be pointed in the right direction on this
    because the project is due asap.
    Thanks!!!

    A single instance of FLVPlayback can handle multiple videos.
    I can't remember what the upper limit is. So you can switch between
    them based on user input. But I believe it can only ever play one
    at any one time. I've used FLVPlayback quite a lot but not for what
    you're describing, so can't answer from direct experience.
    Check out this page, and the trivial example at the end
    (whether its streaming or progressive is irrelevant here, streaming
    should work just as well, but perhaps you need to use SMIL files
    for the streaming contentPath?)
    http://livedocs.adobe.com/flash/9.0/main/00002980.html#wp3780233

  • Problem building schema for return type as custom object

    Hi i am invoking a web service through a partner link. But when i expand the invoke variables( in structure tab ), it shows Exception- Problem building schema.
    Response is of type java:Customer which is a custom object having mobile_no, name, compname.
    Error is--
    Invalid reference: 'java:customobjectproject:Customer'
    wsdl file:
    <?xml version='1.0' encoding='UTF-8'?>
    <definitions name="CustomerDetailServiceDefinitions" targetNamespace="http://customobjectproject" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://customobjectproject" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://customobjectproject" xmlns:s0="http://customobjectproject" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="getCustomer">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="mobileNo" type="xs:int"/>
    <xs:element name="name" type="xs:string"/>
    <xs:element name="compName" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="getCustomerResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" type="java:Customer" xmlns:java="java:customobjectproject"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="java:customobjectproject" xmlns:s0="http://customobjectproject" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="Customer">
    <xs:sequence>
    <xs:element minOccurs="1" name="Mobile_no" nillable="false" type="xs:int"/>
    <xs:element minOccurs="1" name="Name" nillable="true" type="xs:string"/>
    <xs:element minOccurs="1" name="CompName" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    </types>
    <message name="getCustomer">
    <part element="s0:getCustomer" name="parameters"/>
    </message>
    <message name="getCustomerResponse">
    <part element="s0:getCustomerResponse" name="parameters"/>
    </message>
    <portType name="CustomerDetail">
    <operation name="getCustomer" parameterOrder="parameters">
    <input message="s0:getCustomer"/>
    <output message="s0:getCustomerResponse"/>
    </operation>
    </portType>
    <binding name="CustomerDetailServiceSoapBinding" type="s0:CustomerDetail">
    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getCustomer">
    <s1:operation soapAction="" style="document"/>
    <input>
    <s1:body parts="parameters" use="literal"/>
    </input>
    <output>
    <s1:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="CustomerDetailService">
    <port binding="s0:CustomerDetailServiceSoapBinding" name="CustomerDetailSoapPort">
    <s1:address location="http://localhost:7030/CustomerDetail/CustomerDetail"/>
    </port>
    </service>
    </definitions>
    I am using jdeveloper 10.1.3.3.0. Please help..
    Thanks.

    Well, the problem is caused by the fact that BPEL does not yet support soapenc:Array types. We've created a workaround by defining two Services, one that has only single returntypes and one that has the multiple returntypes (which are defined using soapenc:Array). There are other solutions, but those are very complicated. Hope this helps!

  • How Do I Use a SINGLE Custom CSS for My Project?

    How do I set a single CSS for a project?
    Currently, I have linked (I checked, they are actually linked) FM files. The project is Responsive HTML 5 Single Source Layout. It is set up this way:
    Project Files
    Each FM file has a folder that contains a CSS, an FPJ, any baggage (PNG, for example) and an HTM.
    So, for my project, I have 31 such folders.
    Above them is RHStyleMapping.css.
    That's it
    To map my project to a custom CSS, I did this:
    1) Created the custom CSS (let's call it TheSingleCSS-sb01.css) and put it in the same location as RHStyleMapping.css.
    2) Right-clicked Responsive HTML5 (Primary Layout) in the Single Source Layouts pane.
    3) Selected Properties. The Responsive HTML5 Properties dialog box opens.
    4) Click Content, select  the Apply to all Topics check box, select CSS, and choose my CSS, TheSingleCSS-sb01.css.
    5) Click Save and Generate. Generating happens.
    6) When prompted, click View Result.
    7) Double-click one of the resulting topics, and choose the HTML tab.
    8) Notice the following CSS files are referenced, NOT the one I want:
    <link rel="stylesheet" href="Configuration_ChangeWorkflow.css" type="text/css" />
    <link rel="stylesheet" href="..\..\RHStyleMapping.css" type="text/css" />
    <image>
    So:
    1) How can I replace 32 individual CSSes with one single custom CSS?
    2) Also note that Project Manager does not display my custom CSS, even though it is in the same location as RHStyleMapping.css and referenced in the Properties dialog box.
    Thanks all,
    Sean

    Hi, so as I mentioned before, I have used Apply to all and this doesn't work. The resulting HTML still uses a specific CSS for that one HTML file.
    1) I put the CSS I want to use, Sean01.css, in the top level of my project using Windows Explorer.
    2) I Save and Generate.
    3) But, my settings for styles in the CSS are not used. For example, FM_GlossaryDefinition is defined with a 0 left indent but actually uses a 144pt indent (that mirrors the print FM document and that I do not want).
    4) And, you can see from the actual HTML, that the Sean01.css file that I applied to all topics (see the first image) is not referenced. What am I doing wrong?
    What am I doing wrong? Again, these are imported FM files; this is not linked.
    Thanks,
    Sean

  • To change the JDBC driver for a single OC4J instance

    Hello,
    I implemeted an app with oracle adf (Jdeveloper 10.1.2 ) and it use Oracle Domain objects.
    I have an oas 10g (9.04.1) in windows
    and I want to change the default jdbc driver for a single oc4j instance
    in metalink i found the following information:
    1.- From OTN, download and copy the 10.1.0.x JDBC driver to a directory on the server. E.g OH/newjdbc
    2.- Opening EM-Website, navigate to the OC4J instance that should be altered.
    3.- Find the "Java-Options" and, add the -Xbootclasspath option to it, pointing to the new JDBC driver.
    E.g. -Xbootclasspath/p:$OH/newjdbc/ojdbc14.jar
    4.- Restart the OC4J instance
    my 'Java-optios' default is
    -server -Xrs -Djava.security.policy=C:\oracle\904\j2ee\test_adf\config\java2.policy -Djava.awt.headless=true
    my new 'Java optios' now is
    -server -Xrs -Djava.security.policy=C:\oracle\904\j2ee\test_adf\config\java2.policy -Djava.awt.headless=true -Xbootclasspath/p = D:\jdev1012\jdbc\lib\classes12.jar
    is this correct?
    now I cannot deploy my app
    Rigoberto

    Seems you missed something in step 3. From those steps the driver should be installed under C:\oracle\904\newjdbc and used in classpath, not d:\jdev1012.

  • How to create Multiple Address for a single customer

    Respected Members,
    In tcode Xd01 we create on customer but there we can maintain only one address but sometimes a scenario can be that single customer can have different address .
    How to do that.Any exit is available to create multiple address with creation of single customer.
    This provision is given while creating a Business Partner.Tcode is BP .In this Address Overview tab is there and you maintain multiple address to single Busines partner.
    Same thing can we do for the customer.
    Any solutions or suggestions,please give me your support.
    Thanks

    Hello Manish,
    Unfortunately Customers have only one address. However you can use contact persons to store different addresses, or (in the Sales view) you can assign other partner functions with different addresses (e.g. one customer acting as the Sold-to partner may have different Ship-to partners).
    If these options do not meet your requirements, you could extend the customer master data with your own functionality and enhance transaction XD01 with your own screens for holding alternate addresses.
    Regards,
    John.

  • In Debtors Trial Balance Report single customer only displaying

    When i run the India - Debtors Trial Balance Report the Parameter Customer LOV its showing only single customer..

    Hi Senthil,
    i just now checked this in my environment, i was able to see almost all of my customers in the LOV field...
    Also i checked the report is displaying all customers i.e. customers for which additional information is not configured in India Localisation module is also getting displayed ...
    Also i checked Oracle support environment, there are no reported issues on these lines till date ... Are you in the latest report version ...?
    Regards,
    Ivruksha

  • TOP of PAGE  using ABAP oo with single CUSTOM CONTROL

    Can anybody please tell me how to handle TOP_OF_PAGE using ABAP OBJECTS with a SINGLE CUSTOM CONTROL and not with  SPLIT CONTAINER(i.e. using single CL_GUI_CUSTOM_CONTAINER and single grid CL_GUI_ALV_GRID  ). Is it possible if so Please help me out?

    Hi Ravi,
    Here is my code. i didn't handle the top_of_page event yet but created a method to handle.
    REPORT  ZSATEESH_ALV_CONTAINER MESSAGE-ID ZZ
                      LINE-SIZE 150 NO STANDARD PAGE HEADING.
    PROGRAM id        :  ZSATEESH_ALV_CONTAINER                         *
    Title             : Sales document report                           *
    Author            : Sateesh                                         *
    Date              :                                                 *
    CR#               :                                                 *
    Dev Initiative    :
    Description       :ALV GRID/LIST Report which displays the sales
                          document header data using ABAP Objects.
                              Modification Log
    Corr. no        date       programmer        description
                    TYPES Declaration
    *--Type for the Header Sales data
    TYPES: BEGIN OF TY_VBAK ,
            INDICAT LIKE ICON-ID,               " Icon
            VBELN   LIKE VBAK-VBELN,            " Sales Document
            AUDAT   LIKE VBAK-AUDAT,            " Document date
            VBTYP   LIKE VBAK-VBTYP,            " SD document category
            AUART   LIKE VBAK-AUART,            " Sales Document Type
            AUGRU   LIKE VBAK-AUGRU,            " Order reason
            NETWR   LIKE VBAK-NETWR,            " Net Value
            WAERK   LIKE VBAK-WAERK,            " SD document currency
         END OF TY_VBAK.
                    DATA Declaration
    *--Tableto hold the header sales data
    DATA: TB_VBAK  TYPE  STANDARD TABLE OF TY_VBAK.
    *--Table to hold the Icons
    DATA: BEGIN OF TB_ICON OCCURS 0,
            ID   TYPE ICON-ID,                  " Icon
            NAME TYPE ICON-NAME,                " Name of an Icon
          END OF TB_ICON.
    *--Declaration of ALV Grid Tables
    DATA: TB_FDCAT         TYPE LVC_T_FCAT,     " Fieldcatalog
          TB_SORT          TYPE LVC_T_SORT.     " Sorting
    DATA: OK_CODE          LIKE SY-UCOMM.       " sy-ucomm
    *--Reference variables for container and grid control.
    DATA: CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
                                                " Container reference
          OBJ_ALV_GRID     TYPE REF TO CL_GUI_ALV_GRID.
    " Alv Grid reference
                      S T R U C T U R E S
    DATA: X_FDCAT          TYPE LVC_S_FCAT,     " Fieldcatalog
          X_LAYOUT         TYPE LVC_S_LAYO,     " layout
          X_SORT           TYPE LVC_S_SORT,     " Sorting
          X_VBAK           TYPE TY_VBAK,        " sales header stucture
          X_ICON           LIKE TB_ICON.        " icons structure
                      C O N S T A N T S
    *--Declaration of Constants
    CONSTANTS :
                C_GREEN(40)    TYPE  C VALUE 'ICON_GREEN_LIGHT',
                C_RED(40)      TYPE  C VALUE 'ICON_RED_LIGHT',
                C_YELLOW(40)   TYPE  C VALUE 'ICON_YELLOW_LIGHT',
                C_X            TYPE  C VALUE 'X'.      " Flag
                      SELECTION SCREEN
    *--Block 1.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER: P_AUDAT LIKE VBAK-AUDAT
                       DEFAULT '20050101'(003).    " doc date.
    SELECTION-SCREEN: END OF BLOCK B1.
    *--bLOCK 2.
    SELECTION-SCREEN : BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETER :P_ALVDIS AS CHECKBOX.              " For List/Grid
    SELECTION-SCREEN : END OF BLOCK B2.
          Class LC_VBAK  definition
    CLASS  LC_VBAK DEFINITION.
      PUBLIC SECTION.
        METHODS: VBAK_POPULATE,                 " sales header population
                 ICON_POPULATE,                 " Icons population
                 FINAL_POPULATE,                " Final ALV population
                 DISPLAY,                      " Displaying ALV
                 TOP_OF_PAGE FOR EVENT TOP_OF_PAGE OF CL_GUI_ALV_GRID
                                               IMPORTING E_DYNDOC_ID.
    ENDCLASS.                    "LC_VBAK DEFINITION
          Class LC_VBAK IMPLEMENTATION
    CLASS LC_VBAK IMPLEMENTATION.
      METHOD VBAK_POPULATE.
    *-- selecting from VBAK
        SELECT VBELN
                AUDAT
                VBTYP
                AUART
                AUGRU
                NETWR
                WAERK
                INTO   CORRESPONDING FIELDS OF TABLE TB_VBAK
                FROM VBAK
                WHERE AUDAT > P_AUDAT AND
                NETWR  > 0.
        IF SY-SUBRC <> 0.
          SORT TB_VBAK  BY AUART VBTYP WAERK .
        ENDIF.
      ENDMETHOD .                    "VBAK_POPULATE
      METHOD ICON_POPULATE.
    *--selecting from ICON table
        SELECT ID
               NAME
               INTO TABLE TB_ICON
               FROM ICON.
        IF SY-SUBRC = 0.
          SORT TB_ICON BY NAME .
        ENDIF.
      ENDMETHOD .                    "ICON_POPULATE
      METHOD FINAL_POPULATE.
    *--looping through VBAK table into the work area
        LOOP AT TB_VBAK INTO X_VBAK .
          IF X_VBAK-NETWR <= 10.
    *--Reading the ICON table into work area comparing field NAME
            READ TABLE TB_ICON INTO X_ICON WITH KEY NAME = C_GREEN
                                                     BINARY SEARCH.
            IF SY-SUBRC = 0.
              X_VBAK-INDICAT =  X_ICON-ID.
    *--modifying the TB_VBAK table
              MODIFY TB_VBAK FROM X_VBAK.
            ENDIF.
          ELSEIF X_VBAK-NETWR > 10 AND X_VBAK-NETWR < 100.
    *--Reading the ICON table into work area comparing field NAME
            READ TABLE TB_ICON INTO X_ICON WITH KEY NAME = C_YELLOW
                                                     BINARY SEARCH.
            IF SY-SUBRC = 0.
              X_VBAK-INDICAT =  X_ICON-ID.
    *--modifying the TB_VBAK table
              MODIFY TB_VBAK FROM X_VBAK.
            ENDIF.
          ELSEIF X_VBAK-NETWR >= 100.
    *--Reading the ICON table into work area comparing field NAME
            READ TABLE TB_ICON INTO X_ICON WITH KEY NAME = C_RED
                                                     BINARY SEARCH.
            IF SY-SUBRC = 0.
              X_VBAK-INDICAT =  X_ICON-ID.
    *--modifying the TB_VBAK table
              MODIFY TB_VBAK FROM X_VBAK.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.                    "FINAL_POPULATE
          METHOD top_of_page                                            *
      METHOD TOP_OF_PAGE.
        PERFORM EVENT_TOP_OF_PAGE USING E_DYNDOC_ID.
      ENDMETHOD.                    "top_of_page
      METHOD DISPLAY.
    *--Building fieldcatalog table
        PERFORM FIELDCATLOG.
    *--FOr making the Layout settings
        PERFORM LAYOUT.
    *--For sorting the fields
        PERFORM SORTING.
    *--perform for displaying the ALV
        PERFORM ALV_GRID_DISPLAY.
      ENDMETHOD.                    "DISPLAY
    ENDCLASS.                    "LC_VBAK IMPLEMENTATION
    *&      Form  FIELDCATLOG
         Building the FIELDCATALOG
    FORM FIELDCATLOG .
      CLEAR: X_FDCAT,TB_FDCAT[].
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 1.
      X_FDCAT-FIELDNAME = 'INDICAT'(004) .
      X_FDCAT-TABNAME   = 'TB_VBAK'(005).
      X_FDCAT-SCRTEXT_L = 'STATUS_INDICATOR'(006).
      APPEND X_FDCAT TO TB_FDCAT.
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 2.
      X_FDCAT-FIELDNAME = 'VBELN'(007) .
      X_FDCAT-TABNAME   = 'TB_VBAK'(005).
      X_FDCAT-SCRTEXT_L = 'SALES DOC'(008).
      APPEND X_FDCAT TO TB_FDCAT.
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 3.
      X_FDCAT-FIELDNAME = 'AUDAT'(009) .
      X_FDCAT-TABNAME   = 'TB_VBAK'.
      X_FDCAT-SCRTEXT_L = 'DOC DATE'(010).
      APPEND X_FDCAT TO TB_FDCAT.
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 4.
      X_FDCAT-FIELDNAME = 'VBTYP'(011) .
      X_FDCAT-TABNAME   = 'TB_VBAK'.
      X_FDCAT-SCRTEXT_L = 'SALES CATEGORY'(012).
      APPEND X_FDCAT TO TB_FDCAT.
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 5.
      X_FDCAT-FIELDNAME = 'AUART'(013) .
      X_FDCAT-TABNAME   = 'TB_VBAK'.
      X_FDCAT-SCRTEXT_L = 'DOC TYPE'(014).
      APPEND X_FDCAT TO TB_FDCAT.
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 6.
      X_FDCAT-FIELDNAME = 'AUGRU'(015) .
      X_FDCAT-TABNAME   = 'TB_VBAK'.
      X_FDCAT-SCRTEXT_L = 'REASON'(016).
      APPEND X_FDCAT TO TB_FDCAT.
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 7.
      X_FDCAT-FIELDNAME = 'NETWR'(017) .
      X_FDCAT-TABNAME   = 'TB_VBAK'.
      X_FDCAT-SCRTEXT_L = 'NET VALUE'(018).
      X_FDCAT-DO_SUM   = C_X.
      APPEND X_FDCAT TO TB_FDCAT.
      X_FDCAT-ROW_POS   = 1.
      X_FDCAT-COL_POS   = 8.
      X_FDCAT-FIELDNAME = 'WAERK'(019) .
      X_FDCAT-TABNAME   = 'TB_VBAK'.
      X_FDCAT-SCRTEXT_L = 'UNIT'(020).
      APPEND X_FDCAT TO TB_FDCAT.
    ENDFORM.                    " FIELDCATLOG
    *&      Module  STATUS_0007  OUTPUT
          module for setting the pf status
    MODULE STATUS_0007 OUTPUT.
      SET PF-STATUS 'ZSTATUS'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0007  OUTPUT
    *&      Module  USER_COMMAND_0007  INPUT
          module  for handling the user commands
    MODULE USER_COMMAND_0007 INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'CANCEL'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0007  INPUT
    *&      Form  LAYOUT
          ALV Layout settings
    FORM LAYOUT .
      CLEAR X_LAYOUT.
    *-- making Layout settings
      X_LAYOUT-GRID_TITLE = 'Sales Header Document'(021).
      X_LAYOUT-ZEBRA      = C_X.
      IF P_ALVDIS =  C_X.
        X_LAYOUT-NO_HGRIDLN = C_X.
        X_LAYOUT-NO_VGRIDLN = C_X.
      ENDIF.
    ENDFORM.                    " LAYOUT
    *&      Form  SORTING
          sub routine for sorting criteria
    FORM SORTING .
      CLEAR X_SORT.
      X_SORT-SPOS = '1'(022).
      X_SORT-FIELDNAME = 'AUART'.
      X_SORT-UP        = C_X.
      APPEND X_SORT TO TB_SORT.
      CLEAR X_SORT.
      X_SORT-SPOS = '2'(023).
      X_SORT-FIELDNAME = 'VBTYP'.
      X_SORT-UP        = C_X.
      APPEND X_SORT TO TB_SORT.
      CLEAR X_SORT.
      X_SORT-SPOS = '3'(024).
      X_SORT-FIELDNAME = 'WAERK'.
      X_SORT-UP        = C_X.
      X_SORT-SUBTOT    = C_X.
      APPEND X_SORT TO TB_SORT.
    ENDFORM.                    " SORTING
    *&      Form  CREATE_CONTAINER_OBJECT
          subroutine to create object of container
    FORM CREATE_CONTAINER_OBJECT .
      CREATE OBJECT CUSTOM_CONTAINER
        EXPORTING
          CONTAINER_NAME              = 'CUST_CONTROL'(025)
        EXCEPTIONS
          CNTL_ERROR                  = 1
          CNTL_SYSTEM_ERROR           = 2
          CREATE_ERROR                = 3
          LIFETIME_ERROR              = 4
          LIFETIME_DYNPRO_DYNPRO_LINK = 5
          OTHERS                      = 6
      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.                    " CREATE_CONTAINER_OBJECT
    *&      Form  CREATE_ALV_GRID_OBJECT
          subroutine to create object of ALV GRID
    FORM CREATE_ALV_GRID_OBJECT .
      CREATE OBJECT OBJ_ALV_GRID
        EXPORTING
          I_PARENT          = CUSTOM_CONTAINER
        EXCEPTIONS
          ERROR_CNTL_CREATE = 1
          ERROR_CNTL_INIT   = 2
          ERROR_CNTL_LINK   = 3
          ERROR_DP_CREATE   = 4
          OTHERS            = 5
      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.                    " CREATE_ALV_GRID_OBJECT
    *&      Form  ALV_GRID_DISPLAY
          subroutine to call method for displaying the ALV GRID
    FORM ALV_GRID_DISPLAY .
      CALL METHOD OBJ_ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IS_LAYOUT                     = X_LAYOUT
        CHANGING
          IT_OUTTAB                     = TB_VBAK
          IT_FIELDCATALOG               = TB_FDCAT
          IT_SORT                       = TB_SORT
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          TOO_MANY_LINES                = 3
          OTHERS                        = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL SCREEN 0007.
    ENDFORM.                    " ALV_GRID_DISPLAY
                    START OF SELECTION
    START-OF-SELECTION.
    *--Creating a reference variable for the class LC_VBAK
      DATA : OBJ1 TYPE REF TO LC_VBAK.
    *--Creating a container object
      PERFORM CREATE_CONTAINER_OBJECT.
    *--Creating a ALV GRID control object
      PERFORM CREATE_ALV_GRID_OBJECT.
    *--Creating a object of class LC_VBAK
      CREATE OBJECT OBJ1.
    *--calling vbak population method
      CALL METHOD OBJ1->VBAK_POPULATE.
    *--calling icon population method
      CALL METHOD OBJ1->ICON_POPULATE.
    *--calling fianl table population method
      CALL METHOD OBJ1->FINAL_POPULATE.
    *--calling final  method for display
      CALL METHOD OBJ1->DISPLAY.
    *&      Form  EVENT_TOP_OF_PAGE
          text
         -->P_E_DYNDOC_ID  text
    FORM EVENT_TOP_OF_PAGE  USING    P_E_DYNDOC_ID TYPE REF TO
                                                      CL_DD_DOCUMENT.
    ENDFORM.                    " EVENT_TOP_OF_PAGE

  • Max size of Azure table used in single ISS instance

    Hi,
    what is max size of an Azure Table used in a single
    ISS instance?
    Regards

    Hi,
    Please have a check on the below links.
    http://blogs.msdn.com/b/avkashchauhan/archive/2011/11/30/how-the-size-of-an-entity-is-caclulated-in-windows-azure-table-storage.aspx
    http://blogs.msdn.com/b/windowsazurestorage/archive/2010/07/09/understanding-windows-azure-storage-billing-bandwidth-transactions-and-capacity.aspx
    http://msdn.microsoft.com/en-us/library/azure/jj553018.aspx
    Hope this helps.
    Regards,
    Mekh.

  • Configuring multiple web sites in a single OC4J instance with 10g OEM

    Hi There,
    there doesn't seem to be a way of configuring multiple web sites within a single OC4J instance using the 10g Enterprise Manager Website, so can i assume that there's some performance related issues with doing this, or is it just a case of if you want multiple web sites, configure it manually?
    We currently use 9iAS release 1 (which has been configured to use multiple web sites - with normally 1 j2ee app in each website - in a single OC4J clustered instance, using mod_proxy to forward the http requests onto oc4j), but we are looking to migrate to 10g very soon...
    The initial configuration was done by an external company, so i'm not entirely sure of the reasons why it was chosen (perhaps so that if there was a problem with a single website, it wouldn't impact all our applications)..
    Does anybody else currently use multiple *-web-site.xml's in a 9iAS release 2 or 10g in a production environment, and if so did you encounter any problems with the OEM website (assuming you configured them manually)?
    Thanks in advance,
    Andy

    Hello,
    Something like this:
    New-OWAVirtualDirectory -WebSiteName "FBA"
    Enable the Basic authentication via running the following command:
    Set-OWAVirtualDirectory -Identity "yourservername\owa (FBA)" -BasicAuthentication $true
    Restart the IIS admin service in services.msc
    Thanks,
    Simon Wu
    TechNet Community Support

  • Two BI Systems connected to a single Portal instance?

    Hello,
    Is it possible to connect more than one BI system (7.0) to a single Portal instance? What would be required to do if that's the case? Thanks in advance for any information!
    Cheers,
    Hermann

    Hi,
    It is possible to add only one BI system to a single portal instance. This is because only one system object can be defined under portal as a BI master system.
    Regards,
    Anjana

  • DEV and QA within single oracle instance

    We need to have our DEV and QA in a single oracle instance. Scripts that refer to tables names in DEV will be copied over to QA for QA testing when unit testing in DEV has been completed. In DEV, we extract data from 5 source systems, one for each US state, which use the same application so the source table names are identical, and therefore in our staging area we have a schema per state such as TX, GA, MD and we extract data into staging tables that are identical to the source tables. Since we do cross state aggregation our scripts have to refer to TX.employee and GA.employee in the same sql statement.
    What is the best design for this using SCHEMAS, VIRTUAL PRIVATE DATABASES, VIEWS , SYNONYMS etc?
    Thanks in anticipation
    Edited by: user4900730 on Mar 22, 2011 2:53 PM

    user4900730 wrote:
    Just for my knowledge, if I did find myself in this situation would VIRTUAL PRIVATE DATABASES make sense here?I suppose you could potentially use VPD. But that would create major problems if you ever wanted to make schema changes-- you couldn't add a new column to a table in DEV, for example, without that column also being available in QA. You couldn't have code in DEV that didn't exist in QA. I suppose you could get really fancy and use 11g's edition-based redefinition to have a dev edition and a qa edition but I'd hate to think how you'd promote code to prod in that sort of environment. Plus, editions is an enterprise feature (at least, I'm not sure if it's an extra-cost option) which would tend to be beyond the pocketbook of a company trying to save on licensing costs by combining dev & qa in a single non-VM server (let alone in the same instance).
    You could potentially have your application use all dynamic SQL so that dev could use the DEV_TX schema while QA used the QA_TEX schema and it was just the TX schema in prod, but that obviously gets old really fast. You could create a single set of synonyms so that the TX_FOO synonym points to DEV_TX.FOO for the dev users and TEST_TX.FOO for the test users but then you'd have to remove the schema qualifiers from all your SQL statements.
    In short, an application like you describe trying to share an instance would be a rather massive undertaking.
    Justin

  • Info on Single CRM Instance vs Multi instance approach for ERP integration

    Hi All,
    I am working on a requirement where we have to propose integration approach to connect CRM with multiple ERP systems deployed across the geographical locations. We have two options, one is to have multiple CRM instances for each ERP instance or having a single CRM instance connected to all ERP instances. We foresee many issues on having a single CRM instance as there could be duplication of master data, solution cannot be Scalable or will be too complex, etc. if any of you have any docs/case study or ref link on this topic. Kindly pass on the same.
    Thanks in Advance.
    Regards,
    udaya

    Hi Udaya,
    As of SAP CRM 5.2, PI 2005.1 and higher, the standard SAP system technically supports the
    data exchange for a Multiple CRM scenario (MCRM). In this technical scenario the SAP ERP system
    is connected to more than one SAP CRM system.
    You can check SAP Note 1143540 & 842477. These 2 notes will give you an over-all idea about this scenario.
    You can also find a document under:
    service.sap.com/crm-inst --> CRM 2007 --> CRM Server Components
    Regards,
    L

  • Sales Return Received form customer

    Hi SAP Friends,
    As Sales Return Received form customer,I want This customer invoice Booking in SAP through Different type.
    There are 3 cases as below-:
    1)       Rejection material can be Rework then this invoice  booking in SAP order  Type **** RETURN order , Assign Gl A/C seprate and Clearing A/C seprate.
    2)       Rejection material cannot Rework then this invoice  booking in SAP order Type  **** NoTreturn  order , Assign GL A/C Seprate and Clearing A/C seprate
    3)       Material Recd from Customer against Waramty Claim then this invoice Booking in SAP Order type ***** WReturn order Assign GL A/c Seprate and Clearing A/C seprate.
    How can I map these.
    Please Reply.
    Regards,
    Chandra

    Hello Chandra,
    You can also do this through one order Type Return.
    Just maintain three different condition types referring to your scenario
    1. Rework
    2. No Repair
    3. Under warranty.
    In V/08 Pricing procedure.Assign these condition types with three diff account keys.
    in VKOA account determination--assign these account keys with different G/L Accounts.
    For case under warranty Just change item category.
    For reporting Purpose you can create 3 different order reasons reffering to your case and segregate accordingly.
    However if you want three different order types, then create 3 different pricing procedure having one condition type reffering to your case like
    1. ZRET(Return & Rework)
    2nd pricing procedure should have ZNRE( No Return)
    3rd pric proc should have ZWAR( Order under warranty).
    Assign condition types with diff account keys and then further with Diff G/L Accounts.
    Revert for further clarification.
    Regards
    Amit

  • Migrating cProject and cFolder into a single server instance

    Hi,
    Has anyone had the experience to migrate cProjects and cFolderon seperated server instances into a single server instance? How data migration can be performed assuming cProjects server will be upgraded to 4.5 and the cFolders content will be ported over? is this something do-able? Or it is easier to upgrade cFolder first and migrate the cProjects data over?
    Since documents link in cFolder/cProjects could be captured in transaction table, how to resolve it?
    Would like to hear from anyone with such experiences... thank you.
    Yeu Sheng

    Hi,
    Is your new server Unix based? Are you planning to have 2 separate instances with separate DBs or are you planning to do a MCOD? Can you more details on what you mean by "2 in 1"?
    -RK

Maybe you are looking for

  • Display Error Message in ME21N

    Hi, As per my requirement, I need to display an error message while creating a PO based on certain conditions. I tried the Exit: EXIT_SAPMM06E_012 using which i can stop the creation of PO but it gives a pop up box saying HOLD or EDIT. Inside edit i

  • Too many real instruments; Need help bouncing tracks

    Hello, I've been using GarageBand to record a demo for my band. Unfortunately, I've hit my peak number of real instrument tracks. I have a lot of tracks that are the same (well, not EXACTLY the same, but the same musical part), where one is panned le

  • Is there a way on maxdb to force netbackup to use different initSID.utl fil

    (This thread refers to a question that was posted to a blog and where the proper location to handle it is this forum) Is there a way on maxdb to force netbackup to use different initSID.utl files ? I have try to do it with different bsi.env file . Bu

  • Multiple color in a graph

    Hi friends,                The is a SAP standard program in the name GRAPHICS_GUI_CE_DEMO with the help of which we can generate reports represented in graphical way.Whenever we generate a graph,it shows us a bar graph having first bar in yellow,Can

  • Re: Setting Authorization Check in Report Writer

    Hi, In ABAP Query or ABAP customized program, it is possible to set authorization object checking. In Report Writer, how can I do it? <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN> Thanks Edited by: Alvaro Tejada Galindo on Dec 26, 20