Gooddayexperts, I am using this codeto massiveloadtorunget the messagethat the loadwas donesuccessfully, buttoverifythe transactiondataincooisisnot updated.
This is the code.
LOOP AT ti_input INTO st_input.
CLEAR:st_de_data.
MOVE: st_input-aufnr TO st_de_data-aufnr,
st_input-vornr TO st_de_data-vornr,
st_input-budat TO st_de_data-budat,
st_input-zzcant1 TO st_de_data-zzcant1,
st_input-zzmot1 TO st_de_data-zzmot1,
st_input-zzcant2 TO st_de_data-zzcant2,
st_input-zzmot2 TO st_de_data-zzmot2,
st_input-ltxa1 TO st_de_data-ltxa1.
PERFORM bdc_dynpro USING :
'X' 'SAPLCORU_S' '0110',
' ' 'BDC_OKCODE' '=SP',
' ' 'AFRU-AUFNR' st_de_data-aufnr,
' ' 'AFRU-VORNR' st_de_data-vornr,
' ' 'AFRU-ZZCANT1' st_de_data-zzcant1,
' ' 'AFRU-ZZMOT1' st_de_data-zzmot1,
' ' 'AFRU-ZZCANT2' st_de_data-zzcant2,
PERFORM bdc_dynpro USING :
'X' 'SAPLCORU_S' '0600',
' ' 'BDC_OKCODE' '=SP',
' ' 'AFRU-BUDAT' st_de_data-budat.
ENDLOOP.
s_opt-dismode = c_mod. "Hide vista transaccion
s_opt-updmode = c_update.
s_opt-nobinpt = 'X'.
CALL TRANSACTION 'CO11N' USING it_bdc_tab[]
OPTIONS FROM s_opt
MESSAGES INTO it_messtab[].
FORM bdc_dynpro USING dynbegin name value.
CLEAR it_bdc_tab.
IF dynbegin = 'X'.
MOVE: name TO it_bdc_tab-program,
value TO it_bdc_tab-dynpro,
'X' TO it_bdc_tab-dynbegin.
APPEND it_bdc_tab.
ELSE.
MOVE: name TO it_bdc_tab-fnam,
value TO it_bdc_tab-fval.
CONDENSE it_bdc_tab-fval.
APPEND it_bdc_tab.
ENDIF.
CLEAR it_bdc_tab.
ENDFORM. " BDC_DYNPRO.
Pleasecan you help meto review thecode andsee if the datais recorded.
Regards