<?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 BDC in background problem.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944375#M943335</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;&lt;/P&gt;&lt;P&gt;I am running a BDC program in Foreground and the program posts FI docs in F-43.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the same in background it does not generate any FI docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_bdcdata occurs 0.                   " BDC data table&lt;/P&gt;&lt;P&gt;        include structure bdcdata.&lt;/P&gt;&lt;P&gt;data: end   of i_bdcdata.&lt;/P&gt;&lt;P&gt;data: begin of i_bdcmessage occurs 0.                " BDC Messages&lt;/P&gt;&lt;P&gt;        include structure bdcmsgcoll.&lt;/P&gt;&lt;P&gt;data: end   of i_bdcmessage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:p_mode type c.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_screen     using 'SAPMF05A' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in   using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RF05A-NEWKO'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BKPF-BLDAT'&lt;/P&gt;&lt;P&gt;                              '06/06/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BKPF-BLART'&lt;/P&gt;&lt;P&gt;                              'KR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BKPF-XBLNR'&lt;/P&gt;&lt;P&gt;                              'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'RF05A-NEWBS'&lt;/P&gt;&lt;P&gt;                              '31'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'RF05A-NEWKO'&lt;/P&gt;&lt;P&gt;                              'FRED'.&lt;/P&gt;&lt;P&gt;perform bdc_screen      using 'SAPMF05A' '2302'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              'SB'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BSEG-ZLSCH'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-WRBTR'&lt;/P&gt;&lt;P&gt;                              '224'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-GSBER'&lt;/P&gt;&lt;P&gt;                              '2000'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-ZLSCH'&lt;/P&gt;&lt;P&gt;                              'F'.&lt;/P&gt;&lt;P&gt;perform bdc_screen      using 'SAPMF05A' '0310'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              'SB'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BSEG-KOSTL(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-BSCHL(01)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                              '40'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'RF05A-KONTO(01)'&lt;/P&gt;&lt;P&gt;                              '705000'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-WRBTR(01)'&lt;/P&gt;&lt;P&gt;                              '224'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-GSBER(01)'&lt;/P&gt;&lt;P&gt;                              '2000'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-KOSTL(01)'&lt;/P&gt;&lt;P&gt;                              '10193031'.&lt;/P&gt;&lt;P&gt;perform bdc_screen      using 'SAPMF05A' '0310'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              'BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BSEG-BSCHL(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'F-43' using  i_bdcdata&lt;/P&gt;&lt;P&gt;                               mode   p_mode&lt;/P&gt;&lt;P&gt;                               update 'S'&lt;/P&gt;&lt;P&gt;                             messages into i_bdcmessage.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2008 17:27:09 GMT</pubDate>
    <dc:creator>vsubbakrishna</dc:creator>
    <dc:date>2008-06-06T17:27:09Z</dc:date>
    <item>
      <title>BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944375#M943335</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;&lt;/P&gt;&lt;P&gt;I am running a BDC program in Foreground and the program posts FI docs in F-43.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the same in background it does not generate any FI docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_bdcdata occurs 0.                   " BDC data table&lt;/P&gt;&lt;P&gt;        include structure bdcdata.&lt;/P&gt;&lt;P&gt;data: end   of i_bdcdata.&lt;/P&gt;&lt;P&gt;data: begin of i_bdcmessage occurs 0.                " BDC Messages&lt;/P&gt;&lt;P&gt;        include structure bdcmsgcoll.&lt;/P&gt;&lt;P&gt;data: end   of i_bdcmessage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:p_mode type c.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_screen     using 'SAPMF05A' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in   using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RF05A-NEWKO'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BKPF-BLDAT'&lt;/P&gt;&lt;P&gt;                              '06/06/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BKPF-BLART'&lt;/P&gt;&lt;P&gt;                              'KR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BKPF-XBLNR'&lt;/P&gt;&lt;P&gt;                              'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'RF05A-NEWBS'&lt;/P&gt;&lt;P&gt;                              '31'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'RF05A-NEWKO'&lt;/P&gt;&lt;P&gt;                              'FRED'.&lt;/P&gt;&lt;P&gt;perform bdc_screen      using 'SAPMF05A' '2302'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              'SB'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BSEG-ZLSCH'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-WRBTR'&lt;/P&gt;&lt;P&gt;                              '224'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-GSBER'&lt;/P&gt;&lt;P&gt;                              '2000'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-ZLSCH'&lt;/P&gt;&lt;P&gt;                              'F'.&lt;/P&gt;&lt;P&gt;perform bdc_screen      using 'SAPMF05A' '0310'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              'SB'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BSEG-KOSTL(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-BSCHL(01)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                              '40'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'RF05A-KONTO(01)'&lt;/P&gt;&lt;P&gt;                              '705000'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-WRBTR(01)'&lt;/P&gt;&lt;P&gt;                              '224'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-GSBER(01)'&lt;/P&gt;&lt;P&gt;                              '2000'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BSEG-KOSTL(01)'&lt;/P&gt;&lt;P&gt;                              '10193031'.&lt;/P&gt;&lt;P&gt;perform bdc_screen      using 'SAPMF05A' '0310'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              'BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field_in       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'BSEG-BSCHL(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'F-43' using  i_bdcdata&lt;/P&gt;&lt;P&gt;                               mode   p_mode&lt;/P&gt;&lt;P&gt;                               update 'S'&lt;/P&gt;&lt;P&gt;                             messages into i_bdcmessage.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 17:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944375#M943335</guid>
      <dc:creator>vsubbakrishna</dc:creator>
      <dc:date>2008-06-06T17:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944376#M943336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : p_mode  type c VALUE 'N',       " No display mode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 17:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944376#M943336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944377#M943337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the error is triggered in foreground too, u should see the message error as successfull message (message type S) so in foreground you can go on and post the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should give us the error to stop the BDC in background: u should see the error in table i_bdcmessage, so after calling the transaction u should write the messages stored in that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Jun 6, 2008 7:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 17:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944377#M943337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T17:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944378#M943338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BDC works when the Mode is 'A'.&lt;/P&gt;&lt;P&gt;And there is no error in foreground mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a Database commit problem or something else?&lt;/P&gt;&lt;P&gt;Subba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 17:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944378#M943338</guid>
      <dc:creator>vsubbakrishna</dc:creator>
      <dc:date>2008-06-06T17:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944379#M943339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I don't think, try a code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION 'F-43' USING I_BDCDATA
  MODE P_MODE
  UPDATE 'S'
  MESSAGES INTO I_BDCMESSAGE.


