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

Insert entries on table ADR6

Former Member
0 Likes
4,294

Hi,

I need to update table ADR6 manually. How can I do that?

Can I use 'insert' abap code command? Could you please send me an example?

Is there any function module which works to do that?

Thanks and best regards

Hi,

I need to update table ADR6 manually. How can I do that?

Can I use 'insert' abap code command? Could you please send me an example?

Is there any function module which works to do that?

Thanks and best regards

5 REPLIES 5
Read only

Former Member
0 Likes
2,292

Hi ,

If you are creating a customer manually (means going to XD01) and enter the email address, it automatically goes to ADR6. Is this your requirement? You can use the Insert statment also.

Regards,

Tanmay

Read only

0 Likes
2,292

Hi my requirement is a bit different.

I am doing a Z*program which create a sales order. What i need is to save the partner address, that means the functionality we have in standard VA01 - Tab Partners, when we need to modify those address. I am able to use the same pop-up and everything, but I loose the e-mail field.. It doesn't get saved on table ADR6. So I think I need to insert manually this field in Table ADR6... But how can I do that?

Thanks and Best regards

Read only

0 Likes
2,292

Hi,

I think you can use fm BAPI_ADDRESSORG_SAVEREPLICA after filling email address in

BAPIADSMTP .

Read only

Former Member
0 Likes
2,292

Hi,

Here is the code.

data : x_adr6 like adr6.

x_adr6-field1 = 'Value'.

insert x_adr6 into ADR6 or modify adr6 from x_adr6.

Thanks

Mahesh

Read only

Former Member
0 Likes
2,292

Hi!

You can do that. But it is NOT recommended to update a standard SAP table, because dependent entries could be in other tables.

Try using one of these function modules to maintain addresses.

ADDRESS_DELETE

ADDRESS_GET_COM

ADDRESS_GET_DATA

ADDRESS_GET_NUMBER

ADDRESS_INSERT

ADDRESS_READ

ADDRESS_READ_ALL_VERSIONS

ADDRESS_READ_FOR_USER

ADDRESS_TELEPHONE_MAKE_CALL

ADDRESS_UPDATE

ADDRESS_UPDATE_DIALOG

ADDRESS_UPDATE_FROM_USER

ADDRESS_UPDATE_OLD

ADDRESS_UPDATE_TASK

Regards

Tamá