<?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: material no in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322815#M1991217</link>
    <description>&lt;P&gt;If you want to have a condition on the selection screen then you might want to have a select-options instead of the parameter.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK 1.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
SELECTION-SCREEN END OF block 1.

START-OF-SELECTION.
SELECT matnr ernam
  FROM mara
  INTO TABLE it_mara
  WHERE matnr IN s_matnr.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then if you enter "5*" on the selection screen you will only get the material numbers starting with 5.&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
    <pubDate>Thu, 04 Mar 2021 10:00:01 GMT</pubDate>
    <dc:creator>MateuszAdamus</dc:creator>
    <dc:date>2021-03-04T10:00:01Z</dc:date>
    <item>
      <title>material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322811#M1991213</link>
      <description>&lt;P&gt;{EDITED BY MODERATOR}&lt;/P&gt;
  &lt;P&gt;hi,&lt;/P&gt;
  &lt;P&gt;i want 5 series material no to be print as the output in report.&lt;/P&gt;
  &lt;P&gt;want can i do?&lt;/P&gt;
  &lt;P&gt;please give me a solution&lt;/P&gt;
  &lt;P&gt;following code:&lt;/P&gt;
  &lt;P&gt;TABLES : MARA.&lt;BR /&gt;&lt;BR /&gt;TYPES : BEGIN OF TY_MARA,&lt;BR /&gt; MATNR TYPE MARA-MATNR,&lt;BR /&gt; ernam TYPE mara-ernam,&lt;BR /&gt; END OF ty_mara.&lt;BR /&gt;&lt;BR /&gt;DATA : it_mara TYPE TABLE OF ty_mara,&lt;BR /&gt; wa_mara TYPE ty_mara.&lt;BR /&gt;&lt;BR /&gt;SELECTION-SCREEN : BEGIN OF BLOCK 1.&lt;BR /&gt;PARAMETERS: p_matnr TYPE mara-matnr.&lt;BR /&gt;SELECTION-SCREEN END OF block 1.&lt;BR /&gt;&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;SELECT matnr&lt;BR /&gt; ernam&lt;BR /&gt; FROM mara&lt;BR /&gt; INTO TABLE IT_mara&lt;BR /&gt; WHERE MATNR = P_MATNR.&lt;BR /&gt;&lt;BR /&gt;END-OF-SELECTION.&lt;BR /&gt; LOOP AT IT_mara INTO WA_mara.&lt;BR /&gt;&lt;BR /&gt; WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; WA_mara-MATNR,&lt;BR /&gt; 12 WA_mara-ERNAM.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;TOP-OF-PAGE.&lt;BR /&gt; WRITE : / 'material' COLOR 1,&lt;BR /&gt; 12 'object' COLOR 2.&lt;/P&gt;
  &lt;P&gt;i want output starting with 5series means 500 5000 50000 500000&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 08:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322811#M1991213</guid>
      <dc:creator>former_member661105</dc:creator>
      <dc:date>2021-03-04T08:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322812#M1991214</link>
      <description>&lt;P&gt;Asking for the third time..&lt;/P&gt;&lt;P&gt;Click on Actions and you can edit your question. Or if you want to add information, then click on Add a Comment - don't just keep asking the same question.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 08:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322812#M1991214</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-03-04T08:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322813#M1991215</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;alagu123&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;You can add a condition to your SELECT statement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT matnr ernam FROM mara INTO TABLE it_mara WHERE matnr LIKE '5%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or change your LOOP statement to have a condition.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_mara INTO wa_mara WHERE matnr CP '5*'.
" do write here
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Thu, 04 Mar 2021 09:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322813#M1991215</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-04T09:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322814#M1991216</link>
      <description>&lt;P&gt;WITHOUT GIVEN A CONDITION WHETER IT DISPLAY OR NOT&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 09:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322814#M1991216</guid>
      <dc:creator>former_member661105</dc:creator>
      <dc:date>2021-03-04T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322815#M1991217</link>
      <description>&lt;P&gt;If you want to have a condition on the selection screen then you might want to have a select-options instead of the parameter.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK 1.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
SELECTION-SCREEN END OF block 1.

