<?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 Re: VA02: BDC Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bdc-issue/m-p/4457151#M1056546</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;I think u missed to recoed SAVE ... is it saving in foregrawnd , without u cliking on SAVE button ......... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 06:02:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-17T06:02:05Z</dc:date>
    <item>
      <title>VA02: BDC Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bdc-issue/m-p/4457150#M1056545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have upgraded the SAP system from 4.6C to ECC6, a piece of BDC code which was working before in 4.6C has stopped functioning. When run in FOREGROUND mode, program executes fine and changes the sales order, but when the program is executed in BACKGROUND with the same inputs, it fails to function. i.e. Sales order is not changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried to see the SQL Trace and it seems like in background mode the order processing is going through some extra checks based on fields SY-BATCH and SY-BINPT. (Seems like in background mode ECC6 is not changing the pricing data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code, it has few fields taken from Z tables, but the logic of screens flow is all there.&lt;/P&gt;&lt;P&gt;Expect full points on reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form update_va02_qw.&lt;/P&gt;&lt;P&gt;  if nobill = space and x_nobill = space.&lt;/P&gt;&lt;P&gt;    refresh bdcdata.&lt;/P&gt;&lt;P&gt;    clear bdcdata.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV45A' '0102'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'VBAK-VBELN' i8c-vbeln.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;    if i8c-edatu &amp;lt;&amp;gt; i8c-compl or x_pn00 = 1 or&lt;/P&gt;&lt;P&gt;       x_tek05 &amp;lt;&amp;gt; x_aek05 or x_tek06 &amp;lt;&amp;gt; x_aek06.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE' '=POPO'.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMV45A' '0251'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RV45A-POSNR' i8c-posnr.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE' '=POSI'.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;      if i8c-edatu &amp;lt;&amp;gt; i8c-compl.&lt;/P&gt;&lt;P&gt;        write i8c-compl to x_datex dd/mm/yy.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'RV45A-ETDAT(01)' x_datex.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      if x_pn00 = 1 or x_tek05 &amp;lt;&amp;gt; x_aek05 or x_tek06 &amp;lt;&amp;gt; x_aek06.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'RV45A-VBAP_SELKZ(01)' 'X'.&lt;/P&gt;&lt;P&gt;        perform bdc_field using: 'BDC_OKCODE' '=PKO1'.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;        clear: x_cnt.&lt;/P&gt;&lt;P&gt;        if x_ek05 = 1 and x_tek05 &amp;lt;&amp;gt; x_aek05.&lt;/P&gt;&lt;P&gt;          perform bdc_field       using 'RV61A-SELKZ(09)' 'X'.&lt;/P&gt;&lt;P&gt;          x_cnt = 1.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        if x_ek06 = 1 and x_tek06 &amp;lt;&amp;gt; x_aek06.&lt;/P&gt;&lt;P&gt;          x_cnt = 1.&lt;/P&gt;&lt;P&gt;          if x_ek05 = 1.&lt;/P&gt;&lt;P&gt;            perform bdc_field       using 'RV61A-SELKZ(10)' 'X'.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            perform bdc_field       using 'RV61A-SELKZ(09)' 'X'.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        if x_pn00 = 1.&lt;/P&gt;&lt;P&gt;          x_cnt = 1.&lt;/P&gt;&lt;P&gt;          if x_ek05 = 1.&lt;/P&gt;&lt;P&gt;            if x_ek06 = 1.&lt;/P&gt;&lt;P&gt;              perform bdc_field       using 'RV61A-SELKZ(12)' 'X'.&lt;/P&gt;&lt;P&gt;            else.&lt;/P&gt;&lt;P&gt;              perform bdc_field       using 'RV61A-SELKZ(11)' 'X'.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            perform bdc_field       using 'RV61A-SELKZ(10)' 'X'.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        if x_cnt = 1.&lt;/P&gt;&lt;P&gt;          perform bdc_field       using 'BDC_OKCODE' '=V69A_KOLO'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'BDC_OKCODE' '=V69A_KOAN'.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;        perform bdc_field  using 'KOMV-KSCHL(02)' 'EK05'. "Metrix Cost&lt;/P&gt;&lt;P&gt;        write: x_tek05 to x_amntx.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'KOMV-KBETR(02)' x_amntx.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'BDC_OKCODE' '=V69A_KOAN'.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;        perform bdc_field  using 'KOMV-KSCHL(02)' 'EK06'. "Metrix Cost&lt;/P&gt;&lt;P&gt;        write: x_tek06 to x_amntx.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'KOMV-KBETR(02)' x_amntx.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'BDC_OKCODE' '/EBACK'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;    if vbak-lifsk &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAK-LIFSK' ' '.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if vbak-faksk &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAK-FAKSK' ' '.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    perform bdc_field using: 'BDC_OKCODE' '=KBES'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV45A' '4002'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'VBKD-IHREZ' x_ihrez.&lt;/P&gt;&lt;P&gt;    perform bdc_field using: 'BDC_OKCODE' '/11'.&lt;/P&gt;&lt;P&gt;    if x_batch = 'X'.&lt;/P&gt;&lt;P&gt;      perform bdc_insert using 'VA02'.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      opt-dismode = 'E'.&lt;/P&gt;&lt;P&gt;      call transaction 'VA02' using bdcdata options from opt&lt;/P&gt;&lt;P&gt;         messages into itab.&lt;/P&gt;&lt;P&gt;      sort itab.&lt;/P&gt;&lt;P&gt;      loop at itab where msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;        if nodel = space.&lt;/P&gt;&lt;P&gt;          message id itab-msgid type 'E' number itab-msgnr with&lt;/P&gt;&lt;P&gt;            itab-msgv1 itab-msgv2 itab-msgv3 itab-msgv4 into x_emsg.&lt;/P&gt;&lt;P&gt;          write: / 'Update VA02 Error - zs8c', reqid,  x_emsg.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 13:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bdc-issue/m-p/4457150#M1056545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T13:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: VA02: BDC Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bdc-issue/m-p/4457151#M1056546</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;I think u missed to recoed SAVE ... is it saving in foregrawnd , without u cliking on SAVE button ......... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bdc-issue/m-p/4457151#M1056546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T06:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: VA02: BDC Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bdc-issue/m-p/4457152#M1056547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stone , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have faced same kind of probs with CO11, try to make use of CTU_PARAMS-NOBINPT itself,just play around values of NOBINPT = 'X' or Space , i think it will solve ur probs.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bdc-issue/m-p/4457152#M1056547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T06:32:53Z</dc:date>
    </item>
  </channel>
</rss>

