Buen día expertos, estoy aquí de nuevo me podrian ayudar porfavor.
Tengo un dilema con la modificación “Número de material del proveedor” estoy utilizando esta bapi:
DATA:
l_headdata LIKE bapie1mathead OCCURS 0 WITH HEADER LINE.
l_clientdata LIKE bapie1marart OCCURS 0 WITH HEADER LINE,
l_clientdatax LIKE bapie1marartx OCCURS 0 WITH HEADER LINE,
l_vendorean LIKE bapie1mleart OCCURS 0 WITH HEADER LINE,
l_bapireturn LIKE bapireturn1.
l_headdata-function = ‘004’.
l_headdata-material = matnr.
l_headdata-logst_view = ‘X’.
l_headdata-basic_view = ‘X’.
APPEND l_headdata.
** Datos del material
l_clientdata-function = ‘004’.
l_clientdata-material = matnr. "Codigo a modificar
l_clientdata-last_chnge = sy-datum. "Fecha de modificacion
l_clientdata-changed_by = sy-uname. "Usuario de modificacion
l_clientdata-period_ind_expiration_date = ‘D’.
APPEND l_clientdata.
l_clientdatax-function = ‘004’.
l_clientdatax-material = matnr.
l_clientdatax-last_chnge = ‘X’.
l_clientdatax-changed_by = ‘X’.
APPEND l_s_clientdatax.
l_vendorean-function = ‘004’.
l_vendorean-material = matnr.
l_vendorean-vendor_no = idnlf .
l_vendorean-vend_mat = lifnr.
APPEND l_vendorean.
CALL FUNCTION ‘BAPI_MATERIAL_MAINTAINDATA_RT’
EXPORTING
headdata = l_headdata
IMPORTING
return = l_bapireturn
TABLES
clientdata = l_clientdata
clientdatax = l_clientdatax
vendorean = l_vendorean.
Tengo el dilema en la tabla “vendorean”.
Mensaje de error “E MG 537”
De antemano muchas gracias, se les garadece.