<?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 SPLIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681164#M1100770</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 to take 2 fielcd vorna and  nachn from from pa0002 table according to emp id which is in our ondeveloped table and on that table we having one field in which there are multiple empid with comma &lt;/P&gt;&lt;P&gt;i want each emp id saperated and according to that i have to write select quarri. please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 12:49:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-17T12:49:45Z</dc:date>
    <item>
      <title>SPLIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681164#M1100770</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 to take 2 fielcd vorna and  nachn from from pa0002 table according to emp id which is in our ondeveloped table and on that table we having one field in which there are multiple empid with comma &lt;/P&gt;&lt;P&gt;i want each emp id saperated and according to that i have to write select quarri. please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 12:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681164#M1100770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T12:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681165#M1100771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First select all the employee into one internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then based on that internal table you can get data into your main table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any common field is there between these tables .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681165#M1100771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681166#M1100772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lt_emp = 3243,23545343,345345,34534745,87978.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lv_emp type emp,
         lv_temp type string,

do.
if not lt_emp is intial.
    split lt_emp at ',' into LV_emp lt_emp.
    move lv_emp to itab-emp.
    append itab-emp.
    clear: itab, LV_emp.
else.
    exit.
endif.
enddo.

"vorna and nachn from from pa0002
select pernr vorna nachn
into itab_final
for all entries in itab
where emp/(or)pernr = itab-emp/(or)pernr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jay Sadaram on Oct 17, 2008 9:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681166#M1100772</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-17T13:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681167#M1100773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data: it_tmp_ees type table of string,   "temporary table for EEs
        it_ees type table of string.          "your EEs table 
data: begin of it_ee_name occurs 0,       "table where you get EE +name (result table)
          pernr type pa0002-pernr,
          vorna type pa0002-vorna,
         nachn type pa0002-nachn,
       end of it_ee_name.

LOOP AT it.   "suppose your internal table is IT
  REFRESH it_tmp_ees.
  SPLIT it-empid AT ',' INTO TABLE it_tmp_ees.   "empid is your field where you have your EE ids
  APPEND LINES OF it_tmp_ees TO it_ees.      "append your EEs to destination table
ENDLOOP.

"now when you already have your EEs' ids in it_ees get PA0002 for them
SELECT pernr vorna nachn FROM PA0002 INTO CORRESPONDIG FIELDS OF TABLE it_ee_name
FOR ALL ENTRIES IN it_ees WHERE pernr = it_ees.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681167#M1100773</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-10-17T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681168#M1100774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; thanks for you rply &lt;/P&gt;&lt;P&gt;can you please tell me what is it_ees &lt;/P&gt;&lt;P&gt;and when i am giving it in select quarri it is showinh an error message &lt;/P&gt;&lt;P&gt;it_ees can not be a table a reference a string or contain any of these objects &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also i want to gaive it in field catalog how can i give it.&lt;/P&gt;&lt;P&gt;abd i am doing in alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ankita khare on Oct 17, 2008 3:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/4681168#M1100774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:41:32Z</dc:date>
    </item>
  </channel>
</rss>

