<?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: Reading Data From Tcode using BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703386#M1578221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing this for &lt;STRONG&gt;Info Record note&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;Purchase Order Text&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Feb 2011 09:31:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-11T09:31:04Z</dc:date>
    <item>
      <title>Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703383#M1578218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating an Info Record in ME11 by uploading data from excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I fetch data from excel sheet to int table, then int table to ME11 via BDC Call Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything was working fine untill now sicne I encoutered this new situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I have to enter textline in some fileds like Infopath in my case,  if all there is no text present already and I am setting data in the fields from my XLS only than its ok but if there are already entries present in that case my recording is appending new lines above theold text but I want them below the old text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 02:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703383#M1578218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T02:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703384#M1578219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi aamreta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure I understand the problem, but here's 2 things worth a mention. If you're entering data repetitively in BDCs I usually do a page down as first step and then I fill line 2. This always appends the new record instead of inserting. Another thing worth a mention is that if you have no data to fill a field, use standard BDC NO_DATA field == '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is useful. Best regards, Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 06:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703384#M1578219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T06:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703385#M1578220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have done this recording in ME11 for creating info record earlier,can you please be clear on which field you are appending and your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Shanmugam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 07:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703385#M1578220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T07:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703386#M1578221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing this for &lt;STRONG&gt;Info Record note&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;Purchase Order Text&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 09:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703386#M1578221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T09:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703387#M1578222</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;you need to do BDC for multiple entires.. in your case you have done for single entry thats why the values are over written..Adrian's suggestion is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 09:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703387#M1578222</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-02-11T09:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703388#M1578223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; My understanding from you is ,You want to append an entry in the Info Record note and when an entry is already existing your value overwrites the entry.I noted that the first line's fieldname is 'ltext1' and for the second is 'ltext2' ,...you can try putting the perform bdc_field for that particular field(ltext1) inside an if statement like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If table-ltext1 ne ' '.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'table-ltext1' 'aaaaaa'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'table-ltext2' 'bbbbbb'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly ignore if not useful or incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 10:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703388#M1578223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703389#M1578224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a program which did something similar using BDC and I got fed up with such problems after a few changes and after an upgrade (which totally changed the screens). I ended up re-writing the program to populate an INFREC IDOC and processing it using the IDOC_INPUT_INFREC function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 17:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703389#M1578224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T17:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Data From Tcode using BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703390#M1578225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your responses but my problem has been resolved in other way.&lt;/P&gt;&lt;P&gt;I need to put value in Inforecord and if the value already exist then my value should get appended in bottom else it should be inserted from first line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for this i made a func call for READ_TEXT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'READ_TEXT'
    EXPORTING
      client   = sy-mandt
      id       = 'AT'
      language = 'EN'
      name     = ''
      object   = 'EINA'
    TABLES
      lines    = it_lines1[].
  DESCRIBE TABLE it_lines1 LINES idx1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in BDC,, I have done:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;v_len = STRLEN( wa_upload-txtline1 ).                         "since only 71 char are allowed
      count = ( v_len / 71 ) + 1.
      DO count TIMES.                                                                   "no of lines form of 71 or less chars
        PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RSTXT-TXLINE'.
        v_len = STRLEN( wa_upload-txtline1 ).
        IF v_len &amp;gt; 71.
          v_txt1 = wa_upload-txtline1+(71).
          wa_upload-txtline1 = wa_upload-txtline1+71().            "first line of text and all lines in middle have fval = EDNP
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=EDNP'.
        ELSE.
          v_txt1 = wa_upload-txtline1.
          PERFORM bdc_field       USING 'BDC_OKCODE'           "Last line of text have fval = TXBA
                                     '=TXBA'.
        ENDIF.
        idx1 = idx1 + 1.
        IF cnt &amp;lt;= 9.
          CONCATENATE 'RSTXT-TXLINE' '(0' idx1 ')' INTO v_fname.          " this will set the fnam eq to fieldname(line no) for  
        ELSE.                                                                                " line no &amp;lt;= 9
          CONCATENATE 'RSTXT-TXLINE' '(' idx1 ')' INTO v_fname.            " this will set the fnam eq to fieldname(line no) for             
        ENDIF.                                                                                " line no &amp;lt;= 9
        PERFORM bdc_field       USING v_fname
                                      v_txt1.
      ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: aamreta on Feb 14, 2011 12:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 11:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-tcode-using-bdc/m-p/7703390#M1578225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T11:22:27Z</dc:date>
    </item>
  </channel>
</rss>

