<?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: Not getting proper output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769976#M2023011</link>
    <description>&lt;P&gt;I said: "&lt;EM&gt;the same columns and same order&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;But you did:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF ST,
AUFNR TYPE Afih-aufnr,
EQUNR TYPE AFIH-equnr,
END OF ST.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and SELECT is missing AUFNR:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT equnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT aufnr equnr&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 29 Jul 2023 14:43:42 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-07-29T14:43:42Z</dc:date>
    <item>
      <title>Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769970#M2023005</link>
      <description>&lt;P&gt;Hi experts, A simple code wrote, but i am not getting proper output...Please let me know where i did mistake.&lt;/P&gt;
  &lt;P&gt;DATA : IT TYPE STANDARD TABLE OF ST, WA TYPE st.&lt;/P&gt;
  &lt;P&gt;PARAMETERS : p_aufnr type aufk-aufnr.&lt;BR /&gt;SELECT equnr FROM afih INTO TABLE it WHERE aufnr = p_aufnr.&lt;BR /&gt;loop AT IT INTO WA.&lt;BR /&gt;write : / wa-equnr,&lt;BR /&gt; wa-aufnr.&lt;BR /&gt;ENDLOOP.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769970#M2023005</guid>
      <dc:creator>pooja08</dc:creator>
      <dc:date>2023-07-29T14:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769971#M2023006</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;EM&gt;not getting proper output"&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What do you get?&lt;/P&gt;&lt;P&gt;What do you expect?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769971#M2023006</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-29T14:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769972#M2023007</link>
      <description>&lt;P&gt;Output for equnr  is something like 2**********.&lt;/P&gt;&lt;P&gt;but receiving only 20.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769972#M2023007</guid>
      <dc:creator>pooja08</dc:creator>
      <dc:date>2023-07-29T14:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769973#M2023008</link>
      <description>&lt;P&gt;because you declare ST with EQUNR with only 2 characters.&lt;/P&gt;&lt;P&gt;It should be&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;equnr TYPE afih-equnr,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;probably you have used another type...&lt;/P&gt;&lt;P&gt;Also be careful to have exactly the same columns and same order both after SELECT and in the type of ST. NB: the names of the components are not important.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769973#M2023008</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-29T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769974#M2023009</link>
      <description>TABLES : AFIH,AUFK.&lt;BR /&gt;TYPES : BEGIN OF ST,&lt;BR /&gt;  AUFNR TYPE Afih-aufnr,&lt;BR /&gt;  EQUNR TYPE AFIH-equnr,&lt;BR /&gt;&lt;P&gt;  END OF ST.&lt;/P&gt;&lt;P&gt;I did the declaration part&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769974#M2023009</guid>
      <dc:creator>pooja08</dc:creator>
      <dc:date>2023-07-29T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769975#M2023010</link>
      <description>&lt;P&gt;Can you modify your first line of code from &lt;/P&gt;&lt;P&gt;DATA : IT TYPE STANDARD TABLE OF ST, WA TYPE st.&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;P&gt; DATA : IT TYPE STANDARD TABLE OF afih, WA TYPE afih.&lt;/P&gt;&lt;P&gt;This will fix your size issue.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769975#M2023010</guid>
      <dc:creator>Abhishek_10</dc:creator>
      <dc:date>2023-07-29T14:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769976#M2023011</link>
      <description>&lt;P&gt;I said: "&lt;EM&gt;the same columns and same order&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;But you did:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF ST,
AUFNR TYPE Afih-aufnr,
EQUNR TYPE AFIH-equnr,
END OF ST.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and SELECT is missing AUFNR:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT equnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT aufnr equnr&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769976#M2023011</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-29T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769977#M2023012</link>
      <description>&lt;P&gt;By the way, please edit your question (Actions&amp;gt;Edit), select your code and press the button [CODE], which makes the code appear colored/indented, it'll be easier for people to look at it. Thanks! &lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769977#M2023012</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-29T14:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769978#M2023013</link>
      <description>&lt;P&gt;No, it won't fix the issue, because "SELECT equnr" would then transfer to WA-MANDT, truncated at 3 characters.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 14:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769978#M2023013</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-29T14:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769979#M2023014</link>
      <description>&lt;P&gt;Thank you sandra , Got output&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 16:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769979#M2023014</guid>
      <dc:creator>pooja08</dc:creator>
      <dc:date>2023-07-29T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769980#M2023015</link>
      <description>&lt;P&gt;Ok then into corresponding fields of table it  can be used.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 17:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769980#M2023015</guid>
      <dc:creator>Abhishek_10</dc:creator>
      <dc:date>2023-07-29T17:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting proper output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769981#M2023016</link>
      <description>&lt;P&gt;This is an answer to let visitors know that it's solved. Your buggy code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF ST,
          AUFNR TYPE Afih-aufnr,
          EQUNR TYPE AFIH-equnr,
        END OF ST.
DATA : IT TYPE STANDARD TABLE OF ST, 
       WA TYPE st.
PARAMETERS : p_aufnr type aufk-aufnr.
SELECT equnr                                "&amp;lt;========== don't correspond to IT
    FROM afih 
    INTO TABLE it 
    WHERE aufnr = p_aufnr.
loop AT IT INTO WA.
  write : / wa-equnr, wa-aufnr.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Be careful to have exactly the same columns and same order both after SELECT and in the type of ST.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELECT contains only EQUNR, it's missing AUFNR as you can see in ST (components AUFNR and EQUNR):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT equnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT aufnr equnr&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Jul 2023 17:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-proper-output/m-p/12769981#M2023016</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-29T17:47:23Z</dc:date>
    </item>
  </channel>
</rss>

