<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error when calling CLIPBOARD_IMPORT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979177#M1492398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have the following BDC call and process the return message. It is wokrng fine at foreground.&lt;/P&gt;&lt;P&gt;When execute In background, the write statement return only "Error when calling CLIPBOARD_IMPORT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise what could be the mistake i have made? thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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 '&amp;amp;1'.
        REPLACE '&amp;amp;1' WITH messtab-msgv1 INTO l_mstring.
        REPLACE '&amp;amp;2' WITH messtab-msgv2 INTO l_mstring.
        REPLACE '&amp;amp;3' WITH messtab-msgv3 INTO l_mstring.
        REPLACE '&amp;amp;4' WITH messtab-msgv4 INTO l_mstring.
      ELSE.
        REPLACE '&amp;amp;' WITH messtab-msgv1 INTO l_mstring.
        REPLACE '&amp;amp;' WITH messtab-msgv2 INTO l_mstring.
        REPLACE '&amp;amp;' WITH messtab-msgv3 INTO l_mstring.
        REPLACE '&amp;amp;' 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 03:51:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-04T03:51:33Z</dc:date>
    <item>
      <title>Error when calling CLIPBOARD_IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979177#M1492398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have the following BDC call and process the return message. It is wokrng fine at foreground.&lt;/P&gt;&lt;P&gt;When execute In background, the write statement return only "Error when calling CLIPBOARD_IMPORT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise what could be the mistake i have made? thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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 '&amp;amp;1'.
        REPLACE '&amp;amp;1' WITH messtab-msgv1 INTO l_mstring.
        REPLACE '&amp;amp;2' WITH messtab-msgv2 INTO l_mstring.
        REPLACE '&amp;amp;3' WITH messtab-msgv3 INTO l_mstring.
        REPLACE '&amp;amp;4' WITH messtab-msgv4 INTO l_mstring.
      ELSE.
        REPLACE '&amp;amp;' WITH messtab-msgv1 INTO l_mstring.
        REPLACE '&amp;amp;' WITH messtab-msgv2 INTO l_mstring.
        REPLACE '&amp;amp;' WITH messtab-msgv3 INTO l_mstring.
        REPLACE '&amp;amp;' 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 03:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979177#M1492398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T03:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling CLIPBOARD_IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979178#M1492399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friend .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link........may be useful to u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7144141"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 04:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979178#M1492399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T04:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling CLIPBOARD_IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979179#M1492400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the link. But we're not using any excel upload to run in background mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979179#M1492400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling CLIPBOARD_IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979180#M1492401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 07:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-calling-clipboard-import/m-p/6979180#M1492401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T07:03:24Z</dc:date>
    </item>
  </channel>
</rss>

