<?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: Accessing Table Type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694931#M623690</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;          Thanks a lot for the response. Just a few more doubts.&lt;/P&gt;&lt;P&gt;In the code above as per the functionality i am assuming the function module will pass only one record to the table type. So i am just fetching that record and passing it to the next function module.Does it mean that the table type can store only one record at a time? Or can it store multiple records(like a normal internal table)?&lt;/P&gt;&lt;P&gt;I am just storing the information obtained(ITAB_WRKAREA)  from the first FM and passing it to the next function. So i do not need any work area . I can just pass ITAB_WRKAREA to the second FM.  Am i right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 22:36:46 GMT</pubDate>
    <dc:creator>madhu_reddy22</dc:creator>
    <dc:date>2007-08-28T22:36:46Z</dc:date>
    <item>
      <title>Accessing Table Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694928#M623687</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;    In the code below WFAT_EMP_INT_EMPWA is a table type.&lt;/P&gt;&lt;P&gt;For the function module 'WFA_EMP_DATA_GET' ,  ET_EMP_WORKAREA is an export parameter of type WFAT_EMP_INT_EMPWA&lt;/P&gt;&lt;P&gt;For the function module 'WFA_EMP_DATA_MODIFY' , IT_EMP_WORKAREA is an import parameter of the same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get  the parameter from one function module and pass it to the next function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Do i need to create a work area for the table type or can we simply define the table type and just pass it to the next FM as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB_WRKAREA TYPE WFAT_EMP_INT_EMPWA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab_bapiret TYPE BAPIRET2_T,&lt;/P&gt;&lt;P&gt;      wa_bapiret TYPE LINE OF BAPIRET2_T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab_bapiret1 TYPE BAPIRET2_T,&lt;/P&gt;&lt;P&gt;       wa_bapiret1 TYPE LINE OF BAPIRET2_T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_WRKAREA_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WFA_EMP_DATA_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IV_EMP_BPID       = W_BUPNR&lt;/P&gt;&lt;P&gt;      IV_ORG_OBJID      = W_ORGEH&lt;/P&gt;&lt;P&gt;      IV_EFFECTIVE_WEEK = SY-DATUM&lt;/P&gt;&lt;P&gt;      IV_TEMPORARY      = GC_SPACE&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ET_EMP_WORKAREA   = ITAB_WRKAREA&lt;/P&gt;&lt;P&gt;      ET_RETURN         = itab_bapiret.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab_bapiret&lt;/P&gt;&lt;P&gt;  INTO wa_bapiret.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; wa_bapiret-MESSAGE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "get_wrkarea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM TRANSFER_WRKAREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WFA_EMP_DATA_MODIFY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IV_EMP_BPID            = W_BUPNR&lt;/P&gt;&lt;P&gt;      IV_ORG_OBJID           = W_ORGEH&lt;/P&gt;&lt;P&gt;      IV_EFFECTIVE_WEEK      = SY-DATUM&lt;/P&gt;&lt;P&gt;      IS_EMP_INTERFACE_ADMIN = WA_WFAS_EMP_INT_ADMIN&lt;/P&gt;&lt;P&gt;     IT_EMP_WORKAREA        = ITAB_WRKAREA&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ET_RETURN              = itab_bapiret1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT itab_bapiret1&lt;/P&gt;&lt;P&gt;      INTO wa_bapiret1.&lt;/P&gt;&lt;P&gt;      WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; wa_bapiret1-MESSAGE.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "transfer_wrkarea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above context does ITAB_WRKAREA(table type) will have only one record.&lt;/P&gt;&lt;P&gt;What is the difference between these 2 statements&lt;/P&gt;&lt;P&gt;DATA:  x type TT.   " TT refers to table type&lt;/P&gt;&lt;P&gt;DATA: x type ST.    "ST refers to structure type&lt;/P&gt;&lt;P&gt; I am getting confused with the table types and structures . Table type refers to a line type which inturn refers to a structure? Can some one explain this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 16:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694928#M623687</guid>
      <dc:creator>madhu_reddy22</dc:creator>
      <dc:date>2007-08-28T16:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694929#M623688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*-- Table type is a table.. when you refere to a table type u need not use again standard table of , or occurs 0 addition the follwoing statmenet will declare x as a internal table with out header line.&lt;/P&gt;&lt;P&gt;DATA: x type TT. " TT refers to table type&lt;/P&gt;&lt;P&gt;*-- Structure is a flat structure and x is a work area not internal table.&lt;/P&gt;&lt;P&gt;DATA: x type ST. "ST refers to structure type&lt;/P&gt;&lt;P&gt;if you have to create x as intenaal table using strrucre ST then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : x type standard table of ST..&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>Tue, 28 Aug 2007 16:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694929#M623688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T16:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694930#M623689</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;          Thanks a lot for the response. Just a few more doubts.&lt;/P&gt;&lt;P&gt;In the code above as per the functionality i am assuming the function module will pass only one record to the table type. So i am just fetching that record and passing it to the next function module.Does it mean that the table type can store only one record at a time? Or can it store multiple records(like a normal internal table)?&lt;/P&gt;&lt;P&gt;I am just storing the information obtained(ITAB_WRKAREA)  from the first FM and passing it to the next function. So i do not need any work area . I can just pass ITAB_WRKAREA to the second FM.  Am i right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 22:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694930#M623689</guid>
      <dc:creator>madhu_reddy22</dc:creator>
      <dc:date>2007-08-28T22:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694931#M623690</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;          Thanks a lot for the response. Just a few more doubts.&lt;/P&gt;&lt;P&gt;In the code above as per the functionality i am assuming the function module will pass only one record to the table type. So i am just fetching that record and passing it to the next function module.Does it mean that the table type can store only one record at a time? Or can it store multiple records(like a normal internal table)?&lt;/P&gt;&lt;P&gt;I am just storing the information obtained(ITAB_WRKAREA)  from the first FM and passing it to the next function. So i do not need any work area . I can just pass ITAB_WRKAREA to the second FM.  Am i right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 22:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-table-type/m-p/2694931#M623690</guid>
      <dc:creator>madhu_reddy22</dc:creator>
      <dc:date>2007-08-28T22:36:46Z</dc:date>
    </item>
  </channel>
</rss>

