Skip to Content
0

vmd_ei_api - Contact person Deletion

Feb 13, 2017 at 01:01 PM

226

avatar image
Former Member

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

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

4 Answers

Raymond Giuseppi
Feb 13, 2017 at 01:42 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 13, 2017 at 04:23 PM
0

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.

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

Are you sloved?

0
avatar image
Former Member Jun 16, 2017 at 04:07 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 06, 2017 at 06:56 AM
0

Are you sloved?

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi there,

Sorry for coming late on this. We raised this issue with SAP and they suggested to enable same business function as mentioned in the thread : https://archive.sap.com/discussions/thread/3387352.

Although due on going maintenance work in landscape, we have still not enabled them and are not able to test end to end. But as suggested by SAP, it will/should work.

Cheers,

Anup

0
Former Member

This I have read, I have activated the relevant content.

0