cancel
Showing results for 
Search instead for 
Did you mean: 

Defaut lead time in SRM Catalog

rajesh_rajendran2
Participant
0 Kudos

Hi,

I would like to know as to what are the options for making the lead time parameter ( from Catalog) set to a default value so that the delivery date ( required on date ) in SRM can be set to the current date + default value.

For eg: if the lead time in the catalog parameter can be set to 1 then the required on date in the shopping cart should be current date + 1.

I think this is possible through the BADI BBP_CATALOG_TRANSFER . Also, it is possible to set the lead time so that the system calculates the next working day. Like if a shopping cart is created on friday the delivery date should be Monday.

Does anyone have the implementation code for realizing this scenario.

Awaiting your replies !

Regards,

Rajesh Rajendran

Accepted Solutions (0)

Answers (1)

Answers (1)

jason_boggans
Active Contributor
0 Kudos

Hi Rajesh,

Just maintain the LEADTIME in the catalog, this is why the OCI parameter exists, if you maintain this at catalog then you will have Current_Date + NEW_ITEM-LEADTIME = Actual Delivery Date in SC.

So, if you maintain LEADTIME in catalog of 7 days, then delivery date in the SC will be current date + 7 days.

Regards,

Jason

rajesh_rajendran2
Participant
0 Kudos

Hi Jason,

Thanks for the reply. I know that the lead time determines the delivery date of the product procured from SRM. However, my question was more technical. In terms of adding a default lead time for all the products which are obtained from the catalog.

We can use the BADI BBP_CATALOG_TRANSFER to change or add to the data that the catalog returns to SAP Enterprise Buyer via the catalog interface. I just wanted to get a sample code of how to code the BADI for setting the lead time parameter for all the line items from catalog to say fixed value 2.

This is in cases where the lead time parameter is sent blank from the vendor.

Regards,

Rajesh

Edited by: Rajesh Rajendran on Mar 25, 2009 8:38 PM

jason_boggans
Active Contributor
0 Kudos

Hi Rajesh,

Just have your Abap Developer code to evaluate all OCI fields and assign a default value to parameter LEADTIME if it is empty. The coding for this should be very straightforward for anyone experienced with Abap language.

Regards,

Jason

rajesh_rajendran2
Participant
0 Kudos

Thanks for the reply. However, my initial requirement is to get a sample code for implementing the scenario in the BADI where the default catalog lead time is set.

Regards,

Rajesh

Former Member
0 Kudos

DATA: wa_enriched_item_data TYPE bbp_oci_enritem,

default_value type I VALUE 5.

LOOP AT enriched_item_data INTO wa_enriched_item_data.

wa_enriched_item_data-leadtime = SY-DATUM + default_value.

MODIFY enriched_item_data FROM wa_enriched_item_data.

ENDLOOP.