<?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: array calculation in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101631#M980811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ABAP the closest concept to an "array" is an "internal table". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there are field-symbols which are same as pointers in C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Craig Cmehil on Jul 3, 2008 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 09:33:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-02T09:33:46Z</dc:date>
    <item>
      <title>array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101629#M980809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use array for some calculations. I begin new project and have to calculate distance with using array. I searched forums but I found nothing. please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 09:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101629#M980809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T09:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101630#M980810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ABAP we do not have concepts such as Arrays in C++ or JAVA.&lt;/P&gt;&lt;P&gt;We have a similar thing called Internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal tables are noting but a 2 dimensional arrays. You can imagine them like a table filled with values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to get you job done using internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 09:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101630#M980810</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2008-07-02T09:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101631#M980811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ABAP the closest concept to an "array" is an "internal table". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there are field-symbols which are same as pointers in C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Craig Cmehil on Jul 3, 2008 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 09:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101631#M980811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101632#M980812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to explain that I want. &lt;/P&gt;&lt;P&gt;I want go from A to B. &lt;/P&gt;&lt;P&gt;intervals: 1) A-B = 600 &lt;/P&gt;&lt;P&gt;2) A-C=50 C-F=150 F-G= 200 G-B=50&lt;/P&gt;&lt;P&gt;3) A-D=100 D-H=200 H-G=50 G-B=50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have to choose 3. but how I find this direction and min. interval? please help me.&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;note: sorry for my english. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 09:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101632#M980812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T09:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101633#M980813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: begin of itab occurs 0,
    index rype i,
    field1 type i,
    field2 type i,
    field3 type i,
    field4 type i,
end of itab.  
data: sum1 type i,
      sum2 type i,
      ind type i.

clear itab.
itab-index = itab-index + 1.
itab-field1 = 600. itab-field2 = 0. itab-field3 = 0. itab-field4 = 0.
append itab.
itab-index = itab-index + 1.
itab-field1 = 50. itab-field2 = 150. itab-field3 = 200. itab-field4 = 50.
append itab.
itab-index = itab-index + 1.
itab-field1 = 100. itab-field2 = 200. itab-field3 = 50. itab-field4 = 50.
append itab.
read table itab index 1.
if sy-subrc = 0.
  sum1 = itab-field1 + itab-field2 + itab-field3 + itab-field4.
  ind = itab-index.
endif.
loop at itab
  clear: sum2.
  sum2 = itab-field1 + itab-field2 + itab-field3 + itab-field4.
  if sum2 &amp;lt; sum1.
    sum1 = sum2.
    ind = itab-index.
  endif.
endloop.
read table itab with key index = ind.
if sy-subrc = 0.
  write: 'Your direction is', itab-index, 'min. interval = ', sum1.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 10:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101633#M980813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T10:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101634#M980814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Maroz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not mean like that. Firstly I have to find direction firstly. I dont know which I use that directions. my table fields like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin, end, interval. (for example: begin = 'A'. end = 'B'. interval = '600'.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from my example, how can find 2. direction or 3. direction. (means from A to D, from D to H, H to G and from G to B. may be I go wrong direction like from H to F.) that is I have to find direction from A to B with min interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, I have to calculate all records in my table and find min intervals. but I dont know how I do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: please forgive me for my english. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101634#M980814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T11:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101635#M980815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Internal Table is the concept which is similar to Arrays in other programming languages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;begin of fs_data,
   int type i,
end of fs_data.

data t_data like
standard table of fs_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will create a single dimensional Array like structure. Fill data in it and perform Operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Craig Cmehil on Jul 3, 2008 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101635#M980815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T11:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101636#M980816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you have example of the code on other language (C/C++/C# etc) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101636#M980816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T11:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101637#M980817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
#include &amp;lt;stdio.h&amp;gt;

