cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery date in SRM 7.0

Former Member
0 Kudos

Hello Gurus,

Any idea which Webdynpro component or code is being trigerred which makes the current date as the default delivery date in SRM 7.0?

Thanks ...

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I am curious to know how this was resolved.

can you please update the Final solution here, after the brainstorming discussions.

Former Member
0 Kudos

Any idea which Webdynpro component or code is being trigerred which makes the current date as the default delivery date in SRM 7.0?

On the webdynpro screen, right click on the UI element of your interest and select "more field help". This should give you a detailed technical look on the screen, including webdynpro component, the name of the view, etc.

former_member183819
Active Contributor
0 Kudos

Hi Jay

why do you recomend screen changes ?

he wanted to massage the delivery date other than system proposed date.

muthu

Former Member
0 Kudos

You are right about a clean solution with BADI implementation. I was just trying to answer his initial question.

former_member183819
Active Contributor
0 Kudos

sorry Jay. me too some times i give hasty answers.

you are too good on both sides TECH and FUNC side .

muthu

Former Member
0 Kudos

Thanks to both Gurus.....Muthu & Jay ...

My requirement is - if user leave the delivery date blank while creating SC, then it shud be defaulted as

system date + n days .

@Jay - I checked the Webdynpro component but couldn't find where the delivery date is defaulted to system date.

@Muthu - Will try to implement the Badi & let u know

Former Member
0 Kudos

The defaulting didn't happen in the UI layer. It's in the business logic layer.

Class /SAPSRM/CL_PDO_BO_SC

Method /SAPSRM/IF_PDO_BO_SC~GET_ITEM_DEFAULTS

But as suggested, you could use the BBP_DOC_CHANGE_BADI to overwrite the default. Just be careful of the condition. You probably don't want to overwrite user's input.

former_member183819
Active Contributor
0 Kudos

one more think you must consider ..here

if you use source of supply as contract , the PO data will pick up from contract delivery date. all your N+ X calcu;lations will go wrong.

Contract is a king here.it over rides all delivery dates.

Muthu

Former Member
0 Kudos

Hi Jay..

Thanks for providing the correct class & method, but still facing some issues like

Since my requirement is that when user click on Create Shopping cart in SRM 7.0 , default delivery date should not be auto-populated as system date(which is standard in SRM 7.0 functionality).

I am unable to understand when the said method 'get item defaults' being instantiated or trigerred?

Moreover , if we implement the DOC Change BADI then the problem is - BADI does not trigger before the appearance of pop up window of describe requirement SC .

Any inputs from ur side....

Former Member
0 Kudos

I am just enlightened by another post today. To resolve your defaulting delivery date for SC item, you should implement the BADI BBP_CHANGE_DEFAULT, method change_default_deliv_date. I believe this BADI is intended to default the delivery date based on customized requriements.

Former Member
0 Kudos

Hey Jay...

Please try to answer since " item defaults" method is much useful for my requirements

I am unable to understand when the said method 'get item defaults' being instantiated or trigerred?

Former Member
0 Kudos

I had a quick search in the codes. I think you might be on to something. I don't think this method GET_ITEM_DEFAULTS for class /SAPSRM/CL_PDO_BO_SC is used in defaulting the values for adding items. Instead the screen uses directly the user context /SAPSRM/IF_PDO_US_CONTEXT_CONS~GET_ITEM_DEFAULTS for the defaults where it skips the invokation of BBP_CHANGE_DEFAULT BADI call. I think this is an oversight from SAP. You should create an OSS message for this. But first, you should implement the BADI BBP_CHANGE_DEFAULT BADI, which I think wouldn't work, because of the reason above.

If you do a "where-use" for the method GET_ITEM_DEFAULTS, you should be able to find out where it is used.

former_member183819
Active Contributor
0 Kudos

it must be current system dateSORRY I DISTURBED YOUR THREADWITHOUT ANSWERING.

MUTHU

Former Member
0 Kudos

Yes Muthu, It is current system date.

If i want to make default date = current date +n days , any idea how to achieve it ?

Thanks

former_member183819
Active Contributor
0 Kudos

yer PR it is possible see our richardo piece of code o doc change badi

muthu

Former Member
0 Kudos

Thanks Muthu but my requirement is for SRM 7.0, Do u mean Change BADI implementation would serve the purpose in 7.0 as well?

former_member183819
Active Contributor
0 Kudos

yes. without BADI no enhancement possible.

good luck.

Muthu