Skip to Content

vmd_ei_api - Contact person Deletion

Hi,

I am trying to delete contact person using vmd_ei_api=>maintain_bapi but no luck. I am able to modify contact Person but deletion is not working. I am setting followings parameter (& other which are not shown below).

VENDORS-CENTRAL_DATA-CONTACT-CURRENT_STATE = ''

VENDORS-CENTRAL_DATA-CONTACT-CONTACTS-TASK = 'D'

VENDORS-CENTRAL_DATA-CONTACT-CONTACTS-DATA_KEY = '0000000126'

Also one more thing. When I am trying to read details of a Vendor using cl_erp_vendor_api=>read_vendor, I am getting all the details except contact person.

Appreciate some hints to solve this issue.

Cheers

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Feb 13, 2017 at 01:42 PM

    Try to read data with VMD_EI_API_EXTRACT=>GET_DATA before calling VMD_EI_API=>MAINTAIN_BAPI with a loop at VENDORS-CENTRAL_DATA-CONTACT-CONTACTS[]. Don't forget to analyze table ES_ERROR-MESSAGES[] for errors.
    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 13, 2017 at 04:23 PM

    Thanks Raymond for your response.

    I tried to extract data using VMD_EI_API_EXTRACT=>GET_DATA (followed link https://wiki.scn.sap.com/wiki/display/ABAP/Extracting+vendor+master+data+using+class+-+VMD_EI_API_EXTRACT) but Contact Person table is still empty.

    Tried another thread which mentioned about some setting (Cross-Application Components->Master Data Synchronization->Customer/Vendor Integration ->Business Partner Settings->Settings for Customer Integration->Field Assignment for Customer Integration->Assign Attributes

    ->Contact Person=>Activate Assignment of Contact Persons) but even after enabling this switch, it is not working.

    Also could you please explain what do you mean by "with a loop at VENDORS-CENTRAL_DATA-CONTACT-CONTACTS[]". Does that mean call MAINTINA_BAPI for the number of entries in CONTACT[].

    One more behavior of the system which might give you some hint. When I used MAINTAIN_BAPI with parameters filled (as mentioned in my original post), I can see Contact Person in XK02 but when I try to see the details by selecting the Partner function and clicking "Partner Details", I get "Internal error - ADDRESS_GET call error. When I check KNVK table for the partner number, I can see that its "Status of Data Transfer into Subsequent Release (DUEFL)" is set to "Transfer taken Place, document changed later". Not sure why this is updated.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 16, 2017 at 04:07 PM

    Hi,

    This is still and issue and appreciate if someone can throw some light. I found a post

    https://archive.sap.com/discussions/thread/3387352 mentioning same issue. However before activating the enhancement spot, when I am trying to see if FM (vendor_update) is called or not, in debug mode, ABAP debugger is not stopping giving me feel that this FM & Enhancement sport is not correct. Does anyone have any other solution.

    Cheers

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 06, 2017 at 06:56 AM

    Are you sloved?

    Add comment
    10|10000 characters needed characters exceeded