cancel
Showing results for 
Search instead for 
Did you mean: 

Change the delivery date (Required on) of SC

Former Member
0 Kudos

Hi Experts,

We have a requirement to change the delivery date (required on date) to 10+ days for the scenarios while creating the SC:

1. If he doest input the delivery date then we need change the delivery date to 10+ days.

2. If he input the date, then given date should come as delivery date.

We identified the BADI - BBP_DOC_CHANGE_BADI to do the changes in the delivery date.

But the big question is how to determine whether he has input the date or not?

When he doest input the delivery date, the current date is inputted in the deliver date field of BADI.

Suggest any FM that will determine the delivery date has been inputted or not ?

Regards

Paul

Accepted Solutions (0)

Answers (2)

Answers (2)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

Do you use catalogs to create some of your Shopping Carts ?

If yes, your delivery date should be populated with data coming from catalog according to item selected. So, your delivery date should be always populated for items catalog.

Have a check with method ENRICH_ITEM_DATA from BAdI BBP_CATALOG_TRANSFER to see how is managed delivery date regarding leadtime.

According to what you wrote "When he doest input the delivery date, the current date is inputted in the deliver date field of BADI.", you can check in BAdI BBP_DOC_CHANGE_BADI if DELIV_DATE is empty. If yes, your delivery date will be current date more 10 days.

Regards.

Laurent.

Former Member
0 Kudos

Hi Paul,

Inside the BADI: BBP_DOC_CHANGE_BADI.

Method: BBP_SC_CHANGE.

In the field IT_ITEM-DELIV_DATE you will find the value entered by the user.

If the date in not entered then you can then use the follwoing logic:

1. If he doest input the delivery date then we need change the delivery date to 10+ days.

If the value is entered then :

2. If he input the date, then given date should come as delivery date.

Hope this helps.

Thanks,

Pradeep

Former Member
0 Kudos

Hi Pradeep.

It seems to be your logic is correct but if the requester doesnu2019t input a delivery date the standard code is defaulting the current date. So in this case how do I check whether he has entered the date (if the requestor enters the todayu2019s date).

Plese suggest any other way to handle it.

Regards

Paul

laurent_burtaire
Active Contributor
0 Kudos

Hello,

You wrote "if the requester doesnu2019t input a delivery date the standard code is defaulting the current date".

For me, this behaviour is not standard, so specific ABAP code must be implemented to fill delivery date when empty.

Regards.

Laurent.

Kloud_Nilesh
Participant
0 Kudos

Hi Paul,

yes this is the big question... (if the requestor enters the todayu2019s date). ..vai DOC_CHANGE BADI.

Why don't you use BBP_CHANGE_DEFAULT (method CHANGE_DEFAULT_DELIV_DATE) BADI to initialize delivery date in SC to todays +10 days ..this is only one time initialization. User can change this.

(Note: you can also initialize to = space, user will be forced to enter date... I did same)

Hope so this is useful.

Regrds,

Nilesh.