<?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: Move space to Date &amp; Numc type fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288452#M786760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a®s ,&lt;/P&gt;&lt;P&gt;Oh! you are right.&lt;/P&gt;&lt;P&gt;But i am getting / / for the dates field here still. I tried to set my own data in user profile..but no use.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2008 16:50:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-08T16:50:40Z</dc:date>
    <item>
      <title>Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288445#M786753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts, &lt;/P&gt;&lt;P&gt;I have data declaration like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : &lt;/P&gt;&lt;P&gt;char1(10)  type c, &lt;/P&gt;&lt;P&gt;dat1 type dats, &lt;/P&gt;&lt;P&gt;num1 type numc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to move spaces to all of them based on certain conditions. So i use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : space to char1, &lt;/P&gt;&lt;P&gt;space to dat1, &lt;/P&gt;&lt;P&gt;space to num1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for char1 it displays empty but for dat1 it shows - - or / / &lt;/P&gt;&lt;P&gt;and for num1 it shows 000 (depending on length of field). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how do i fully clear the char1 and num1  field as well? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Dany&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 15:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288445#M786753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T15:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288446#M786754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
"check values while displaying

IF dat1 IS INITIAL.
  WRITE space.
ENDIF.

IF num1 IS INITIAL.
  WRITE space.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 15:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288446#M786754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T15:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288447#M786755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Perez C, &lt;/P&gt;&lt;P&gt;Its not even touching the IF cond as i see that dat1 &amp;amp; num1 have space(nit intial) in debug mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, actually i need to pass these values  to display them in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 15:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288447#M786755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288448#M786756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
report  zars no standard page heading
        line-size 170
        line-count 65(4).

data : zdate like sy-datum.
data : zdatechar(10) type c.

move space to zdate.

write zdate using edit mask '__ __ ____' to zdatechar.

write zdatechar.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 15:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288448#M786756</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-08T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288449#M786757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is displaying the Default values in the respective format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Consider them as space u can do as follows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take variables for each dats and numc of their size and of character type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHen u r checking the conditions and moving space to Dats and Numc variables move space to these character variables also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO that u can use them if required again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 15:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288449#M786757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T15:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288450#M786758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a®s ,&lt;/P&gt;&lt;P&gt;Now can you give an idea as how can i pass these fields (say zdatechar) into an itab meant for ALV display?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 16:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288450#M786758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T16:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288451#M786759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ALV , why we need to go for roundway solution. Please check the following parameters in the field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_SIGN = 'X'&lt;/P&gt;&lt;P&gt;NO_ZERO = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;system will take care the rest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your first post you have not mentioned anything about displaying the values in ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 16:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288451#M786759</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-08T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288452#M786760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a®s ,&lt;/P&gt;&lt;P&gt;Oh! you are right.&lt;/P&gt;&lt;P&gt;But i am getting / / for the dates field here still. I tried to set my own data in user profile..but no use.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 16:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288452#M786760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T16:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288453#M786761</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;Try with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcat-edit_mask = '__ __ ____'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 16:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288453#M786761</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-08T16:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288454#M786762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;otherwise declare the date field as char(10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 17:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288454#M786762</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-08T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288455#M786763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a®s,&lt;/P&gt;&lt;P&gt;I am able to see (in ebug mode)  that the date fields are holding spaces but after geting displayed in ALV they are shown as / /  ..etc like wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot set edit mask in field catalog as this becoems generic. &lt;/P&gt;&lt;P&gt;I am converting the values of fields to spaces only based on certain conditions (liekif there are duplicate invoiceno rows..etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 18:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288455#M786763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T18:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Move space to Date &amp; Numc type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288456#M786764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define the date column as char 12. WRITE the date value to that field when you want the value to display. Don't use the WRITE statement when you want to keep the field blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only issue will be when a user sorts by the date column, the sorting will be goofy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 21:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-space-to-date-numc-type-fields/m-p/3288456#M786764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T21:23:45Z</dc:date>
    </item>
  </channel>
</rss>

