Verifique com FM " QUOTEN_WRITE_DOCUMENT " em vez de BDC.
Passe OBJECTID = "Número do material que começa com zeros + Planta"
Ou verifique o código de amostra abaixo
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 ' EM ATUALIZAR TAREFA
EXPORTAR
OBJECTID = "Número do material que começa com zeros + Planta"
TCODE = "MEQ1"
UTIME = "SY-UZEIT
UDATE = "SY-DATUM
USERNAME = "SY-UNAME
OBJECT_CHANGE_INDICATOR = 'U'
UPD_EQUKC = 'U'
TABELAS
XEQUKC = S_XEQUKC
YEQUKC = S_YEQUKC
XEQUP = S_XEQUP
YEQUP = S_YEQUP
.
Saudações
Smruti