cancel
Showing results for 
Search instead for 
Did you mean: 

Default date in SC, PO documents in SRM

Former Member
0 Kudos

Hi SRM gurus,

If we create a shopping cart or direct PO the "Required on" date is same as the creation date ( today's date)

How can we achieve 5 days after todays date in SRM ?

i-e., this is config setting or shall we have to use BADI.

If so pl. let us know the configuration setting in SRM.

We are working with SRM server 5.0 and component version 4.0

Best reg.,

Sridhar.

srid_sap@yahoo.co.in

Accepted Solutions (1)

Accepted Solutions (1)

yann_bouillut
Active Contributor
0 Kudos

Hi,

This is not configuration.

You have to implement BBP_DOC_CHANGE badi for BUS2121 and BUS2201

Kind regards,

Yann

Former Member
0 Kudos

Thanks Yann.

Reg.,

Sridhar.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sridhar,

I'm also in the process in using the BADI BBP_DOC_CHANGE to achieve System date +5days in our SRM system. Have you been able to achieve this? If you have, please kindly share the steps or methods with me.

Thank you,

Olawale

Former Member
0 Kudos

Hi

<u>As Yann told earlier, you need to go for BBP_DOC_CHANGE_BADI and create two new custom implementations. One for BUS2121 (shopping carts) and one for BUS2201 (Purchase orders).</u>

<u><b>For every line item, you need to add 5 days to the deliverydate field available in the BBP_DOC_CHANGE_BADI at the item level in the table et_item[].

and in the last of the BADI add this line et_item[] = it_item[].</b></u>

Let me know incase you face any issues.

<b>Related links to refer -></b>

Note 752868 - SC desired del.date: Change error message to warning message

Note 768091 - Perf period error when error msg changed to warning msg

Regards

- Atul

Former Member
0 Kudos

Thanks Atul, I was able to add system date + 5 for the 'Required on' field. The problem now is, if the user selects an earlier date or changes the date then Refreshes/Check the shopping cart, the date changes back to system date + 5. How can I make the user be able change the date?

Former Member
0 Kudos

Hi

<u>Firstly defaulting will work fine. The next tim, user changes the date.

Only Compare, when the User has not blanked out the date, i.e., compare the old date value and new date using BBP_PD_SC_GETDETAIL -> Shopping cart old item detail (ET_ITEM[] - date field) and with BADI Parameter (IT_ITEM[] - Date field). Incase the user entered date is not the same, then don't add +5 in BBP_DOC_CHANGE_BADI again, else, if the field is balned out, then add +5 days.</u>

Hope this will help. Do let me know, incase you face any issues.

Regards

- Atul