<?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 Problem on BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bdc/m-p/3718662#M895176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create a BDC to simulate the MRI7 process in my program, But i have a problem about that. The following is my BDC code. First of all, after enter the first screen by MIR7, then change company and finally, input header data. But I found that after I check the company, the subsequence code will not be input. Then I use the T-code to simulate the process, after change the company and press enter, trigger error message "invalid date", How to ignore those error and input subsequence data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark: The code was generated by SHDB. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMR1M' '6000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '/ENEWCC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLACHD' '1000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'BKPF-BUKRS'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BKPF-BUKRS'&lt;/P&gt;&lt;P&gt;                                  p_lifnr+6(4).&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=ENTR'.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLMR1M' '6000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM08M-VORGANG'&lt;/P&gt;&lt;P&gt;                                  '1'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'INVFO-BLDAT'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-BLDAT'&lt;/P&gt;&lt;P&gt;                                  lv_date.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-BUDAT'&lt;/P&gt;&lt;P&gt;                                  lv_date.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-XBLNR'&lt;/P&gt;&lt;P&gt;                                  'Reference'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-WRBTR'&lt;/P&gt;&lt;P&gt;                                  '5000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-MWSKZ'&lt;/P&gt;&lt;P&gt;                                  'P0'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=/00'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 09:21:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-25T09:21:29Z</dc:date>
    <item>
      <title>Problem on BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bdc/m-p/3718662#M895176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create a BDC to simulate the MRI7 process in my program, But i have a problem about that. The following is my BDC code. First of all, after enter the first screen by MIR7, then change company and finally, input header data. But I found that after I check the company, the subsequence code will not be input. Then I use the T-code to simulate the process, after change the company and press enter, trigger error message "invalid date", How to ignore those error and input subsequence data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark: The code was generated by SHDB. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMR1M' '6000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '/ENEWCC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLACHD' '1000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'BKPF-BUKRS'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BKPF-BUKRS'&lt;/P&gt;&lt;P&gt;                                  p_lifnr+6(4).&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=ENTR'.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLMR1M' '6000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM08M-VORGANG'&lt;/P&gt;&lt;P&gt;                                  '1'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'INVFO-BLDAT'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-BLDAT'&lt;/P&gt;&lt;P&gt;                                  lv_date.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-BUDAT'&lt;/P&gt;&lt;P&gt;                                  lv_date.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-XBLNR'&lt;/P&gt;&lt;P&gt;                                  'Reference'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-WRBTR'&lt;/P&gt;&lt;P&gt;                                  '5000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'INVFO-MWSKZ'&lt;/P&gt;&lt;P&gt;                                  'P0'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=/00'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 09:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bdc/m-p/3718662#M895176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T09:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bdc/m-p/3718663#M895177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like the date format that you are passing to the fields 'INVFO-BLDAT' and 'INVFO-BUDAT' are in an incorrect format which is not expected by the system. These fields are date fields and SAP expects you'll convert the date to YYYYMMDD format before passing it to BDC for the Call Transaction. So convert the date format first in your variable &lt;STRONG&gt;lv_date&lt;/STRONG&gt; into &lt;STRONG&gt;YYYYMMDD&lt;/STRONG&gt; format and then continue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
perform bdc_field using 'INVFO-BLDAT'  lv_date.
perform bdc_field using 'INVFO-BUDAT'  lv_date.
.....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 09:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bdc/m-p/3718663#M895177</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-04-25T09:30:27Z</dc:date>
    </item>
  </channel>
</rss>

