I need  a simple example of shopping cart(newbie)

Has any one come across a simple example of shopping cart and the process
behind it i.e. from jsp to ejb. So far I have looked at the buybeans example
and it still is not clear the approach that was used.
I would be greatful for any assistance thank you
Kenneth A-Adjei

Take a look at:
http://java.sun.com/docs/books/tutorial/servlets/overview/example.html
"Ken Adjei" <[email protected]> wrote in message
news:3960a901$[email protected]..
Has any one come across a simple example of shopping cart and the process
behind it i.e. from jsp to ejb. So far I have looked at the buybeansexample
and it still is not clear the approach that was used.
I would be greatful for any assistance thank you
Kenneth A-Adjei

Similar Messages

  • I need some simple examples to start with for Oracle ESB

    Hi All,
    Please share some simple examples to startwith for Oracle ESB.
    I need to understand, what are the files are created, once created an ESB project.
    What is the use of the files how to edit them with out using JDeveloper.
    Iam trying to create a simple example.
    I would like to create a file which has only "HELLO" in that file, simple text file inside a folder "INPUT" in my c:\ drive.
    I wanted to create a ESB service which picks up the file and add a string to it like "HELLO" + "ESB" and drop this file into "OUTPUT" folder in c:\ drive.
    How do i do that. I tried to do it when i deploy the integration server connection is gettting hit badly. I dont see that connection any more and i dont see that connection in my JDeveloper.
    I dont want to start with existing code.
    Please help
    Regards,
    Vijay.B
    Message was edited by:
    Vijay.B
    Message was edited by:
    Vijay.B

    Hi,
    If you want to do it from scratch you can basically do the following:
    Make sure you have created an application server and integration server connection in JDeveloper.
    1) Create a new JDeveloper project of type ESB project.
    2) Possibly add a ESB System/Group (open the esb file and click "Create System/Group") to group ESB projects.
    3) Create an XML schema describing your input XML file. Probably one element of type xsd:string.
    4) Create an example XML file which is well-formed and valid according to the XSD from step 3.
    5) Create a new File adapter (inbound/read). A routing service is automatically created.
    6) Create a new File adapter (outbound/write).
    7) Create a routing rule in the routing service in which you invoke the write method of the outbound file adapter. Possibly add a transformation using the XSL mapper.
    8) Deploy the ESB project to the server.
    9) Drop your XML file (from step 4) in the directory in which the inbound file adapter is polling.
    10) If it is ok, the file should be picked up, transformed and dropped in the outbound directory. A new ESB instance should be visible in the ESB console.
    See what files are generated on the filesystem in each of the above steps.
    Regards, Ronald

  • Need help in designing a shopping cart mall

    Hi guys,
    Can any one help out me in designing the shopping cart mall in servlets, jsp and oracle database. If so reply to me at this id "[email protected]"
    Thanks and Regards
    Madhu Kiran
    9866764834

    MadhuKiran wrote:
    Hi guys,
    Can any one help out me in designing the shopping cart mall in servlets, jsp and oracle database. Nope. And nobody wants to. That's because a few million have already been designed and you're likely not going to improve upon existing shopping cart technology.
    If so reply to me at this id "[email protected]"
    I hope you're prepared for lots and lots of spam!
    Thanks and Regards
    Madhu Kiran
    9866764834Is that your phone number? OMG did you really just post your phone number?! If so, I think that's a first.

  • Need to query workflow for Shopping Carts for a report

    Hello,
    I am not familar enough with SAP's workflow to know if there are tables or function modules that I can use.  I am requested to develop a report to allow selection of a user's id and find all shopping carts where that person is in the workflow.  Can this be done without re-inventing the world?
    Thank you in advance and points will be assigned accordingly.
    Regards, Dean.

    Hi
    <u>Which SRM version are you using ? What's the detailed business requirement ?</u>
    Please refer to existing transactions on SRM workflow
    like starting with SWW*
    SWWL
    SWWI
    Also check the standard tables used in these transactions like , SWWIHEAD (for all workflow inbox items of any user)...
    Do let me know.
    Regards
    - Atul

  • I need an simple example on java-Oracle8i entreprise

    Hi,
    Could anyone give me an simple example of a Java method which will be loaded into Oracle.
    Let say, the method will read the email address based on employee_ID from a table called Employee. Thank you very much for all your help.
    Hellenie
    PS: I would like to see java code and to see how it could call a table without having to deal with connection object ,statement,etc...
    null

    This is the example from the Oracle's 8.1.6 Documentation - Java Stored pocedures Developer's guide -
    step 1 :
    import java.sql.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    public class RowCounter {
    public static int rowCount (String tabName) throws SQLException {
    Connection conn = new OracleDriver().defaultConnection();
    // here is the connection made
    String sql = "SELECT COUNT(*) FROM " + tabName;
    int rows = 0;
    try {
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(sql);
    // same old createStatement, executeQuery ...
    while (rset.next()) {rows = rset.getInt(1);}
    rset.close();
    stmt.close();
    } catch (SQLException e) {System.err.println(e.getMessage());}
    return rows;
    Step 2:
    use loadjava command line utility and
    specify the class name, username/password to
    load the code into the database.
    step 3:
    On sql prompt, the class and method name are
    mapped to stored procedure
    CREATE FUNCTION row_count (tab_name VARCHAR2) RETURN NUMBER
    AS LANGUAGE JAVA
    NAME 'RowCounter.rowCount(java.lang.String) return int';
    You can invoke the procedure using CALL method from SQL prompt.
    Cheers,
    Adithya
    null

  • Needs BAPI name to create shopping cart in background-SRM 5.0

    SRM Experts,
    We have a scenario where users has to enter more than 100 line items in the shopping carts. So we are thinking about following solution...
    User will enter all required information in a spread sheet and save it in a txt file.
    We will develop a custom program to upload the txt file and create a Shopping cart in SRM 5.0. We are using classic scenario, so PR/PO are created in the backend ECC 6.0 system. Once shopping cart is created it should go to normal SRM workflow for approval. Which BAPI I have to use to create shopping carts in the background in SRM 5.0 and the shopping cart should go to normal workflow process for approval?
    Thanks in advance!
    MP

    Hi,
    See the solution in the foll thread;
    SC Uploading Program to create SC automatically.
    Also you cna try using the FM "BBP_PD_SC_CREATE_EXTERNAL".
    BR,
    Disha.
    Do reward points for useful answers.

  • Document Level Scripts .. Need a simple example!

    I've been trying to add a function to a form just to avoid writing the same script over & over again & am not succeeding :|
    I'm trying to add even only an app.alert function..
    I add a script object under a subform 'P1' called 'hello'..
    in hello, i write
    function hello1
    app.alert("hello")
    you can see the hierarchy here:
    http://i29.photobucket.com/albums/c271/mashdown45/screen.jpg
    in order to call the hello1 function from a button, on the click event, i add the following:
    form1.P1.variables.hello.hello1();
    but am getting an error
    TypeError: form1.P1.variables.hello123 has no properties
    1:XFA:form1[0].P1[0].Button1[0]:click
    (you all must be thinking: 'obviously'.. but i cannot figure it out!)
    Thank you in advance..

    Hi Chris. I created a variable named hello in the hierarchy and typed in:
    function hello1()
    app.alert("hello")
    Then in the click event of the button I put:
    form1.P1.variables.hello.hello1();
    I think all you needed were the "()" after the function name.

  • Need a simple example program code to use SF_EXAMPLE_01

    Hi all,
    I have just try to learn smartforms. As i have SAP NW4 for learning.
    I found SF_EXAMPLE_01 in the system.
    Can any body help me out how to use this example in abap program code?
    Thanks.
    rob

    Smart Forms, try this steps.. it will teach you how to create smart form and how to use it.
    1) Tcode --> SmartForms
    2) Form name --> Z_SF_TEST Create
    3) Under Global settings
    a) Form Interface  
        Table Tab
       ITAB LIKE EKPO
    b) GLOBAL Definitions
    WA_NETPR LIKE EKPO-NETPR
    In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
    For that we have to create an extra variable in global definitions
    Ex: netpr FIELD of EKPO
    CREATE program lines and specify WA_NETWR = itab-netpr.
    4) RT CLick on main Window
       CREATE --> TABLE
      Click Table painter
    DEFAULT %LTYPE will be Created
    a) If you want more like Header footer etc add by rt click on %LTYPE1
    Table (Tab)
    %LTYPE  Radio(SELECT) 5 CM 5 CM 6 CM
    CLICK on DATA (Tab)
    INTERNAL TABLE ITAB LIKE ITAB
    5)RT click on table control and create --> program lines
    General attribute (Tab)
    INPUT PARAMETER               OUTPUT PARAMETER
    itab                               WA_NETPR
    Code Area
    WA_NETWR = ITAB-NETPR.
    6) RT CLcick on table ctl and create 3 text to display the fields
    a) % text1 +button(insert field)
       FIELD name &itab-ebeln&
    Output options (tab)
    Check New line   LINETYPE   %Ltype1
    check new cell
    b) % text2
       & itab-ebelp&
    output options
    check new cell
    c) % text2
       & wa_netpr&
    output options
    check new cell
    Report ac
    Tables ekpo.
    Data: itab1 like ekpo occurs 0 with header line.
    select * into table itab1 from ekpo.
    Call function module   "to know function module name goto smartform and execute the smart form name it will give you the function module name.
    If your question is answered, close the thread and reward all useful answers...
    Regards,
    Sairam

  • Shopping Cart Screen needs some minor change!

    Hello,
    1. Is there any way that I can increase the size of input field "Notes for approval" in the shopping cart screen ??,
    2. Also, some custom text needs be embedded in the shopping cart for example "please scroll down" needs to be displayed above the field "Notes for approval"
    Thanks

    Hi,
    1.
    See the foll related threads for solution/pointers:
    Re: Changing long text box "Internal Note" look and size
    Changing properties of long text box
    2
    To find the SC ITS service and the correspondig template for the SC screen,right-click in IE to view the template source code, and find the service/template.Just right click on the ITS screen ,say view source and locate the corresponding ITS template and ITS service for your SC screen.
    Then go in SE80 and in the relevant template ,locate the code for the  "INTERNAL NOTES" text field.There you can modify the code to add the custom text above the text field.
    BR,
    Disha.
    Do reward points for  useful  answers.

  • One Step Workflow Activation for Shopping cart in SRM 7.0

    Dear Experts,
    On working to EXtended Classic Scenario, I need to configure one step approval for shopping cart in SRM 7.0.
    Currently it is providing me Auto Approval  by default and based on it PO is being created. I need one-level manager approval  shopping cart.
    I am working in Demo System of Extended Classic Scenario, I need only one step approval SC without any condition.
    Kindly tell me the configuration steps in SRM and please tell me one more thing is there  any need of  BADI or other coding for one-step approval?
    Thanks in Advance,
    Regards
    Pawan Keshwani
    Edited by: pawankeshwani on May 25, 2011 6:22 PM

    Hi Ashutosh,
    Thanks for quick reply.
    As per your comment when i am tring to activate /SAPSRM/C_SC_600_001_SP04  by t-code SCPR20, But It shows me a information pop up Maintain the client role and then Activation is Cancelled.
    Kindly tell me what i am missing or any other prerequisite step to do for this BC Set Activation.
    Thanks
    Pawan Keshwani

  • Simple example of chat

    I am needing a simple example of chat made with spry…
    using an archive xml I am not obtaining to bring up to date the
    messages!

    You can do it with a $1000 dollar server, and much much much more, just not Adobe's $1000 dollar "server".
    I would have to say that I have yet to come across even one client that wasn't completely pissed off when they bought the streaming version and realized how little it does. I can't even imagine how many support calls have gone in to Adobe for either a full refund or an upgrade to a now extremely disgruntled customer. It's a shame, gives FMS and Adobe a bit of a bad name despite the amazing product FMIS is.

  • Shopping cart source of supply

    Hi experts,
    We are implementing SRM 7.0 in Extended Classic Scenario (SAPKIBKV06).
    I need an expert advice in shopping cart SOS assignment. We have free text Central Contract in our scenario. Our requirement is that when users create free text shopping cart in SRM, these central contracts should appear as source of supply (in shopping cart). I am able to get the source of supply in shopping cart for Classic Scenario. But this does not work in Extended Classic.
    My question is that is this functionality available only in Classic?
    Thanks
    Regards,
    SKN

    Note 1393854 - "Block Local Sourcing" field and lable separated in contract
    Note 1403375 - Block local sourcing flag is cleared
    IS IT PCTR OR CCTR contract?
    I GET BACK TO YOU SHORTLY.
    When you create a central contract, you can specify that it is distributed to one or more SAP ERP back-end systems. On item level, you can enter release-authorized purchasing organizations by selecting the Assign Distribution pushbutton. You then enter Release-Authorized Purchasing Organizations (back-end systems) that you require, along with other data such as Location and Target Value for each back-end system.
    Assigning distribution in this way can be particularly useful if you have many items as it simplifies the process.
    By default, every item in a central contract is available as source of supply locally. If you do not want the items to be available locally, set the Block Local Sourcing indicator on the General Data tab page.
    Header Level
    The header level of a contract provides you with an overview of distribution.
    Select Calculate to display an overview of the Target Values for each release-authorized purchasing organization. You only need to do this when creating the contract.
    Note
    The central contract is created in each specified release-authorized purchasing organization with a different number. The contract numbers (SAP SRM contract and SAP ERP contracts) are displayed on the Tracking tab page. When you subsequently search for contracts, the system displays both the SAP SRM contract number and the number under which it is known in the respective SAP ERP systems.
    End of the note.
    Distribution Technology
    Central contracts are distributed to SAP ERP back-ends on Enhancement Package 4 and higher using SAP's service-oriented architecture (SOA).
    For all other releases, distribution is carried out using iDocs
    mUTHU

  • Multiple locations in shopping cart

    Dear All,
    I need some additional feature in shopping cart and EBP PO which is available in R/3. But not sure whether it is possible.
    While creating shopping cart once we select a company code, in the location field it is giving only the plants assigned to that company code.
    Is it possible to display all the plants (assigned to other company codes) in that location field?
    In backend PR or Po we can select other plants belongs to other company codes.
    We are using SRM 4.0
    Please help.
    Thanks
    SS
    Edited by: SRM Stranger on Mar 20, 2009 10:12 PM

    I think,it is possible if you are ready to do some development.
    There is a BADI: BBP_F4_READ_ON_EXIT
    Method : GET_GRCPLANT
    Please see documentation of this BADI .
    You have to write your own logic to bring what Location/Plant is related with which company code and it will display data based on that.
    You solution need to be prototyped with help of some ABAP person and I feel that this BADI can help you.
    Regards,Nishant

  • How to pass Shopping cart currency to  PO  SRM 7.0

    Hi ,
    How to pass Shopping cart currency to Po(insted of vendor master currency). Please help if there is a BADI or work around for solving the issue.
    Thanks & Regards,
    Sai

    Hi Ricardo,
    We found the BADI name from the note which you have provided.But unfortunately we are not able to find the spot where to write the code.
    for example
    After shopping cart is approved (final level release) the po is being created ,So we want to find the code which creates a po in srm.So can you please help how to move on in this case.
    Thanks & Regards,
    Padmasai

  • How to delete approved shopping carts at header level in SRM 5 ?

    Hi All
    We are using SRM 5 (Classic Scenario) and we have a requirement in which we need to delete the approved shopping carts at header level. Here we are referring the case where SC lies in approved state in SRM but no PO generated in back end.
    We assume that if PO has been created for SC then shopping cart can not be deleted at all.
    I have seen advices like deleting approved shopping carts at item level but this would not suffice. As well we have seen that if we delete the SC at item level still SC shows complete value in header.
    Please advise on this.
    Regards
    Pranay Gupta
    +919711120111

    Hello,
    As far as I know, cart can be deleted at header level when its status is held.
    You can try to archive your carts, since item can be deleted.
    Check the archiving criteria here:
    http://help.sap.com/saphelp_srm50/helpdata/en/3c/f8f03bb8e88109e10000000a11402f/frameset.htm
    And shopping cart archiving procedure here:
    http://wiki.sdn.sap.com/wiki/display/SRM/ShoppingCartArchiving
    Regards,
    Ricardo

Maybe you are looking for

  • Derivation of Business Partner as Customer

    Hi, I am an abap developer and I have made changes to a smartform wherein I need to get the values of business partner from table BUT000. I used the select statement as below: Select SINGLE * from BUT000 into WA_FS_BUT000   where partner = v_partner.

  • A new display was put on my macbook pro.  Display is too small to read

    My 2011 Macbook Pro was just serviced for having intermittent pink lines in the display.  They put a new screen clamshell on it.  The new display has the text so incredibly small I can't even read it with my reading glasses on.  The menu bars are sma

  • Error in Extended syntax check- Select Query

    Hi all, Iam getting this following error in Extended syntax check " Large table PA0002: No field of a table index in WHERE condition" Code :SELECT SINGLE PERNR INTO (G_PERNR) FROM PA0002 WHERE ZZLEGACY_PAYROLL = I_FILETAB-PRNO                        

  • Defining plant as a vendor

    All SAP Gurus, How we can define the one plant as a vendor to another plant, both are under same company code? Regards

  • Transparently replace an external mail server?

    Is it possible to somehow configure the mail server to automatically connect to another server and download messages from there? We have a corporate mail server that has severe mailbox size restrictions, and it is impossible to receive mails directly