DATA MESSAGE TYPE MESSAGE.

LOOP AT I_BDCMESSAGE.

  CALL FUNCTION 'WRITE_MESSAGE'
       EXPORTING
            MSGID = I_BDCMESSAGE-MSGID
            MSGNO = I_BDCMESSAGE-MSGNR
            MSGTY = I_BDCMESSAGE-MSGTYP
            MSGV1 = I_BDCMESSAGE-MSGV1
            MSGV2 = I_BDCMESSAGE-MSGV2
            MSGV3 = I_BDCMESSAGE-MSGV3
            MSGV4 = I_BDCMESSAGE-MSGV4
       IMPORTING
            MESSG = MESSAGE.

  WRITE: / MESSAGE-MSGTX.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way u should see all message genearted by BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 17:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944379#M943339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T17:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944380#M943340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     One of the good to way to check the BDC code is to run the program in Error only(E) mode.In this mode, if you wrote the program perfectly,then there should not be any pop up while uploading the document.If the pop up comes and ask you to press enter to complete the posting, then your BDC ok code is not handled properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While making a Recording for FI document posting:After you enter Posting key for the next line item,then dont press "enter" ,instead click the 'Next' line item button in Menu bar.This will be more clear in what the system doing.In some case what will happen,If you just press 'Enter' to go to the next line item is there might be some pop-up will come for "Additional Data" for current line item.In this case the program will not run successfully in BaCKGROUND MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 17:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944380#M943340</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2008-06-06T17:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944381#M943341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all....solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 19:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944381#M943341</guid>
      <dc:creator>vsubbakrishna</dc:creator>
      <dc:date>2008-06-06T19:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: BDC in background problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944382#M943342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved on own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2009 15:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-in-background-problem/m-p/3944382#M943342</guid>
      <dc:creator>vsubbakrishna</dc:creator>
      <dc:date>2009-06-06T15:18:11Z</dc:date>
    </item>
  </channel>
</rss>

