on 06-26-2012 3:38 PM
Hello,
I am using SRM 7.0. I need to change the default delivery date (of today) that appears when adding an item with free description to a SC. I thought that the BADI BBP_CHANGE_DEFAULT, method CHANGE_DEFAULT_DELIV_DATE could help. Has anyone been able to use this BADI. I tried debugging, and it appears that it is not called. I would appreciate your suggestions/help on changing this default delivery date.
Many Thanks!
Hi Champa,
To change the delivery date from Today's to any date in future we have used BBP_DOC_CHANGE_BADI with Interface BBP_SC_CHANGE.
Hope this helps.
Thank you
Ritesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ritesh,
Thank you for your help as always. I will try to use your suggestion as a workaround. Client wants to see the default date changed when the pop-up window appears.
By the way,m the default date is assigned in method /SAPSRM/IF_PDO_US_CONTEXT_CONS~GET_ITEM_DEFAULTS in class /SAPSRM/CL_PDO_USER_CONTEXT, line 25.
Thanks again,
Champa
Hi Champa,
You mean whenever user click on Free Description you would like to see the default date changed? I doubt that through DOC_CHANGE_BADI that will be feasible.
What we have did as work-around is that when user Add item as Free text and click "Add Item Overview" that time DOC_CHANGE_BADI triggers and change the date in details section, Check below two screen shot for better understanding.
Hope this helps.
Thank you
Ritesh
Hello Champa,
for this, use WD_BADI_DOMODIFYVIEW BAdI definition from WD_BADI enhancement spot.
Use /SAPSRM/WDC_DODC_SC_I_DES component name or V_SC_DOFC_I_DESCRIBE view name as filter for your BAdI implementation.
Did not try for this view, but code could be:
DATA: lr_field TYPE REF TO cl_wd_input_field
IF view->name EQ 'V_SC_DOFC_I_DESCRIBE'
lr_field ?= view->get_element( 'VPER_START' ).
IF lr_field IS BOUND.
CALL METHOD lr_field->set_value
EXPORTING
value = 'Date you want'
ENDIF.
ENDIF.
Regards.
Laurent.
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.