Need appropriate pattern for shopping cart
hallo all,
as i've read in some articles there are common way to represent database entity (a row in the table) by an entyty beans.
but, what is an appropriate way to represent a set of rows ? for example - user's shopping cart.
i don't like the common way - to implement shopping cart as session bean and cart record as entity bean ... coz (imho) it is very slow - requires multiple database requests (ejbLoad calls) while loading cart content ... is there another pattern ?
represent the cart as a session bean and the line items as a dependent object. Create a class class LineItems that implements java.io.Serializable. You avoid the cost of a remote call. As the line items are not available without the Cart bean there is no need for the user to access the line items directly without going through the Cart bean. So the line item class does not need to be a EJB.
Similar Messages
-
Need Backend Software for Shopping Cart
I have been looking into a Flex Store but I am concerned that
I can not find any backend software for managing an oscommerce
store. I have read that Flex is not good for Search Engines or for
SEO optimization. Can anyone advise me if it is possible to have a
working Flex OScommerce site or is it just not a good idea.
Thanks...For the SEO issues, Look at
http://www.onflex.org/ted/2007/08/flex-directory-seo-and-flex.php
and
http://www.riapedia.com/2007/03/28/having_problems_with_flex_and_seo_help_may_be_on_the_wa y
It's on Googles Radar and as RIA's advance the user
experience they will be forced to deal with it. Personally, I think
Ted's solution would work well for most eCommerce sites. As far as
the "Backend" for the Flex Store, while the App is a good start,
there are many features the best carts have that would take quite a
while to build into this one. News, sales, reviews, most viewed
items. Then there is the credit card and Paypal gateways and the
shipping company interfaces. Then there is the administration piece
for managing all the products, tax schemes and all the other
systems features that the user never sees, but have to be managed.
All require a robust backend either written in a solid scripting
language (PHP, .Net, Ruby) or Java EE, with interfaces to the
client.
Not to discourage you, but the manner in which you asked the
question indicates this may be a project beyond your current skills
and experience. However, The Flex Store is an excellent application
to start from. I would recommend tearing it apart and learning a
great deal from it about FLEX before looking into what it will take
on the backend.
If you need some help, private message me as I have a
customized Flex Store I am working on right now, It is for my
Yamaha Dealer, and people will be able to do everything the
application does now (and a little more), except instead of buying
bikes online, they will email their list of choices along with
their contact information to the dealership from what is now the
purchase button. This is something I can do and use XML or a simple
Java backend for the products. It already works with XML, so
adapting it to a Java Data driven backend will take some time, and
I've got years of experience at this!
Good luck! -
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 PMHi 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 -
N-step approval workflow for Shopping Cart-WS14000133
Hi Experts,
We have 5-6 levels of approvals for Shoppoing carts.All the SC needs to be approved by 5-6 managers based on their approval limits.All the approval limits are assigned at the Role level .(We have created Z roles)
Please let me know how and where to define the roles in BADI to activate the N-step approval workflow for Shopping Cart-WS14000133
Thanks,
VenkyTo add to Masa's reply.
This Badi is well documented by the online help and it even comes with example implementations AND it is mentioned in full detail at help.sap.com
Kind regards, Rob Dielemans -
Deadline monitoring for Shopping Cart
Hi Experts,
I am working on SRM 7.0 process controlled workflows.
Activated the deadline monitoring for shopping cart but I am getting the below error:
Work item 000000073752: Object /SAPSRM/CL_WF_EVENT_ADAPTER method TRIGGER_EVENT cannot be execute
Please help to solve this.
Thanks,
SangeetaHello,
To find the cause you will need to debug:
For testing you can call the method
/SAPSRM/CL_WF_EVENT_ADAPTER -> TRIGGER_EVENT
Take the following parameters from the document wfl log:
IV_DOCUMENT_GUID IV_DOCUMENT_GUID
IV_DOCUMENT_TYPE IV_DOCUMENT_TYPE
IV_EVENT IV_EVENT
IV_EVENT_SUB_CATEGORY
IV_WORKITEM_ID
IV_DOCUMENT_ID
Before to start debugging, set a beark point in CL_BBP_MESSAGE_CREATE -> execute
Here you can find why the alert method is not been able to be executed.
Probably you are passing some wrong parameter.. Do you use Badis BBP_OUTPUT_CHANGE_SF or BBP_ALERT.. try to deactivate these Badis and retest.
Thanks,
Melina -
Workflow retrigger for shopping cart
Hi All,
What is the procedure to retrigger workflow manually for shopping cart?and what the precautuions to be taken when retriggering workflow for SC.
Thank you
Regards,
YshuHi,
What is your business scenario, you can trigger the workflow again when you change the shopping cart once it is created.
This can be:
1) When users create a shop, hold and then on a later date they want to change the shop and complete the action.
2) When the shopping cart is created always the employees need to have the change functionality till the approval takes place for that particular shopping cart.
This can be achieved by using the different parameters in the BBP_WFL_SECURITY in the Personalization tab in the SU01 , Personalization Object Key and the authorization level 0,1,2,3,4
Best regards,
Sridhar -
Commitment update for shopping cart
Hi,
SAP SRM only does budget check for shopping carts, but it doesn't post to funds management after the shopping cart's creation and approval. Our client requirement is to update commitment in funds management just after the approval of the shopping cart, just like purchase requisitions of MM does. Does anybody have passed through this problem? How can I solve it?
Thanks in advance,
Cristiano SoaresHi,
I have the same issue in our project here. The client require us to create commitment once the SC is created. I have read your posts, this is what I understand from the posts:
a. During SC creation, using BAdi we can trigger META_ACC_PURCHASE_ORDER_POST to send idoc to create commitment in R/3 (somehow we need to mark the commitment in R/3 that it is coming from a particular Shopping Cart),
b. When PO is created, there will be a link between SC and PO. Using this link, when BBP_PD_COMMITMENT_POST is being called, in addition of creating commitment related to the PO, it should be able to delete the commitment related to the SC (which is being converted into PO).
Is this correct? However I got some quetions:
a. This META_ACC_PURCHASE_ORDER_POST, is this ONLY creating commitment? Wouldn't it create PO as well in the backend?
b. The SC is active in item level. If there are some items being added into the PO, how can it relate to the commitment in the item level for SC?
Please enlight me.
Thanks.
Best regards,
Yosea -
SRM 7.0 Modify POWL for shopping cart - Additional Field PR
Hello,
in standard POWL for Shopping Cart it is possible to filter Carts with "Order No. from ERP".
Now we need also to add a new search field for "Purchase Requisition", that the user has both possibilites to filter for backend follow-up documents.
How could this been done?
Do we need to copy and change the feeder class for this or can is be done via Customizing?
I think the problem is, that in table BBP_PDBEI there is only one column for backend-document number (BE_OBJECT_ID) and next to is there is a column that defines the BUS Type, e.g. order or PR.
Do we need to adjust the feeder class to look in this table for the BE_OBJECT_ID with "BUS2105"?
Thanks for your help!
Regards TrevorHi Trevor.
If you wish to extend the POWL you could use the information in the note 1456308 to perform this extension and what additional extensions need to be added.
Regards,
Jason -
How to use customer extension table for schedule line for shopping cart ?
Dear Experts,
One of our client wants to have schedule lines in shopping cart item. I am thinking of using customer extension table at item level for shopping cart. Could you please help me on how I should proceed with the appending the structures so that the end user can fill the shopping cart schedule line details?
Which fields should I consider in such cases?
Thanks and regards,
RanjanHi.
I guess you use SRM 7.0. Please go to IMG.
SRM -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Create Table Extensions and Supply with Data
Regards,
Masa -
Hi experts
I am in SRM 7.0 and triing to use Process controled workflow, I have done some configurations for shopping cart aproval but no workflow is started and in shopping cart appear as in aproval.
What cold be missing?
Thanks
NilsonHi Guys
Urgent
In Sourcing cockpit field having morethan 1000 line item Shopping cart. Could anyone help me to get the sourcing cockpit shopping cart entire report in a single report.
We use to download the report morethan on hour on a daily basis.If anyone help me out for this really appriciated. -
Process Controlled WF for Shopping Cart
Hi,
We have implemented process controlled workflow for shopping cart approval.
1. Created a bespoke schema for the approval process
2. Defined 5 process levels in the schema
3. changed the BRF event at the schema evaluation level. It now
contains a constant with the name of new schema create in step 1.
4. Decision set used is item based approval for partial documents (Type 4)
4. The first process level is get the technical approval from bespoke
table based on material group. For that we have first created a
Responsibility Resolver Name - ZTECHNICAL_APPROVER.
We have implemented the BADI - /SAPSRM/BD_WF_RESP_RESOLVER. Assigned
the filter as BUS2121 and ZTECHNICAL_APPROVER.
5. Now we have placed the external debugger in BADi. when we create
the shopping cart the flow doesn't stop at the break point. The item
reaches to the last step of Automatic approval (Rejected).
6. We think that schema is getting evaluated, however the process
level is not getting called.
7. Before we created schema, all the carts wer getting "Approved" by
automatic step. In our schema the automatic step is "Rejected", hence
the carts are getting rejected.
Could you please let me know what could be reason for BADI
implementation not being called or is there any config step which we
are missing?Hi,
I think your process level evaluation id is not true, that is the reason system skips the process level.. Can you check your evaluation event-expression code. What do you see in SLG1? For testing purpose change the evaluation id to 0EV000 and check. Make Sure you debug through the user(requester) that you are creating the SC. Please test and let me know...
Saravanan -
Wrong approver for shopping cart
Hi Friends,
I've found something very strange in my SRM system for Shopping cart approveal process.
One of my SC is waiting for approaval by a approver who is assigned to different plant and he has got nothing to do with this SC.
The SC's basic data contains the responsibility of some other LPR group for which approver is different and he is the actual approver of this SC.
Can you guys provide some link where i can find documents related to approval process in detail and also the organisation structure material as i am new to SRM..? after providing the solution for above querry...
Thanks in advance
ssHi Volkoale,
I am also facing the same issue. If you have resolved it kindly post your approach as it will be helpful to the community.
In my case, there is one cutomized table that contains list of approvers, but I am yet to debug and find the source of data for this table. Your reply will be rewarded.
Cheers,
Kris -
New document type for shopping cart /PO
Hi Gurus,
I have created a new transaction type ZSHC for Shopping carts in SRM. I have given it a new number range.
while creating a shopping cart , how do i ensure that my shopping carts get created with this transaction type?
is there any attribute which controls this ?
Regards,
MangeshThanks Shrini for your response.
BADI "BBP_CREATE_BE_PO_NEW" does not exist in SRM 4.0. The corresponds BADI in SRM 4.0 is "BBP_CREATE_PO_BACK".
The documentation of this BADI says that it can be used to change all data TRANSFERRED TO THE BACKEND SYSTEM to create a purchase order.
I would want the document type to be selected when the PO is created in SRM and not when SRM transfers the PO to the backend. Because in that case I fear that SRM can have one doucment type and R/3 would end up having different document type for same PO.
I will activate the BADI and keep the thread posted.
Thanks
Venkatesh -
Error during determn of backend follow-on doc. for shopping cart
I am using Classic Scenario in SRM 4.0 and R/3 ECC5.
When I am making PO in SOCO against approved shopping cart I am facing following error and PO is not getting created.
"Error during determn of backend follow-on doc. for shopping cart XXXXXXXXXX"
I have Checked up following :
1. Product Cat defined in backend and in Org plan attribute
2. Object for Prod Cat Vs. PGR defined in SPRO
3. Doc type in R/3 attribute defiend in BSA attribute of Org Plan.
Still problem is coming.
Any clue form some one.
SanjayHi Sanjay/Vadim,
We are also having a simialr issue..
for SRM server 500 SAPKIBKS08...
R/3 4.7
"But this issue comes up only in the Test system and works fine with the Dev sys.." Double checked all the config steps and looks alike..
We are using the classic scenario RFx process to create a backend PO from the bidding engine after the bid is accepted..
it alwayz throws up the error SC/ Local Error..
: Error during determn of backend follow-on doc. for shopping cart 0010000103 / 0000000001....
we just started debugging from the web by breaking it at META_BAPI_DISPATCH and still looking into it..
but in the mean while just want to know if this is more a config issue or and RFC connection issue..
could you forward me any OSS notes if any regarding this issue..
thanks in advance..
Regards
Manoj -
Check status for Shopping Cart to include F-53 postings
Dear SRM GURUS
we are following a classic scenarios and SRM version 4.0 where in we create a shopping cart in SRM and a purchase Req is created in backend and based on that we create a Purchase Order and do a Goods receipts and Invoice Booking in MIRO in R3.
When we check the status of shopping cart we are able to view all in SRM check status for shopping cart.
Now my requiremnt is that when after MIRO in R/3 we run F-53 for payement to vendor.
Whether this can be displayed in the shopping cart check status that as to when actual payement was made to the vendor through F-53.
regards,
Nimish ShethF-53 transaction(R/3) status in SRM
Maybe you are looking for
-
Intel imac 2009. Grey screen with question mark folder. Changed harddrives 3 times now. Tired 5 keyboards on all Usb ports and a hub and keyboard wont boot to startup or safemode of anything but hub gets power. disc drive wont eject or accept a disc
-
I noticed last weekend after installing VS 2013.4 update that the Winforms toolbox, while showing all items, did not display the icons beside the items for any custom/third party Winform controls. The only icon showing in the toolboxes are the Pointe
-
Volume not working, it just stopped on my iPhone 4S
My volume just stopped working. Text tones, music, videos do not play. When I attempt to adjust the volume w the side buttons, there is not a bar that increases or decreases on my display. But The ringer works. I've reset my phone thru settings
-
Relative date as selection option
Hi Experts, could any of You pls help me to define a relative date as selection options? I have a program about production order selection with a start date as selection option (AKFO-GSTRP). I would like to run this program daily as a background job
-
I am using illustrator CC there are not showing scale size pointer in any object?
I am using illustrator CC there are not showing scale size pointer in any object? Anyone tell me why it was does it? And how i can come again on that position?