cancel
Showing results for 
Search instead for 
Did you mean: 

Check and changes to the shopping cart via BADI's

Former Member
0 Kudos

Dear All

The customer I'm currently working for have a request to make some changes to the standard behaviour in SRM when it comes to the required on date and approval. We are on SRM Server 5.5.

1.

Logic: For text items: If required on date = todays date a warning should be given.

Question: Best to use BBP_DOC_CHECK_BADI - or BBP_DOC_CHANGE_BADI?

2.

Logic: During approval for both text items and catalogue items: If required on date is in the past or < todays date + leadtime (catalogue) required on date should be changed.

Now - the above is both to be triqqered from the inbox (approval tab) and from the detail view.

To change the dates from the detail view I would assume I should use the BBP_DOC_CHANGE_BADI - but can I use any of the BADI's stated above from the inbox and get the requested change? I'm not sure if any of the BADI's are beeing called from the inbox (approval tab).

Thanks for your great help in advance

;o)

Maria

View Entire Topic
Former Member
0 Kudos

Hi,

Pls see these related threads for more pointers:

BR,

Disha.

Former Member
0 Kudos

Dear Disha

Thanks for your threads. I'm considering making the error into a warning when approving.

It does however have some business consequenses that we need to clarify (ordering something in the past...) - but could be a solution.

;o)

Former Member
0 Kudos

Hi. You will not order things in the past, the date will move itself foward when the PO is created.

Regards,

Dave.

Former Member
0 Kudos

Hi Dave (and all other experts)

As I have not changed the error to a warning yet in SRM, I'm not able to prove if the date will move to todays date during the RFC creation of the PO - but it does not happen in the backend system (PO can be created with delivery date in the past - just created one manually).

Anyway - do any of you know, if it's possible to control when the message is a warning, and when it is an error? I think the business might want to differientiate between a catalogue and a text item.

Looking at the table BBPV_PDMSG_CUS I suspect it will be reflected in all items, unless I can differientiate in the CHECK_BADI.

Thanks for your help once again.

;o)

Maria

Former Member
0 Kudos

Hi. You can only change the message to warning or error globally using config.

If you want to customise it based on other parameters the way to do it is to turn it off in config, then use the BBP_DOC_CHECK_BADI to issue it as a warning or error based on whatever criterea you want.

Regards,

Dave.