Serķa algo como esto
interlocutores-document = vbpa-vbeln.
interlocutores-updateflag = 'U'.
interlocutores-partn_role = 'WE'.
interlocutores-p_numb_old = vbpa-kunnr.
interlocutores-p_numb_new = w_kunnr.
append interlocutores.
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = pedido
order_header_inx = cabecera_x
tables
partnerchanges = interlocutores
return = retorno.
|