int main()
{

int m,n,mat[100][100],i,j,l;
int a,b,top,max=50000;

char k1='c'; 
	
printf("total country = ");
scanf(" %d", &amp;amp;n);

printf(" total direction = ");  // total road: A-C is a road B-G is another road
scanf(" %d", &amp;amp;m);


	for(i=1;i&amp;lt;=n;i++){

		for(j=1;j&amp;lt;=n;j++){

			mat&amp;lt;i&amp;gt;[j]=max;
		}	
	}

for(i=1;i&amp;lt;=n;i++)
{
    mat&amp;lt;i&amp;gt;&amp;lt;i&amp;gt;=0;
}

for(i=1;i&amp;lt;=m;i++)
{
printf("enter first country ");
scanf("%d", &amp;amp;a);

printf("enter second country",i);
scanf(" %d", &amp;amp;b);

printf("intervals of countries");
scanf("%d", &amp;amp;mat[a]&amp;lt;b&amp;gt;);

mat&amp;lt;b&amp;gt;[a]=mat[a]&amp;lt;b&amp;gt;;
}

for(l=1;l&amp;lt;=n;l++)
{

	for(i=1;i&amp;lt;=n;i++)
{
	       

	                	for(j=1;j&amp;lt;=n;j++)
{

							
		                          top=mat&amp;lt;i&amp;gt;[l] + mat[l][j];
			  
			                           if(top &amp;lt; mat&amp;lt;i&amp;gt;[j]){
			             
			                              mat&amp;lt;i&amp;gt;[j]=top;
			}
												
		}	
	
	}


}
while(k1 != 'q')
{
printf(" enter to find interval of 2 countries = ");

scanf(" %d", &amp;amp;a);
scanf(" %d", &amp;amp;b);

printf(" min interval = %d \n",mat[a]&amp;lt;b&amp;gt;);

printf(" q for quit any key for continue = ");
scanf(" %c", &amp;amp;k1);
}




}
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;intervals: 1) A-B = 600&lt;/P&gt;&lt;P&gt;2) A-C=50 C-F=150 F-G= 200 G-B=50 (that is A-B = 450)&lt;/P&gt;&lt;P&gt;3) A-D=100 D-H=200 H-G=50 G-B=50. (that is A-B = 400)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example records in my table&lt;/P&gt;&lt;P&gt;     A   | B    | C  | D    | F    | G | H&lt;/P&gt;&lt;P&gt;A | 0   | 600 | 50 | 100 | -     | -   | -  &lt;/P&gt;&lt;P&gt;B |600 | 0    | -   | -      | -     | 50| -&lt;/P&gt;&lt;P&gt;C | 50 |  -    | 0   | -      | 150| -   | -&lt;/P&gt;&lt;P&gt;D |100 | -    | -    | 0     | -    | -   |200 &lt;/P&gt;&lt;P&gt;F |-     | -     |150|  -     | 0   |200|-&lt;/P&gt;&lt;P&gt;G |-    | 50   |-    | -      | 200| 0  |50&lt;/P&gt;&lt;P&gt;H |-    |-      | -    | 200 | -     | 50| 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after program run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     A   | B     | C   | D    | F    | G    | H&lt;/P&gt;&lt;P&gt;A | 0    | 400 | 50  | 100 | 200 |350  | 300  &lt;/P&gt;&lt;P&gt;B |400 | 0     | 400| 300 | 250 | 50   | 100&lt;/P&gt;&lt;P&gt;C | 50  | 400 | 0    | 150 | 150 | 350 | 400&lt;/P&gt;&lt;P&gt;D |100 |300  | 150 | 0    | 300 | 250 |200 &lt;/P&gt;&lt;P&gt;F |200 |250  |150  |300  | 0    | 200 |250&lt;/P&gt;&lt;P&gt;G |350 | 50  |350  | 250 | 200 | 0    |50&lt;/P&gt;&lt;P&gt;H |300 |100 | 400 | 200 | 250 | 50   | 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont update my table. I just want find direction and min interval to go from A to B. &lt;/P&gt;&lt;P&gt;I think not hard for gurus. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank all for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 12:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101637#M980817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T12:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101638#M980818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define your "array" like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF mat_ty,
         dim1 TYPE i,
         dim2 TYPE i,
         valu TYPE i,
       END OF mat_ty.

DATA: t_mat  TYPE HASHED TABLE OF mat_ty WITH UNIQUE KEY dim1 dim2,
      ls_mat TYPE mat_ty.