START-OF-SELECTION.
SELECT matnr ernam
  FROM mara
  INTO TABLE it_mara
  WHERE matnr IN s_matnr.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then if you enter "5*" on the selection screen you will only get the material numbers starting with 5.&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Thu, 04 Mar 2021 10:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322815#M1991217</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-04T10:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322816#M1991218</link>
      <description>&lt;P&gt;WOULD YOU TELL IT IN CLEAR.&lt;/P&gt;&lt;P&gt;enter "5*" on the selection screen how to write on selection-screen,&lt;/P&gt;&lt;P&gt;would you write and give it in select-option&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322816#M1991218</guid>
      <dc:creator>former_member661105</dc:creator>
      <dc:date>2021-03-04T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322817#M1991219</link>
      <description>&lt;P&gt;If you want to hard-code it, then look at the code in my answer.&lt;/P&gt;&lt;P&gt;If you want to give the user an option to enter a value then check the comment about select-options.&lt;/P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Thu, 04 Mar 2021 10:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322817#M1991219</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-04T10:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322818#M1991220</link>
      <description>&lt;P&gt;WOULD YOU TELL IT IN CLEAR.&lt;/P&gt;&lt;P&gt;enter "5*" on the selection screen how to write on selection-screen,&lt;/P&gt;&lt;P&gt;would you write and give it in select-option&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322818#M1991220</guid>
      <dc:creator>former_member661105</dc:creator>
      <dc:date>2021-03-04T10:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322819#M1991221</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;alagu123&lt;/SPAN&gt; Please do not open several questions for the same content. I have deleted your other question. Should you wish, you can revise your question by selecting Actions, then Edit.&lt;/P&gt;&lt;P&gt; I recommend that you
