<?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: USING HEADER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-header/m-p/12074906#M1970348</link>
    <description>&lt;P&gt;Debug your program and you'll see that your input "23" is stored in the variable with leading zeroes. What is displayed is called "external" format, and what is stored in variables and database is called "internal" format. Some ABAP code defined as a &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abenconversion_exits.htm"&gt;conversion routine/exit&lt;/A&gt; is executed automatically to convert from internal to external format and vice versa.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abapwrite_to.htm"&gt;WRITE ... TO ...&lt;/A&gt; implicitly calls the conversion routine (from internal to external format), but you need to write field by field, not the whole structure as you currently do. For instance, you may try this in debug to see the results:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES mara.
SELECT-OPTIONS s_matnr FOR mara-matnr.
DATA output TYPE c LENGTH 100.
WRITE s_matnr-low TO output. " removes leading zeroes
WRITE s_matnr TO output. " does not remove leading zeroes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NB: please don't post code as image, because people will have to type the code by themselves.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 07:23:09 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2019-12-30T07:23:09Z</dc:date>
    <item>
      <title>USING HEADER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-header/m-p/12074904#M1970346</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1760650-req.jpg"&gt;req.jpg&lt;/A&gt;Hi Guys, &lt;/P&gt;
  &lt;P&gt;I am new to reports, i received a task to genereted an simple ALV reports for "materical master" .As per got the output. &lt;/P&gt;
  &lt;P&gt;But i have an issue regarding Top-of-page. Ie., "When i give an input of materical number in selection screen that need to display in Top-of-page" as Header. I have google in SCN and create an source but NOT getting correct result.. &lt;/P&gt;
  &lt;P&gt;Can someone, provide an sample coding please.. &lt;/P&gt;
  &lt;P&gt;"I HAVE ATTACHED AN SCREENSHOT FOR REFERENCE"....&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 05:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-header/m-p/12074904#M1970346</guid>
      <dc:creator>divsmart</dc:creator>
      <dc:date>2019-12-30T05:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: USING HEADER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-header/m-p/12074905#M1970347</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You output is correct with respect to your code. What you need to do is write sv_matnr-low and sv_matnr-high seperately while removing leading zeroes.&lt;/P&gt;&lt;P&gt;ps: It's material and not materi&lt;STRONG&gt;c&lt;/STRONG&gt;al...&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 06:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-header/m-p/12074905#M1970347</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2019-12-30T06:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: USING HEADER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-header/m-p/12074906#M1970348</link>
      <description>&lt;P&gt;Debug your program and you'll see that your input "23" is stored in the variable with leading zeroes. What is displayed is called "external" format, and what is stored in variables and database is called "internal" format. Some ABAP code defined as a &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abenconversion_exits.htm"&gt;conversion routine/exit&lt;/A&gt; is executed automatically to convert from internal to external format and vice versa.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abapwrite_to.htm"&gt;WRITE ... TO ...&lt;/A&gt; implicitly calls the conversion routine (from internal to external format), but you need to write field by field, not the whole structure as you currently do. For instance, you may try this in debug to see the results:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES mara.
SELECT-OPTIONS s_matnr FOR mara-matnr.
DATA output TYPE c LENGTH 100.
WRITE s_matnr-low TO output. " removes leading zeroes
WRITE s_matnr TO output. " does not remove leading zeroes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NB: please don't post code as image, because people will have to type the code by themselves.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 07:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-header/m-p/12074906#M1970348</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-12-30T07:23:09Z</dc:date>
    </item>
  </channel>
</rss>

