<?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 session method and table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944808#M943436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam doing BDC,but iam stuck in one point please suggest me how to proceed further.&lt;/P&gt;&lt;P&gt;in table control of bdc i have three records.&lt;/P&gt;&lt;P&gt;i have to check an particulat field like WA_ITAB_COBRB_NEW-LETJA  is not empty then i need to do BDC for that particular row.&lt;/P&gt;&lt;P&gt;now the same check for the second row and if any data exits in that field i need to skip that particular row for recording that means i need to increment tmpnum = tmpnum+1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam doing bdc for ko02 t.code.&lt;/P&gt;&lt;P&gt;and for planned settlement version copy from 01 to 02 and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the below is my code.&lt;/P&gt;&lt;P&gt;but i think it is not accurate please suggest me .&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_TEMP_VERSN2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHERE OBJNR = TMPOBJNR AND VERSN = XVERSN1.&lt;/P&gt;&lt;P&gt;CLEAR: FLAG.&lt;/P&gt;&lt;P&gt;tmpnum = sy-tabix .&lt;/P&gt;&lt;P&gt;case: tmpnum.&lt;/P&gt;&lt;P&gt;when '1'.&lt;/P&gt;&lt;P&gt;    READ TABLE ITAB_COBRB_NEW INTO WA_ITAB_COBRB_NEW with key urzuo = '097'.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0 and WA_ITAB_COBRB_NEW-LETJA &amp;lt;&amp;gt; '0000'.&lt;/P&gt;&lt;P&gt;    FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;when '2'.&lt;/P&gt;&lt;P&gt;   READ TABLE ITAB_COBRB_NEW INTO WA_ITAB_COBRB_NEW with key urzuo = '095'.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0 and WA_ITAB_COBRB_NEW-LETJA &amp;lt;&amp;gt; '0000'.&lt;/P&gt;&lt;P&gt;   FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;when '3'.&lt;/P&gt;&lt;P&gt;    READ TABLE ITAB_COBRB_NEW INTO WA_ITAB_COBRB_NEW with key urzuo = '094'.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0 and WA_ITAB_COBRB_NEW-LETJA &amp;lt;&amp;gt; '0000'.&lt;/P&gt;&lt;P&gt;    FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;TMPFIELDNUM  = TMPFIELDNUM  + 1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;TMPFIELDNUM  = TMPFIELDNUM  + 1.&lt;/P&gt;&lt;P&gt; CLEAR: TMPBDCFIELD.&lt;/P&gt;&lt;P&gt; CONCATENATE 'DKOBR-EMPGE(' TMPFIELDNUM ')' INTO TMPBDCFIELD.&lt;/P&gt;&lt;P&gt; PERFORM BDC_FIELD USING TMPBDCFIELD ITAB_TEMP_VERSN2-KOSTL.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks in advance and waiting for solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2008 17:40:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-06T17:40:30Z</dc:date>
    <item>
      <title>Bdc session method and table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944808#M943436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam doing BDC,but iam stuck in one point please suggest me how to proceed further.&lt;/P&gt;&lt;P&gt;in table control of bdc i have three records.&lt;/P&gt;&lt;P&gt;i have to check an particulat field like WA_ITAB_COBRB_NEW-LETJA  is not empty then i need to do BDC for that particular row.&lt;/P&gt;&lt;P&gt;now the same check for the second row and if any data exits in that field i need to skip that particular row for recording that means i need to increment tmpnum = tmpnum+1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam doing bdc for ko02 t.code.&lt;/P&gt;&lt;P&gt;and for planned settlement version copy from 01 to 02 and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the below is my code.&lt;/P&gt;&lt;P&gt;but i think it is not accurate please suggest me .&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_TEMP_VERSN2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHERE OBJNR = TMPOBJNR AND VERSN = XVERSN1.&lt;/P&gt;&lt;P&gt;CLEAR: FLAG.&lt;/P&gt;&lt;P&gt;tmpnum = sy-tabix .&lt;/P&gt;&lt;P&gt;case: tmpnum.&lt;/P&gt;&lt;P&gt;when '1'.&lt;/P&gt;&lt;P&gt;    READ TABLE ITAB_COBRB_NEW INTO WA_ITAB_COBRB_NEW with key urzuo = '097'.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0 and WA_ITAB_COBRB_NEW-LETJA &amp;lt;&amp;gt; '0000'.&lt;/P&gt;&lt;P&gt;    FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;when '2'.&lt;/P&gt;&lt;P&gt;   READ TABLE ITAB_COBRB_NEW INTO WA_ITAB_COBRB_NEW with key urzuo = '095'.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0 and WA_ITAB_COBRB_NEW-LETJA &amp;lt;&amp;gt; '0000'.&lt;/P&gt;&lt;P&gt;   FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;when '3'.&lt;/P&gt;&lt;P&gt;    READ TABLE ITAB_COBRB_NEW INTO WA_ITAB_COBRB_NEW with key urzuo = '094'.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0 and WA_ITAB_COBRB_NEW-LETJA &amp;lt;&amp;gt; '0000'.&lt;/P&gt;&lt;P&gt;    FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;TMPFIELDNUM  = TMPFIELDNUM  + 1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;TMPFIELDNUM  = TMPFIELDNUM  + 1.&lt;/P&gt;&lt;P&gt; CLEAR: TMPBDCFIELD.&lt;/P&gt;&lt;P&gt; CONCATENATE 'DKOBR-EMPGE(' TMPFIELDNUM ')' INTO TMPBDCFIELD.&lt;/P&gt;&lt;P&gt; PERFORM BDC_FIELD USING TMPBDCFIELD ITAB_TEMP_VERSN2-KOSTL.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks in advance and waiting for solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 17:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944808#M943436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc session method and table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944809#M943437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aruna kumar,&lt;/P&gt;&lt;P&gt;You can very well handle the table controls in BDC session method using line index , &lt;/P&gt;&lt;P&gt;Line index indicates which line of Table control is to be use for BDC transaction,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex - &lt;/P&gt;&lt;P&gt;perform bdc_field using 'RC29K-AUSKZ(01)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;indicates 1st line of table control is going to be used for transaction which is Line index of Table Control &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&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;Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 20:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944809#M943437</guid>
      <dc:creator>former_member188594</dc:creator>
      <dc:date>2008-06-06T20:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc session method and table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944810#M943438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aruna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even your logic is a little funny, everything seems to be fine except the counting of the field TMPFIELDNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your block&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF FLAG = 'Y'.
