<?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: Read parameters content from dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809222#M656658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to convert in the way you described. Thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: How can I read all the material numbers in s_matnr to it_log structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Sep 2007 19:27:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-29T19:27:44Z</dc:date>
    <item>
      <title>Read parameters content from dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809220#M656656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with reading a parameters content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following coding:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Log table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF it_log OCCURS 0,&lt;/P&gt;&lt;P&gt;        matnr_short(10),&lt;/P&gt;&lt;P&gt;        matnr  TYPE matnr,&lt;/P&gt;&lt;P&gt;      END OF it_log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;PARAMETERS s_matnr TYPE rmmg1-matnr.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I enter numbers like 1234000000, 1235000000, 1236000000.&lt;/P&gt;&lt;P&gt;Content of s_matnr will be 000000001234000000, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: How can I read all entries of s_matnr into it_log-matnr ?&lt;/P&gt;&lt;P&gt;2.Q: How can I read 1234000000 to it_log-matnr_short ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2007 18:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809220#M656656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-29T18:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read parameters content from dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809221#M656657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What the user enters and sees is 1234000000. But internally, SAP stores it with leading zeroes, this is why you see 000000001234000000 in debug, and this value is also stored in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conversion from 1234000000 to 000000001234000000 is made by a function module named CONVERSION_EXIT_&amp;lt;routine&amp;gt;_INPUT, see below for value of &amp;lt;routine&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conversion from 000000001234000000 to 1234000000 is made by a function module named CONVERSION_EXIT_&amp;lt;routine&amp;gt;_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find out the &amp;lt;routine&amp;gt; value:&lt;/P&gt;&lt;P&gt;Start SE11 transaction&lt;/P&gt;&lt;P&gt;Look at structure "rmmg1"&lt;/P&gt;&lt;P&gt;Look at the component of its field "matnr" (it is a data element)&lt;/P&gt;&lt;P&gt;Look at the domain of this data element&lt;/P&gt;&lt;P&gt;Look at the "routine" of this domain. If it is named MATN1, it means that the conversion functions are CONVERSION_EXIT_MATN1_INPUT and CONVERSION_EXIT_MATN1_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call yourself the second function module if you need to remove the zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sap library here : &lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee19446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee19446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2007 19:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809221#M656657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-29T19:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Read parameters content from dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809222#M656658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to convert in the way you described. Thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: How can I read all the material numbers in s_matnr to it_log structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2007 19:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809222#M656658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-29T19:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read parameters content from dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809223#M656659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;it_log-matnr = s_matnr
CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'
EXPORTING input = s_matnr
IMPORTING output = it_log-short_matnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe an error in your code: don't you want to use SELECT-OPTIONS ... FOR ... instead of PARAMETERS ... TYPE ... for having multiple values ? (as I see that it_log is an internal table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2007 20:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-parameters-content-from-dynpro/m-p/2809223#M656659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-29T20:15:18Z</dc:date>
    </item>
  </channel>
</rss>

