Default Implementation for PersistenceProvider

I am going to test my persistence layer outside of Java EE server.
Using jboss embedded ejb server, I write a persistence.xml with the following:
<provider>
org.hibernate.ejb.HibernatePersistence
</provider>
<transaction-type>RESOURCE_LOCAL<transaction-type>
Is there any default ORM in jboss server or reference implementation, so I can remove hibernate from my test environment?
i.e. is there any default implementation for PersistenceProvider.

I am going to test my persistence layer outside of Java EE server.
Using jboss embedded ejb server, I write a persistence.xml with the following:
<provider>
org.hibernate.ejb.HibernatePersistence
</provider>
<transaction-type>RESOURCE_LOCAL<transaction-type>
Is there any default ORM in jboss server or reference implementation, so I can remove hibernate from my test environment?
i.e. is there any default implementation for PersistenceProvider.

Similar Messages

  • Configuring Kodo default implementation for field of Collection type

    If I am not mistaken default implementation for field of Collection type in
    Kodo is
    LinkedList based proxy. It would be great if it were possible to configure
    Kodo to use a proxy of my choosing
    I did some tests and it seems to me that ArrayList is much more efficient
    than Linked list (see below)
    Is there any specific reason I am not aware of that makes LinkedList better
    than array list
    In my applications all collections a relatively small (or at least most of
    my collections are definitely small)
    and since I use Collection interface there is no inserts into middle of my
    collections - only appends (which ArrayList handles very well)
    So my question is can I make Kodo to use ArrayListProxy for fields of
    Collection type
    (except of course using ArrayList field instead of Collection which I do not
    want to do)
    below is some statistics on collection performance (populating and iterating
    collections)
    the same test against 3 collections implementations (JDK 1.4.1)
    Not only ArrayList by far the fastest and memory friendly it also garbage
    collected much sooner and better -
    I show here max memory consumption and last to would not be garbage
    collected till all memory is in use (old generation GC)
    and ArrayList seems to be collected by young gen GC because it was collected
    very quickly between test cycles why other only when all memory was used
    So please make ArrayList your default collection implementation :-)
    Small collection size (40)
    time(ms) memory(kb)
    ArrayList 5,218 62,154
    LinkedList 14,125 240,066
    HashSet 27,000 311,825
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 8937, 53591
    LinkedList 15047, 240066
    Larger collection size (200)
    ArrayList 4860, 47709
    LinkedList 18468, 290704
    HashSet 34391, 422282
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 11844, 47709
    LinkedList 25766, 290704

    You should be able to accomplish this fairly easily by extending
    SimpleProxyManager:
    http://solarmetric.com/Software/Documentation/2.4.3/docs/javadoc/com/solarmetric/kodo/util/SimpleProxyManager.html
    and overriding the appropriate methods (getCollectionCopy and
    getCollectionProxy).
    On Mon, 12 May 2003 12:26:21 -0400, Alex Roytman wrote:
    If I am not mistaken default implementation for field of Collection type in
    Kodo is
    LinkedList based proxy. It would be great if it were possible to configure
    Kodo to use a proxy of my choosing
    I did some tests and it seems to me that ArrayList is much more efficient
    than Linked list (see below)
    Is there any specific reason I am not aware of that makes LinkedList better
    than array list
    In my applications all collections a relatively small (or at least most of
    my collections are definitely small)
    and since I use Collection interface there is no inserts into middle of my
    collections - only appends (which ArrayList handles very well)
    So my question is can I make Kodo to use ArrayListProxy for fields of
    Collection type
    (except of course using ArrayList field instead of Collection which I do not
    want to do)
    below is some statistics on collection performance (populating and iterating
    collections)
    the same test against 3 collections implementations (JDK 1.4.1)
    Not only ArrayList by far the fastest and memory friendly it also garbage
    collected much sooner and better -
    I show here max memory consumption and last to would not be garbage
    collected till all memory is in use (old generation GC)
    and ArrayList seems to be collected by young gen GC because it was collected
    very quickly between test cycles why other only when all memory was used
    So please make ArrayList your default collection implementation :-)
    Small collection size (40)
    time(ms) memory(kb)
    ArrayList 5,218 62,154
    LinkedList 14,125 240,066
    HashSet 27,000 311,825
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 8937, 53591
    LinkedList 15047, 240066
    Larger collection size (200)
    ArrayList 4860, 47709
    LinkedList 18468, 290704
    HashSet 34391, 422282
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 11844, 47709
    LinkedList 25766, 290704

  • Overriding default implementation of TrustManager class

    The IBM JSSE provider's default TrustManager implementation doesn't allow anonymous cipher suites.
    http://www-128.ibm.com/developerworks/library/j-ibmsecurity.html?ca=drs-j4304
    I want to override it, so that anonymous cipher suites can be allowed.
    Does anyone know how to do this.
    Thanks,
    JVR

    A custom renderer needs to extend the abstract class
    javax.faces.Renderer and supply five methods. Four of
    them (encodeXXX and decode) make perfect sense, but
    the fifth one (getClientId) isn't in the same league.
    Wouldn't most renderers want to use the standard
    mechanism?
    Thanks for the feedback.
    This issue is already on the Expert Group's radar as an issue to be addressed. I would not be at all surprised if we end up with a standard base class for Renderers that includes a default implementation for things like getClientId().
    Craig

  • Does Sun provide an implementation for the PolicyManager interface (OMG)

    I need an interface through which I can set Policies and view the current Policy overrides. Doesn't the Java IDL provide a default implementation for the PolicyManager interface? (on the lines of what is available in VisiBroker and JacORB)
    Also want to know the values that need to be set for protocol_type if I need to use IIOP and SSLIIOP profocols

    It also makes a difference whether RMI/IIOP or Java IDL is used. Considering RMI/IIOP, there is still many work to be done. See, for example, bug 6239444, which came up when testing interoperability between Sun's and IBM's ORBs. I was told by experts that this problem came up due to the ambiguity of the RMI/IIOP specification. Java IDL should work better there.
    However, the discussion seems to become off-topic :-/, I am not sure that the original question was about interoperability.
    Regards,
    Miran

  • How  to set default value for Zfeild using statusprofile

    hi experts,
    I need to set a default value for a zfeild using status profile.Although we can default the values,using getter and setter methods,but in my requirement,the feild will be defaulted when the page is locked,also in display mode,which will require me to write code to unlock then set the value and then write a commit,as there wont be any user action performed.
    I have created a zstatus profile and have set the required status to inital,but no luck
    please suggest if this canbe achived through status profile.
    Regards
    Anu.

    Hi,
    You can check in the getter if the Page is locked and then display the value to want to display. Note that this will be just Displaying the default value for the Zfield and it will not set the default value into  the Zfield in DB, because when the document is locked ( means locked for editing - mostly when system status is completed ) , setters are not called and so you can display the value but cant set it. This is fine if the value you want to display in Z field is just for user's informations and its not required to save this default value.
    The best approach would be to set the value in the Zfield before the page is locking. For example, If you wat to set the zfield value when status is set to "Completed" , then you can configure an action that is 1) triggered during saving of the document with 2) start condition "When status is completed"  ( both 1 and 2 you can mention in action defination ), then Implement this action badi in which you can set the Zfield to default value.
    This will ensure that default value is always set whenever the page is getting locked for editing ( i assumed that page lock means status completed ).
    Thanks & Regards
    Suchita

  • Account Creation - Badi for Default values for BP Role and Sales Area

    Hi all,
    my requirement regards the possibility to create a new prospect (a link should be available in the navigation bar or create section).
    Logically, a bp role as "Prospect" and particoular sales area should be created automatically.
    I created an implementation for the BADI definition "BADI_CRM_BP_UIU_DEFAULTS". But don't know how to create the default values for BP role and Sales area:
    In my code
    assign cr_me->('VIEW') to <lv_view_name>.
      if sy-subrc ne 0.
        exit.
      endif.
      lv_viewname = <lv_view_name>.
      case lv_viewname.
        when 'AccountDetails.htm'.
    I obtain the viewname "AccountDetails" , the related context "Header". After I don't know how to proceed to obtain the related entities through the relationship BuilRolesRel and BuilSalesArrangementRel.
    Am I following the right way? Is there another solution to prepare the output for default values?
    Any kind of suggestion will be appreciated.
    Regards, Roberto

    go to spro>cross-application components>sap busines partner>business partner> basic settings>field groupings>Configure Field Attributes per BP Role
    Double click the business role which you want to customaze (e.g. 'A') and change the proper settings.
    Regards.

  • Default Value for Order Type based on Company Code  in ME21N

    Hi,
         Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code  XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled how to implement it. I know that we can set a Default value for PO Headers in Personal Settings but its doesnt give the result I want coz it will only have one Default Value. What I wanted is when a certain company code is chosen, automatically, the corresponding PO type for that Company code will be displayed in the Order Type drop-down menu (so there's no need to choose on the drop down list what Order type) Is this possible in ABAP? Hope i made myself clear.
        Thanks in Advance.

    Use BADI IF IF_EX_ME_PROCESS_PO_CUST - method OPEN
    View the interface documentation in transaction SE19 and you will see the method OPEN can be used :
    2. Opening of a purchase order (OPEN method)
    The system opens a new document to create, change or display a purchase order. With the OPEN method,
    <b>you can import your own data and prepare it for further processing.</b>
    This is available in 4.7 Enterprise but not sure how far back.....
    hope this helps
    Colin.

  • DRQ: Different default warehouse for Sales,Purchase and Production Process

    Hi Experts,
    In my recent Implementation Project I realised that there should be provision of capturing and using different default warehouse for Sales,Purchase and Production.
    For example in manufacturing company
    1. Default ware house for Purchase process should be QC ware house for raw material.
    2. Default ware house for Production process should be RM ware house for raw material (components).
    3. Default ware house for Production process should be QC ware house for Finished Good (Parent Item).
    4. Default ware house for Sales process should be FG ware house for Finished Good (Parent Item).
    I hope the idea is clear, I am looking for 3 different set as default warehouse for each item in Item master Inventory tab.
    Internally when a user create a document than default warehouse is to be picked up from this setting !
    Best Regards,
    Samir Gandhi

    Hi !
    I guess the indicator "Exclusive" in the accessess of the access sequence can meet the requirement if I have note misunderstood the issue.
    Press : F1 help on Exclusive Indicator -
    Indicator: Exclusive condition access
    Controls whether the system stops searching for a record after the first successful access for a condition type within an access sequence.
    Thanks & Regards

  • Default insertion for missing elements using DBMS_XMLSave.insertXML

    Hi,
    I am trying to insert default values for some columns, without having those column names as elements in the xml document. Is it possible to do so?? This is the code I am using for now, but it inserts null values for missing elements in the xml document.
    insCtx := DBMS_XMLSave.newContext ('TABLENAME'); -- get the context
    rows := DBMS_XMLSave.insertXML (insCtx, p_xmlDoc); -- insert the doc
    DBMS_XMLSave.closeContext (insCtx); -- close the handle

    Only thing I noticed with dbms_xmlstore.insertXML, was when my xml document had "<?xml version = "1.0" ?>" at the start, it gave an error "LPX-00209: PI names starting with XML are reserved"That's probably due to the XML document not starting exactly with "&lt;", like this :
    SQL> DECLARE
      2
      3    xmldoc   clob := '
      4  <?xml version="1.0"?>
      5        <ROWSET>
      6       <ROW>
      7        <COL1>1</COL1>
      8        <COL2>TEST1</COL2>
      9       </ROW>
    10       <ROW>
    11       <COL1>2</COL1>
    12      </ROW>
    13     </ROWSET>';
    14
    15    ctx      dbms_xmlstore.ctxHandle;
    16    numrows  number;
    17
    18  BEGIN
    19
    20    ctx := dbms_xmlstore.newContext('MY_TABLE');
    21    numrows := dbms_xmlstore.insertXML(ctx, xmldoc);
    22    dbms_xmlstore.closeContext(ctx);
    23
    24  END;
    25  /
    DECLARE
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00209: PI names starting with XML are reserved
    ORA-06512: at "SYS.DBMS_XMLSTORE", line 78
    ORA-06512: at line 21 However, it runs OK if the prolog actually starts the character stream :
    SQL> DECLARE
      2
      3    xmldoc   clob := '<?xml version="1.0"?>
      4        <ROWSET>
      5       <ROW>
      6        <COL1>1</COL1>
      7        <COL2>TEST1</COL2>
      8       </ROW>
      9       <ROW>
    10       <COL1>2</COL1>
    11      </ROW>
    12     </ROWSET>';
    13
    14    ctx      dbms_xmlstore.ctxHandle;
    15    numrows  number;
    16
    17  BEGIN
    18
    19    ctx := dbms_xmlstore.newContext('MY_TABLE');
    20    numrows := dbms_xmlstore.insertXML(ctx, xmldoc);
    21    dbms_xmlstore.closeContext(ctx);
    22
    23  END;
    24  /
    PL/SQL procedure successfully completed.
    With the dbms_xmlsave.inserXML, [...] it wont insert the default column values.Now that's strange...
    I understand there could be differences in the parsing implementation, but in the end both processes must issue an INSERT into the target table using plain SQL, so I really wonder why default values are not applied.
    I'll try to reproduce when I have access to a Java-enabled db.

  • How do I set default colors for XY chart series (lines and legend)

    I am implementing a line chart and need to override the default (caspian style) colors for the line colors and the legend symbols. I'm not displaying the chart symbols themselves as that would make the chart look bad. I've been able to successfully set the default colors for the lines via the CSS below, but cannot find a way to do the same for the series symbols that appear in the chart legend. How do I do this? Thanks.
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    ...Update:
    Figured it out. Need to do the following:
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(R, G, B);
    }Edited by: 998038 on May 16, 2013 4:09 PM

    Here is some css to customize the line and legend colors in a line chart.
    /** file: chart.css
        place in same directory as LineChartWithCustomColors.java */
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(0, 102, 255), white;
    .default-color1.chart-line-symbol {
      -fx-background-color: rgb(0, 255, 102), white;
    }And a test harness to try it:
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.Scene;
    import javafx.scene.chart.*;
    import javafx.scene.control.*;
    import javafx.scene.input.*;
    import javafx.stage.Stage;
    public class LineChartWithCustomColors extends Application {
        @Override public void start(final Stage stage) {
            stage.setTitle("Line Chart Sample");
            //defining the axes
            final NumberAxis xAxis = new NumberAxis();
            xAxis.setLabel("Number of Month");
            final NumberAxis yAxis = new NumberAxis();
            //creating the chart
            final LineChart<Number,Number> lineChart =
                    new LineChart<>(xAxis,yAxis);
            lineChart.setTitle("Stock Monitoring, 2010");
            lineChart.setCreateSymbols(false);
            //defining a series
            XYChart.Series series = new XYChart.Series();
            series.setName("My portfolio");
            //populating the series with data
            series.getData().setAll(
              new XYChart.Data(1, 23),
              new XYChart.Data(2, 14),
              new XYChart.Data(3, 15),
              new XYChart.Data(4, 24),
              new XYChart.Data(5, 34),
              new XYChart.Data(6, 36),
              new XYChart.Data(7, 22),
              new XYChart.Data(8, 45),
              new XYChart.Data(9, 43),
              new XYChart.Data(10, 17),
              new XYChart.Data(11, 29),
              new XYChart.Data(12, 25)
            lineChart.getData().add(series);
            //adding a context menu item to the chart
            final MenuItem resizeItem = new MenuItem("Resize");
            resizeItem.setOnAction(new EventHandler<ActionEvent>() {
              @Override public void handle(ActionEvent event) {
                System.out.println("Resize requested");
            final ContextMenu menu = new ContextMenu(
              resizeItem
            lineChart.setOnMouseClicked(new EventHandler<MouseEvent>() {
              @Override public void handle(MouseEvent event) {
                if (MouseButton.SECONDARY.equals(event.getButton())) {
                  menu.show(stage, event.getScreenX(), event.getScreenY());
            Scene scene =
              new Scene(
                lineChart,800,600
            stage.setScene(
              scene
            stage.show();
            scene.getStylesheets().add(
              getClass().getResource("chart.css").toExternalForm()
        public static void main(String[] args) {
            launch(args);
    }

  • Shopping Cart - Default Settings for items

    Hi all,
    We are on SRM 7.0  SP05 classic scenario with backend ECC 6.0 EHP4.  There is a requirement to retain shopping cart default settings so that user is no need to enter default values on each shopping cart creation.
    We are intent to develop a custom WDA for users to edit their own shopping cart default settings, the values will be saved to user position attributes and extended attributes (including some customized attributes) at PPOMA_BBP.  After that, default settings will be copied from attribute during shopping cart creation, for example:
    Item Basic Data: Product Category <== extended attribute "Product Category" value which is set as default
    Account Assignment: Account Assignment Category <== attribute KNT which is set as default
    Assign Number: Cost Center <== attribute CNT,  Asset <== attribute AN1, WBS Element <== attribute PRO  (plus two custom attributes to hold value of Internal Order and Network)
    Here are the questions:
    (1)  For GL account, we did not config combination of Product Category and Account Assignment Category in SPRO, we will create a custom attribute as mentioned above.  However, where can we insert our coding to copy custom attribute value to default setting during shopping cart creation?   Is class /SAPSRM/CL_PDO_USER_CONTEXT  a candidate?  If yes, which method should be enhanced?
    (2)  For Delivery Address, if we do not use standard address management and maintain value at attribute ADDR_SHIPT, we intent to use similar approach: maintain custom attribute and then populate to default settings.  The same question is where can we insert our coding to copy custom attribute values to default setting during shopping cart creation?
    Thanks.
    Regards,
    Donald

    Hi Lee,
    Please  implement the following SAP notes in SRM 7.0
    There is a product bug in SRM 7.0
    1. 1450367-Default settings for Acct assignment.
    2.1442277 -Default setting for delivery address.
    hope it will solve your problem
    Regards
    G.Ganesh Kumar

  • Modify default value for static parameter field programmatically

    Hi,
    I have my Crystal Reports stored in a BO Enterprise system. I have written a java programm that scans the repository, loads the CR reports one by one into a ReportClientDocument, modifies the data source and then stores the updated report back to repository (it overwrites the existing objects).
    I was even able to modify the default values for the parameters, which are used for scheduling of each report.
    But what I am trying to do know is to overwrite the default value used when invoking the report interactively. This should be the value found under the Default Value field, when the Properties window of the parameter is opened in the CR designer.
    This is what I have tried so far:
    Option 1: First I tried to set the default values using com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getDataDefinition().getParameterFieldController().getField(...).getDefaultValues() . The only thing I have managed to do using this approach is to modify the static LOVs that are associated to static parameters. The actual selected value (shown under Default Value in the Properties window for the given parameter field) remained unchanged, when invoking the report in the InfoView or opening it in the CR designer.
    Option 2: I have used com.crystaldecisions.sdk.plugin.desktop.report.IReport.getReportParameters().get(ik).getDefaultValues() to change the default values. I was able to see my changes in the BO repository (using a query on CI_INFOOBJECTS), still the changes did not really have an impact to what is displayed as default value when invoking the report in the InfoView.
    Any help will be appreciated.
    It would be great to know if someone of you has already implemented successfully such a use-case.
    Regards,
    Stratos
    Edited by: Efstratios Karaivazoglou on Dec 9, 2009 8:52 AM
    Edited by: Efstratios Karaivazoglou on Dec 15, 2009 11:33 PM

    Hi,
    For Crystal Design related queries, close this thread and start the thread in the [SAP Crystal Reports Design forums|http://forums.sdn.sap.com/forum.jspa?forumID=300&start=0]
    - Bhushan

  • Minimum implementation for SMTP-ESMTP clients

    Hi,
    if I want to develop a Mail client I can use SMTP/ESMTP. I read already some of the RFC-Specs, but I cannot find an advice for the minimum implementation for a client - just for servers.
    Is the minimum number of commands the same as for the servers (7 commands for SMTP and 9 commands for ESMTP) ?
    Thanks for any help.
    BR

    Simple config...
    rserver host EXCHANGE001
      ip address 10.2.3.101
      probe PING_EXCHANGE
      inservice
    rserver host EXCHANGE002
      ip address 10.2.3.102
      probe PING_EXCHANGE
    rserver host EXCHANGE003
      ip address 10.2.3.103
      probe PING_EXCHANGE
    rserver host EXCHANGE004
      ip address 10.2.3.104
      probe PING_EXCHANGE
    serverfarm host EXCHANGE
      description EXCHANGE SERVERS
      predictor hash address
      probe PR-EXCHANGE-HTTPS
      rserver EXCHANGE001
        inservice
      rserver EXCHANGE002
      rserver EXCHANGE003
      rserver EXCHANGE004
    class-map match-all EXCHANGE-VIP
      10 match virtual-address 10.2.3.100 tcp any
    sticky ip-netmask 255.255.255.255 address both EXCHANGE-STICKY
      timeout 20
      replicate sticky
      serverfarm EXCHANGE
    policy-map type loadbalance first-match EXCHANGE-VIP
      class class-default
        sticky-serverfarm EXCHANGE-STICKY
    policy-map multi-match EXCHANGE_POL
      class EXCHANGE-VIP
        loadbalance vip inservice
        loadbalance policy EXCHANGE-VIP
        loadbalance vip icmp-reply
    NB: Only rsever EXCHANGE001 is active in the serverfarm.

  • ALV Grid default values for new rows added with Add/Insert buttons

    Hi!
    Help, please,  to find a way how to set default values for new rows added with Add/Insert buttons in
    ALV Grid.

    I have found salution:
    ALV Grid u2013 Insert row function
    Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
    Definition of a class:
    Code:
          CLASS lcl_event_receiver DEFINITION
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
    METHODS:
         handle_data_changed
         FOR EVENT data_changed OF cl_gui_alv_grid
         IMPORTING er_data_changed
                           e_ucomm.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    Implementation of a class:
    Code:
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DATA_CHANGED.
        DATA: dl_ins_row TYPE lvc_s_moce.   " Insert Row
          FIELD-SYMBOLS: <fs> TYPE table.    " Output table
    Loop at the inserted rows table and assign default values
        LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
          ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
          loop at <fs> into ls_outtab.
            ls_outtab-carrid  = 'LH'.
            ls_outtab-connid  = '400'.
            ls_outtab-fldate  = sy-datum.
            MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
          endloop.
        endloop.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    Register the events to trigger DATA_CHANGED event when a new row is created.
    Code:
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.

  • Set default value for product type

    I want to set default value in product type drop  down box
    in component PRD01QR.
    view  SearchHelp.
    I tried with setter and getter , but not working
    they are using query string.

    Hi,
    You can achieve this by redefining the method GET_VH_PRODUCT_TYPE() in IMPL class of searchHelp view. Just copy paste the implementation of this method from super class and now control the internal table as per your requirement like
    comment out the line       APPEND INITIAL LINE TO lt_ddlb. (line no: 47)
    as it will add an empty line at the starting of internal of product type values which you dont want. In you case there should be some default value for product type field, so arrange the inetrnal table values according to you requirement and what ever value you want to default for product type that should be the first value in the drop down without empty line and add an empty line at the end of the internal table.
    No need to call super->GET_VH_PRODUCT_TYPE() in your implementation as you have written all the required code in your implemenation itself.
    Hope this would help you!
    Regards,
    Ajay

Maybe you are looking for