on 04-14-2010 12:04 PM
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 ...
I am curious to know how this was resolved.
can you please update the Final solution here, after the brainstorming discussions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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....
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.
it must be current system dateSORRY I DISTURBED YOUR THREADWITHOUT ANSWERING.
MUTHU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.