on 03-16-2006 12:40 PM
Hello All,
How can we change the date defaulted in the Shopping cart? At present it defaults the system date. Is there a customising setting where in I can default a date 2 days hence?
Thanks in Advance.
Ajith Chandran
Hi Ajith,
you can also do the following:
- change standard code to default delivery date to sy-datum + 2
- the field can be modified manually, even if less than default value
Issue: default delivery date is set in more than one place, depending on the process (items from catalog, templates, copy, freetext...).
To change default delivery date when creating new items from freetext, look at field gs_global-deliv_date, updated in form global_fill of form sc_init of FM BBP_SC_APP_EVENT_DISPATCHER.
For items from templates look at form sc_itm_copy_to_basket of same FM, where delivery date is defaulted to sy-datum (if no lead time) when copying items from favorites.
For catalog items look at form create_sc_item_data of FM BBP_WS_IMPORT_SC_DATA.
Might be other cases...
Rgds
Christophe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Christophe,
Many thanks for you reply. We need to make this change for free text (special requests) only. We are on EBP 3.5. I was not able to trace the FM BBP_SC_APP_EVENT_DISPATCHER.
Is there a nomenclature difference in the older version. Could you please help?
Thanks and best regards,
Ajith Chandran
Well...
provided ABAP locations are for SRM 4.0.
In EBP 3.5 (SRM 2.0), BBP_SC_APP_EVENT_DISPATCHER does not exist as the separation between UI logic and application logic was done with SRM 3.0.
For free text in EBP 3.5, SC item data is initialized in form init_add_item (include LBBP_SCF3N).You just have to change the following line:
gs_new_item-deliv_date = sy-datlo.
Rgds
Christophe
Hi Ajith,
There is no customizing setting for the delivery date.
You can change the default delivery date via BBP_DOC_CHANGE BADI.
However, if you use catalogue items, you can set a number of days in the catalogue so that your SC delivery date is increased by the number of days defined in the catalogue for each item.
You have also the possibility to read through the above badi your R/3 factory calendar to set the correct deliverey date.
Kind regards,
Yann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Yann,
The requirement is that we need to default the date 2 days hence.
If we use BBP_DOC_CHANGE_BADI we can get the effect by giving sys-datum+2.
But take the scenario when the buyer want to get the item on the same day. The badi would still make the date to present date + 2.
I am not able to overcome this issue. Could you help.
Thanks in advence.
Ajith Chandran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.