<?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>Question Re: ITAB in BSP application in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801401#M247664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Now let me put my question in different way. I have 10 &amp;lt;htmlb:inputfield&amp;gt; in my page and in my Event handler i want to call a BAPI which will return values for those 10 Input fields. In this case it is an ITAB.&lt;/P&gt;&lt;P&gt;  I need to assign First field of ITAB to First inputfield and 10 field of ITAB to 10 inputfield. How do i do that? I cannot assign directly &amp;lt;%= ITAB-field1%&amp;gt;&lt;/P&gt;&lt;P&gt;  I tried to use 10 seperate page attribute fields and assign inputfields value as "&amp;lt;% = field1 %&amp;gt;" etc. But in my event handler when i assign ITABS first field to page attributes first field it says "ITAB has no header line"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to handle this situation? Is there any better way to do this process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Arun Prasad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2004 22:49:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-12-08T22:49:54Z</dc:date>
    <item>
      <title>ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaq-p/801396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Does BSP support ITAB (with header line)? If NO, then how can the data be appended to ITAB with LOOP AT in the event handler?&lt;/P&gt;&lt;P&gt;  Is there any equivalent component for ITAB in BSP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 00:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaq-p/801396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T00:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801397#M247660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as possible avoid Internal table with Header lines. Since a lot of object oriented technology is used in BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you use the following methodology:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: begin of ty_mytype
         myfirstfield type myfirstdatatype,
         mysecndfield type mysecnddatatype,
       end of ty_mytpe.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For workarea,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: wa_myworkarea type ty_mytype.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For internal table,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lt_myinternaltable type table of ty_mytype.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Field-Symbols,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS: &amp;lt;FS&amp;gt; TYPE ty_mytype.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In order to loop at internal table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT lt_myinternaltable to wa_myworkarea.
*** process with wa_myworkarea
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT lt_myinternaltable ASSIGNING &amp;lt;FS&amp;gt;
*** process with &amp;lt;FS&amp;gt;
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. - Habits die hard. Bad Habits die harder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 03:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801397#M247660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T03:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801398#M247661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;As far as possible avoid Internal table with Header lines. Since a lot of object oriented technology is used in BSP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no question of avoiding, you simply can't use it in BSPs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BSPs if you declare itab with header line&lt;/P&gt;&lt;P&gt;you will get the following syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Tables with headers are no longer supported in the OO context.		&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 07:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801398#M247661</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2004-12-08T07:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801399#M247662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do a search in this forum for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guidance on Internal Tables in BSP's &amp;amp; ABAP Functions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will see that in the last 7 days the subject of ITABs in BSP's was discussed thoroughly through to conclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Milan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 10:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801399#M247662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T10:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801400#M247663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem with the search is that it picks up everytime the word itab appears and sometimes you get a hit on a code sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using the search is a great place to start!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 11:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801400#M247663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T11:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801401#M247664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Now let me put my question in different way. I have 10 &amp;lt;htmlb:inputfield&amp;gt; in my page and in my Event handler i want to call a BAPI which will return values for those 10 Input fields. In this case it is an ITAB.&lt;/P&gt;&lt;P&gt;  I need to assign First field of ITAB to First inputfield and 10 field of ITAB to 10 inputfield. How do i do that? I cannot assign directly &amp;lt;%= ITAB-field1%&amp;gt;&lt;/P&gt;&lt;P&gt;  I tried to use 10 seperate page attribute fields and assign inputfields value as "&amp;lt;% = field1 %&amp;gt;" etc. But in my event handler when i assign ITABS first field to page attributes first field it says "ITAB has no header line"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to handle this situation? Is there any better way to do this process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Arun Prasad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 22:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801401#M247664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T22:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801402#M247665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;%
LOOP AT itab INTO witab
 field1 = witab-field1.
 field2 = witab-field2.
 field3 = witab-field3.
 field4 = witab-field4.
ENDLOOP.
%&amp;gt;

&amp;lt;htmlb:inputField id="field1" value="&amp;lt;%=field1%&amp;gt;"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2004 06:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801402#M247665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-09T06:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801403#M247666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am also new to BSP, But i have good friends like subramaniyan,creg..etc.&lt;/P&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;  first capture values into internal table...&lt;/P&gt;&lt;P&gt; and now you have 10 input fields and each one has id.and only one record can place into input fields at a time.&lt;/P&gt;&lt;P&gt;now READ TABLE ITAB INDEX 1 (assume this)&lt;/P&gt;&lt;P&gt;and pass values to all input fields&lt;/P&gt;&lt;P&gt;  input1 = &amp;lt;%=itab-val1%&amp;gt;&lt;/P&gt;&lt;P&gt;  input2 = &amp;lt;%=itab-val2%&amp;gt;&lt;/P&gt;&lt;P&gt;   ---&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  like wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this, it will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2004 06:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801403#M247666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-09T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801404#M247667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Leoiz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is also an option for working!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2004 07:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801404#M247667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-09T07:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB in BSP application</title>
      <link>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801405#M247668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to get really fancy you could use MVC and databind directly into the individual cells in your internal table. If you can get past the bad humor, the following weblog has an example of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/09/24/important-lessons-involving-bsp-model-view-binding-and-a-frozen-burrito&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be a short cut when you are dealing with a large number of input fields or if the input fields are created dynamically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2004 14:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/itab-in-bsp-application/qaa-p/801405#M247668</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2004-12-09T14:03:39Z</dc:date>
    </item>
  </channel>
</rss>

