Application Development 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: 

Update/Insert Dbase Tables

Former Member
0 Kudos

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

kanishakgupta1
Contributor
0 Kudos

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

kanishakgupta1
Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Check if these solve your purpose:

BAPI_ADDRESSORG_CHANGE

BAPI_ADDRESSPERS_CHANGE

BAPI_ADDRESSCONTPART_CHANGE

Thanks,

Wenonah

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

closing issue