<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>www.lucasozio.it &#187; ABAP</title>
	<atom:link href="http://www.lucasozio.it/?feed=rss2&#038;cat=7" rel="self" type="application/rss+xml" />
	<link>http://www.lucasozio.it</link>
	<description></description>
	<pubDate>Wed, 15 Apr 2009 14:39:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Working with Internal tables.</title>
		<link>http://www.lucasozio.it/?p=52</link>
		<comments>http://www.lucasozio.it/?p=52#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:39:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[internal table]]></category>

		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://www.lucasozio.it/?p=52</guid>
		<description><![CDATA[Here is a small example on how to work with ABAP iternal tables. Enjoy it. You will find this example on ABAPDOCU transaction inside SAP system.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
REPORT demo_int_tables_move .
&#160;
* move
&#160;
DATA: BEGIN OF line,
        col1&#40;1&#41; TYPE c,
        col2&#40;1&#41; TYPE c,
    [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a small example on how to work with ABAP iternal tables. Enjoy it. You will find this example on ABAPDOCU transaction inside SAP system.</p>

<div class="wp_codebox"><table width="100%" ><tr id="p522"><td width="1%" class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code" id="p52code2"><pre class="abap abap" style="font-family:monospace;"><a href="http://sap4.com/wiki/index.php?title=report"><span style="color: #000066;">REPORT</span></a> demo_int_tables_move .
&nbsp;
<span style="color: #339933;">* move</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">DATA</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">BEGIN OF</span> line,
        col1<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">TYPE</span> c,
        col2<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">TYPE</span> c,
      <span style="color: #993333;">END OF</span> line.
&nbsp;
<span style="color: #000000; font-weight: bold;">DATA</span><span style="color: #66cc66;">:</span> etab <span style="color: #993333;">LIKE</span> TABLE OF line WITH HEADER LINE,
      ftab1 <span style="color: #993333;">LIKE</span> TABLE OF line.
&nbsp;
<span style="color: #202020;">line</span><span style="color: #66cc66;">-</span>col1 <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'A'</span>. <span style="color: #202020;">line</span><span style="color: #66cc66;">-</span>col2 <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'B'</span>.
&nbsp;
<a href="http://sap4.com/wiki/index.php?title=append"><span style="color: #000066;">APPEND</span></a> line <span style="color: #993333;">TO</span> etab.
&nbsp;
<span style="color: #202020;">MOVE</span> etab<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span> <span style="color: #993333;">TO</span> ftab1.
&nbsp;
<a href="http://sap4.com/wiki/index.php?title=loop"><span style="color: #000066;">LOOP</span></a> AT ftab1 <span style="color: #993333;">INTO</span> line.
  <a href="http://sap4.com/wiki/index.php?title=write"><span style="color: #000066;">WRITE</span></a><span style="color: #66cc66;">:</span> <span style="color: #66cc66;">/</span> line<span style="color: #66cc66;">-</span>col1, line<span style="color: #66cc66;">-</span>col2.
<a href="http://sap4.com/wiki/index.php?title=endloop"><span style="color: #000066;">ENDLOOP</span></a>.
&nbsp;
<span style="color: #202020;">SKIP</span>.
<span style="color: #202020;">ULINE</span>.
&nbsp;
<span style="color: #339933;">* =</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">DATA</span><span style="color: #66cc66;">:</span> ftab2 <span style="color: #993333;">TYPE</span> SORTED TABLE OF f
            WITH NON<span style="color: #66cc66;">-</span>UNIQUE KEY table_line,
      itab1 <span style="color: #993333;">TYPE</span> HASHED TABLE OF i
            WITH UNIQUE KEY table_line,
      fl    <span style="color: #993333;">TYPE</span> f.
&nbsp;
<span style="color: #b1b100;">DO</span> <span style="color: #cc66cc;">3</span> TIMES.
  <span style="color: #202020;">INSERT</span> sy<span style="color: #66cc66;">-</span>index <span style="color: #993333;">INTO</span> TABLE itab1.
<span style="color: #202020;">ENDDO</span>.</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.lucasozio.it/?feed=rss2&amp;p=52</wfw:commentRss>
		</item>
		<item>
		<title>Funzioni ABS, SIGN, CEIL, FLOOR, TRUNC, e FRAC</title>
		<link>http://www.lucasozio.it/?p=25</link>
		<comments>http://www.lucasozio.it/?p=25#comments</comments>
		<pubDate>Fri, 31 Oct 2008 15:30:05 +0000</pubDate>
		<dc:creator>admin1</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[ABS]]></category>

		<category><![CDATA[CEIL]]></category>

		<category><![CDATA[FLOOR]]></category>

		<category><![CDATA[FRAC ABAP4]]></category>

		<category><![CDATA[SIGN]]></category>

		<category><![CDATA[TRUNC]]></category>

		<guid isPermaLink="false">http://www.lucasozio.it/?p=25</guid>
		<description><![CDATA[Ecco un esempio di alcune funzioni che potrebbero risultare utili nella quotidiana attività del programmatore ABAP.
In basso un semplicissimo programma che illustra come operano le funzioni ABS, SIGN, CEIL, FLOOR, TRUNC e FRAC scritto in ABAP4.
Per maggiori dettagli, e per altre funzioni disponibili nel linguaggio ABAP, visitate questa pagina

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
* Le Funzioni ABS, SIGN, CEIL, FLOOR, [...]]]></description>
			<content:encoded><![CDATA[<p>Ecco un esempio di alcune funzioni che potrebbero risultare utili nella quotidiana attività del programmatore ABAP.<br />
In basso un semplicissimo programma che illustra come operano le funzioni <strong>ABS, SIGN, CEIL, FLOOR, TRUNC</strong> e<strong> FRAC</strong> scritto in ABAP4.<br />
Per maggiori dettagli, e per altre funzioni disponibili nel linguaggio ABAP, visitate questa <a href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3316358411d1829f0000e829fbfe/content.htm">pagina</a></p>

<div class="wp_codebox"><table width="100%" ><tr id="p254"><td width="1%" class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code" id="p25code4"><pre class="abap abap" style="font-family:monospace;"><span style="color: #339933;">* Le Funzioni ABS, SIGN, CEIL, FLOOR, TRUNC, e FRAC.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">DATA</span><span style="color: #66cc66;">:</span> I <span style="color: #993333;">TYPE</span> I,
P <span style="color: #993333;">TYPE</span> P DECIMALS <span style="color: #cc66cc;">2</span>,
M <span style="color: #993333;">TYPE</span> F VALUE <span style="color: #ff0000;">'-3.5'</span>,
D <span style="color: #993333;">TYPE</span> P DECIMALS 1.
<span style="color: #202020;">P</span> <span style="color: #66cc66;">=</span> ABS<span style="color: #66cc66;">&#40;</span> M <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; 3,5</span>
I <span style="color: #66cc66;">=</span> P. <span style="color: #808080; font-style: italic;">&quot; 4 - business rounding</span>
I <span style="color: #66cc66;">=</span> M. <span style="color: #808080; font-style: italic;">&quot; -4</span>
I <span style="color: #66cc66;">=</span> CEIL<span style="color: #66cc66;">&#40;</span> P <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; 4 - l'intero più grande</span>
I <span style="color: #66cc66;">=</span> CEIL<span style="color: #66cc66;">&#40;</span> M <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; -3</span>
I <span style="color: #66cc66;">=</span> FLOOR<span style="color: #66cc66;">&#40;</span> P <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; 3 - l'intero più piccolo</span>
I <span style="color: #66cc66;">=</span> FLOOR<span style="color: #66cc66;">&#40;</span> M <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; -4</span>
I <span style="color: #66cc66;">=</span> TRUNC<span style="color: #66cc66;">&#40;</span> P <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; 3 - parte intera</span>
I <span style="color: #66cc66;">=</span> TRUNC<span style="color: #66cc66;">&#40;</span> M <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; -3</span>
D <span style="color: #66cc66;">=</span> FRAC<span style="color: #66cc66;">&#40;</span> P <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; 0.5 - parte decimale</span>
D <span style="color: #66cc66;">=</span> FRAC<span style="color: #66cc66;">&#40;</span> M <span style="color: #66cc66;">&#41;</span>. <span style="color: #808080; font-style: italic;">&quot; -0.5</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.lucasozio.it/?feed=rss2&amp;p=25</wfw:commentRss>
		</item>
		<item>
		<title>SAP: Debugging User Exit</title>
		<link>http://www.lucasozio.it/?p=20</link>
		<comments>http://www.lucasozio.it/?p=20#comments</comments>
		<pubDate>Sun, 14 Sep 2008 13:07:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[ABAP user exit]]></category>

		<category><![CDATA[debug]]></category>

		<guid isPermaLink="false">http://www.lucasozio.it/?p=20</guid>
		<description><![CDATA[Per chi giornalmente lavora come programmatore ABAP su ambienti SAP sarà sicuramente capitato di essere impossibilitato nell&#8217;eseguire il debug di codice ABAP. Uno di questi casi è quando viene attivato un Enhancement con user exit associate.

Se vi trovate in questa situazione, seguite questa procedura e riuscirete ad attivare il debug:
Prima di Iniziare. Accertarsi dove è [...]]]></description>
			<content:encoded><![CDATA[<p>Per chi giornalmente lavora come programmatore ABAP su ambienti SAP sarà sicuramente capitato di essere impossibilitato nell&#8217;eseguire il debug di codice ABAP. Uno di questi casi è quando viene attivato un Enhancement con user exit associate.</p>
<p><span id="more-20"></span></p>
<p>Se vi trovate in questa situazione, seguite questa procedura e riuscirete ad attivare il debug:<br />
Prima di Iniziare. Accertarsi dove è utilizzata la user exit.</p>
<p>Nel caso della User Exit EXIT_SAPLMBMB_001<br />
 il punto esatto è MB_UPDATE_TASKS. Teniamo a mente questo dato.</p>
<p>n.b. Questa operazione potrebbe non essere fruttuosa al primo tentativo, dopo qualche sessione di debug riusciremo comunque ad ottenere quella precisa.</p>
<p>Seguiamo ora i seguenti step:</p>
<p>* Aprire una sessione di Debug nella “Command field” con il classico metodo /H + Invio.</p>
<p>* Selezionare dal menu la voce Settings -&gt; Display/Change Debugger Settings e nella popup che appare la voce &#8220;Update Debugging&#8221;.</p>
<p>* Rientrando nella schermata di Debugging premere il tasto F8. Verrà aperta una nuova sessione di Debug (Update Debugging).</p>
<p>* In questa finestra re-impostare il System Debugging andando su Settings -&gt; Display/Change Debugger Settings e selezionando la voce “System Debugging” nella popup</p>
<p>* Spostiamoci ora nella sezione Desktop 2, e nella sezione ABAP Stack fare doppio click sulla riga “VB_CALL_FUNC” (vedi figura 5), e impostare un Break Point (Punto di interruzione) sulla stringa:</p>
<p><strong>PERFORM (VBFUNC) IN PROGRAM (TFDIR-PNAME) USING VBID.</strong><br />
<img src="http://www.lucasozio.it/wp-content/uploads/2008/09/breakpoint1.png" alt="Breakpoint1" width="553" height="235" /></p>
<p>* Eseguire ora il debug regolarmente finché non si arriva alla chiamata della funzione che ci interessa. Per aiutarci, in questo frangente è utile impostare nella sezione desktop 1 i campi VBFUNC e TFDIR-PNAME e monitorarli finché non assumono il valore della funzione desiderata.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucasozio.it/?feed=rss2&amp;p=20</wfw:commentRss>
		</item>
	</channel>
</rss>
