<?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: Zip Codes in SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126560#M110479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot tell much from this code as I don't know the definitions of the variables or how they are filled in, but what I told earlier is to look at that function module at the line mentioned. See how the checks are made and may be based on that you will come up with a common logic to format the postal code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module checks the given postal code for valid format, but not the reverse way. It will not build the postal code for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is your input? Please give an example of how the input postal code will be and how you want that to be converted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2006 21:21:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-23T21:21:21Z</dc:date>
    <item>
      <title>Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126553#M110472</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;I have solved the problem where in the incoming flat file has no value for zip code... now my program picks up the country checks the postal length &amp;amp; insert that many no. of zero's &amp;amp; my record is able to go in SAP... but it failing for countries like Poland where the length is 6 but in the 3rd place it asks for a "-" other e.g. is US where the postal code length is 10 ... my prg put is '0000000000' ... but the record fails &amp;amp; asks for a "-" in 6th place... where in SAP can I get this info? which table does it store that for US in the 6th place a "-" should come ??....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me in this ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 19:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126553#M110472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T19:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126554#M110473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; I have given the answer in the previous postings..&lt;/P&gt;&lt;P&gt;Any ways.check for the table T005 &amp;amp; field PRPLZ.It has definitions for the type of postal code.It doesnt specify regarding the '-' used in the postal codes,but tells you whether the postal code for any country is purely numeric or any character can be used or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 19:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126554#M110473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T19:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126555#M110474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try table T005 and T005T.&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 19:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126555#M110474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T19:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126556#M110475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Phani PRPLZ rule 9 may be applicable for me ... "Check against country specific edit format" ... but how do I use it in my logic saying if country is PL then in 3rd place put a "-" ??.... if country is US then "-" in 6th place...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 20:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126556#M110475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T20:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126557#M110476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; For that purpose use FM ADDR_POSTAL_CODE_CHECK.&lt;/P&gt;&lt;P&gt;Enter the Country &amp;amp; postal code.IF you enter any other character than '-',it will give you error saying the 6th character should be '-'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 20:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126557#M110476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126558#M110477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at function module ADDR_POSTAL_CODE_CHECK. In there it checks for each postal country in a CASE statement. You can make your postal code to follow that format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search for 'CASE t005-landk' in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 20:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126558#M110477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T20:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126559#M110478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Currently this is what my code doing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Zip code length (check if street is not blank &amp;amp; zip code is blank)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF T_INPUTFILE&lt;EM&gt;196(35) &amp;lt;&amp;gt; '/' AND T_INPUTFILE&lt;/EM&gt;276(10) = '/'.&lt;/P&gt;&lt;P&gt;          READ TABLE T_POSTCODE WITH KEY LAND1 = T_INPUTFILE+331(3).&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;            V_CTR = T_POSTCODE-LNPLZ.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;          V_CTR = V_CTR - 1.&lt;/P&gt;&lt;P&gt;          DO V_CTR TIMES.&lt;/P&gt;&lt;P&gt;            CONCATENATE V_PC '0' INTO V_PC.&lt;/P&gt;&lt;P&gt;          ENDDO.&lt;/P&gt;&lt;P&gt;          condense v_pc no-gaps.&lt;/P&gt;&lt;P&gt;          MOVE V_PC TO T_INPUTFILE+276(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do I use the FM that u have just suggested??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126559#M110478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T21:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126560#M110479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot tell much from this code as I don't know the definitions of the variables or how they are filled in, but what I told earlier is to look at that function module at the line mentioned. See how the checks are made and may be based on that you will come up with a common logic to format the postal code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module checks the given postal code for valid format, but not the reverse way. It will not build the postal code for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is your input? Please give an example of how the input postal code will be and how you want that to be converted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126560#M110479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T21:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126561#M110480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well in my case if street values is coming from the inputfile &amp;amp; the zip code value is blank , then according to the configuration set here the vendor will not be updated in SAP ... the business wants this to be handled logically ... So currently my code picks up the LAND1 value checks the postal length and put that many number of zero's in the place where zipcode comes from the inputfile... my prg is failing where country like PL (poland) or KR (Korea) is coming ... now the error coming is "The postal code should have "-" in the 3rd place" (this error for PL) ... for KR The postal code should have "-" in the 4th place" ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126561#M110480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T21:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126562#M110481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the code between CASE and ENDCASE, you will understand what format each country is following. It gets little complicated with some coutries where it is just using some routine to check instead of a format. But here are the ones that do have a format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CASE t005-landk.      " T005 &amp;lt;-&amp;gt; postal_address-country !!
      WHEN 'CDN'.
        postal_codemask = 'ANA NAN   '.
      WHEN 'NL '.
        postal_codemask = 'NNNN BB   '.
      WHEN 'PL '.
        postal_codemask = 'NN-NNN    '.
      WHEN 'S  '.
        postal_codemask = 'NNN NN    '.
      WHEN 'ROK'.
        postal_codemask = 'NNN-NNN   '.
      WHEN 'SK '.
        postal_codemask = 'NNN NN    '.
      WHEN 'CZ '.
        postal_codemask = 'NNN NN    '.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that N is for numeric and A is for Alpha but I don't know what B stands for in the Netherland format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126562#M110481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T21:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126563#M110482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the '-' is not important as long as you follow the length restrictions and the rule. The fields that are important in this are T005-LNPLZ and T005-PRPLZ. As long as you follow those rules, you should be fin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, for US it can be just 5 or 9 or 5-4. Any of these values will pass the test. Simlarly you need to find out all the combinations for each country. I don't think there is any easy way to format except hardcoding for each country.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126563#M110482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126564#M110483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ANd how do I bring the effect of field PRPLZ in my code ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 22:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126564#M110483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T22:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126565#M110484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone run across any documentation that outlines all the various rules by country?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 22:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126565#M110484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T22:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Zip Codes in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126566#M110485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;see &lt;A href="http://en.wikipedia.org/wiki/List_of_postal_codes"&gt;http://en.wikipedia.org/wiki/List_of_postal_codes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nils Buerckel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 09:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-codes-in-sap/m-p/1126566#M110485</guid>
      <dc:creator>nils_buerckel</dc:creator>
      <dc:date>2013-11-15T09:25:27Z</dc:date>
    </item>
  </channel>
</rss>

