Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding new web address for the customer using BAPI_ADDRESSORG_CHANGE

Former Member
0 Likes
1,191

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
785

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

3 REPLIES 3
Read only

Former Member
0 Likes
785

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

Read only

Former Member
0 Likes
786

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

Read only

0 Likes
785

Resolved.