<?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 Dynamic overlay in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977314#M1159845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a DEC-variable into a clike-structure with leading zeros. How can I achive this? I know now that I can use the OVERLAY-statment to get the leading zeros, but I don't know at runtime how long the DEC field is, so how can I achieve the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex 1:  7 DEC 3 with value "12,123"&lt;/P&gt;&lt;P&gt;--&amp;gt; 0012.123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEC 13 DEC 3 with value "153,25"&lt;/P&gt;&lt;P&gt;--&amp;gt; 0000000153.250&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. Help will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2008 15:29:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-29T15:29:10Z</dc:date>
    <item>
      <title>Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977314#M1159845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a DEC-variable into a clike-structure with leading zeros. How can I achive this? I know now that I can use the OVERLAY-statment to get the leading zeros, but I don't know at runtime how long the DEC field is, so how can I achieve the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex 1:  7 DEC 3 with value "12,123"&lt;/P&gt;&lt;P&gt;--&amp;gt; 0012.123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEC 13 DEC 3 with value "153,25"&lt;/P&gt;&lt;P&gt;--&amp;gt; 0000000153.250&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. Help will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 15:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977314#M1159845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977315#M1159846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONVERSION_EXIT_ALPHA_INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 15:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977315#M1159846</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-29T15:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977316#M1159847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't work with non-clike variables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the variable I use is of type "P"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 15:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977316#M1159847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977317#M1159848</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 to utilize the FM: BKK_ACCNT_ADD_LEADING_ZERO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it will give some idea to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 15:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977317#M1159848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T15:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977318#M1159849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this way &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lv_p TYPE p DECIMALS 3 VALUE '2.998'.
DATA: lv_len TYPE i.

DESCRIBE FIELD lv_p LENGTH lv_len IN BYTE MODE.

do 
  "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;add zeros untill u fill it up...
  endo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 15:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977318#M1159849</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-29T15:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977319#M1159850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it perhaps possible that you give me a more detailled example of the coding you mentioned? I don't really know how to fill these zeros...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 15:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977319#M1159850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T15:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977320#M1159851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this looks like a limitation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either you have to change the type and use ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SHIFT lv_p RIGHT DELETING TRAILING space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SHIFT lv_p LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TRANSLATE lv_p USING ' 0'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 16:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977320#M1159851</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-29T16:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic overlay</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977321#M1159852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only use OVERLAY or TRANSLATE or any other only on data type C, N, D and T. So you have to move your values first to your target field and than do the manipulation and I would suggest use the TRANSLATE .. using to fill the leading zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: p_amt(7) type p decimals 3.
data: l_target type char30.  " CHAR like Structure field

p_amt = '123.456'.

write: p_amt to l_target right-justified.
translate l_target using ' 0'.

write: / p_amt.

write: / l_target.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 16:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-overlay/m-p/4977321#M1159852</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-12-29T16:57:28Z</dc:date>
    </item>
  </channel>
</rss>

