<?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: table-infotypes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352574#M804218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil, Sravan,Shrinivas and Muneesh.. I will try all of them and let you know.. Please update me if you come across anything more regarding this.&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saipriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2008 12:34:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-28T12:34:32Z</dc:date>
    <item>
      <title>table-infotypes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352569#M804213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are table-infotypes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about this term and how it is different from infotypes as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 05:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352569#M804213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T05:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: table-infotypes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352570#M804214</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 think it is infotype tables like for IT0001-- PA0001&lt;/P&gt;&lt;P&gt;&amp;amp; for IT0002 -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; PA0002 &amp;amp; IT1001--HRP1001 like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anil.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 05:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352570#M804214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T05:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: table-infotypes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352571#M804215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;HR Personnel Administration&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotypes are usually numeric. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Infotype 0001 is for Org Assignment,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;corresponding table where the data is Stored is always PA (followed by infotype number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for Infotype 0001 the corresponding table would be PA0001. The Screen Structure is more or like P (Infotype Number) - P0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HR Org Management Infotypes&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Infotype 1000 is for Org Management Objects,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Corresponding table where the data is Stored is always HRP (followed by infotype number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for Infotype 1000 the corresponding table would be HRP1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Read the table there are standard MACROS provided by SAP. which are stored in the tabe TRMAC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 05:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352571#M804215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T05:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: table-infotypes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352572#M804216</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;Hi table infotypes are the ones which lets you store data in a tabular structure in one infotype record.&lt;/P&gt;&lt;P&gt;these infotype are normally used in OM, for e.g (1002, 1016, 1017 etc).&lt;/P&gt;&lt;P&gt;All the OM infotype which have HRT table (search in se11 with HRT*), all these are table infotypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shrinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 05:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352572#M804216</guid>
      <dc:creator>former_member31961</dc:creator>
      <dc:date>2008-01-28T05:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: table-infotypes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352573#M804217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all lets keep in mind that: in order to pass data to and from screen fields, they must have the same name as a global variable. Having said that we must define a global array containing our data and a global table view control that will be used to program the data transfers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us start with the data. Assuming that the table you wish to work with corrsponds to an ABAP dictionary structure named ZMY_STRUCT, then the table definition might look something like the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Basic ITAB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA  BEGIN OF tbl_mydata OCCURS 0.&lt;/P&gt;&lt;P&gt;DATA:  sel TYPE c.&lt;/P&gt;&lt;P&gt;       INCLUDE STRUCTURE zmy_struct.&lt;/P&gt;&lt;P&gt;DATA:  END OF tbl_mydata.&lt;/P&gt;&lt;P&gt;One can reasonably ask why a table with a header line and again why an ABAP dictionary structure. The answer to both questions will be given shortly afterwards but for now let's just say that things work much easier this way, or otherwise they don't work at all :-). The table control definition should be something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS :&lt;/P&gt;&lt;P&gt; tc_mydata TYPE TABLEVIEW USING SCREEN 0200.&lt;/P&gt;&lt;P&gt;Make sure that the screen number corresponds to the actual screen number of your program. Next move to the screen and press the layout button to invoke the screen painter. Inside the screen drop a table control item and name it TC_MYDATA. Size it so that it fits your screen according to your needs. Double click on the table control to bring up the properties dialog box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sel field of the tbl_mydata table will mark the user selected lines. Getting a field symbol to point at the selected line is as easy as writing something like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FIELD-SYMBOLS&lt;/P&gt;&lt;P&gt;   &amp;lt;fs&amp;gt; LIKE LINE OF tbl_mydata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE tbl_mydata ASSIGNING &amp;lt;fs&amp;gt; WITH KEY sel = 'X' .&lt;/P&gt;&lt;P&gt; IF NOT &amp;lt;fs&amp;gt; IS ASSIGNED.&lt;/P&gt;&lt;P&gt;   MESSAGE s888(sabapdocu) WITH text-e01. " No Selection&lt;/P&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Do what ever you want with -...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;Now press F6 to invoke the screen painter Dict.Program Fields window. In the field named Table field Name enter a search patter like like TBL_MYDATA-* and press the button labeled Get from program to display the matching table entries. Select the ones you wish to add to you screen and press the green ok button at the bottom. Then click inside the table view control to create the appropriate columns. Had the tbl_mydata table been declared any other way -- i.e. using a TYPES section or without the header line, then the process or field selection through F6 would not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: At this point just save the screen and exit screen painter without performing any kind of syntax check or activation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving back to the screen properties, the basic flow logic should at least contain the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE status_0200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT tbl_mydata WITH CONTROL tc_mydata&lt;/P&gt;&lt;P&gt;                        CURSOR tc_mydata-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MODULE read_tbl_line.&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;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE exit_screen_0200 AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT tbl_mydata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MODULE write_tbl_line.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE user_command_0200.&lt;/P&gt;&lt;P&gt;The basic idea is that during PBO the contents of the entire table are copied from the table to the table control. Then during PAI the contemns of the table control will be copied from the control back to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before copying any data though, we must first set the size of the table control. The best place to do this is probably at the status module. Now, although my mother told me never to use global variables, the usual approach to setting the table size during PBO, starts by declaring a global field named somthing liketotal_entries or table_size being of type i. Having done that your status_XXX module should at least contain the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0200 OUTPUT.&lt;/P&gt;&lt;P&gt; SET TITLEBAR 'TB_200'.&lt;/P&gt;&lt;P&gt; SET PF-STATUS 'SCREEN-0200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DESCRIBE TABLE tbl_istat LINES total_entries.&lt;/P&gt;&lt;P&gt; tc_mydata-lines = total_entries.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " status_0200  OUTPUT&lt;/P&gt;&lt;P&gt;To create the read_tbl_line module, double click on the read_tbl_line inside the screen flow editor. A message will pop up asking if the a module named read_tbl_line should be created. Answer yes and depending on the type of program you are creating select the appropriate file. After you press ok, change the text in the editor so it looks like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE read_tbl_line OUTPUT.&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING tbl_mydata TO tc_mydata.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " read_tbl_line  OUTPUT&lt;/P&gt;&lt;P&gt;Finally the write_tbl_line PAI module does the exact opposite. It moves the data from the table control back to the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE write_tbl_line INPUT.&lt;/P&gt;&lt;P&gt; MODIFY tbl_mydata INDEX tc_mydata-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   APPEND tbl_mydata.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " write_tbl_line  INPUT&lt;/P&gt;&lt;P&gt;From now on any code executing during the user_command_XXX module will get a consistent copy of the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen programming in ABAP is a complex subject. This post provides only the basic template for minimal operations. More post will follow explaining how to respond to data changes, sort tables based on selected columns and dynamically changing your screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Muneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 07:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352573#M804217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T07:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: table-infotypes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352574#M804218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil, Sravan,Shrinivas and Muneesh.. I will try all of them and let you know.. Please update me if you come across anything more regarding this.&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saipriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 12:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352574#M804218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: table-infotypes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352575#M804219</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'm not sure if you are trying to create a table infotype but if it is an OM/PD infotype, you can create it using the transaction PPCI and lets you choose whether the infotype is a field infotype or a Table infotype. &lt;/P&gt;&lt;P&gt;I'm haven't seen the same functionality in PA infotypes. Usually you will have to code it your slef and call the editor function modules. Just out of curosity, is there a similar way to create a PA infotype as such? An infotype with a text editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 16:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-infotypes/m-p/3352575#M804219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T16:11:15Z</dc:date>
    </item>
  </channel>
</rss>

