Verifique con FM " QUOTEN_WRITE_DOCUMENT " en lugar de BDC.
Pase OBJECTID = "Número de material que comienza con ceros + Planta"
O verifique el código de muestra a continuación
DATA: S_XEQUKC TYPE STANDARD TABLE OF UEQUKC WITH HEADER LINE INITIAL SIZE 0,
WA_XEQUKC TYPE UEQUKC,
S_YEQUKC TYPE STANDARD TABLE OF UEQUKC WITH HEADER LINE INITIAL SIZE 0,
WA_YEQUKC TYPE UEQUKC,
S_XEQUP TYPE STANDARD TABLE OF UEQUP WITH HEADER LINE INITIAL SIZE 0,
WA_XEQUP TYPE UEQUP,
S_YEQUP TYPE STANDARD TABLE OF UEQUP WITH HEADER LINE INITIAL SIZE 0,
WA_YEQUP TYPE UEQUP.
WA_XEQUKC-MATNR = "
WA_XEQUKC-WERKS = "
WA_XEQUKC-BDATU = "
WA_XEQUKC-VDATU = "
WA_XEQUKC-QUNUM = "
WA_XEQUKC-ERDAT = "
WA_XEQUKC-ERNAM = "
WA_XEQUKC-SCMNG = "
WA_XEQUKC-KZ = 'I'.
APPEND WA_XEQUKC TO S_XEQUKC.
CLEAR WA_XEQUKC.
CALL FUNCTION ' QUOTEN_WRITE_DOCUMENT ' IN UPDATE TASK
EXPORTING
OBJECTID = "Número de material que comienza con ceros + Planta"
TCODE = "MEQ1"
UTIME = "SY-UZEIT
UDATE = "SY-DATUM
USERNAME = "SY-UNAME
OBJECT_CHANGE_INDICATOR = 'U'
UPD_EQUKC = 'U'
TABLES
XEQUKC = S_XEQUKC
YEQUKC = S_YEQUKC
XEQUP = S_XEQUP
YEQUP = S_YEQUP
.
Saludos
Smruti