‎2011 Jun 29 2:44 PM
Hi,
I have used the function module BAPI_ADDRESSORG_CHANGE to add a new web address for the customer (XD03). When a web address is added, I have set the parameters STD_NO to 'X' and HOME_FLAG = 'X' to identify the web address as the default. And the next time I add a new web address, I am setting the STD_NO to 'X' and HOME_FLAG = 'X' for the tables for the tables BAPIADURI & BAPIADURI_X to mark the new address as the default. But I couldn't get the default set for the newly added web address.
I have done the same while adding a new email address for a contact (VAP3), using the function module BAPI_ADDRESSCONTPART_CHANGE. Here, the newly added email address was set to default by setting STD_NO to 'X' and HOME_FLAG = 'X' for the tables BAPIADSMTP & BAPIADSMT_X. It was working fine, here.
Any idea.
Thanks in advance.
Regards,
Satish Kanteti
‎2011 Jun 30 11:28 AM
Hi,
Greetson, Thanks for your response.
I myself had solved this query.
I had used the function module BAPI_ADDRESSORG_GETDETAIL to fetch the existing web addresses.
Convert the existing default web address to non-default by deleteing the internal table entries of BAPIADURI where STD_NO not equal to 'X' , and set the parameters STD_NO = ' ' and HOME_FLAG = ' ' . Append the internal table of BAPIADURI_X with parameters STD_NO = ' X', HOME_FLAG = ' ' and UPDATEFLAG = 'U'.
Now append the internal table of BAPIADURI with parameters STD_NO = 'X', HOME_FLAG = 'X' and URI = new web url
and append the internal table of BAPIADURI_X with parameters STD_NO = 'X', HOME_FLAG = 'X', URI = 'X' and UPDATEFLAG = 'I'.
Now use the fucntion module BAPI_ADDRESSORG_CHANGE to add the new web address as the default for the customer.
Regards,
Satish Kanteti
‎2011 Jun 29 3:16 PM
Hello Satish Kanteti,
You are passing data correctly in the BAPI call. Check is thare a OSS for this issue.
I will let you know if I find one.
Thanks,
Greetson
‎2011 Jun 30 11:28 AM
Hi,
Greetson, Thanks for your response.
I myself had solved this query.
I had used the function module BAPI_ADDRESSORG_GETDETAIL to fetch the existing web addresses.
Convert the existing default web address to non-default by deleteing the internal table entries of BAPIADURI where STD_NO not equal to 'X' , and set the parameters STD_NO = ' ' and HOME_FLAG = ' ' . Append the internal table of BAPIADURI_X with parameters STD_NO = ' X', HOME_FLAG = ' ' and UPDATEFLAG = 'U'.
Now append the internal table of BAPIADURI with parameters STD_NO = 'X', HOME_FLAG = 'X' and URI = new web url
and append the internal table of BAPIADURI_X with parameters STD_NO = 'X', HOME_FLAG = 'X', URI = 'X' and UPDATEFLAG = 'I'.
Now use the fucntion module BAPI_ADDRESSORG_CHANGE to add the new web address as the default for the customer.
Regards,
Satish Kanteti
‎2011 Jun 30 11:32 AM