<?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 sapscript leading zero's issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257100#M146495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small issue in SAPSCRIPT.&lt;/P&gt;&lt;P&gt;Actual Number to be printed from database is: 0569365851007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in sapscript the number is comming in thru REGUD-OBKNT,this is a 18 character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In layout i declared in two ways,but could not get the desired result:&lt;/P&gt;&lt;P&gt;1)Just REGUD-OBKNT --&amp;gt; Output is 000000569365851007&lt;/P&gt;&lt;P&gt;2)REGUD-OBKNT(Z)   --&amp;gt; Output is 569365851007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need the output exactly as entered in the transaction ie 0569365851007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help out...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Alen david&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Mar 2006 10:23:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-04T10:23:13Z</dc:date>
    <item>
      <title>sapscript leading zero's issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257100#M146495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small issue in SAPSCRIPT.&lt;/P&gt;&lt;P&gt;Actual Number to be printed from database is: 0569365851007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in sapscript the number is comming in thru REGUD-OBKNT,this is a 18 character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In layout i declared in two ways,but could not get the desired result:&lt;/P&gt;&lt;P&gt;1)Just REGUD-OBKNT --&amp;gt; Output is 000000569365851007&lt;/P&gt;&lt;P&gt;2)REGUD-OBKNT(Z)   --&amp;gt; Output is 569365851007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need the output exactly as entered in the transaction ie 0569365851007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help out...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Alen david&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 10:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257100#M146495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-04T10:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript leading zero's issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257101#M146496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. do not use REGUD-OBKNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. instead just use &lt;/P&gt;&lt;P&gt;   the field / parameter&lt;/P&gt;&lt;P&gt;   as type C length 18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 10:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257101#M146496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-04T10:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript leading zero's issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257102#M146497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi alen ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: q(18) type c value '0569365851007'.&lt;/P&gt;&lt;P&gt;data: p type string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p = q.&lt;/P&gt;&lt;P&gt;write p .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this option works for u then u need to declare the data type as character and assign from ur data base to the character initially &lt;/P&gt;&lt;P&gt;then submit to the script as shown .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 10:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257102#M146497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-04T10:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript leading zero's issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257103#M146498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi alen ,&lt;/P&gt;&lt;P&gt;like since u hav REGUD as a structure then it will hold data then u can proceed as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: val type string.&lt;/P&gt;&lt;P&gt;declaration should be in global for safe side and check the same in program symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my second option is .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;populate &lt;/P&gt;&lt;P&gt; val = regud-obnkt , &lt;/P&gt;&lt;P&gt;{so this should hold the value with zero 0569365851007&lt;/P&gt;&lt;P&gt;now submit val to the script which is  0569365851007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 11:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257103#M146498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-04T11:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript leading zero's issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257104#M146499</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;    If u move 0569365851007 to REGUD-OBKNT, automatically the field will be filled with leading zeros(000000569365851007) in the print program itself. Check this field content before passed to script by debugging then u will get some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use the REGUD-OBKNT field to pass the data to sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-venkatesh-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 12:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257104#M146499</guid>
      <dc:creator>kvenkatesh-in</dc:creator>
      <dc:date>2006-03-04T12:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript leading zero's issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257105#M146500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;The data in REGUD structure is being populated from a standard program(actually a copy of standard)...so its litle difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't there any way to address this issue in layout itself.&lt;/P&gt;&lt;P&gt;Offcousre if not i will have to go debug the program and  make appropriate changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 12:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257105#M146500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-04T12:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript leading zero's issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257106#M146501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know the length of this field in the database...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know, then you can make use of the offset and do that like this...REGUD-OBKNT+5(13)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use the /: perform control command from inside a sapscript and call a subroutine that you can write in a z-program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this to pass the variable and change it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help link on sapscript control command for perform...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 14:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-leading-zero-s-issue/m-p/1257106#M146501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-04T14:37:21Z</dc:date>
    </item>
  </channel>
</rss>