FIELD-SYMBOLS: &amp;lt;ls_mat&amp;gt; TYPE mat_ty.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the array has to be initialised before you can use it.  For each "point" in the "array" &lt;STRONG&gt;x,y&lt;/STRONG&gt;, where x and y are integers, you need to do something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_mat-dim1 = x.
ls_mat-dim2 = y.
ls_mat-valu = 50000. " for example
INSERT ls_mat INTO TABLE lt_mat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you've initialised all the points, you can access a "point" &lt;STRONG&gt;x,y&lt;/STRONG&gt; in the "array" using READ.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE ls_mat WITH TABLE KEY dim1 = x dim2 = y ASSIGNING &amp;lt;ls_mat&amp;gt;.
IF &amp;lt;ls_mat&amp;gt; IS ASSIGNED... " If it isn't assigned then the point wasn't initialised
  &amp;lt;ls_mat&amp;gt;-valu = new_value. " This line changes the value of the "point" you've just read from the "array". 
,,,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the code you've already got, that should be sufficient to get your solution.  Here's a beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: i TYPE i,
      j TYPE i,
      l TYPE i,
      a TYPE i,
      b TYPE i,
      top TYPE i.

CONSTANTS: max TYPE i VALUE 50000.

FIELD-SYMBOLS: &amp;lt;ls_mat&amp;gt; TYPE mat_ty.

TYPES: BEGIN OF mat_ty,
         dim1 TYPE i,
         dim2 TYPE i,
         valu TYPE i,
       END OF mat_ty.

DATA: t_mat  TYPE HASHED TABLE OF mat_ty WITH UNIQUE KEY dim1 dim2,
      ls_mat TYPE mat_ty.

PARAMETERS: n TYPE i, " Total country
            m TYPE i. " Total direction.

i = 1.
DO.
  IF i GT n.
    EXIT.
  ENDIF.
  DO.
    j = 1.
    IF j GT n.
      EXIT.
    ENDIF.
    ls_mat-dim1 = i.
    ls_mat-dim2 = j.
    ls_mat-valu = max.
    INSERT ls_mat INTO TABLE lt_mat.
    ADD 1 TO j.
  ENDDO.
  ADD 1 TO i.
ENDDO.

i=1.
DO.
  IF i GT n.
    EXIT.
  ENDIF.
  READ TABLE lt_mat WITH TABLE KEY dim1 = i dim2 = i ASSIGNING &amp;lt;ls_mat&amp;gt;.
  CLEAR &amp;lt;ls_mat&amp;gt;-valu.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 13:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101638#M980818</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-02T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101639#M980819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks  Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your code for helpful for me. I wrote like that, but still I dont know direction that I use. and there is no calculation for min interval. if I am wrong you just find interval of just 2 countries. I want to say may be no any road from A to B to directly ( mean, there is no record in my table). you have to go via neighbor of countries. ( ex: Via D,H and G) I have to calculate interval of neigbor's interval of these two countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: I dont know, but may be there is a FM for this problem. if it is, may result my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 14:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101639#M980819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T14:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101640#M980820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've answered your question (I think) about how to emulate arrays, so that you should be able to just translate your C program into ABAP quite easily.  Does the C program work?  I've only made a start on translating from your program into ABAP - you need to do the rest yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understand what the program is trying to achieve, so I can't help you on that bit, I'm afraid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 14:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101640#M980820</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-02T14:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101641#M980821</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 think Matthew has given a lot of input about how to solve your task in ABAP. I would suggest that you try to understand the algorithm used in the C-code beforehand. The interesting part is in the nested loops... But I would say that the used algorithm to compute the shortest distance might not be the best available. Do you really have a business requirement for such a program? If yes: how large might the number of citys/countrys get, what is the typical number? Do you really need distances for all pairs or do you just need a few? Depending on your scenario some other algorithms might be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jan Stallkamp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 22:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101641#M980821</guid>
      <dc:creator>JanStallkamp</dc:creator>
      <dc:date>2008-07-02T22:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: array calculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101642#M980822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did like you. of course changed something but generally problem solved with your method. again thanks. another thanks to jan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-calculation-in-abap/m-p/4101642#M980822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:22:29Z</dc:date>
    </item>
  </channel>
</rss>

