cancel
Showing results for 
Search instead for 
Did you mean: 

Defaulting Delivery date.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks a ton Chirstophe.

Best regards

Ajith Chandran

Answers (1)

Answers (1)

yann_bouillut
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

yann_bouillut
Active Contributor
0 Kudos

Hi Ajith,

You can add a cuf field.

User who will to recalculate the delivery date with sys-datum+2 will have to flag this cuf field.

You then have to take into account this cuf field in the bbp_doc_change badi.

Kind regards,

Yann