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

Update/Insert Dbase Tables

Former Member
0 Likes
788

Hi,

Am trying to update/insert some fields into the sap tables like ADR2,ADR3,ADR6 . Are there any FM to do this or best way to achive this rather than updating/inserting directly?

am using the code as below :

UPDATE adr6 SET smtp_addr = lv_smtp_addr

WHERE persnumber = lv_persnumber.

Thanks,

Kumar.

1 ACCEPTED SOLUTION
Read only

kanishakgupta1
Contributor
0 Likes
695

I came accross such a requirement but couldn't find a single function module.

I think try using both the FM's else BDC is the only option left.

you can use the FM "DEBITOR_BDCDATA" to get the BDC data for vendor and then edit it to add the address fields required.

regards

kanishak

4 REPLIES 4
Read only

kanishakgupta1
Contributor
0 Likes
696

I came accross such a requirement but couldn't find a single function module.

I think try using both the FM's else BDC is the only option left.

you can use the FM "DEBITOR_BDCDATA" to get the BDC data for vendor and then edit it to add the address fields required.

regards

kanishak

Read only

Former Member
0 Likes
695

Hi,

Check if these solve your purpose:

BAPI_ADDRESSORG_CHANGE

BAPI_ADDRESSPERS_CHANGE

BAPI_ADDRESSCONTPART_CHANGE

Thanks,

Wenonah

Read only

RaymondGiuseppi
Active Contributor
0 Likes
695

SAP provides a list of the BAPI for [Business Address Services (BC-SRV-ADR)|http://help.sap.com/saphelp_sm32/helpdata/en/c8/13b237b9a9a968e10000009b38f8cf/frameset.htm], look at [BAPI Function Modules|http://help.sap.com/saphelp_sm32/helpdata/en/ed/622e29b36ae44e97f4a36397520e11/frameset.htm]

Regards,

Raymond

Read only

Former Member
0 Likes
695

closing issue