familiarize yourself with: &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as it provides tips for preparing questions that draw
responses from our members.&lt;/P&gt;&lt;P&gt;For
example, you can:&lt;/P&gt;&lt;P&gt;-
outline what steps you took to find answers (and why they weren't helpful)&lt;/P&gt;&lt;P&gt;- share
screenshots of what you've seen/done&lt;/P&gt;&lt;P&gt;- make
sure you've applied the appropriate tags&lt;/P&gt;&lt;P&gt;- use a
more descriptive subject line&lt;/P&gt;&lt;P&gt;The more details you provide, the more likely it is that
members will be able to respond. Feel free to also take our Q&amp;amp;A tutorial
at: &lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;By adding a picture to your profile you
encourage readers to respond:&lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Keep in mind, when you receive an answer that was helpful to you,
accept it as best answer. &lt;/P&gt;&lt;P&gt;Good
Luck&lt;/P&gt;&lt;P&gt;Kati -
SAP Community Moderator&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322819#M1991221</guid>
      <dc:creator>KatiNonhebel</dc:creator>
      <dc:date>2021-03-04T10:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322820#M1991222</link>
      <description>&lt;P&gt;I meant that user should enter 5* in the select options during the report's execution.&lt;/P&gt;&lt;P&gt;You can add a value to the select options by writing an INITIALIZATION event.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
  APPEND INITIAL LINE TO s_matnr REFERENCE INTO DATA(ld_s_matnr).
  ld_s_matnr-&amp;gt;sign = 'I'.
  ld_s_matnr-&amp;gt;option = 'CP'.
  ld_s_matnr-&amp;gt;low = '5*'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mateusz&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322820#M1991222</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-04T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322821#M1991223</link>
      <description>&lt;P&gt;&lt;BR /&gt;TYPES : BEGIN OF TY_MARA,&lt;BR /&gt; MATNR TYPE MARA-MATNR,&lt;BR /&gt; ernam TYPE mara-ernam,&lt;BR /&gt; END OF ty_mara.&lt;BR /&gt;&lt;BR /&gt;DATA : it_mara TYPE TABLE OF ty_mara,&lt;BR /&gt; wa_mara TYPE ty_mara.&lt;BR /&gt;&lt;BR /&gt;SELECTION-SCREEN : BEGIN OF BLOCK 1.&lt;BR /&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr .&lt;BR /&gt;Selection-screen comment 2(11) text-002.&lt;BR /&gt;SELECTION-SCREEN END OF block 1 .&lt;BR /&gt;&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;SELECT matnr&lt;BR /&gt; ernam&lt;BR /&gt; FROM mara&lt;BR /&gt; INTO TABLE it_mara&lt;BR /&gt; WHERE matnr IN s_matnr.&lt;BR /&gt; &lt;BR /&gt;INITIALIZATION.&lt;BR /&gt; APPEND INITIAL LINE TO s_matnr REFERENCE INTO data(ld_s_matnr).&lt;BR /&gt; ld_s_matnr-&amp;gt;sign = 'I'.&lt;BR /&gt; ld_s_matnr-&amp;gt;option = 'CP'.&lt;BR /&gt; ld_s_matnr-&amp;gt;low = '5*'.&lt;BR /&gt; &lt;BR /&gt;END-OF-SELECTION.&lt;BR /&gt; LOOP AT it_mara INTO wa_mara .&lt;BR /&gt;&lt;BR /&gt; WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; WA_mara-MATNR,&lt;BR /&gt; 12 WA_mara-ERNAM.&lt;BR /&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;i am getting error as data is unknown .please correct it.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322821#M1991223</guid>
      <dc:creator>former_member661105</dc:creator>
      <dc:date>2021-03-04T11:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322822#M1991224</link>
      <description>&lt;P&gt;You're missing the TABLES: mara. line.&lt;/P&gt;&lt;P&gt;You can also double click on the error message, it will move you to the line that is erroneous and you can try to figure out the error on your own. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Thu, 04 Mar 2021 11:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322822#M1991224</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-04T11:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322823#M1991225</link>
      <description>&lt;P&gt;&lt;BR /&gt;TABLES : MARA.&lt;BR /&gt;&lt;BR /&gt;TYPES : BEGIN OF TY_MARA,&lt;BR /&gt; MATNR TYPE MARA-MATNR,&lt;BR /&gt; ernam TYPE mara-ernam,&lt;BR /&gt; END OF ty_mara.&lt;BR /&gt;&lt;BR /&gt;DATA : it_mara TYPE TABLE OF ty_mara,&lt;BR /&gt; wa_mara TYPE ty_mara.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SELECTION-SCREEN : BEGIN OF BLOCK 1.&lt;BR /&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr .&lt;BR /&gt;Selection-screen comment 2(11) text-002.&lt;BR /&gt;SELECTION-SCREEN END OF block 1 .&lt;BR /&gt;&lt;BR /&gt;INITIALIZATION.&lt;BR /&gt; APPEND INITIAL LINE TO s_matnr REFERENCE INTO data(ld_s_matnr).&lt;BR /&gt; ld_s_matnr-&amp;gt;sign = 'I'.&lt;BR /&gt; ld_s_matnr-&amp;gt;option = 'CP'.&lt;BR /&gt; ld_s_matnr-&amp;gt;low = '5*'.&lt;BR /&gt;&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;SELECT matnr&lt;BR /&gt; ernam&lt;BR /&gt; FROM mara&lt;BR /&gt; INTO TABLE it_mara&lt;BR /&gt; WHERE matnr IN s_matnr.&lt;BR /&gt;&lt;BR /&gt;END-OF-SELECTION.&lt;BR /&gt; LOOP AT it_mara INTO wa_mara .&lt;BR /&gt;&lt;BR /&gt; WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; WA_mara-MATNR,&lt;BR /&gt; 12 WA_mara-ERNAM.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;TOP-OF-PAGE.&lt;BR /&gt; WRITE : / 'material' COLOR 1,&lt;BR /&gt; 12 'object' COLOR 6.&lt;/P&gt;&lt;P&gt;and i have given a table mara but getting error.please correct it.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322823#M1991225</guid>
      <dc:creator>former_member661105</dc:creator>
      <dc:date>2021-03-04T11:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: material no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322824#M1991226</link>
      <description>&lt;P&gt;Change the INITIALIZATION part.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
  s_matnr-sign = 'I'.
  s_matnr-option = 'CP'.
  s_matnr-low = '5*'.
  APPEND s_matnr.
&lt;/CODE&gt;&lt;/PRE&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Thu, 04 Mar 2021 11:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-no/m-p/12322824#M1991226</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-04T11:30:45Z</dc:date>
    </item>
  </channel>
</rss>

