‎2021 Apr 21 4:09 PM


Hi All;
I am trying to write a test program to use this method.I have tried adding the Partner,but hava a error massage.
1.Fill vendor number, personnel number, or contact person number
2.WYT3-PARGR, PERNR, PARNR: Plausibility check failed
sap Component version SAP ECC 6.0 ,not hana.
DATA:
lt_purchasing TYPE vmds_ei_vmd_purchasing,
ls_vmds_ei_functions TYPE vmds_ei_functions,
lt_vmds_ei_functions_t TYPE vmds_ei_functions_t.
CLEAR:
ls_purchase.
MOVE:
g_object_task_m TO ls_purchase-task,
ls_in-bukrs TO ls_purchase-data_key-ekorg,
ls_in-waers TO ls_purchase-data-waers,
ls_in-zterm TO ls_purchase-data-zterm,
ls_in-webre TO ls_purchase-data-webre,
abap_true TO ls_purchase-datax-waers,
abap_true TO ls_purchase-datax-zterm,
abap_true TO ls_purchase-datax-webre.
MOVE:
g_object_task_m TO ls_vmds_ei_functions-task ,
g_parvw_oa TO ls_vmds_ei_functions-data_key-parvw.
APPEND ls_vmds_ei_functions TO lt_vmds_ei_functions_t.
MOVE:
g_object_task_m TO ls_vmds_ei_functions-task ,
g_parvw_vn TO ls_vmds_ei_functions-data_key-parvw.
APPEND ls_vmds_ei_functions TO lt_vmds_ei_functions_t.
MOVE:
g_object_task_m TO ls_vmds_ei_functions-task ,
g_parvw_pi TO ls_vmds_ei_functions-data_key-parvw.
APPEND ls_vmds_ei_functions TO lt_vmds_ei_functions_t.
ls_purchase-functions-functions = lt_vmds_ei_functions_t.
APPEND ls_purchase TO ls_vmds_ei_extern_t-purchasing_data-purchasing.
‎2021 Apr 21 4:58 PM
Second tip of the day: better edit the first question than post a new one.
Alternatively, delete the older one (but it's less work to edit it, to begin with).
‎2021 Apr 21 5:05 PM
Searching fhe forum, for VMD_API / 032 I find this answer, see if it helps.
‎2021 Apr 21 5:34 PM
Hi Feng
I haven't looked at this in a long time, but if I recall, the task value has to be 'I' for insert. I don't know what the value you have assigned to g_object_task_m.
I think I also found adding contacts at the same time you are trying to create the vendor/customer is challenging. I believe I first created the customer, got the customer number then added the contact as a 2nd step.
Stephen