VMD_EI_API_EXTRACT does not return contact person
I'm writing a program to copy a Vendor to a customer. For that I need to read all the data from the Vendor using the GET_DATA method of class VMD_EI_API_EXTRACT. But this methos does not return the contact persons for my vendors. I need the job address of the contact person to become the address of the customer.
I have tried the test program from the wiki, and here the section with the contact person is also empty : Extracting vendor master data using class - VMD_EI_API_EXTRACT - ABAP Development - SCN Wiki
Is it not possible to read contact persons with this class - even if there is section for contacts under CENTRAL_DATA-CONTACT ?
Short answer : A general available method/Class is not just a method/class you just can call anymore
The answer I got from SAP after creating an OSS was that this API is part of the switch framework (Operations, Enterprise Services 2 - Business Functions (SAP Enhancement Package 3 for SAP ERP 6.0) - SAP Library) from where you can enable new functionality. So you have to do some customizing !
You need to activate switch VENDOR_SFWS_SC1.
And activate customizing :
->Master Data Synchronization
->Business Partner Settings
->Settings for Customer Integration
->Field Assignment for Customer Integration
=>Activate Assignment of Contact Persons
Why this should be nessesary in a READ method is beyond my understanding
(that said - we are running IS-CWM and could not get the answer if activating a switch/this switch on a IS-CWM system was recommended, and therefore I ended up coding the read of contactperson using my own code)