‎2010 Jun 04 4:51 AM
hi all,
i have the following BDC call and process the return message. It is wokrng fine at foreground.
When execute In background, the write statement return only "Error when calling CLIPBOARD_IMPORT".
please advise what could be the mistake i have made? thanks.
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE cupdate
MESSAGES INTO messtab.
l_subrc = sy-subrc.
CLEAR i_message.
REFRESH i_message.
LOOP AT messtab.
SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
AND arbgb = messtab-msgid
AND msgnr = messtab-msgnr.
IF sy-subrc = 0.
l_mstring = t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
w_message-msgtyp = messtab-msgtyp.
w_message-mstring = l_mstring(250).
* APPEND w_message TO i_message.
WRITE: /02 w_message-mstring.
CLEAR w_message.
ELSE.
w_message-mstring = messtab.
* APPEND w_message TO i_message.
WRITE: /02 w_message-mstring.
CLEAR w_message.
ENDIF.
ENDLOOP.
‎2010 Jun 04 5:42 AM
‎2010 Jun 04 5:42 AM
‎2010 Jun 04 6:12 AM
thanks for the link. But we're not using any excel upload to run in background mode.
however, we're recoding vkm3 screen to let BDC handle the mass credit check reassign in background mode. it does have a pop up to enter multiple sales order at the first vkm3 selection screen. maybe this could be the reason it fail in background mode.?
‎2010 Jun 04 8:03 AM
all right. after we change to single entry for the VKM3 BDC, it works fine in background. so it does not support the multiple entries for VKM3 selection screen in BDC with background running.