<?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: Access objects in a flat structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192737#M128925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your code should be like this, assuming you will always have one record in your DATA-TAB_VBAK internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: v_commid(15) TYPE C,
      w_data_vbak  LIKE LINE OF data-tab_vbak, &amp;lt;-- here is the change
      w_vbak       LIKE vbak.
 
&amp;lt;b&amp;gt;READ TABLE DATA-TAB_VBAK INTO w_data_vbak INDEX 1.&amp;lt;/b&amp;gt;

MOVE w_data_vbak TO w_vbak.
 
*
*** Look up EDI communication ID from custom table
CALL FUNCTION 'Z_EK_GET_ORG_COMMID'
EXPORTING
i_company = w_vbak-vkorg
i_dist = w_vbak-vtweg
i_division = w_vbak-spart
IMPORTING
E_COMMID = v_commid.
 
CONTROL_RECORD_OUT-sndprn = v_commid(10).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2006 22:35:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-30T22:35:50Z</dc:date>
    <item>
      <title>Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192721#M128909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, how do I read objects from a flat structure? I want to modify an IDocs control record with the following code but I get an error "The type of W_DATA_VBAK cannot be converted o the type of W_VBAK":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INCLUDE ZXTRKU01                                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    v_commid(15)              TYPE C,&lt;/P&gt;&lt;P&gt;    w_data_vbak               LIKE data-tab_vbak,&lt;/P&gt;&lt;P&gt;    w_vbak                    LIKE vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_data_vbak = data-tab_vbak.&lt;/P&gt;&lt;P&gt;  MOVE w_data_vbak TO w_vbak.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;  Look up EDI communication ID from custom table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'Z_EK_GET_ORG_COMMID'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_company        = w_vbak-vkorg&lt;/P&gt;&lt;P&gt;      i_dist           = w_vbak-vtweg&lt;/P&gt;&lt;P&gt;      i_division       = w_vbak-spart&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      E_COMMID         = v_commid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONTROL_RECORD_OUT-sndprn = v_commid(10).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 19:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192721#M128909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T19:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192722#M128910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is data-tab_vbak defined?  I'm assuming a table type, yes?  What are you trying to access here.  Is there only one record in this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 19:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192722#M128910</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192723#M128911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the structure data-tab_vbak defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 19:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192723#M128911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T19:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192724#M128912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If my assumptions are correct, then you can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002.


data: data-tab_vbak type table of vbak.
data: w_vbak type vbak.

read table data-tab_vbak into w_vbak index 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 20:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192724#M128912</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T20:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192725#M128913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA-TAB_VBAK is a function import parameter for the user exit and is of type TR_IDOC_SHPMNT_INDATA. This is defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF tr_idoc_shpmnt_indata,&lt;/P&gt;&lt;P&gt;         vttk            LIKE   vttk,&lt;/P&gt;&lt;P&gt;         ttds            LIKE   ttds,&lt;/P&gt;&lt;P&gt;         tab_vttp        LIKE   vttp   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vtts        LIKE   vtts   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vtsp        LIKE   vtsp   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vbpa        LIKE   vbpa   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vtpa        LIKE   vbpa   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vekp        LIKE   vekp   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vepo        LIKE   vepo   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_likp        LIKE   likp   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_lips        LIKE   lips   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vbak        LIKE   vbak   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vbap        LIKE   vbap   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_vblb        LIKE   vblb   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_eikp        LIKE   eikp   OCCURS 0,&lt;/P&gt;&lt;P&gt;         tab_eipo        LIKE   eipo   OCCURS 0,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       &amp;lt;&amp;lt;&amp;lt; START OF INSERTION HP_0332970 &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         tab_vbkd        LIKE   vbkd   OCCURS 0,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       &amp;lt;&amp;lt;&amp;lt; END OF INSERTION HP_0332970 &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         tab_rdgprint    LIKE rdgprint OCCURS 0,&lt;/P&gt;&lt;P&gt;       END OF tr_idoc_shpmnt_indata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192725#M128913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192726#M128914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I should of said "DATA" is the import parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192726#M128914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192727#M128915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : W_VBAK LIKE VBAK.&lt;/P&gt;&lt;P&gt;Data : DATA1 type tr_idoc_shpmnt_indata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA1 = data.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING DATA1-TAB_VBAK  TO W_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192727#M128915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192728#M128916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your import parameter DATA-TAB_VBAK or for that matter, all other fields are defined as internal tables except one or two. In newer versions moves like you did are not allowed. Here is the modified code, try it and let us know if it works.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
v_commid(15) TYPE C,
w_data_vbak LIKE LINE OF data-tab_vbak, &amp;lt;-- here is the change
w_vbak LIKE vbak.

