<?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 Working with internal table issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167276#M1516709</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;i have internal table with the follwing data&lt;/P&gt;&lt;P&gt;and i want to move the entries (FNAM ,FVAL ) that relate to one screen 0101&lt;/P&gt;&lt;P&gt;into new table and the entries for the new screen 7101 to diffrent table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;program        dynpro   dynbegin  fnam            fval

SAPMF02D	0101	X
	0000		          BDC_CURSOR	  RF02D-D0110
	0000		          BDC_OKCODE	  /00
	0000		          RF02D-KUNNR	  1000
	0000		          RF02D-D0110	  X
SAPMF02D	7101	X
	0000		          BDC_OKCODE	  /EF12
	0000		          BDC_CURSOR	  RF02D-KUNNR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want in table 1 for screen 0101 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fnam            fval
BDC_CURSOR	  RF02D-D0110
BDC_OKCODE	  /00
RF02D-KUNNR	  1000
RF02D-D0110	  X&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in table 2 screen 7101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BDC_OKCODE	  /EF12
BDC_CURSOR	  RF02D-KUNNR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the best way to do that assume the tables content can &lt;/P&gt;&lt;P&gt;be change i.e. have more screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Aug 2010 11:24:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-16T11:24:11Z</dc:date>
    <item>
      <title>Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167276#M1516709</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;i have internal table with the follwing data&lt;/P&gt;&lt;P&gt;and i want to move the entries (FNAM ,FVAL ) that relate to one screen 0101&lt;/P&gt;&lt;P&gt;into new table and the entries for the new screen 7101 to diffrent table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;program        dynpro   dynbegin  fnam            fval

SAPMF02D	0101	X
	0000		          BDC_CURSOR	  RF02D-D0110
	0000		          BDC_OKCODE	  /00
	0000		          RF02D-KUNNR	  1000
	0000		          RF02D-D0110	  X
SAPMF02D	7101	X
	0000		          BDC_OKCODE	  /EF12
	0000		          BDC_CURSOR	  RF02D-KUNNR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want in table 1 for screen 0101 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fnam            fval
BDC_CURSOR	  RF02D-D0110
BDC_OKCODE	  /00
RF02D-KUNNR	  1000
RF02D-D0110	  X&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in table 2 screen 7101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BDC_OKCODE	  /EF12
BDC_CURSOR	  RF02D-KUNNR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the best way to do that assume the tables content can &lt;/P&gt;&lt;P&gt;be change i.e. have more screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 11:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167276#M1516709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T11:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167277#M1516710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created some simple pseudo code... may help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab ASSIGNING &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;    CASE &amp;lt;fs_line&amp;gt;-dynpro.&lt;/P&gt;&lt;P&gt;      WHEN '0101'.&lt;/P&gt;&lt;P&gt;        flag_0101 = abap_true.&lt;/P&gt;&lt;P&gt;        flag_7101 = abap_false.&lt;/P&gt;&lt;P&gt;      WHEN '0101'.&lt;/P&gt;&lt;P&gt;        flag_0101 = abap_false.&lt;/P&gt;&lt;P&gt;        flag_7101 = abap_true.&lt;/P&gt;&lt;P&gt;      WHEN space.&lt;/P&gt;&lt;P&gt;        IF flag_0101 = abap_true.&lt;/P&gt;&lt;P&gt;          ... code to move entries to 0101 itab...&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        IF flag_7101 = abap_true.&lt;/P&gt;&lt;P&gt;          ... code to move entries to 7101 itab...&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;        CLEAR: flag_0101, flag_7101.&lt;/P&gt;&lt;P&gt;    ENDCASE.&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;&amp;lt;removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Aug 16, 2010 2:12 PM - please do not ask for ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 11:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167277#M1516710</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2010-08-16T11:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167278#M1516711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gemini Twin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks but the problem here is that you refer &lt;/P&gt;&lt;P&gt;to the screen like hardcoded screen 0101 7101 and this is the simple &lt;/P&gt;&lt;P&gt;case i wont a generic solution since the screen num can be change&lt;/P&gt;&lt;P&gt;to 200 300 etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 12:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167278#M1516711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167279#M1516712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At some point you will have to know the screen number you are dealing with, otherwise how would you knwo where to move the values to? Not sure how else you could do this then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 12:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167279#M1516712</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2010-08-16T12:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167280#M1516713</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;There is no way to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 13:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167280#M1516713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T13:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167281#M1516714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A suggestion/sample on how to build an internal table of internal tables associated to the dynpros of the batch input :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF dynpros,
         program LIKE bdcdata-program,
         dynpro LIKE bdcdata-dynpro,
         bdcdata LIKE bdcdata OCCURS 0,
       END OF dynpros.

