<?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: problem with data type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-type/m-p/1647788#M288038</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 this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB_EKPO OCCURS 0,&lt;/P&gt;&lt;P&gt;       BEDNR LIKE EKPO-BEDNR,&lt;/P&gt;&lt;P&gt;       AFNAM LIKE EKPO-AFNAM,&lt;/P&gt;&lt;P&gt;      END OF ITAB_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB_VBRK OCCURS 0,&lt;/P&gt;&lt;P&gt;       AUBEL LIKE VBRP-AUBEL,&lt;/P&gt;&lt;P&gt;       AUPOS LIKE VBRP-AUPOS,&lt;/P&gt;&lt;P&gt;      END OF ITAB_VBRK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lets say if you have the po detail in the internal table...You cannot directly use the internal table for the vbrk as the data type will not match..Instead populate the values from the PO internal table to the ITAB_VBRK internal table and then use the FOR ALL ENTRIES...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ITAB_VBRK-AUBEL = ITAB_EKPO-BEDNR.&lt;/P&gt;&lt;P&gt;  ITAB_VBRK-AUPOS = ITAB_EKPO-AFNAM.&lt;/P&gt;&lt;P&gt;  APPEND ITAB_VBRK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECT THE DATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM VBRP&lt;/P&gt;&lt;P&gt;       INTO TABLE T_VBRP&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN ITAB_VBRK&lt;/P&gt;&lt;P&gt;       WHERE AUBEL = ITAB_VBRK-AUBEL&lt;/P&gt;&lt;P&gt;       AND   AUPOS = ITAB_VBRK-AUPOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you want..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2006 20:16:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-25T20:16:07Z</dc:date>
    <item>
      <title>problem with data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-type/m-p/1647787#M288037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement where i need to relate &lt;/P&gt;&lt;P&gt;ekpo-bednr and&lt;/P&gt;&lt;P&gt;ekpo-afnam         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; with  vbrp- AUBEL and&lt;/P&gt;&lt;P&gt;       vbrp-aupos &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted to do &lt;/P&gt;&lt;P&gt;for all entries select with these two tables; meaning for all entries of ekpo-afnam and ekpo-bednr need to select vbrp-aubel and vbrp-aupos..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the difficuty is the data type of afnam and aupos is diffrent , it says this cannot be used FOR all ENTRIES in purpose...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any of you please let me know , for anyother way to get this query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;RInky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 19:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-type/m-p/1647787#M288037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T19:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-type/m-p/1647788#M288038</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 this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB_EKPO OCCURS 0,&lt;/P&gt;&lt;P&gt;       BEDNR LIKE EKPO-BEDNR,&lt;/P&gt;&lt;P&gt;       AFNAM LIKE EKPO-AFNAM,&lt;/P&gt;&lt;P&gt;      END OF ITAB_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB_VBRK OCCURS 0,&lt;/P&gt;&lt;P&gt;       AUBEL LIKE VBRP-AUBEL,&lt;/P&gt;&lt;P&gt;       AUPOS LIKE VBRP-AUPOS,&lt;/P&gt;&lt;P&gt;      END OF ITAB_VBRK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lets say if you have the po detail in the internal table...You cannot directly use the internal table for the vbrk as the data type will not match..Instead populate the values from the PO internal table to the ITAB_VBRK internal table and then use the FOR ALL ENTRIES...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ITAB_VBRK-AUBEL = ITAB_EKPO-BEDNR.&lt;/P&gt;&lt;P&gt;  ITAB_VBRK-AUPOS = ITAB_EKPO-AFNAM.&lt;/P&gt;&lt;P&gt;  APPEND ITAB_VBRK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECT THE DATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM VBRP&lt;/P&gt;&lt;P&gt;       INTO TABLE T_VBRP&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN ITAB_VBRK&lt;/P&gt;&lt;P&gt;       WHERE AUBEL = ITAB_VBRK-AUBEL&lt;/P&gt;&lt;P&gt;       AND   AUPOS = ITAB_VBRK-AUPOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you want..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 20:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-type/m-p/1647788#M288038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T20:16:07Z</dc:date>
    </item>
  </channel>
</rss>

