<?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: Data declaaration issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342676#M1539688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Srini, that worked, but inside the get_infty_data I have to loop it_image into lw_prelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code ... &amp;amp; doing the change you said I get this syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lw_prelp TYPE prelp

  LOOP AT it_image INTO  lw_prelp.
*  lw_prelp = it_image.
    IF NOT &amp;lt;lw_pnnn&amp;gt; IS ASSIGNED.
      ASSIGN lf_tabname TO &amp;lt;lw_pnnn&amp;gt;.
    ENDIF.

    CALL METHOD cl_hr_pnnnn_type_cast=&amp;gt;prelp_to_pnnnn
      EXPORTING
        prelp = lw_prelp
      IMPORTING
        pnnnn = &amp;lt;lw_pnnn&amp;gt;.

    APPEND &amp;lt;lw_pnnn&amp;gt; TO ct_pnnnn.
    CLEAR : lw_prelp.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_image is declared in method definition as posper...&lt;/P&gt;&lt;P&gt;I get the syntax error as "IT_IMAGE" is neither specified under tables nor it is defined as an internal table....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2010 05:04:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-03T05:04:20Z</dc:date>
    <item>
      <title>Data declaaration issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342673#M1539685</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 have to loop on a internal table and pass the value to the exporting parameters of another method. When I am doing that it gives me syntax error "lw_new image is not compatible with it_image."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:        lw_new_image         TYPE psoper.

  LOOP AT if_new_image INTO lw_new_image.
  IF lw_new_image-opera = 'D'.
*Push indirect time of delete entries.
  CALL METHOD mt_get_infty_data
    EXPORTING
      it_image = lw_new_image
      if_infty = if_infty
      if_opera = co_d
    CHANGING
      ct_pnnnn = &amp;lt;lt_ptable_new&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the method mt_get_infty_data's method definition it_mage is defined as importing parameter type psoper_tab...&lt;/P&gt;&lt;P&gt;if_new_image is defined as importing parameter type psoper_tab in the current method.&lt;/P&gt;&lt;P&gt;please tell me how can I straighten this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 03:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342673#M1539685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T03:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data declaaration issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342674#M1539686</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;     Please declare your it_image as ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;DATA : it_image type psoper . &amp;lt;--- not psoper_tab...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 04:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342674#M1539686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T04:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data declaaration issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342675#M1539687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the method mt_get_infty_data the parameter it_image is of type psoper_tab (Table Type of psoper). So the actual problem is that you are trying to pass a work area to an internal table. So in order to avoid this issue, either you change the parameter of the method to the same structure of lw_new_image ie., psoper or pass the internal table if_new_image to the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Rahul MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 04:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342675#M1539687</guid>
      <dc:creator>rahul_mb</dc:creator>
      <dc:date>2010-11-03T04:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data declaaration issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342676#M1539688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Srini, that worked, but inside the get_infty_data I have to loop it_image into lw_prelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code ... &amp;amp; doing the change you said I get this syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lw_prelp TYPE prelp

  LOOP AT it_image INTO  lw_prelp.
*  lw_prelp = it_image.
    IF NOT &amp;lt;lw_pnnn&amp;gt; IS ASSIGNED.
      ASSIGN lf_tabname TO &amp;lt;lw_pnnn&amp;gt;.
    ENDIF.

    CALL METHOD cl_hr_pnnnn_type_cast=&amp;gt;prelp_to_pnnnn
      EXPORTING
        prelp = lw_prelp
      IMPORTING
        pnnnn = &amp;lt;lw_pnnn&amp;gt;.

    APPEND &amp;lt;lw_pnnn&amp;gt; TO ct_pnnnn.
    CLEAR : lw_prelp.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_image is declared in method definition as posper...&lt;/P&gt;&lt;P&gt;I get the syntax error as "IT_IMAGE" is neither specified under tables nor it is defined as an internal table....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 05:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342676#M1539688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T05:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data declaaration issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342677#M1539689</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;Make sure you have declared this inetrnal table and type is table typeif you have one. and work area is same as the line type of that table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 05:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-declaaration-issue/m-p/7342677#M1539689</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2010-11-03T05:07:38Z</dc:date>
    </item>
  </channel>
</rss>