DATA: i_data TYPE TABLE OF bdcdata,
      e_data TYPE TABLE OF dynpros.

FIELD-SYMBOLS: &amp;lt;f1&amp;gt; TYPE bdcdata,
               &amp;lt;f2&amp;gt; TYPE dynpros.

LOOP AT i_data ASSIGNING &amp;lt;f1&amp;gt;.
  IF &amp;lt;f1&amp;gt;-program IS NOT INITIAL
  OR &amp;lt;f1&amp;gt;-dynpro IS NOT INITIAL.
    READ TABLE e_data ASSIGNING &amp;lt;f2&amp;gt;
      WITH KEY program = &amp;lt;f1&amp;gt;-program
               dynpro = &amp;lt;f1&amp;gt;-dynpro.
    IF sy-subrc NE 0.
      APPEND INITIAL LINE TO e_data ASSIGNING &amp;lt;f2&amp;gt;.
      &amp;lt;f2&amp;gt;-program = &amp;lt;f1&amp;gt;-program.
      &amp;lt;f2&amp;gt;-dynpro = &amp;lt;f1&amp;gt;-dynpro.
    ENDIF.
    APPEND &amp;lt;f1&amp;gt; TO &amp;lt;f2&amp;gt;-bdcdata.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 13:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167281#M1516714</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-16T13:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167282#M1516715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Raymond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try your code with little adjustment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   TYPES: BEGIN OF dynpros,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         program TYPE  bdcdata-program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         dynpro TYPE bdcdata-dynpro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         bdcdata TYPE hrtb_bdcdata , &amp;lt;-- change it to table for the append statment  APPEND &amp;lt;f1&amp;gt; TO &amp;lt;f2&amp;gt;-bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       END OF dynpros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what i get in e_data is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPMF02D	0101	Standard Table[1x5(618)]&lt;/P&gt;&lt;P&gt;SAPMF02D	7101	Standard Table[1x5(618)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not really what i need &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to get all the FNAM and FVAL from the table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want in table 1 for screen 0101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fnam            fval&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BDC_CURSOR	  RF02D-D0110

BDC_OKCODE	  /00

RF02D-KUNNR	  1000

RF02D-D0110	  X&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;and in table 2 screen 7101

BDC_OKCODE	  /EF12

BDC_CURSOR	  RF02D-KUNNR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 14:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167282#M1516715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T14:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167283#M1516716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a local table type for e_data-bdcdata,  with only fields fnam and fval, and only append if those are not initial. Your first result internal table will be e_data[1]-bdcdata, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 14:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167283#M1516716</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-16T14:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167284#M1516717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Raymond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks again&lt;/P&gt;&lt;P&gt;it try to do your suggestion and its not work&lt;/P&gt;&lt;P&gt;any differnt suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 15:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167284#M1516717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T15:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167285#M1516718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, alex, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you take a look into the BAPI's : BAPI_CUSTOMER_CREATE, &lt;/P&gt;&lt;P&gt;                                                         BAPI_CUSTOMER_EDIT ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Sebastiá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 17:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167285#M1516718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T17:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Working with internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167286#M1516719</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;I know this Bapi's but how they should help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 10:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-internal-table-issue/m-p/7167286#M1516719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T10:16:00Z</dc:date>
    </item>
  </channel>
</rss>