w_data_vbak = data-tab_vbak.
MOVE w_data_vbak TO w_vbak.

*
*** Look up EDI communication ID from custom table
CALL FUNCTION 'Z_EK_GET_ORG_COMMID'
EXPORTING
i_company = w_vbak-vkorg
i_dist = w_vbak-vtweg
i_division = w_vbak-spart
IMPORTING
E_COMMID = v_commid.

CONTROL_RECORD_OUT-sndprn = v_commid(10).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192728#M128916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192729#M128917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : DATA1 type tr_idoc_shpmnt_indata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA1 = data.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING DATA1-TAB_VBAK TO W_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"TAB_VBAK" is not a structure or internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING DATA1-TAB_VBAK TO W_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got similar messages with different variations I've tried already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192729#M128917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192730#M128918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_data_vbak               LIKE data-tab_vbak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_data_vbak               LIKE LINE OF data-tab_vbak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulted in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type of "DATA-TAB_VBAK cannot be converted to the type of "W_DATA_VBAK".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192730#M128918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192731#M128919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data :       WA_VBAK    LIKE TABLE OF VBAK.&lt;/P&gt;&lt;P&gt;Data : DATA1 type tr_idoc_shpmnt_indata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WA_VBAK[] = DATA1-VBAK[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using similar structures for my PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192731#M128919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192732#M128920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;btw - In the debugger I can drill into DATA-TAB_VBAK and TAB_VBAK looks just like a row of VBAK and the fields are populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192732#M128920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192733#M128921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the types definition for TAB_VBAK defined as internal table then you have to define your structure similar to that.(tab_vbak LIKE vbak OCCURS 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you defined &lt;/P&gt;&lt;P&gt;Data : WA_VBAK LIKE TABLE OF VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;This will give you a table with out header line.&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Please try the above code that I have pasted that will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lanka Murthy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192733#M128921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192734#M128922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, but for DATA, TAB_VBAK is a field of type internal table, whereas the work area you defined is just a flat structure. So there is a type conflict there as per the new stricter syntax checks. The reason why you are seeing it in debugging is because it is showing you the header. But if you go to the tables view of the debugger and enter DATA-TAB_VBAK for the table name, you will see all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192734#M128922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192735#M128923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  That's true. In the debugger I can see the fields of DATA-TAB_VBAK in the table view but if I try to enter DATA-TAB_VBAK-VKORG in the field view the field is not found. That is why I cannot access DATA-TAB_VBAK-VKORG directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 21:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192735#M128923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T21:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192736#M128924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_VBAK still won't have a header so I won't be able to access WA_VBAK-VKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 22:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192736#M128924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T22:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192737#M128925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your code should be like this, assuming you will always have one record in your DATA-TAB_VBAK internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: v_commid(15) TYPE C,
      w_data_vbak  LIKE LINE OF data-tab_vbak, &amp;lt;-- here is the change
      w_vbak       LIKE vbak.
 
&amp;lt;b&amp;gt;READ TABLE DATA-TAB_VBAK INTO w_data_vbak INDEX 1.&amp;lt;/b&amp;gt;

MOVE w_data_vbak TO w_vbak.
 
*
*** Look up EDI communication ID from custom table
CALL FUNCTION 'Z_EK_GET_ORG_COMMID'
EXPORTING
i_company = w_vbak-vkorg
i_dist = w_vbak-vtweg
i_division = w_vbak-spart
IMPORTING
E_COMMID = v_commid.
 
CONTROL_RECORD_OUT-sndprn = v_commid(10).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 22:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192737#M128925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T22:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192738#M128926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas! I love you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 22:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192738#M128926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T22:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192739#M128927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly what I said in my second post, but in my suggestion, you only move it once, not twice.   &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 23:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192739#M128927</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T23:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Access objects in a flat structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192740#M128928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Rich your right! I just missed it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2006 01:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-objects-in-a-flat-structure/m-p/1192740#M128928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-31T01:59:37Z</dc:date>
    </item>
  </channel>
</rss>

