on 05-28-2009 1:22 PM
Hai SRM gurus,
My requirement is to make the delivery date to null value i.e user has to enter the date manually. i wrote a code in BBP_DOC_CHANGE_BADI. so that when i click 'shop' and start creating shopping cart in 1st step it displays the default current date in delivery date. when i click add to shopping cart and goto 2 nd step the date is set to null value now. Now when i enter the date and click continue to 3rd step again the date is set to null value. This BADI is triggering often whatever action i perform in Shopping cart. am i coding in the write badi? or do u have any solution for this?
Hi Chinna,
Your requirement can be met in another (easier) way:
1. Let the system put the current date in the Shopping Cart - this is standard behaviour.
2. The user has to complete the Shopping Cart, including all the delivery dates.
3. Code a custom check via BBP_DOC_CHECK_BADI - if the delivery date for an item is the current date (it means the user forgot to maintain it), issue an error message: "Item n: Please specify the correct delivery date."
This way, you don't have to do anything in BBP_DOC_CHANGE_BADI, which is a good thing if you ask me.
Cheers,
Serguei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.