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: 

BAPI to get and Update Company, Sale Org. and Sales Office Address and Email

kirankumark2
Participant
0 Kudos

I have a requirement to update Company, Sale Org and Sales Office Addresse. Can Some one Provide me the BAPI's to update Address of Company, Sale Org and Sales Office. I am working with BAPI_ADDRESSORG_CHANGE, but the issue is Function Module field for Company code, Sales Org and Sales Office is blank in TSADRV and TSADOBJ tables. This BAPI is throwing a return message like "Function Module not maintained in TSADOBJ table" .This BAPI will work only if Function module maintained in the TSADOBJ table. Can some one help me how to do this?

In one forum it was mentioned that "Company and Sale Org. details should not update directly through ABAP Program". I am bit confused. Need Clarification. Can i proceed for ABAP program Development or not?

Above mentioned tables are "Cross-Client" and SAP Standard tables with maintenance is allowed. Can i maintain and move the entries to Production?

2 REPLIES 2

former_member221827
Active Participant
0 Kudos

Are you looking to update these fields for a business partner? I'm thinking cmd_ei_api=>maintain_bapi is what you should search.

0 Kudos

Thanks Chris for your reply,

Here there is no concept of Business partner. If you observe the table TSADRV, for Business Object type BUS0008 (For Table : T001W and Field : ADRNR) t function module SITE_GET_ADDR1_KEY is maintained in the field "BAPI Address Type 1 FM". During Runtime BAPI checks this table weather function module maintained or not. The above mentioned is for PLANT. Likewise some function modules to be maintained for Company, Sales Org and Sales Office to work with that BAPI. but here i cant see those in that table. Without that Function modules BAPI is throwing Error message like "Function Module Not maintained". Generally Can we maintain and move to Production those tables or not?. If so, What are the Function modules to be maintained.

In the attached Screenshot of table TSADRV we can see that SAP maintained Entry for T001W-ADRNR..and Business Object type BUS0008, but for T001, TVKO, TVBUR tables it was not maintained. Due to this BAPI is throwing error. Can we maintain this table?

Note: Table is Maintenance allowed ( through path UTILITIES->TABLE ENTRIES )

tsadrv.jpg