<?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: Sorting internal table with line types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128414#M111047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have another field in the itab where you would specify the sort order(that field will be populated by you) and sort based on that field...&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, 18 Feb 2006 15:35:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-18T15:35:46Z</dc:date>
    <item>
      <title>Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128410#M111043</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 internal table juts for an example with four entries as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line.....Line Types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;444001.....P&lt;/P&gt;&lt;P&gt;New York...C  &lt;/P&gt;&lt;P&gt;Evershine..B&lt;/P&gt;&lt;P&gt;Mary.......N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sort the internal table with line types in order of lin types NBCP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this ?&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Above example is just with four entries, there might be internal table with ten entries and ten defined sorting order for line types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 15:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128410#M111043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T15:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128411#M111044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort internal table with field line types should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should remake/new internal table with &lt;/P&gt;&lt;P&gt;Line types....Line...&lt;/P&gt;&lt;P&gt;then sort it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 15:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128411#M111044</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-02-18T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128412#M111045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You missed my point completely. The sort order is not going to be always as I said in example.&lt;/P&gt;&lt;P&gt;It can be anything which I will write in program.&lt;/P&gt;&lt;P&gt;I cannot use sort by line types&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 15:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128412#M111045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T15:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128413#M111046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way that you can add a new field to your internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Counter : Type I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Counter   Line.....Line Types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 4          444001.....P&lt;/P&gt;&lt;P&gt; 3          New York...C &lt;/P&gt;&lt;P&gt; 2          Evershine..B&lt;/P&gt;&lt;P&gt; 1          Mary.......N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thensort your internal table by Counter. You can assign value to the counter while writng the program to populate the data in internaltable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this is use ful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 15:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128413#M111046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T15:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128414#M111047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have another field in the itab where you would specify the sort order(that field will be populated by you) and sort based on that field...&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, 18 Feb 2006 15:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128414#M111047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T15:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128415#M111048</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 am using following code. &lt;/P&gt;&lt;P&gt;The data gets automatically populated in gt_address with some predefined sap LINE_TYPE ORDER.&lt;/P&gt;&lt;P&gt;But when I print the data I want it in 1S678ITHOL order.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF szadr_printform_table_line,&lt;/P&gt;&lt;P&gt;         line_type TYPE ad_line_tp,&lt;/P&gt;&lt;P&gt;         address_line LIKE adrs-line0,&lt;/P&gt;&lt;P&gt;       END OF szadr_printform_table_line.&lt;/P&gt;&lt;P&gt;TYPES: szadr_printform_table TYPE szadr_printform_table_line OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_line TYPE szadr_printform_table_line.&lt;/P&gt;&lt;P&gt;DATA: gt_address TYPE szadr_printform_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ADDRESS_TYPE      = '1'&lt;/P&gt;&lt;P&gt;    ADDRESS_NUMBER    = '0000022786'&lt;/P&gt;&lt;P&gt;    SENDER_COUNTRY    = 'US'&lt;/P&gt;&lt;P&gt;    NUMBER_OF_LINES   = '10'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ADDRESS_PRINTFORM_TABLE = gt_address[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 15:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128415#M111048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T15:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128416#M111049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF szadr_printform_table_line,&lt;/P&gt;&lt;P&gt;line_type TYPE ad_line_tp,&lt;/P&gt;&lt;P&gt;address_line LIKE adrs-line0,&lt;/P&gt;&lt;P&gt;END OF szadr_printform_table_line.&lt;/P&gt;&lt;P&gt;TYPES: szadr_printform_table TYPE szadr_printform_table_line OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_line TYPE szadr_printform_table_line.&lt;/P&gt;&lt;P&gt;DATA: gt_address TYPE szadr_printform_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF szadr_printform_table_line1,&lt;/P&gt;&lt;P&gt;Counter   type sy-tabix,&lt;/P&gt;&lt;P&gt;line_type TYPE ad_line_tp,&lt;/P&gt;&lt;P&gt;address_line LIKE adrs-line0,&lt;/P&gt;&lt;P&gt;END OF szadr_printform_table_line1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: szadr_printform_table1 TYPE szadr_printform_table_line1 OCCURS 0.&lt;/P&gt;&lt;P&gt;DATA: gt_line1 TYPE szadr_printform_table_line1.&lt;/P&gt;&lt;P&gt;DATA: gt_address1 TYPE szadr_printform_table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ADDRESS_TYPE            = '1'&lt;/P&gt;&lt;P&gt;    ADDRESS_NUMBER          = '0000023153'&lt;/P&gt;&lt;P&gt;    SENDER_COUNTRY          = 'US'&lt;/P&gt;&lt;P&gt;    NUMBER_OF_LINES         = '10'&lt;/P&gt;&lt;P&gt;    LINE_PRIORITY           = '1SLO'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ADDRESS_PRINTFORM_TABLE = gt_address[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at gt_address into gt_line.&lt;/P&gt;&lt;P&gt;  move-corresponding gt_line to gt_line1.&lt;/P&gt;&lt;P&gt;  if gt_line-line_type = 'S'.&lt;/P&gt;&lt;P&gt;    Move '1' to gt_line1-counter.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  elseif --&lt;/P&gt;&lt;P&gt;  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append gt_line1 to gt_address1  .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort GT_ADDRESS1 by COUNTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 16:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128416#M111049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128417#M111050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lanka,&lt;/P&gt;&lt;P&gt;Thanks for your reply and efforts you are helping me out. I am just wondering why do we need push a counter value and do sorting again. Can't we use define our line_priority in the function and get the address in the way we want ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 16:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128417#M111050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T16:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting internal table with line types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128418#M111051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that we can't changes the mandatory sequence of the address format as defined in the country specif address format. We can change the sequence of others fields by line_priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to change the address type :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADDRESS_TYPE - Address type (from 3.0C)&lt;/P&gt;&lt;P&gt;There are three types of address:&lt;/P&gt;&lt;P&gt;Address type '1': addresses of firms or organizations; the address structure which is used in most SAP applications as 'Address'. &lt;/P&gt;&lt;P&gt;Address type '2': address of a person&lt;/P&gt;&lt;P&gt;Address type '3': work address, usually the address of a contact person in a company &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use T/code "OY01"&lt;DEL&gt;&amp;gt; Select Country&lt;/DEL&gt;&amp;gt; Example :AU"--&amp;gt; Display --&amp;gt; Select address key and press F1. You will find SAP 's Address format configuration .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sap help:&lt;/P&gt;&lt;P&gt;Formatting Routine Key for Printing Addresses&lt;/P&gt;&lt;P&gt;For printing addresses, there are country-specific routines which in each case copy the correct postal formatting of the address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The three-character "Address Layout Key" for the recipient country controls which of the routines available for formatting addresses in the relevant country is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These routines are programmed into the ADDRESS_INTO_PRINTFORM function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are based on different national and international guidelines and norms, including:&lt;/P&gt;&lt;P&gt;ISO 11180,&lt;/P&gt;&lt;P&gt;contracts of the World Postal Union (Seoul 1994),&lt;/P&gt;&lt;P&gt;international address samples from the World Postal Union&lt;/P&gt;&lt;P&gt;as well as the available rules of the individual countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you will find an overview of the country-specific formats currently implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers can program their own formatting routines using a customer exit. The SZAD0001 SAP enhancement has been defined in the package SZAD for this (-&amp;gt; transaction CMOD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General formatting rules&lt;/P&gt;&lt;P&gt;The following parameters are used depending on the transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whether the company address (street/house number) or the P.O. Box address is printed if both exist,&lt;/P&gt;&lt;P&gt;how many lines are available for printing,&lt;/P&gt;&lt;P&gt;which is the sender country.&lt;/P&gt;&lt;P&gt;If there are not enough lines, then lines are left out according to a standard sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The address format depends on whether the sender country is the same as, or different from, the recipient country. The country is always specified from abroad, either as a text name, or as an identification code of up to three characters (license plate code or country key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the country name is written out in full, it is written in the language of the sender country. If a language is not specified for the sender country, or the sender country itself is not specified, the logon language is used instead.&lt;/P&gt;&lt;P&gt;Exception: the language for the country code can be explicitly overwritten by a parameter in the print program (e.g. when the country code for customs transit papers is always to be specified in a particular language, such as English). if the "Print country name in recipient language" flag is set in the print program, the recipient language is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other language-dependent components such as the title and the word 'PO Box' are printed in the recipient language or the recipient country language. If this cannot be determined, the logon language is again used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all formats except Great Britain (006), Japan (013), and South Korea (017), the core of the address is formatted as follows (without empty lines, except for the compulsory empty line:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title line (if applicable)&lt;/P&gt;&lt;P&gt;name block (differs depending on the address type, see below)&lt;/P&gt;&lt;P&gt;street address or PO Box&lt;/P&gt;&lt;P&gt;                        (compulsory empty line, if applicable)&lt;/P&gt;&lt;P&gt;city line with postal code&lt;/P&gt;&lt;P&gt;country code (if applicable)&lt;/P&gt;&lt;P&gt;The city line and the country name are always printed in upper case for foreign addresses (only for the complete address, not for short forms).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name block generally consists of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Normal" addresses (address type SPACE and address type 1):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME1&lt;/P&gt;&lt;P&gt;NAME2&lt;/P&gt;&lt;P&gt;NAME3&lt;/P&gt;&lt;P&gt;NAME4&lt;/P&gt;&lt;P&gt;Personal addresses (address type 2):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title of person and name of person&lt;/P&gt;&lt;P&gt;Business address with department and contact person (address type 3):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME1&lt;/P&gt;&lt;P&gt;NAME2&lt;/P&gt;&lt;P&gt;NAME3&lt;/P&gt;&lt;P&gt;NAME4&lt;/P&gt;&lt;P&gt;department&lt;/P&gt;&lt;P&gt;title of person and name of person&lt;/P&gt;&lt;P&gt;In addresses entered using Business Address Services (central address management) (see Release notes Central Address Management for Release 4.0 and Central Address Management for Release 4.5 ), the street address can comprise several lines (see Print street address), otherwise street and house number are maintained in the Street field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some countries do not have a compulsory empty line (see notes below). The city and district are printed in the city line, connected by a hyphen (exceptions: 004 USA, 006 Great Britain/Ireland, 013 Japan, 015 Germany, 017 South Korea, 019 Denmark), provided that the total length does not exceed 35 characters. If a different city is specified for the PO Box (PFORT), this is used in the PO Box address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all formats which use a country code (currently 001 European standard format 002 Italy, 011 Switzerland and 014 Austria ), the license plate code for that country is used. If this is not maintained, the country key in table T005 is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the "Print country name in foreign addresses" flag is set for the sender country in table 005, the country code is not used; the country name is printed in the last line of the address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formats 004 (USA), 005 (Canada) and 008 (Singapore) contain a line ('F') for the function of the contact person in the company (if address type = '3'). This line comes immediately after the line 'N' (Name (and title) of the natural person).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In formats 002 (Italy), 004 (USA), 005 (Canada), 006 (Great Britain), 007 (Brazil) and Australia (009), the REGIO field (Region, State, Province, County) is formatted. For the USA, Canada, Brazil and Australia, the key from table T005S is used; for Great Britain the text name from table T005U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all countries for which no "Address structure key" is maintained, a standard format is used which corresponds to format "010".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2006 16:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-internal-table-with-line-types/m-p/1128418#M111051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-18T16:20:11Z</dc:date>
    </item>
  </channel>
</rss>

