Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error when calling CLIPBOARD_IMPORT

Former Member
0 Likes
2,384

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,573

friend .......

check this link........may be useful to u

3 REPLIES 3
Read only

Former Member
0 Likes
1,574

friend .......

check this link........may be useful to u

Read only

0 Likes
1,573

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.?

Read only

0 Likes
1,573

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.