on 09-11-2009 4:21 AM
hi,dear
i got some trouble when i was creating a shopping cart.
i want to change the default delivery day when i reference an old template.
pls see the pictures and take the details.
it seems that this forum dont support the [img][/img],so pls clike the link to open the picture.
if you cant see the picture ,pls tell me,thank you
step1:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119338649_0.jpg
step2:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119432170_0.jpg
step3:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119557507_0.jpg
step4:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111120079773_0.jpg
Edited by: ming yu on Sep 11, 2009 5:22 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
there are two ways to create a shopping cart.
one of them is to use 'Describe Requirement',the other is to use 'old purchase orders and templates'.
both these two ways have a delivery data,but the way set the defalut delivery data is different.
i have tried that in change BADI~bbp_sc_change ,i can change the default delivery data by using 'old purchase orders and templates'.
but how can i change the default delivery data by using 'Describe Requirement'?
Hi,
You have to implement that BAdi in order to write the code inside. Once you will implement it you will get the default date as you have written in the code.
for the steps to implement the Badi pls go thru:
http://www.sapdev.co.uk/enhance/enhance_badi.htm
Thanks !
Vivek
i succeed to change the default delivery date in the SRM, used the BADI you said.
but i still have a question.Is it only for Shopping cart?if i changed the default delivery date,does it influence other places which also use delivery data?
this is my code:
method IF_EX_BBP_CHANGE_DEFAULT~CHANGE_DEFAULT_DELIV_DATE.
DELIV_DATE = '20090101'.
endmethod.
Edited by: ming yu on Sep 15, 2009 9:57 AM
Hi Ming,
The field name "DELIV_DATE" belongs to shopping cart internal table.
So as per your code, you have set DELIV_DATE = '20090101'. due to this only the delivery date of the shopping cart will be defaulted to 20090101. But if you will not change the delivery date of shopping cart manually, then it will go as it is in backend documents also (e.g. PO or PR) and it may cause problem as it is hardcoded as 20090101; which is in the past.
Thanks!
Vivek
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.