<?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: Getting the record data. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629015#M604307</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; Loop at itab.&lt;/P&gt;&lt;P&gt;*--Write logic to get the selected records and store it in jtab. (Hope this logic is already in place with you)&lt;/P&gt;&lt;P&gt;put them into jtab.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;ktab[] = jtab[]. " Ktab to get the seleted records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort table jtab by KUNNR, VKORG, VTWEG, SPART .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from jtab comparing VKORG, VTWEG, SPART .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table jtab lines v_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_lines is 1 then it indicates that you have selected lines 1 and 3 and in delete command it got deleted only one left as they have same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;here you have selected lines 1 and 2 and the delete statment will not delete any records...&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;Hope this helps .. let me know if its not clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 17:07:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T17:07:04Z</dc:date>
    <item>
      <title>Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629014#M604306</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;&lt;/P&gt;&lt;P&gt;Good Morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had same question before, but there I was not getting the record data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my internal table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KUNNR, VKORG, VTWEG, SPART, CRDATE, EFDATE, SPRICE, EPRICE, SQTY, EQTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This internal table is the user selected records using a report display with check box to select the records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the internal table with the user selected records if the KUNNR, VKORG, VTWEG, SPART values are same it has to go to if condition and I need to catch the data of the records to use in the Function other wise go to else condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lOOP AT ITAB.&lt;/P&gt;&lt;P&gt;IF ---&lt;/P&gt;&lt;P&gt;CALL FUNCTION&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) 1001 300 20 01 12/01/2006 01/01/2007 10.00 9.00 10 09&lt;/P&gt;&lt;P&gt;2) 1001 300 10 01 -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;3) 1001 300 20 01 -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects records 1 and 3 it has to go in to IF condition. Here I need the records data of 1 and 3.&lt;/P&gt;&lt;P&gt;If the user selects records 1 and 2 it has to go in to ELSE condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me. Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neelu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 16:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629014#M604306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T16:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629015#M604307</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; Loop at itab.&lt;/P&gt;&lt;P&gt;*--Write logic to get the selected records and store it in jtab. (Hope this logic is already in place with you)&lt;/P&gt;&lt;P&gt;put them into jtab.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;ktab[] = jtab[]. " Ktab to get the seleted records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort table jtab by KUNNR, VKORG, VTWEG, SPART .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from jtab comparing VKORG, VTWEG, SPART .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table jtab lines v_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_lines is 1 then it indicates that you have selected lines 1 and 3 and in delete command it got deleted only one left as they have same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;here you have selected lines 1 and 2 and the delete statment will not delete any records...&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;Hope this helps .. let me know if its not clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 17:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629015#M604307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T17:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629016#M604308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to delete any records. I want to get the data of the records if 4 0f 10 fields are same other wise go to else condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neelu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 17:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629016#M604308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629017#M604309</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;Check the code i have made a copy of all the selected records into ktab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ktab[] = jtab[]. "&lt;/P&gt;&lt;P&gt;I am just deleting to arrive to ur condition.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ktab will have all the seleted records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 17:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629017#M604309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T17:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629018#M604310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want ktab[] to include only records with same VKORG,VTWEG,SPART and KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neelu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 17:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629018#M604310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T17:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629019#M604311</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; See you have only two conditions.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) when both seleted or same...  then Ktab will only contian the same records&lt;/P&gt;&lt;P&gt;2) when both seleted or different..  ktab wil contain distinct records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irrespetive of what is seleted the thing that you were asking was if the seleted recrods or same or not if same do some thing with the seleted records if not same do some thing else with the seleted records.. right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so Ktab will contain all the seleted records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i have taken jtab just to arrive to whether all of them or same or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i have understood out of your post...  let me know if you stil have prob....  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 18:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629019#M604311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T18:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629020#M604312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. It is exactly my req.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is the following logic correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;*--logic to get the selected records and store it in jtab.&lt;/P&gt;&lt;P&gt;put them into jtab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ktab[] = jtab[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort table jtab by KUNNR, VKORG, VTWEG, SPART .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from jtab comparing VKORG, VTWEG, SPART .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table jtab lines v_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_lines = 1 &lt;/P&gt;&lt;P&gt;then call function with ktab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;EXIT&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;Thanks,&lt;/P&gt;&lt;P&gt;Neelu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 18:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629020#M604312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T18:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629021#M604313</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;  cool.. njoy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 18:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629021#M604313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T18:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the record data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629022#M604314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mahesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appriciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neelu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 18:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-record-data/m-p/2629022#M604314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T18:34:55Z</dc:date>
    </item>
  </channel>
</rss>

