Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cmd_ei_api=>maintain_bapi

former_member644753
Discoverer
0 Likes
2,520

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.

3 REPLIES 3
Read only

abo
Active Contributor
0 Likes
1,926

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).

Read only

abo
Active Contributor
0 Likes
1,926

Searching fhe forum, for VMD_API / 032 I find this answer, see if it helps.

Read only

Stephen3
Participant
0 Likes
1,926

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