TMPFIELDNUM = TMPFIELDNUM + 1.
ELSE.
TMPFIELDNUM = TMPFIELDNUM + 1.
CLEAR: TMPBDCFIELD.
CONCATENATE 'DKOBR-EMPGE(' TMPFIELDNUM ')' INTO TMPBDCFIELD.
PERFORM BDC_FIELD USING TMPBDCFIELD ITAB_TEMP_VERSN2-KOSTL.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Should be replaced by&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF FLAG is initial..
  TMPFIELDNUM = TMPFIELDNUM + 1.
  CLEAR: TMPBDCFIELD.
  CONCATENATE 'DKOBR-EMPGE(' TMPFIELDNUM ')' INTO TMPBDCFIELD.
  PERFORM BDC_FIELD USING TMPBDCFIELD ITAB_TEMP_VERSN2-KOSTL.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement &lt;STRONG&gt;if sy-subrc eq 0 and WA_ITAB_COBRB_NEW-LETJA '0000'.&lt;/STRONG&gt; will cause a syntax error (= '0000').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the second parameter of the PERFORM also a table field? If YES, then there has to be an index appended as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have success,&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jun 2008 04:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944810#M943438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-07T04:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc session method and table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944811#M943439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you i have solved it.i only found out solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-and-table-control/m-p/3944811#M943439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:49:31Z</dc:date>
    </item>
  </channel>
</rss>

