<?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: How to trap the two function code in the bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trap-the-two-function-code-in-the-bdc/m-p/1081994#M98089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;    In your second case u r not specifying the BDC DYNPRO screen number , your code should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not zcontract_no is initial.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=COPY'.&lt;/P&gt;&lt;P&gt;else..&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=SUBMIT'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kunal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Oct 2005 14:30:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-23T14:30:20Z</dc:date>
    <item>
      <title>How to trap the two function code in the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trap-the-two-function-code-in-the-bdc/m-p/1081993#M98088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bdc program now i need to pick up function code based on some condition. means if some condition then goto one function code and else don't go. I tried it but not working. It is working in shdb but not in the program.&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if not zcontract_no is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       perform bdc_dynpro using 'SAPMZW_CREATE_SALES_ORDER_STD'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                '9000'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                    'P_CONTRACT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                &amp;lt;b&amp;gt;'=COPY'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                &amp;lt;b&amp;gt;'=SUBMIT'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2005 14:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trap-the-two-function-code-in-the-bdc/m-p/1081993#M98088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-23T14:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to trap the two function code in the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trap-the-two-function-code-in-the-bdc/m-p/1081994#M98089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;    In your second case u r not specifying the BDC DYNPRO screen number , your code should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not zcontract_no is initial.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=COPY'.&lt;/P&gt;&lt;P&gt;else..&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=SUBMIT'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kunal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2005 14:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trap-the-two-function-code-in-the-bdc/m-p/1081994#M98089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-23T14:30:20Z</dc:date>
    </item>
  </channel>
</rss>

