I am trying to update/delete/insert communication via BAPI_ADDRESSORG_CHANGE. I'm doing this from an external source via JCo.
Everything works fine but one kind of case:
I want to insert a fax number (for example). I get the current data via BAPI_ADDRESSORG_GETDETAIL.
BAPIADFAX, BAPIADFAX_X and BAPIADUSE are empty
I then append one row in BAPIADFAX and BAPIADFAX_X with the data and reference data. After executing BAPI_ADDRESSORG_CHANGE, table RETURN has 3 rows of Warnings with the message:
'Inconsistency: Entry in table BAPIADUSE_X missing for entry in table BAPI'.
Looking at BAPIADUSE, it has 3 rows for AD_DEFAULT, AD_HOME and AD_NMBDEFA but the wrong COMM_TYPE (is: 'TEL', should be: 'FAX').
I have two ideas about what might be the cause:
I would gladly appreciate any pointers in the right direction.