CRM B2C Shop : How to add multiple delivery addresses ?
Hi
We have a requirement add multiple delivery addreses to the Web shop user. The default process adds an address when registering. This works. We need to add additional delivery addresses. I have tried the following code, but it doesn't work:
User user = null;
Address address = null;
user = bom.createUser();
user.clearMessages();
BusinessPartnerManager buPaMa = bom.getBUPAManager();
address = new AddressFormular(requestParser).getAddress();
BusinessPartner partner = buPaMa.createBusinessPartner(user.getBusinessPartner(), null, address);
SoldTo soldTo = new SoldTo();
if(!buPaMa.addPartnerFunction(partner,soldTo))
String error = buPaMa.getMessageList().toString();
Any suggestions?
Hi
Thanks for the info. I realise the code I added will not do what I want. My requirement is NOT to add a delivery(ship-to) address to the order, but to list, add, remove delivery addresses of the users profile from CRM. Our CRM consultant directed me in the right direction. The standard CRM bapi's to handle BP addreses are:
BAPI_BUPA_ADDRESSES_GET
BAPI_BUPA_ADDRESS_ADD
BAPI_BUPA_ADDRESS_CHANGE
BAPI_BUPA_ADDRESS_GETDETAIL
BAPI_BUPA_ADDRESS_REMOVE
I searched the CRM Shop standard Java code and these bapi's are not called. We will have to write custom Java to implement these bapi calls.
Thanks,
Chris
Similar Messages
-
[SOLVED]How to add multiple gateways in Arch
Hi, can someone please advise how to add multiple gateway address for multiple interfaces.
In my case I have two wired LAN cards. I use Arch network daemon to manage my NIC's.
I know in Gentoo it could be done through : 'gateway_ethX=( "default gw xx.xx.xx.xx dev ethX" )'
but doing so in arch wont connect to router/gateway.
Also in rc.conf it says :
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
How to declare each route, and then how to list it in ROUTES?
I read the following thread:
http://bbs.archlinux.org/viewtopic.php?id=52992, but after adding the suggested lines in rc.conf and restarting the network it fails and says hostname not found.
Thanks.
Last edited by kapz (2009-10-08 18:53:39)In that case, your routing table should look something like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
rc.conf:
eth0="eth0 192.168.1.14 netmask 255.255.255.0 broadcast 192.168.1.255"
eth1="eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0 eth1)
# You may need to add 'dev eth1' to the end of this after '.1.1'
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
Last edited by fukawi2 (2009-10-06 21:55:49) -
How to add multiple child dialog in a singel page of dialog in ms crm2013
Hi All,
How to add multiple child dialogs in a page in dialog in online MS CRM 2013. I am able to add dialogs one at the end of the page. I am not able to add single / multiple dialogs in between the page.
As per my requirement there is multiple conditions , based on the outcome of condition respective child dialogs need to be linked in a page. Any solution ?
Thanks
Shankar.BHi,
As far as I know this is not possible with OOTB Dialoge in the current version. However there are 3rd party tools like TK Dialogs which provide this feature. Here is the link for the tool and few comparison as to when
to use OOTB v/s TK Dialog.
http://www.teamknowledge.co.uk/microsoft-crm.php
http://garethtuckercrm.com/2012/07/11/tk-dialogs-vs-microsoft-crm-dialogs/
Hope this helps.
Minal Dahiya
blog : http://minaldahiya.blogspot.com.au/
If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful" -
How do i add multiple email addresses to my calendar
How do I add multiple email addresses to my calendar on my iphone
You can create an email alias at the mail feature at iCloud.com
-
How can I add multiple email addresses to Address Book?
How can I add multiple email addresses to Address Book?
Can it be done from an .xlsx file?I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
any ideas would be good
thanks -
how do I add multiple email addresses i have received (+ -900) to my address book instead of having to do it one by one?
Grab them all and drag them to the Address Book.
Roger -
How can I add multiple email addresses from spreadsheet into email?
how can I add multiple email addresses from spreadsheet into email?
I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
any ideas would be good
thanks -
How to add multiple users to a role in ECC 6.0
How to add multiple users (say 1000) to a role in ECC 6.0?
Hi
You can actually add multiple users to a role using transaction SU01. From SU01, use the menu Environment->Mass Changes.
Here you can manually add the users, select them by address or authorisation data. Once you have your user list, you can then add or remove roles and/or profiles.
Secondly , You can use SU10 to do mass changes to multiple users including role assignments per logical systems
Also check the following link:
http://www.sap-img.com/bc021.htm
I hope this should do it
regards
Chen -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira -
How to add multiple namespaces in XSD ?
Can anyone tell me how to add multiple namespaces inside an XSD. Or how to import XSD into another XSD ??
Thanks<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xml.ibridge.nl/nl/rsg/domein/3/company" xmlns:alg="http://mynamespace/generic" targetNamespace="http://xml.ibridge.nl/nl/rsg/domein/3/company" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
<xs:import namespace="http://mynamespace/generic" schemaLocation="algemeen.xsd"/>
you define xmlns:alg with a namespace
and after that use the namespace itself to import a xsd for it -
How to add multiple columns?
Using designer API, how to add multiple columns to the repository tables? I want to add number of columns at a time instead of adding column by column.
Thanks in advance.Can you use sqlplus?
ALTER TABLE table_name ADD (column_name data_type), (Column_name datatype),...
Check the SQL Reference 11-9.
Hope this helps.
Bill Swanson -
How to add multiple button/choices in button choice
HI all ,
How to add multiple button/choices in button choice ?Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need. Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
Message Edited by vt92 on 03-20-2009 04:04 PM
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Attachments:
cursors.PNG 5 KB -
How to add multiple images in jinternalframe
Hi all,
how to add multiple images to the jinternalframe, at specified location of the pane and resizing the images with specified height and width.
code examples are highly appreciated.
Thanks & Regards,
AbelThanks, it works perfectly. It's a really smart way of fixing the problem too :)
I also found your toggle button icon classes which is something I've also had a problem with.
Thanks. -
How to add multiple audio transitions
I know how to add multiple video transitions to a whole series of clips, but I want to add a cross fade to every audio clip in the sequence....how can I do this if at all, or is it not possible? Thanks
I'm suspecting that you don't have the destination tabs set correctly when you drag the audio clips to the canvas overlays.
Destination & Source tabs are the tabs located at the left side of the timeline. When you want to add audio cross fades to your audio clips, do the following:
1. Set the played at the beginning of the sequence.
2. Click the video source tab to disconnect it from the video track.
3. Verify that the audio source tabs are connected to the audio tracks that you want the audio edited to.
4. Select your audio clips.
5. Drag the selected audio clips to the Overwrite with Transition overlay in the canvas. -
How to add multiple test conditions in 'test' attribute expression of xsl:if tag
Hi all,
How to add multiple test conditions in 'test' attribute expression of <xsl:if> tag ?
I have 2 parameters and I want To skip the massage if this 2 conditions happened I tried to write it :
<xsl:when test="($TransferToCompany = 0 and $ObjectInclide=1 )">
<b1im_skip xmlns="" info=" Obect Will Not Transfer To company">
</b1im_skip>
</xsl:when>
But I get an error while I am trying to transfer The object (Account) true B1if
I am working with SBO 9 PL 13
thank you
shacharHi saado
Check this link:
http://stackoverflow.com/questions/318875/can-you-put-two-conditions-in-an-xslt-test-attribute
Kind regards,
Radek
Maybe you are looking for
-
so im trying to buy logic pro and just recently put enough money in gift cards on my account but every time i click buy app and go to billing info and then click ok it just shoots me to the first screen and did not charge for app how can i buy it ?
-
Hi, What is the best way to create large XML in pl/sql?? and to read large XML from CLOB procedure parameter????? Thanks
-
Hi All, Please let me know how to go to display end point in XI from SAP Logon. I have to change old URL with new URL. Not sure for change URLs at EndPoint. Is it correct way or not. Please correct me if am wrong. Thanks, Subbu.
-
Does the XML parser for C++ work in 64-bit applications. The installation tar for xdk 9.0.2 does not appear to have a "/lib64". Any help is appreciated.
-
In sap is there any report which gives us the details of all prctr group
Hi, In sap is there any report which gives us the detail of all profit center and their respective profit center group. I need a report or t.code which gives me the details of profit center hierarchy with description and also the associated profit