Skip to Content
0

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

Jul 03, 2017 at 05:09 AM

89

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Jul 03, 2017 at 01:02 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

tsadrv.jpg (87.4 kB)
0