cancel
Showing results for 
Search instead for 
Did you mean: 

Copy manual delivery address

Former Member
0 Kudos

Hi. We have a requirement where users want to manually change a delivery address in a shopping cart on 1 item and have the option to copy it to all other items.

We could use BBP_DOC_CHANGE_BADI to check for partner type 00000027 and insert it in the other lines, but how do we provide the option to copy?

The do not want it to always change all the other lines.

Is there any way of getting a yes/no pop up box when the user changes the address?

Or does anyone else have a better idea?

Thanks a lot for your help.

Regards,

Dave.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I probably have not understood the extent of the requirement, but if the changed address is always the same , you can a create new ship to address for the user and add that in the attribute "delivery address" and user will be able to add those addresses whereever and whenever required. You can always define one of the addresses as default.

Former Member
0 Kudos

Hi. We thought of that, but the addresses are not the same, they are completely manual.

What we are thinking now is enable the "Default Settings for Items" as Chris suggests then try and hide the ones we do not want using BBP_UI_CONTROL_BADI.

Regards,

Dave.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi David,

Probably you can give a try to User Status. Take for instance you have a status using which the user can say that the address needs to be copied (by activating it). Then using the BBP_DOC_CHANGE_BADI, you can check for this status and change the delivery address in all items appropiately.

Please have look at this article I submitted below.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/2047466a-fb48...

Your requirment is a bit tricky, but please explore this option. This has worked out very well for quite a few of my requirements (Bids and Invoices) as there is flexibility to switch off and switch on this just using standard customizations.

Regards

Kathirvel

Former Member
0 Kudos

Hi David,

you can maintain a delivery address "Default Settings for Items" option prior to adding any items to the shopping cart. This will result in all items in the shopping cart having the same delivery address.

As standard this is option is only enabled in BBPSC01 but you can use the BBP_SC_MODIFY_UI BADI to enable it for the other shop transactions. The Default Settings for Items option is contained in parameter IS_SCR_ITMCHOICE and the screen choice is DEFAULT_SCR.

Regards

Chris

Former Member
0 Kudos

Hi. Thanks a lot for that.

Can we turn on just the "Ship to address" default in BBPSC02 using this BADI?

We would not want some of the other defaults to be available.

Regards,

Dave.

Former Member
0 Kudos

Hi David,

no the setting in the BADI will enable all the available options in the default settings for items. It may be possible to hide some with a screen variant?

Regards

Chris