<?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 Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458503#M1056808</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 a requirement in HR. This is BDC. There are 2 process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In input file indicator is 'C' means change record in infotype 2001 and if subtype 1200 means change in infotype 0082 otherwise no need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In input file indicator is 'N' means create record in infotype 2001 and if subtype 1200 means create in infotype 0082 otherwise no need.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Before create/change record in 0082, check whether record exists in infotype 2001 or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Exam: indicator is 'N', then we need to create a new record in 2001. So I'll write BDC coding(session - Perform statements). if subtype is '1200'. So i need to create a record in infotype 0082.&lt;/P&gt;&lt;P&gt;In this place i must check whther record exists or not in 2001.&lt;/P&gt;&lt;P&gt;But the new record will update after process the session in 'SM35'. How I check before inserting a record to 0082?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if may use 2 programs to implement the logic. but req is will develope in single program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2008 08:02:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-15T08:02:43Z</dc:date>
    <item>
      <title>BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458503#M1056808</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 a requirement in HR. This is BDC. There are 2 process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In input file indicator is 'C' means change record in infotype 2001 and if subtype 1200 means change in infotype 0082 otherwise no need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In input file indicator is 'N' means create record in infotype 2001 and if subtype 1200 means create in infotype 0082 otherwise no need.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Before create/change record in 0082, check whether record exists in infotype 2001 or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Exam: indicator is 'N', then we need to create a new record in 2001. So I'll write BDC coding(session - Perform statements). if subtype is '1200'. So i need to create a record in infotype 0082.&lt;/P&gt;&lt;P&gt;In this place i must check whther record exists or not in 2001.&lt;/P&gt;&lt;P&gt;But the new record will update after process the session in 'SM35'. How I check before inserting a record to 0082?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if may use 2 programs to implement the logic. but req is will develope in single program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 08:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458503#M1056808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T08:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458504#M1056809</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;&lt;/P&gt;&lt;P&gt;   First record BDC as per your requirtment( Change and Create). You record separately for change and create and put the condition below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read Table lt_itab into wa_itab or loop at lt_itab into wa_itab.&lt;/P&gt;&lt;P&gt;if input file indicator is 'C'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   if infotype eq '2001' and subtype eq '1200'.&lt;/P&gt;&lt;P&gt;    infotype eq '0082'.&lt;/P&gt;&lt;P&gt;    change....&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif input file indicator is 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if infotype eq '2001' and subtype eq '1200'.&lt;/P&gt;&lt;P&gt;    infotype eq '0082'.&lt;/P&gt;&lt;P&gt;    create....&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't want to create two Program for this. You can do in one program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back for your further needful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 11:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458504#M1056809</guid>
      <dc:creator>saranwin</dc:creator>
      <dc:date>2008-09-15T11:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458505#M1056810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saran,&lt;/P&gt;&lt;P&gt;Thanks for reply. I already developed the program as your logic. i mean developed all logic in single program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Exam: indicator is 'N', then we need to create a new record in 2001. So I'll write BDC coding(session - Perform statements). if subtype is '1200'. So i need to create a record in infotype 0082. So I'll write BDC coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this place i must check whether record exists or not in 2001 before inserting record to IT0082.&lt;/P&gt;&lt;P&gt;But the new record will update in  2001 IT 2001 after process the session in 'SM35'. How I check before inserting a record to 0082 in program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 09:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458505#M1056810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458506#M1056811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 02:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/4458506#M1056811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T02:09:08Z</dc:date>
    </item>
  </channel>
</rss>

