<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Burhan KARADERE KiÅŸisel Blog SayfasÄ± &#187; ABAP (Advanced Business Application Programming)</title>
	<atom:link href="http://www.karadere.com/blog/category/programlama-software/advanced-business-application-programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.karadere.com/blog</link>
	<description>BiliÅŸim - IT Bilgi BloÄŸu</description>
	<lastBuildDate>Wed, 01 Feb 2012 07:41:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sap Abap Try Catch ile hata yakalamak, nasÄ±l hata yakalanÄ±r dump Ã¶nlemek ? CX_AI_SYSTEM_FAULT in RFC hatasÄ±nÄ± yakalamak ?</title>
		<link>http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html</link>
		<comments>http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html#comments</comments>
		<pubDate>Thu, 13 Oct 2011 13:52:45 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Abap]]></category>
		<category><![CDATA[catch]]></category>
		<category><![CDATA[hata]]></category>
		<category><![CDATA[try]]></category>
		<category><![CDATA[yakalamak]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=1483</guid>
		<description><![CDATA[ Basit kullanÄ±mÄ± ile try ile hata yakalamak aÅŸaÄŸÄ±daki gibidir. ty ile yakalayÄ±p catch ile iÃ§eriÄŸi yazdÄ±rabilirsiniz. TRY. CALL METHOD o1->m1. PERFORM f1. CATCH cx_root. "Handler for all exceptions " ABAP code(What to do when error occures)........ ENDTRY. FORM f1 RAISING cx_my. TRY. IF ...... RAISE EXCEPTION TYPE cx_my2. ENDIF. CALL METHOD o1->m3. CATCH cx_my1 cx_my3 INTO ex. RAISE EXCEPTION TYPE cx_my4. CATCH cx_my4. "Handler for exceptions of type cx_my4 " ABAP code(What to do when error occures)........ CLEANUP. "Cleanup section, used to restore to a consistant state " ABAP code........ ENDTRY. ENDFORM.  <p><a href="http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial monospaced for SAP;">Â </span>Â <span style="font-family: Arial monospaced for SAP;">Basit kullanÄ±mÄ± ile try ile hata yakalamak aÅŸaÄŸÄ±daki gibidir. </span></p>
<p><span style="font-family: Arial monospaced for SAP;">ty ile yakalayÄ±p catch ile iÃ§eriÄŸi yazdÄ±rabilirsiniz.</span></p>
<p><span style="font-family: Arial monospaced for SAP;">Â </span>Â </p>
<p><span style="font-family: Arial monospaced for SAP;">TRY.<br />
Â Â Â  CALL METHOD o1-&gt;m1.<br />
Â Â Â  PERFORM f1.<br />
Â  CATCH cx_root.Â  &#8220;Handler for all exceptions<br />
Â Â Â Â Â Â  &#8221; ABAP code(What to do when error occures)&#8230;&#8230;..<br />
ENDTRY.</p>
<p>FORM f1 RAISING cx_my.<br />
Â  TRY.<br />
Â Â Â  IF &#8230;&#8230; RAISE EXCEPTION TYPE cx_my2. ENDIF.<br />
Â Â Â Â Â  CALL METHOD o1-&gt;m3.<br />
Â  CATCH cx_my1 cx_my3 INTO ex.<br />
Â Â Â  RAISE EXCEPTION TYPE cx_my4.<br />
Â  CATCH cx_my4.<br />
Â Â Â Â  &#8220;Handler for exceptions of type cx_my4<br />
Â Â Â Â  &#8221; ABAP code(What to do when error occures)&#8230;&#8230;..<br />
Â  CLEANUP.<br />
Â Â Â Â  &#8220;Cleanup section, used to restore to a consistant state<br />
Â Â Â Â  &#8221; ABAP code&#8230;&#8230;..<br />
Â  ENDTRY.<br />
ENDFORM.</span></p>
<p><span style="font-family: Arial monospaced for SAP;"><br />
</span><span style="font-family: Arial monospaced for SAP;">&#8220;&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p><span style="font-family: Arial monospaced for SAP;">&#8220;&amp; </span></p>
<p><span style="font-family: Arial monospaced for SAP;">&#8220;&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p><span style="font-family: Arial monospaced for SAP;"></span></p>
<p>Â  <!-- SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } -->REPORTÂ Â TRYORNEGI.</p>
<p>parametersÂ NUMBERÂ typeÂ I.</p>
<p>dataÂ RESULTÂ typeÂ PÂ decimalsÂ 2.<br />
dataÂ OREFÂ typeÂ refÂ toÂ CX_ROOT.<br />
dataÂ TEXTÂ typeÂ STRING.</p>
<p>start-of-selection.</p>
<p>Â Â write:Â /Â &#8217;TestingÂ divisionÂ andÂ SqareÂ rootÂ with&#8217;,Â NUMBER.<br />
Â Â uline.</p>
<p>Â Â Â Â try.<br />
Â Â Â Â ifÂ ABS(Â NUMBERÂ )Â &gt;Â 100.<br />
Â Â Â Â Â Â raiseÂ exceptionÂ typeÂ CX_DEMO_ABS_TOO_LARGE.<br />
Â Â endif.<br />
Â Â Â Â try.<br />
Â Â Â Â Â Â RESULTÂ =Â Â 1Â /Â NUMBER.<br />
Â Â Â Â Â Â write:Â /Â &#8217;ResultÂ ofÂ division:&#8217;,Â RESULT.<br />
Â Â Â Â Â Â RESULTÂ =Â SQRT(Â NUMBERÂ ).<br />
Â Â Â Â Â Â write:Â /Â &#8217;ResultÂ ofÂ squareÂ root:&#8217;,Â RESULT.<br />
Â Â Â Â Â Â catchÂ CX_SY_ZERODIVIDEÂ intoÂ OREF.<br />
Â Â Â Â Â Â TEXTÂ =Â OREF-&gt;GET_TEXT(Â ).<br />
Â Â Â Â Â Â cleanup.<br />
Â Â Â Â Â Â Â Â clearÂ RESULT.<br />
Â Â endtry.<br />
Â Â Â Â catchÂ CX_SY_ARITHMETIC_ERRORÂ intoÂ OREF.<br />
Â Â Â Â Â Â TEXTÂ =Â OREF-&gt;GET_TEXT(Â ).<br />
Â Â Â Â catchÂ CX_ROOTÂ intoÂ OREF.<br />
Â Â Â Â Â Â TEXTÂ =Â OREF-&gt;GET_TEXT(Â ).<br />
Â Â endtry.<br />
Â Â ifÂ notÂ TEXTÂ isÂ initial.<br />
Â Â Â Â writeÂ /Â TEXT.<br />
Â Â endif.<br />
Â Â write:Â /Â &#8217;FinalÂ result:&#8217;,Â RESULT.</p>
<p>Â &#8221;&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8220;&amp;Â  CX_AI_SYSTEM_FAULT ile hata yakalamak</p>
<p>Â &#8221;&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><a href="http://wiki.sdn.sap.com/wiki/display/Snippets/How+to+handle+CX_AI_SYSTEM_FAULT+in+RFC">http://wiki.sdn.sap.com/wiki/display/Snippets/How+to+handle+CX_AI_SYSTEM_FAULT+in+RFC</a></p>
<p><a href="https://www.sdn.sap.com/irj/scn/thread?threadID=1070418&amp;tstart=120">https://www.sdn.sap.com/irj/scn/thread?threadID=1070418&amp;tstart=120</a></p>
<p>Description</p>
<div>
<div>Courtesy of OLE from the above thread. This is very useful when calling a Client Proxy. The SAP help isn&#8217;t very clear on how to handle system exceptions in an RFC. I was getting the warning &#8220;The exception CX_AI_SYSTEM_FAULT is neither caught nor is declared in the RASING clause of &lt;function&gt;&#8221; when I checked the function in SE37.</div>
</div>
<p>data: lo_system_ex type ref to cx_ai_system_fault,<br />
lo_app_ex type ref to cx_ai_application_fault,<br />
l_sys_exc TYPE REF TO cx_ai_system_fault,<br />
l_app_exc TYPE REF TO cx_ai_application_fault,<br />
l_exception_msg type string.<br />
Â <br />
Â <br />
try.<br />
create object l_wsproxy.<br />
Â <br />
try.<br />
call method l_wsproxy-&gt;execute_synchronous<br />
exporting<br />
output = ****<br />
importing<br />
input = ****.<br />
catch cx_ai_system_fault into l_sys_exc.<br />
catch cx_ai_application_fault into l_app_exc.<br />
endtry.<br />
Â <br />
catch cx_ai_system_fault into l_sys_exc.<br />
endtry.<br />
l_exception_msg = l_sys_exc-&gt;get_text( ).<br />
write l_exception_msg.</p>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html&amp;amp;t=Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?+-+http://&#x27A1;.ws/î°„âˆ§" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.htmltitle=Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html&title=Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?&summary=%C2%A0%C2%A0Basit+kullan%C4%B1m%C4%B1+ile+try+ile+hata+yakalamak+a%C5%9Fa%C4%9F%C4%B1daki+gibidir.+%0D%0A%0D%0A&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html&amp;amp;t=Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?&amp;u=http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html&amp;title=Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Sap Abap Try Catch ile hata yakalamak, nasÄ±l hata yak...&body=Â Â Basit kullanÄ±mÄ± ile try ile hata yakalamak aÅŸaÄŸÄ±daki gibidir. 

ty[..] - http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html&amp;title=Sap+Abap+Try+Catch+ile+hata+yakalamak%2C+nas%C4%B1l+hata+yakalan%C4%B1r+dump+%C3%B6nlemek+?+CX_AI_SYSTEM_FAULT+in+RFC+hatas%C4%B1n%C4%B1+yakalamak+?" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/sap-abap-try-catch-ile-hata-yakalamak-nasil-hata-yakalanir-dump-onlemek-cx_ai_system_fault-in-rfc-hatasini-yakalamak.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Abap Nedir? AbapÃ§Ä± nedir ? Ne iÅŸ yapar ne iÃ§er nerde yatar nerde kalkar ? AbapÃ§Ä± olmak iÃ§in sebepler ?</title>
		<link>http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html</link>
		<comments>http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html#comments</comments>
		<pubDate>Thu, 29 Sep 2011 05:54:47 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Abap]]></category>
		<category><![CDATA[abapÃ§Ä±]]></category>
		<category><![CDATA[erp]]></category>
		<category><![CDATA[nedir]]></category>
		<category><![CDATA[olmak]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=1449</guid>
		<description><![CDATA[Merhabalar konun baÅŸlÄ±ÄŸÄ± biraz ilginÃ§ oldu farkÄ±ndayÄ±m. Abap, abapÃ§Ä± hemen akÄ±llarda birmeslek olduÄŸunu andÄ±rÄ±yor.Zaten biz tÃ¼rklerin Ã¼rettiÄŸi bir meslek. Normal ÅŸartlarda ERP devlerinden SAP firmasÄ±nÄ±n ERP mpdÃ¼llerindeki geliÅŸtirme programlama dili olan ABAP - Advanced Business Application Programming kÄ±saltÄ±lmasÄ±dÄ±r se37 transaction ile veya se80 tcode (transaction code) ile ABAP workbanch editoru ile geliÅŸtirmeler yapÄ±lmaktadÄ±r. Bu dil ile sap sistemlerine program geliÅŸtiren developerlar ABAP specialist olarak geÃ§er , dÄ±ÅŸ dÃ¼nyada en azÄ±ndan bÃ¶yle bu meslek tÃ¼rkiye de icra edilirse adÄ± tabiki bir tÃ¼rk jargonuna tabi tutulur mesklerle ilgili ekide aldÄ±mÄ± ABAPÃ‡I olarak tÃ¼retilir zaten TÃ¼rk dili bildiÄŸiniz gibi eklemeli bir dildir.  <p><a href="http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p>Merhabalar konun baÅŸlÄ±ÄŸÄ± biraz ilginÃ§ oldu farkÄ±ndayÄ±m. Abap, abapÃ§Ä± hemen akÄ±llarda birmeslek olduÄŸunu andÄ±rÄ±yor.Zaten biz tÃ¼rklerin Ã¼rettiÄŸi bir meslek.</p>
<p>Normal ÅŸartlarda ERP devlerinden SAP firmasÄ±nÄ±n ERP mpdÃ¼llerindeki geliÅŸtirme programlama dili olan ABAP -<em>Â  Advanced Business Application ProgrammingÂ  kÄ±saltÄ±lmasÄ±dÄ±rÂ Â  se37 transaction ile veya se80 tcode (transaction code)Â ile ABAP workbanch editoru ile geliÅŸtirmeler yapÄ±lmaktadÄ±r. Bu dil ile sap sistemlerine program geliÅŸtiren developerlar ABAP specialist olarak geÃ§er , dÄ±ÅŸ dÃ¼nyada en azÄ±ndan bÃ¶yle bu meslek tÃ¼rkiye de icra edilirse adÄ± tabiki bir tÃ¼rk jargonuna tabi tutulur mesklerle ilgili ekide aldÄ±mÄ± ABAPÃ‡I olarak tÃ¼retilir zaten TÃ¼rk dili bildiÄŸiniz gibi eklemeli bir dildir. (dili geliÅŸtirmek Ã¶nemlidir !)</em></p>
<p><em>Birde Kebap tan tÃ¼reme kebapÃ§Ä± vardÄ±r. AslÄ±nda bununlada ilgisi vardÄ±r . programcÄ±larda genel bir tasvir vadÄ±r. Bilgisayar programcÄ±sÄ± masa baÅŸÄ±nda saatlerce kod yazan tiplerdir sÃ¼rekli bir gÃ¶bek sorunlarÄ± vardÄ±r, bunu sebebide yemeklerini bilgisayar baÅŸÄ±nda yemeleri ve sÃ¼rekli Kebap yemeleridir. bir AbapÃ§Ä± kebap yer, hatta sektorden bir developer arkadaÅŸÄ±mÄ±z abapkebap.com diye bir sitede kurmuÅŸtu. </em></p>
<p><em>AbapÃ§Ä±larÄ±n en bariz Ã¶zelliklerinde bir diÄŸeride sÃ¼rekli Â DEBUG modda kalmalarÄ±dÄ±r. mesela ahmet diyebir abapÃ§Ä± hayal edin Ahmet abi yemeÄŸe gidelim teklifine verilen cevap hep aynÄ±dÄ±r. Abi debug dayÄ±m Ã§Ä±kÄ±m gelicem. Ama bu debugdan asla Ã§Ä±kamazlar hep debug dadÄ±rlar. Bir abapÃ§Ä± kebapa asla hayÄ±r demez mesleksel kelime benzerliÄŸinden olsa gerek <img src='http://www.karadere.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </em></p>
<p><strong><em>Debug nedir : Programlama dilelrinde hata ayÄ±klamada kullanÄ±lan bir metoddur. Programdaki sorunu bulmak iÃ§in analiz eden ek bir programdÄ±r. </em></strong></p>
<p><em>Nerde yatar bir abapÃ§Ä± genelde bilgisayar baÅŸÄ±nda yatar. Ã–ÄŸle aralarÄ±nda uyur. kaldÄ±ÄŸÄ± kodun Ã¼zerinde kalkar hala aynÄ± yerdedir sanki hiÃ§ yerinden kalkmamÄ±ÅŸ izlenimi verenler abapÃ§Ä±lardÄ±r. </em></p>
<p><em>ApapÃ§Ä±lar temelde ikiye ayrÄ±lÄ±rlar biri bir ÅŸirkete baÄŸlÄ± sabit Ã§alÄ±ÅŸanlar diÄŸerleride sap danÄ±ÅŸman firmalarÄ±nda gezici sÃ¼rekli baÅŸka mÃ¼ÅŸterilerin program sorunlarÄ±nÄ± Ã§Ã¶zmek iÃ§in seyahat eden danÄ±ÅŸman abapÃ§Ä±lardÄ±r.</em></p>
<p><em>BunlarÄ±n danÄ±ÅŸman olan tÃ¼rlerinde bariz bazÄ± Ã¶ne Ã§Ä±kan Ã¶zellikler vardÄ±r. Bununla ilgili daha Ã¶nce bir yazÄ± yazmÄ±ÅŸtÄ±m. bakÄ±nÄ±z abapÃ§Ä± olmak iÃ§in 16 sebep yazÄ±lÄ± yazÄ±ma : <a href="http://www.karadere.com/blog/abapci-olmamak-icin-16-iyi-sebep.html">http://www.karadere.com/blog/abapci-olmamak-icin-16-iyi-sebep.html</a>Â yada olmamak iÃ§in nedenlerde diyebiliriz. </em></p>
<p><em>Â bu bakÄ±ÅŸ aÃ§Ä±sÄ±na gÃ¶re olduÄŸuna piÅŸman olanlarda sÃ¼rekli sÃ¶yle serseniÅŸler mevcuttur abapÃ§Ä± olacaÄŸÄ±ma kebapÃ§Ä± olsaydÄ±m.Â  Birde bunu bir kaÅŸka tÃ¼revi markanÄ±n Ã¶n plana Ã§Ä±ktÄ±ÄŸÄ± SAPÃ‡I versiyonu var bununla ilegilide ayrÄ± bir geyik yazÄ±sÄ± yazÄ±cam nsallah en kÄ±sa sÃ¼rede. </em></p>
<p><strong><em>AbapÃ§Ä±nÄ±n sÃ¶zlÃ¼ÄŸÃ¼ :</em></strong></p>
<p><strong><em>Debug : sÃ¼rekli kaldÄ±klarÄ± mod</em></strong></p>
<p><strong><em>Internal Table : geÃ§iÃ§i ara tablolarÄ±n iÃ§inde sÃ¼rekl idolanÄ±r dururlar en Ã§ok yaÅŸadÄ±klarÄ± yer ise internal table lardÄ±r <img src='http://www.karadere.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </em></strong></p>
<p><strong><em>Table : </em></strong></p>
<p><strong><em>Patlamak : yazdÄ±ÄŸÄ± programÄ±n Ã§alÄ±ÅŸmamasÄ± sorun olmasÄ± <img src='http://www.karadere.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  tekrar debug moda girmesine sebep olacaktÄ±r.</em></strong></p>
<p><strong><em>User exit : </em></strong></p>
<p><strong><em>Bapi : </em></strong></p>
<p><strong><em>Â </em></strong></p>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html&amp;amp;t=Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?+-+http://&#x27A1;.ws/Ö©á—©è¥ " target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.htmltitle=Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html&title=Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?&summary=Merhabalar+konun+ba%C5%9Fl%C4%B1%C4%9F%C4%B1+biraz+ilgin%C3%A7+oldu+fark%C4%B1nday%C4%B1m.+Abap%2C+abap%C3%A7%C4%B1+hemen+ak%C4%B1llarda+birmeslek+oldu%C4%9Funu+and%C4%B1r%C4%B1yor.Zaten+biz+t%C3%BCrklerin+%C3%BCretti%C4%9Fi+bir+meslek.%0D%0A%0D%0ANormal+%C5%9Fartlarda+ERP+devlerinden+SAP+firmas%C4%B1%5B..%5D&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html&amp;amp;t=Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?&amp;u=http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html&amp;title=Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Abap Nedir? AbapÃ§Ä± nedir ? Ne iÅŸ yapar ne i%C...&body=Merhabalar konun baÅŸlÄ±ÄŸÄ± biraz ilginÃ§ oldu farkÄ±ndayÄ±m. Abap, abapÃ§Ä± hemen akÄ±llarda birmeslek olduÄŸunu andÄ±rÄ±yor.Zaten biz tÃ¼rklerin Ã¼rettiÄŸi bir meslek.

Normal ÅŸartlarda ERP devlerinden SAP firmasÄ±nÄ±n ERP mpdÃ¼llerindeki geliÅ[..] - http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html&amp;title=Abap+Nedir?+Abap%C3%A7%C4%B1+nedir+?+Ne+i%C5%9F+yapar+ne+i%C3%A7er+nerde+yatar+nerde+kalkar+?+Abap%C3%A7%C4%B1+olmak+i%C3%A7in+sebepler+?" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/abap-nedir-abapci-nedir-ne-is-yapar-ne-icer-nerde-yatar-nerde-kalkar-abapci-olmak-icin-sebepler.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sap programlama dili abap ile alv yazmak? Sap ALV nasÄ±l yazÄ±lÄ±r ? Abap ile alv ? howto write prgraming alv abap language for sap system.</title>
		<link>http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html</link>
		<comments>http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html#comments</comments>
		<pubDate>Sun, 18 Sep 2011 18:41:43 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Abap]]></category>
		<category><![CDATA[alv]]></category>
		<category><![CDATA[grid mi alv mi]]></category>
		<category><![CDATA[nedir]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=1380</guid>
		<description><![CDATA[Merhabalar, Sap sistemine Ã¶zel programlama dili olan ABAP ile alv nasÄ±l yazÄ±lÄ±ra bakacaÄŸÄ±z . Ã¶ncelikle abap nedir bakalÄ±m DÃ¼nya liderleri arsÄ±nda yer alan sap sistemine Ã¼zerinde geliÅŸtirme yapmaya olanak saÄŸlayan ABAP WROKBENCH programÄ± Ã¼zerinde abap dili ile sap sisteminde sizi tatmin etmeyen geliÅŸtirmeleri (rapor, program, var olan bir programda deÄŸiÅŸiklik, sistem funsiyonuna eklenti yapmak, user exit, vs) yapabilmenize olanak saÄŸlayan bu dili kullanacaÄŸÄ±z. seviye oalrak c diline syntax olarak biraz benzemektedir, mantik biraz farklÄ±dÄ±r, native sql kullanÄ±labilir. en Ã§ok sevdiÄŸim Ã¶zelliÄŸi ise Db ve table ayrÄ±ca connection string yazmamamÄ±zdÄ±r. open source kaynaklÄ± sap sistemi gnu gibi olmasada, sonuÃ§ta ticari bir yazÄ±lÄ±mdÄ±r ticari sahiibine yani lisans Ã¼cretini Ã¶deyene open source dur diyebiliriz. Sistemdeki tÃ¼m standart uygulamalarÄ±n kodlarÄ± gÃ¶rÃ¼nmetdir bu kodlarda herhangi bi deÄŸiÅŸiklik yapÄ±lmamaktadÄ±r aslÄ±nda yapÄ±labilmektedir ÅŸÃ¶yleki, sap sistemi geliÅŸtiricileri bazÄ± yerleri aÃ§Ä±k bÄ±rakmÄ±ÅŸtÄ±r yani bazÄ± functionlara ek geliÅŸtirmeler Ã¼lke deÄŸiÅŸiklikleri, ÅŸirket kÃ¼ltÃ¼rÃ¼ne uymayan standart modÃ¼l geliÅŸtimelerini user exit denen eriÅŸim saÄŸlanan kod function class larÄ±nda yapabilirsiniz. <p><a href="http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p>Merhabalar,<a href="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png"><img class="alignleft size-full wp-image-309" title="sap-abap-logo" src="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png" alt="" width="230" height="121" /></a></p>
<p>Sap sistemine Ã¶zel programlama dili olan ABAP ile alv (ABAP LIST VIEWER) nasÄ±l yazÄ±lÄ±ra bakacaÄŸÄ±z .</p>
<p>Ã¶ncelikle abap nedir bakalÄ±m DÃ¼nya liderleri arsÄ±nda yer alan sap sistemine Ã¼zerinde geliÅŸtirme yapmaya olanak saÄŸlayan ABAP WROKBENCH programÄ± Ã¼zerinde abap dili ile sap sisteminde sizi tatmin etmeyen geliÅŸtirmeleri (rapor, program, var olan bir programda deÄŸiÅŸiklik, sistem funsiyonuna eklenti yapmak, user exit, vs) Â yapabilmenize olanak saÄŸlayan bu dili kullanacaÄŸÄ±z.</p>
<p>seviye oalrak c diline syntax olarak biraz benzemektedir, mantik biraz farklÄ±dÄ±r, native sql kullanÄ±labilir. en Ã§ok sevdiÄŸim Ã¶zelliÄŸi ise Db ve table ayrÄ±ca connection string yazmamamÄ±zdÄ±r.</p>
<p>open source kaynaklÄ± sap sistemi gnu gibi olmasada, sonuÃ§ta ticari bir yazÄ±lÄ±mdÄ±r ticari sahiibine yani lisans Ã¼cretini Ã¶deyene open source dur diyebiliriz. Sistemdeki tÃ¼m standart uygulamalarÄ±n kodlarÄ± gÃ¶rÃ¼nmetdir Â bu kodlarda herhangi bi deÄŸiÅŸiklik yapÄ±lmamaktadÄ±r aslÄ±nda yapÄ±labilmektedir ÅŸÃ¶yleki,</p>
<p>sap sistemi geliÅŸtiricileri bazÄ± yerleri aÃ§Ä±k bÄ±rakmÄ±ÅŸtÄ±r yani bazÄ± functionlara ek geliÅŸtirmeler Ã¼lke deÄŸiÅŸiklikleri, ÅŸirket kÃ¼ltÃ¼rÃ¼ne uymayan standart modÃ¼l geliÅŸtimelerini user exit denen eriÅŸim saÄŸlanan kod function class larÄ±nda yapabilirsiniz.</p>
<p><strong>Åžimdi ALV nedir?</strong> alv visual programlama icadÄ± ile gelen Grid database deki bazÄ± bilgileri izgara grid aslÄ±nda burdna gelir bir dÃ¼zen iÃ§inde excel deki gibi hÃ¼creler ile gÃ¶sterimesini ve bazÄ± yerlere tÄ±klanarak action ile baÅŸka bir event tetikleme gibi iÅŸlemleri bize kolayca saÄŸlayan gÃ¼Ã§lÃ¼ bir bileÅŸendir (componenttir) grid bÃ¶yle iken aslÄ±nda tablodan bazÄ± filedlari veririz sql sorgusu ile o bize dinamik bir yapÄ±da akÄ±llÄ±ca oluÅŸmasÄ± gerkeen tÃ¼sÃ¼n ve kayÄ±t sayÄ±sÄ± kadar satÄ±r oluÅŸturur. iÅŸte grid budur ya alv.</p>
<p>Alv tam anlamÄ±yla gridi sap programlama abap tarafÄ±nda tamamlayan componet dir diye bilirz aslÄ±nda</p>
<p>Bu almanlar Ã§ok milliyetÃ§i olduklarÄ±nda Â kendileri kendi literatorlerini iÃ§at ederler kafa karÄ±ÅŸtÄ±rÄ±rlar Â grid desen ne olurdu hans efendi diyorum ve almanlarÄ± kendilerine havale ediyorum Â :) yeri gelmiÅŸ ken sÃ¶yliyeyim adamlar ters adam <img src='http://www.karadere.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>ortada bir visual programlama olmadÄ±ÄŸÄ±ndan componet yoktur bu componentin class ve functionlarÄ± vardÄ±r bu function ve classlar bize dinamik alv yi (yani giridi) oluÅŸturmamÄ±za yardÄ±mcÄ± olacak edit,delete, actin hyper to link gibi event metodlarÄ±nÄ± yapmÄ±zda kolaylaÅŸtÄ±racakdÄ±r.</p>
<p><strong>iÅŸte size bir Ã¶rnek Â alv kodu :</strong></p>
<pre><span style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;">                                  <span style="font-family: 'Times New Roman', Times, serif; font-size: small;">DESCRIPTION: ALV grid example - Using SAP
                                    Control Technology

                                    YOURCODE:
                                    *&amp;---------------------------------------------------------------------*
                                    *&amp; Report  ZTRPSD110                                                   *
                                    *&amp;                                                                     *
                                    *&amp;---------------------------------------------------------------------*
                                    * TITLE: Statement of Export Report for Tata Tetley                    *
                                    *                                                                      *
                                    * PURPOSE:Statement of Export Report for Tata Tetley                   *
                                    *                                                                      *
                                    *----------------------------------------------------------------------*
                                    * A. Start-of-selection:                                               *
                                    * 1. In get_billing_data using the selection screen parameters get the *
                                    *     billing data from billing header(VBAK) and Item (VBAP)           *
                                    * 2.  Get the SHIP-TO partner data from VBPA using Customer number as  *
                                    *     one condition and store in it_vbpa_sh
                                    * 9.  Popultae the ALV display table
                                    *
                                    * B. End-of-selection:
                                    *    Call screen 9000 and display data in ALV
                                    *----------------------------------------------------------------------*

                                    REPORT  ztrps110  MESSAGE-ID zttl  LINE-SIZE 130.

                                    TABLES: vbrk.

                                    * CONSTANTS
                                    CONSTANTS :
                                    c_x(1)        TYPE c VALUE 'X',
                                    c_zxto        TYPE vbak-auart VALUE 'ZXTO',
                                    c_e           TYPE spras VALUE 'E',
                                    c_000000      TYPE posnr VALUE '000000',
                                    c_ship_to     TYPE parvw VALUE 'WE'.      "Ship To Party

                                    * Table Types
                                    TYPES: BEGIN OF ty_vbrk_vbrp,
                                    vbeln TYPE vbrk-vbeln,    "Billing doc
                                    posnr TYPE vbrp-posnr,    "Billing item
                                    aubel TYPE vbrp-aubel,    "Sales order
                                    waerk TYPE vbrk-waerk,    "Doc currency
                                    mvgr1 TYPE vbrp-mvgr1,    "Material group 1
                                    mvgr3 TYPE vbrp-mvgr3,    "Material group 3
                                    mvgr4 TYPE vbrp-mvgr4,    "Material group 4
                                    matnr TYPE vbrp-matnr,    "Material no
                                    ntgew TYPE vbrp-ntgew,    "Net wt
                                    gewei TYPE vbrp-gewei,    "Wt unit
                                    kzwi1 TYPE vbrp-kzwi1,                             "Subtotal 1
                                    kursk TYPE vbrp-kursk,    "Exchange rate
                                    END   OF ty_vbrk_vbrp.

                                    TYPES: BEGIN OF ty_data,
                                    land1 TYPE vbpa-land1,
                                    landx TYPE t005t-landx,
                                    mvgr3 TYPE vbrp-mvgr3,
                                    mvgr4 TYPE vbrp-mvgr4,
                                    bezei3 TYPE tvm3t-bezei,
                                    bezei4 TYPE tvm4t-bezei,
                                    ntgew_tea_bag TYPE vbrp-ntgew,
                                    ntgew_pkt_tea TYPE vbrp-ntgew,
                                    ntgew_bulk_tea TYPE vbrp-ntgew,
                                    kzwi1_tea_bag TYPE vbrp-kzwi1,    "Subtotal 1 Tea Bag
                                    kzwi1_pkt_tea TYPE vbrp-kzwi1,    "Subtotal 1 Pkt Tea
                                    kzwi1_bulk_tea TYPE vbrp-kzwi1,   "Subtotal 1 Bulk Tea
                                    ntgew_tot TYPE vbrp-ntgew,
                                    kzwi1_tot TYPE vbrp-kzwi1,
                                    line_color(4) TYPE c,  "For line color

                                    END OF ty_data.

                                    TYPES: BEGIN OF ty_vbpa,
                                    vbeln TYPE vbpa-vbeln,
                                    land1 TYPE vbpa-land1,
                                    END OF ty_vbpa.
                                    TYPES: BEGIN OF ty_t005t,
                                    land1 TYPE t005t-land1,
                                    landx TYPE t005t-landx,
                                    END OF ty_t005t.

                                    TYPES: BEGIN OF ty_tvm3t,
                                    mvgr3 TYPE tvm3-mvgr3,
                                    bezei TYPE tvm3t-bezei,
                                    END OF ty_tvm3t.

                                    TYPES: BEGIN OF ty_tvm4t,
                                    mvgr4 TYPE tvm4-mvgr4,
                                    bezei TYPE tvm4t-bezei,
                                    END OF ty_tvm4t.

                                    DATA: it_vbrk_vbrp TYPE STANDARD TABLE OF ty_vbrk_vbrp,
                                    wa_vbrk_vbrp TYPE ty_vbrk_vbrp,

                                    it_vbpa TYPE STANDARD TABLE OF ty_vbpa,
                                    wa_vbpa TYPE ty_vbpa,

                                    it_data TYPE STANDARD TABLE OF ty_data,
                                    wa_data TYPE ty_data,

                                    it_t005t TYPE STANDARD TABLE OF ty_t005t,
                                    wa_t005t TYPE ty_t005t,

                                    it_tvm3t TYPE STANDARD TABLE OF ty_tvm3t,
                                    wa_tvm3t TYPE ty_tvm3t,

                                    it_tvm4t TYPE STANDARD TABLE OF ty_tvm4t,
                                    wa_tvm4t TYPE ty_tvm4t.

                                    * Global data for grand total

                                    DATA:
                                    w_tot_ntgew_tea_bag TYPE vbrp-ntgew,
                                    w_tot_ntgew_pkt_tea TYPE vbrp-ntgew,
                                    w_tot_ntgew_bulk_tea TYPE vbrp-ntgew,
                                    w_tot_ntgew_tot TYPE vbrp-ntgew,
                                    w_tot_kzwi1_tea_bag TYPE vbrp-kzwi1,
                                    w_tot_kzwi1_pkt_tea TYPE vbrp-kzwi1,
                                    w_tot_kzwi1_bulk_tea TYPE vbrp-kzwi1,
                                    w_tot_kzwi1_tot TYPE vbrp-kzwi1.

                                    * Global data definitions for ALV
                                    DATA :
                                    * ALV Grid container
                                    w_alv_container TYPE REF TO cl_gui_custom_container,

                                    * ALV Grid
                                    w_alv_grid      TYPE REF TO cl_gui_alv_grid,
                                    w_layo          TYPE        lvc_s_layo,     "For layout
                                    wt_fieldcat     TYPE        lvc_t_fcat,     "For field catalog
                                    okcode          TYPE         okcode,        "OK Code
                                    w_to(2)         TYPE         c,
                                    w_title         TYPE        string.

                                    *-------------- START OF SELECTION SCREEN ----------------------------*
                                    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
                                    * Billing Date
                                    SELECT-OPTIONS: s_fkdat FOR vbrk-fkdat MEMORY ID vf OBLIGATORY NO-EXTENSION.
                                    SELECTION-SCREEN:SKIP 1.
                                    SELECTION-SCREEN: END OF BLOCK b1.

                                    *-------------- END OF SELECTION SCREEN ------------------------------*

                                    *-------------   EVENT START-OF-SELECTION  -------------------------------*
                                    START-OF-SELECTION.

                                    * Get billing data from Delivery header(VBRK) and item (VBRP)
                                    PERFORM get_billing_data.

                                    * Get ship-to country
                                    PERFORM get_ship_to_data.

                                    * Get material group description 3
                                    PERFORM get_material_group_3.

                                    * Get material group description 4
                                    PERFORM get_material_group_4.

                                    * Form the ALV Grid title
                                    PERFORM form_title.

                                    * Process data
                                    PERFORM process_data.

                                    * Populate text descriptions
                                    PERFORM populate_description.

                                    *-------------   EVENT END-OF-SELECTION  -------------------------------*
                                    END-OF-SELECTION.
                                    * Set the text to when date high is there
                                    IF NOT s_fkdat-high IS INITIAL.
                                    w_to = 'to'(c16).
                                    ENDIF.

                                    * Call the scren 9000 for ALV Display
                                    CALL SCREEN 9000.

                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  get_billing_data
                                    *&amp;---------------------------------------------------------------------*
                                    * Get billing data from Delivery header(VBRK) and item (VBRP)
                                    * &amp; store in internal table it_vbrk_vbrp
                                    *----------------------------------------------------------------------*
                                    FORM get_billing_data .

                                    REFRESH: it_vbrk_vbrp.

                                    * Select Billing data by joining VBRK &amp; VBRP and store in it_vbrk_vbrp
                                    SELECT a~vbeln
                                    b~posnr
                                    b~aubel
                                    a~waerk
                                    b~mvgr1
                                    b~mvgr3
                                    b~mvgr4
                                    b~matnr
                                    b~ntgew
                                    b~gewei
                                    b~kzwi1
                                    b~kursk
                                    FROM vbrk AS a INNER JOIN vbrp AS b
                                    ON a~vbeln = b~vbeln
                                    INTO TABLE it_vbrk_vbrp
                                    WHERE a~fkdat IN s_fkdat
                                    * Consider only non-deleted document
                                    AND fksto = space
                                    * Billing doc type should be ZXTB
                                    AND fkart = 'ZXTB'

                                    AND pstyv = c_zxto.

                                    IF sy-subrc &lt;&gt; 0.
                                    MESSAGE i999(zttl) WITH 'No data is there'(m06).
                                    LEAVE LIST-PROCESSING.
                                    ENDIF.
                                    ENDFORM.                    " get_billing_data
                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  get_ship_to_data
                                    *&amp;---------------------------------------------------------------------*
                                    * Get Ship-To party data
                                    *----------------------------------------------------------------------*
                                    FORM get_ship_to_data .

                                    DATA: l_it_vbpa TYPE STANDARD TABLE OF ty_vbpa.
                                    REFRESH: it_vbpa, it_t005t.

                                    IF NOT it_vbrk_vbrp[] IS INITIAL.
                                    SELECT vbeln
                                    land1
                                    FROM vbpa
                                    INTO TABLE it_vbpa
                                    FOR ALL ENTRIES IN it_vbrk_vbrp
                                    WHERE vbeln = it_vbrk_vbrp-aubel
                                    AND posnr = c_000000
                                    AND parvw = c_ship_to.

                                    IF sy-subrc &lt;&gt; 0.
                                    MESSAGE i999(zttl) WITH 'Exporter country not maintained'(m02).
                                    LEAVE LIST-PROCESSING.
                                    ELSE.
                                    SORT it_vbpa BY vbeln.
                                    * Create an unique and sorted driver table
                                    l_it_vbpa[] = it_vbpa[].
                                    SORT l_it_vbpa BY land1.
                                    DELETE ADJACENT DUPLICATES FROM l_it_vbpa COMPARING land1.

                                    IF NOT l_it_vbpa[] IS INITIAL.
                                    * Get the country description from T005t table
                                    SELECT land1
                                    landx
                                    FROM t005t
                                    INTO TABLE it_t005t
                                    FOR ALL ENTRIES IN l_it_vbpa
                                    WHERE spras = c_e
                                    AND  land1 = l_it_vbpa-land1.
                                    IF sy-subrc = 0.
                                    SORT it_t005t BY land1.
                                    ENDIF.
                                    ENDIF.
                                    ENDIF.

                                    ENDIF.
                                    ENDFORM.                    " get_ship_to_data

                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  get_material_group_3
                                    *&amp;---------------------------------------------------------------------*
                                    * Get material group 3
                                    *----------------------------------------------------------------------*
                                    FORM get_material_group_3 .

                                    DATA: l_it_vbrk_vbrp TYPE STANDARD TABLE OF ty_vbrk_vbrp.

                                    REFRESH: it_tvm3t.

                                    * Create an unique and sorted driver table
                                    l_it_vbrk_vbrp[] = it_vbrk_vbrp[].
                                    SORT l_it_vbrk_vbrp BY mvgr3.
                                    DELETE ADJACENT DUPLICATES FROM l_it_vbrk_vbrp COMPARING mvgr3.
                                    IF NOT l_it_vbrk_vbrp[] IS INITIAL.
                                    SELECT mvgr3
                                    bezei
                                    FROM tvm3t
                                    INTO TABLE it_tvm3t
                                    FOR ALL ENTRIES IN l_it_vbrk_vbrp
                                    WHERE mvgr3 = l_it_vbrk_vbrp-mvgr3.

                                    IF sy-subrc = 0.
                                    SORT it_tvm3t BY mvgr3.
                                    ENDIF.
                                    ENDIF.

                                    ENDFORM.                    " get_material_group_3

                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  get_material_group_4
                                    *&amp;---------------------------------------------------------------------*
                                    * Get material group 4
                                    *----------------------------------------------------------------------*
                                    FORM get_material_group_4 .
                                    DATA: l_it_vbrk_vbrp TYPE STANDARD TABLE OF ty_vbrk_vbrp.

                                    REFRESH: it_tvm4t.

                                    * Create an unique and sorted driver table
                                    l_it_vbrk_vbrp[] = it_vbrk_vbrp[].
                                    SORT l_it_vbrk_vbrp BY mvgr4.
                                    DELETE ADJACENT DUPLICATES FROM l_it_vbrk_vbrp COMPARING mvgr4.
                                    IF NOT l_it_vbrk_vbrp[] IS INITIAL.
                                    SELECT mvgr4
                                    bezei
                                    FROM tvm4t
                                    INTO TABLE it_tvm4t
                                    FOR ALL ENTRIES IN l_it_vbrk_vbrp
                                    WHERE mvgr4 = l_it_vbrk_vbrp-mvgr4.
                                    IF sy-subrc = 0.
                                    SORT it_tvm4t BY mvgr4.
                                    ENDIF.
                                    ENDIF.

                                    ENDFORM.                    " get_material_group_4

                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  process_data
                                    *&amp;---------------------------------------------------------------------*
                                    * Process the data and do summation and populate final display table
                                    *----------------------------------------------------------------------*
                                    FORM process_data .

                                    LOOP AT it_vbrk_vbrp INTO wa_vbrk_vbrp.
                                    CLEAR: wa_data, wa_vbpa.
                                    READ TABLE it_vbpa INTO wa_vbpa WITH KEY
                                    vbeln = wa_vbrk_vbrp-aubel
                                    BINARY SEARCH.
                                    IF sy-subrc = 0.
                                    wa_data-land1 = wa_vbpa-land1.
                                    ENDIF.

                                    wa_data-mvgr3 = wa_vbrk_vbrp-mvgr3.
                                    wa_data-mvgr4 = wa_vbrk_vbrp-mvgr4.

                                    * Do an unit conversion of the quamtity
                                    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
                                    EXPORTING
                                    input                      = wa_vbrk_vbrp-ntgew
                                    *      NO_TYPE_CHECK              = 'X'
                                    *      ROUND_SIGN                 = ' '
                                    unit_in                    = wa_vbrk_vbrp-gewei
                                    unit_out                   = 'TO' "Metric tonn
                                    IMPORTING
                                    output                     = wa_vbrk_vbrp-ntgew
                                    EXCEPTIONS
                                    conversion_not_found       = 1
                                    division_by_zero           = 2
                                    input_invalid              = 3
                                    output_invalid             = 4
                                    overflow                   = 5
                                    type_invalid               = 6
                                    units_missing              = 7
                                    unit_in_not_found          = 8
                                    unit_out_not_found         = 9
                                    OTHERS                     = 10.
                                    IF sy-subrc &lt;&gt; 0.
                                    wa_vbrk_vbrp-ntgew = wa_vbrk_vbrp-ntgew.
                                    ENDIF.

                                    * Convert the currency from Customer currency to local
                                    * currency by multiplying with kursk
                                    wa_vbrk_vbrp-kzwi1 =  wa_vbrk_vbrp-kzwi1 * wa_vbrk_vbrp-kursk.

                                    * Convert the amount to Lacks by dividing with 100000
                                    wa_vbrk_vbrp-kzwi1 = wa_vbrk_vbrp-kzwi1 / 100000.       "DV1K905028

                                    * When MVGR1 is between A to F use the amount as TEA_BAG
                                    IF wa_vbrk_vbrp-mvgr1 BETWEEN 'A' AND 'F'.
                                    wa_data-ntgew_tea_bag = wa_vbrk_vbrp-ntgew.
                                    wa_data-kzwi1_tea_bag = wa_vbrk_vbrp-kzwi1.
                                    ENDIF.

                                    * When MVGR1 is between G to L use the amount as TEA_BAG
                                    IF wa_vbrk_vbrp-mvgr1 BETWEEN 'G' AND 'L'.
                                    wa_data-ntgew_pkt_tea = wa_vbrk_vbrp-ntgew.
                                    wa_data-kzwi1_pkt_tea = wa_vbrk_vbrp-kzwi1.
                                    ENDIF.

                                    * When MVGR1 is between G to L use the amount as TEA_BAG
                                    IF wa_vbrk_vbrp-mvgr1 = 'M'.
                                    wa_data-ntgew_bulk_tea = wa_vbrk_vbrp-ntgew.
                                    wa_data-kzwi1_bulk_tea = wa_vbrk_vbrp-kzwi1.
                                    ENDIF.

                                    COLLECT wa_data INTO it_data.
                                    ENDLOOP.
                                    ENDFORM.                    " process_data

                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  populate_description
                                    *&amp;---------------------------------------------------------------------*
                                    * Populate the description fields
                                    *----------------------------------------------------------------------*
                                    FORM populate_description .

                                    LOOP AT it_data INTO wa_data.
                                    CLEAR: wa_t005t.
                                    READ TABLE it_t005t INTO wa_t005t WITH KEY land1 = wa_data-land1
                                    BINARY SEARCH.
                                    IF sy-subrc = 0.
                                    wa_data-landx = wa_t005t-landx.
                                    ENDIF.

                                    * Read description of Material group 3
                                    CLEAR wa_tvm3t.
                                    READ TABLE it_tvm3t INTO wa_tvm3t WITH KEY
                                                                  mvgr3 = wa_data-mvgr3
                                                                  BINARY SEARCH.
                                         IF sy-subrc = 0.
                                           wa_data-bezei3 = wa_tvm3t-bezei.
                                         ENDIF.

                                    * Read description of Material group 4
                                         CLEAR wa_tvm4t.
                                         READ TABLE it_tvm4t INTO wa_tvm4t WITH KEY
                                                                  mvgr4 = wa_data-mvgr4
                                                                  BINARY SEARCH.
                                         IF sy-subrc = 0.
                                           wa_data-bezei4 = wa_tvm4t-bezei.
                                         ENDIF.

                                    * Get the grand totals
                                         wa_data-ntgew_tot = wa_data-ntgew_tea_bag
                                                  + wa_data-ntgew_pkt_tea
                                                  + wa_data-ntgew_bulk_tea.

                                         wa_data-kzwi1_tot = wa_data-kzwi1_tea_bag
                                                  + wa_data-kzwi1_pkt_tea
                                                  + wa_data-kzwi1_bulk_tea.

                                         MODIFY it_data FROM wa_data TRANSPORTING landx
                                                                                  bezei3
                                                                                  bezei4
                                                                                  ntgew_tot
                                                                                  kzwi1_tot.
                                    * Summattion of grand totals
                                         w_tot_ntgew_tea_bag  = w_tot_ntgew_tea_bag  + wa_data-ntgew_tea_bag.
                                         w_tot_ntgew_pkt_tea  = w_tot_ntgew_pkt_tea  + wa_data-ntgew_pkt_tea.
                                         w_tot_ntgew_bulk_tea  = w_tot_ntgew_bulk_tea  + wa_data-ntgew_bulk_tea.
                                         w_tot_ntgew_tot  = w_tot_ntgew_tot  + wa_data-ntgew_tot.

                                         w_tot_kzwi1_tea_bag  = w_tot_kzwi1_tea_bag  + wa_data-kzwi1_tea_bag.
                                         w_tot_kzwi1_pkt_tea  = w_tot_kzwi1_pkt_tea  + wa_data-kzwi1_pkt_tea.
                                         w_tot_kzwi1_bulk_tea  = w_tot_kzwi1_bulk_tea  + wa_data-kzwi1_bulk_tea.
                                         w_tot_kzwi1_tot  = w_tot_kzwi1_tot  + wa_data-kzwi1_tot.

                                       ENDLOOP.

                                    * Append a grand Total row at the end
                                       CLEAR wa_data.
                                       wa_data-landx = 'Grand Total:'.
                                       wa_data-ntgew_tea_bag = w_tot_ntgew_tea_bag.
                                       wa_data-ntgew_pkt_tea = w_tot_ntgew_pkt_tea.
                                       wa_data-ntgew_bulk_tea = w_tot_ntgew_bulk_tea.
                                       wa_data-ntgew_tot = w_tot_ntgew_tot.
                                       wa_data-kzwi1_tea_bag = w_tot_kzwi1_tea_bag.
                                       wa_data-kzwi1_pkt_tea = w_tot_kzwi1_pkt_tea.
                                       wa_data-kzwi1_bulk_tea = w_tot_kzwi1_bulk_tea.
                                       wa_data-kzwi1_tot = w_tot_kzwi1_tot.
                                       wa_data-line_color    = 'C310'.

                                       APPEND wa_data TO it_data.
                                    ENDFORM.                    " populate_description

                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Module  STATUS_9000  OUTPUT
                                    *&amp;---------------------------------------------------------------------*
                                    * Initialise PF-STATUS and title
                                    *----------------------------------------------------------------------*
                                    MODULE status_9000 OUTPUT.
                                       SET PF-STATUS 'MAIN9000'.
                                       SET TITLEBAR 'TITLE_9000'.
                                    ENDMODULE.                 " STATUS_9000  OUTPUT

                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Module  initialize_9000  OUTPUT
                                    *&amp;---------------------------------------------------------------------*
                                    *       text
                                    *----------------------------------------------------------------------*
                                    MODULE initialize_9000 OUTPUT.
                                    * Call the ALV grid to display data
                                       PERFORM display_alv_grid.

                                    ENDMODULE.                 " initialize_9000  OUTPUT
                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Module  USER_COMMAND_9000  INPUT
                                    *&amp;---------------------------------------------------------------------*
                                    * Module to handle User Command
                                    *----------------------------------------------------------------------*
                                    MODULE user_command_9000 INPUT.
                                       CASE okcode.
                                         WHEN 'BACK'.
                                           SET SCREEN 0.
                                           CLEAR okcode.
                                           LEAVE SCREEN.
                                         WHEN 'CANCEL'.
                                           SET SCREEN 0.
                                           CLEAR okcode.
                                           LEAVE SCREEN.
                                         WHEN 'EXIT'.
                                           CLEAR okcode.
                                           LEAVE PROGRAM.
                                         WHEN OTHERS.
                                       ENDCASE.
                                    ENDMODULE.                 " USER_COMMAND_9000  INPUT
                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  display_alv_grid
                                    *&amp;---------------------------------------------------------------------*
                                    * Display the data in ALV Grid
                                    *----------------------------------------------------------------------*
                                    FORM display_alv_grid .
                                       IF w_alv_container IS INITIAL.

                                    * Create the alv container object
                                         CREATE OBJECT w_alv_container
                                           EXPORTING
                                             container_name = 'ALV_GRID'
                                           EXCEPTIONS
                                               cntl_error                  = 1
                                               cntl_system_error           = 2
                                               create_error                = 3
                                               lifetime_error              = 4
                                               lifetime_dynpro_dynpro_link = 5
                                               OTHERS                      = 6.
                                         IF sy-subrc &lt;&gt; 0.
                                           MESSAGE e999(zttl) WITH 'Problem in ALV display'(t04).
                                         ENDIF.

                                    * Create the ALV grid object. The parent is the ALV container
                                         CREATE OBJECT w_alv_grid
                                           EXPORTING
                                             i_parent = w_alv_container
                                           EXCEPTIONS
                                             error_cntl_create = 1
                                             error_cntl_init   = 2
                                             error_cntl_link   = 3
                                             error_dp_create   = 4
                                             OTHERS            = 5.

                                         IF sy-subrc &lt;&gt; 0.
                                           MESSAGE e999(zttl) WITH 'Problem in ALV display'(t04).
                                         ENDIF.

                                    * This subrotine creates the field catalog and
                                    * store in internal table lt_fieldcat
                                         PERFORM prepare_fieldcat CHANGING wt_fieldcat.

                                    * Layout design
                                         w_layo-no_toolbar = ''.

                                    * Not to allow totaling feature
                                         w_layo-no_totline = c_x.

                                    * Report title
                                    *    w_layo-grid_title = text-004.
                                         w_layo-grid_title = w_title.

                                         w_layo-zebra      = c_x.    "Alternating line color (striped)
                                         w_layo-cwidth_opt = c_x.    "Optimize column width
                                         w_layo-sel_mode   = 'A'.    "Selection Mode

                                    * Name of the color field
                                         w_layo-info_fname = 'LINE_COLOR'."For row color

                                    * Call the method to display the data in ALV grid
                                         CALL METHOD w_alv_grid-&gt;set_table_for_first_display
                                           EXPORTING
                                             i_save                        = 'A'
                                             is_layout                     = w_layo
                                           CHANGING
                                             it_outtab                     = it_data[]
                                             it_fieldcatalog               = wt_fieldcat
                                           EXCEPTIONS
                                             invalid_parameter_combination = 1
                                             program_error                 = 2
                                             too_many_lines                = 3
                                             OTHERS                        = 4.

                                         IF sy-subrc &lt;&gt; 0.
                                           MESSAGE e999(zttl) WITH text-t04.
                                         ENDIF.
                                       ELSE.
                                    * If the container &amp; grid object is alreadt there reuse them
                                         CALL METHOD w_alv_grid-&gt;refresh_table_display
                                           EXCEPTIONS
                                             finished = 1
                                             OTHERS   = 2.
                                         IF sy-subrc &lt;&gt; 0.
                                           MESSAGE e999(zttl) WITH text-t04.
                                         ENDIF.

                                       ENDIF.

                                       IF okcode = 'CANCEL'.
                                         EXIT.
                                       ENDIF.

                                    ENDFORM.                    " display_alv_grid
                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  prepare_fieldcat
                                    *&amp;---------------------------------------------------------------------*
                                    * Prepare the list of fields to be displayed                          *
                                    *----------------------------------------------------------------------*
                                    *      &lt;--P_WT_FIELDCAT  text
                                    *----------------------------------------------------------------------*
                                    FORM prepare_fieldcat  CHANGING pt_fieldcat TYPE lvc_t_fcat.

                                       DATA : lx_fcat TYPE lvc_s_fcat.

                                       REFRESH: pt_fieldcat.
                                    **List of fields to be displayed should be added in pt_fieldcat

                                    * Customer PO no
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'LANDX'.
                                       lx_fcat-ref_field = 'T005T'.
                                       lx_fcat-ref_table = 'T005T'.
                                       lx_fcat-coltext = 'Market Name'(c01).
                                       lx_fcat-seltext = text-c01.

                                       APPEND lx_fcat TO pt_fieldcat.

                                    * Flavour type
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'BEZEI3'.
                                       lx_fcat-ref_field = 'BEZEI'.
                                       lx_fcat-ref_table = 'TVM3'.
                                       lx_fcat-coltext = 'Flavour Type'(c02).
                                       lx_fcat-seltext = text-c02.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * Tea type
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'BEZEI4'.
                                       lx_fcat-ref_field = 'BEZEI4'.
                                       lx_fcat-ref_table = 'TVM4'.
                                       lx_fcat-coltext = 'Tea Type.'(c03).
                                       lx_fcat-seltext = text-c03.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * Tea Bag Quantity in KG
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'NTGEW_TEA_BAG'.
                                       lx_fcat-ref_field = 'NTGEW'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'Tea Bag(MT)'(c04).
                                       lx_fcat-seltext = text-c04.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * PKT Tea  Quantity in KG
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'NTGEW_PKT_TEA'.
                                       lx_fcat-ref_field = 'NTGEW'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'PKT Tea(MT)'(c05).
                                       lx_fcat-seltext = text-c05.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * Bulk Tea  Quantity in MT
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'NTGEW_BULK_TEA'.
                                       lx_fcat-ref_field = 'NTGEW'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'Bulk Tea(MT)'(c06).
                                       lx_fcat-seltext = text-c06.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * Total Quantity in MT
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'NTGEW_TOT'.
                                       lx_fcat-ref_field = 'NTGEW'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'Total(MT)'(c07).
                                       lx_fcat-seltext = text-c07.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * Tea Bag Quantity in KG
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'KZWI1_TEA_BAG'.
                                       lx_fcat-ref_field = 'KZWI1'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'Tea Bag(FOB-Lacs)'(c08).
                                       lx_fcat-seltext = text-c08.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * PKT Tea  Price in Lakh
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'KZWI1_PKT_TEA'.
                                       lx_fcat-ref_field = 'KZWI1'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'PKT Tea(FOB-Lacs)'(c09).
                                       lx_fcat-seltext = text-c09.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * PKT Tea  Quantity in KG
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'KZWI1_BULK_TEA'.
                                       lx_fcat-ref_field = 'KZWI1'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'Bulk Tea(FOB-Lacs)'(c10).
                                       lx_fcat-seltext = text-c10.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    * Total amount
                                       CLEAR lx_fcat.
                                       lx_fcat-fieldname = 'KZWI1_TOT'.
                                       lx_fcat-ref_field = 'KZWI1'.
                                       lx_fcat-ref_table = 'VBRP'.
                                       lx_fcat-coltext = 'Total(FOB-Lacs)'(c11).
                                       lx_fcat-seltext = text-c11.
                                       APPEND lx_fcat TO pt_fieldcat.

                                    ENDFORM.                    " prepare_fieldcat
                                    *&amp;---------------------------------------------------------------------*
                                    *&amp;      Form  form_title
                                    *&amp;---------------------------------------------------------------------*
                                    *  Form the ALV Title
                                    *----------------------------------------------------------------------*
                                    FORM form_title .

                                       DATA: l_date(10) TYPE c.

                                       CONCATENATE s_fkdat-low+6(2)  s_fkdat-low+4(2)  s_fkdat-low(4)
                                       INTO l_date SEPARATED BY '/'.

                                       CONCATENATE 'TTD - Statement of Export' '-From' l_date INTO
                                    w_title SEPARATED BY space.

                                       CLEAR l_date.
                                       IF NOT s_fkdat-high IS INITIAL.
                                         CONCATENATE s_fkdat-high+6(2)  s_fkdat-high+4(2)  s_fkdat-high(4)
                                         INTO l_date SEPARATED BY '/'.
                                         CONCATENATE w_title 'to' l_date INTO w_title SEPARATED BY space.

                                       ENDIF.
                                    ENDFORM.                    " form_title</span></span></pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html&amp;amp;t=Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system." target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system.+-+http://&#x27A1;.ws/è™¯á¸Œ" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.htmltitle=Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system." target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html&title=Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system.&summary=Merhabalar%2C&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html&amp;amp;t=Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system." target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system.&amp;u=http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html&amp;title=Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system." target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Sap programlama dili abap ile alv yazmak? Sap ALV nasÄ±l...&body=Merhabalar, - http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html&amp;title=Sap+programlama+dili+abap+ile+alv+yazmak?+Sap+ALV+nas%C4%B1l+yaz%C4%B1l%C4%B1r+?+Abap+ile+alv+?+howto+write+prgraming+alv+abap+language+for+sap+system." target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/sap-programlama-dili-abap-ile-alv-yazmak-sap-alv-nasil-yazilir-abap-ile-alv-howto-write-prgraming-alv-abap-language-for-sap-system.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sap Abap date to day &#8211; tarih gÃ¼n format Ã§evirmesi</title>
		<link>http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html</link>
		<comments>http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html#comments</comments>
		<pubDate>Thu, 03 Feb 2011 14:32:36 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[date to day]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=924</guid>
		<description><![CDATA[ FUNCTION Zdate_to_day. DATA: day_p TYPE p. day_p = date MOD 7. * DAY_P enthÃ¤lt 0 fÃ¼r Samstag, 1 fÃ¼r Sonntag, etc.. und muÃŸ * der Kalendernotation: 1 fÃ¼r Montag, 2 fÃ¼r Dienstag, etc., * angepaÃŸt werden. IF day_p &#62; 1. day_p = day_p - 1. ELSE. day_p = day_p + 6. ENDIF. CASE day_p. WHEN 1. weekday = text-dmo. WHEN 2. weekday = text-ddi. WHEN 3. weekday = text-dmi. WHEN 4. weekday = text-ddo. WHEN 5. weekday = text-dfr. WHEN 6. weekday = text-dsa. WHEN 7. weekday = text-dso. ENDCASE. ENDFUNCTION. <p><a href="http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="abap" style="font-family:monospace;"> <span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">FUNCTION</span>Â  Zdate_to_day<span style="color: #808080;">.</span>
<span style="color: #339933;">*&quot;----------------------------------------------------------------------</span>
<span style="color: #339933;">*&quot;*&quot;LokaleÂ Schnittstelle:</span>
<span style="color: #339933;">*&quot;Â Â IMPORTING</span>
<span style="color: #339933;">*&quot;Â Â Â Â Â REFERENCE(DATE)Â LIKEÂ Â SY-DATUM</span>
<span style="color: #339933;">*&quot;Â Â EXPORTING</span>
<span style="color: #339933;">*&quot;Â Â Â Â Â REFERENCE(WEEKDAY)Â LIKEÂ Â DTRESR-WEEKDAY</span>
<span style="color: #339933;">*&quot;----------------------------------------------------------------------</span>
&nbsp;
&nbsp;
Â Â <span style="color: #cc4050; text-transform: uppercase; font-weight: bold; zzz:data;">DATA</span><span style="color: #808080;">:</span>Â day_pÂ <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">TYPE</span>Â p<span style="color: #808080;">.</span>
&nbsp;
Â Â day_pÂ <span style="color: #800080;">=</span>Â <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">date</span>Â <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">MOD</span>Â <span style="color: #3399ff;">7</span><span style="color: #808080;">.</span>
<span style="color: #339933;">*Â DAY_PÂ enthÃ¤ltÂ 0Â fÃ¼rÂ Samstag,Â 1Â fÃ¼rÂ Sonntag,Â etc..Â undÂ muÃŸ</span>
<span style="color: #339933;">*Â derÂ Kalendernotation:Â 1Â fÃ¼rÂ Montag,Â 2Â fÃ¼rÂ Dienstag,Â etc.,</span>
<span style="color: #339933;">*Â angepaÃŸtÂ werden.</span>
Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">IF</span>Â day_pÂ <span style="color: #808080;">&amp;</span>gt;Â <span style="color: #3399ff;">1</span><span style="color: #808080;">.</span>
Â Â Â Â day_pÂ <span style="color: #800080;">=</span>Â day_pÂ <span style="color: #808080;">-</span>Â <span style="color: #3399ff;">1</span><span style="color: #808080;">.</span>
Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">ELSE</span><span style="color: #808080;">.</span>
Â Â Â Â day_pÂ <span style="color: #800080;">=</span>Â day_pÂ <span style="color: #808080;">+</span>Â <span style="color: #3399ff;">6</span><span style="color: #808080;">.</span>
Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">ENDIF</span><span style="color: #808080;">.</span>
&nbsp;
Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">CASE</span>Â day_p<span style="color: #808080;">.</span>
Â Â Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">WHEN</span>Â <span style="color: #3399ff;">1</span><span style="color: #808080;">.</span>
Â Â Â Â Â Â weekdayÂ <span style="color: #800080;">=</span>Â text<span style="color: #808080;">-</span>dmo<span style="color: #808080;">.</span>
Â Â Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">WHEN</span>Â <span style="color: #3399ff;">2</span><span style="color: #808080;">.</span>
Â Â Â Â Â Â weekdayÂ <span style="color: #800080;">=</span>Â text<span style="color: #808080;">-</span>ddi<span style="color: #808080;">.</span>
Â Â Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">WHEN</span>Â <span style="color: #3399ff;">3</span><span style="color: #808080;">.</span>
Â Â Â Â Â Â weekdayÂ <span style="color: #800080;">=</span>Â text<span style="color: #808080;">-</span>dmi<span style="color: #808080;">.</span>
Â Â Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">WHEN</span>Â <span style="color: #3399ff;">4</span><span style="color: #808080;">.</span>
Â Â Â Â Â Â weekdayÂ <span style="color: #800080;">=</span>Â text<span style="color: #808080;">-</span>ddo<span style="color: #808080;">.</span>
Â Â Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">WHEN</span>Â <span style="color: #3399ff;">5</span><span style="color: #808080;">.</span>
Â Â Â Â Â Â weekdayÂ <span style="color: #800080;">=</span>Â text<span style="color: #808080;">-</span>dfr<span style="color: #808080;">.</span>
Â Â Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">WHEN</span>Â <span style="color: #3399ff;">6</span><span style="color: #808080;">.</span>
Â Â Â Â Â Â weekdayÂ <span style="color: #800080;">=</span>Â text<span style="color: #808080;">-</span>dsa<span style="color: #808080;">.</span>
Â Â Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">WHEN</span>Â <span style="color: #3399ff;">7</span><span style="color: #808080;">.</span>
Â Â Â Â Â Â weekdayÂ <span style="color: #800080;">=</span>Â text<span style="color: #808080;">-</span>dso<span style="color: #808080;">.</span>
Â Â <span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">ENDCASE</span><span style="color: #808080;">.</span>
&nbsp;
<span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">ENDFUNCTION</span><span style="color: #808080;">.</span></pre></div></div>

<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html&amp;amp;t=Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi+-+http://&#x27A1;.ws/à´œæºŠ" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.htmltitle=Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html&title=Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi&summary=%0D%0A+FUNCTION%C2%A0+Zdate_to_day.%0D%0A%2A%22----------------------------------------------------------------------%0D%0A%2A%22%2A%22Lokale%C2%A0Schnittstelle%3A%0D%0A%2A%22%C2%A0%C2%A0IMPORTING%0D%0A%2A%22%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0REFERENCE%28DATE%29%C2%A0LIKE%C2%A0%C2%A0SY-DATUM%0D%0A%2A%22%C2%A0%C2%A0EX%5B..%5D&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html&amp;amp;t=Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi&amp;u=http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html&amp;title=Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Sap Abap date to day &#8211; tarih gÃ¼n format Ã...&body=
 FUNCTIONÂ  Zdate_to_day.
*"----------------------------------------------------------------------
*"*"LokaleÂ Schnittstelle:
*"Â Â IMPORTING
*"Â Â Â Â Â REFERENCE(DATE)Â LIKEÂ Â SY-DATUM
*"Â Â EXPORTING
*"Â Â Â Â Â REFERENCE[..] - http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html&amp;title=Sap+Abap+date+to+day+%26%238211%3B+tarih+g%C3%BCn+format+%C3%A7evirmesi" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/sap-abap-date-to-day-tarih-gun-format-cevirmesi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sap GUI Special Transaction Command</title>
		<link>http://www.karadere.com/blog/sap-gui-special-transaction-command.html</link>
		<comments>http://www.karadere.com/blog/sap-gui-special-transaction-command.html#comments</comments>
		<pubDate>Mon, 31 Jan 2011 12:59:40 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[Gui]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Transaction]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=919</guid>
		<description><![CDATA[<p>SAPgui Â is the application most folks use to interact with SAP. It provides a graphical way to enter vouchers, receipt inventory, process sales orders, etc. It&#8217;s also the tool generally used to configure and manage SAP.</p> <p>To get around in SAP, either use the menu or enter a transaction next to the green check. <p><a href="http://www.karadere.com/blog/sap-gui-special-transaction-command.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p>SAPgui Â is the application most folks use to interact with SAP. It provides a graphical way to enter vouchers, receipt inventory, process sales orders, etc. It&#8217;s also the tool generally used to configure and manage SAP.</p>
<p>To get around in SAP, either use the menu or enter a transaction next to the green check. If you know a few transaction codes, entering them is the easiest way to get around in SAP. Generally you&#8217;ll want to prefix each transaction with &#8220;/n&#8221;; so if you want to run VA01 (create sales order), just type &#8220;/nVA01&#8243; and hit enter.</p>
<h2 id="toc0"><a name="x-Command Prefixes &amp; Special t-codes"></a>Command Prefixes &amp; Special t-codes</h2>
<table>
<tbody>
<tr>
<td><strong>/n</strong></td>
<td>Append to the beginning of each transaction code. When entered without a transaction code, this returns to the main menu.</td>
</tr>
<tr>
<td><strong>/o</strong></td>
<td>Append to the beginning of a transaction code to open a new window</td>
</tr>
<tr>
<td><strong>/nend</strong></td>
<td>End this session (all windows) and ask for confirmation</td>
</tr>
<tr>
<td><strong>/nex</strong></td>
<td>End this session (all windows) and do not ask for confirmation</td>
</tr>
<tr>
<td><strong>/:</strong></td>
<td>Close this window only</td>
</tr>
<tr>
<td><strong>/$sync</strong></td>
<td>Clear the buffer and number ranges</td>
</tr>
<tr>
<td><strong>/$tab</strong></td>
<td>Clear the buffer</td>
</tr>
</tbody>
</table>
<p>(e.g., &#8220;/nVA01&#8243; will run the &#8220;create sales order&#8221; transaction. &#8220;/n&#8221; will return to the main menu)</p>
<h2 id="toc1"><a name="x-Command Suffixes"></a>Command Suffixes</h2>
<table>
<tbody>
<tr>
<td><strong>1</strong></td>
<td>Transactions ending with 1 generally create</td>
</tr>
<tr>
<td><strong>2</strong></td>
<td>Transactions ending with 2 generally change</td>
</tr>
<tr>
<td><strong>3</strong></td>
<td>Transactions ending with 3 generally view</td>
</tr>
<tr>
<td><strong>4</strong></td>
<td>Transactions ending with 4 generally browse</td>
</tr>
</tbody>
</table>
<p>(e.g., VA01 <em>creates</em> a sales order; VA02 <em>changes</em> a sales order, etc)</p>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/sap-gui-special-transaction-command.html&amp;amp;t=Sap+GUI+Special+Transaction+Command" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Sap+GUI+Special+Transaction+Command+-+http://&#x27A1;.ws/å¯ˆã²¢" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/sap-gui-special-transaction-command.htmltitle=Sap+GUI+Special+Transaction+Command" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/sap-gui-special-transaction-command.html&title=Sap+GUI+Special+Transaction+Command&summary=SAPgui+%C2%A0is+the+application+most+folks+use+to+interact+with+SAP.+It+provides+a+graphical+way+to+enter+vouchers%2C+receipt+inventory%2C+process+sales+orders%2C+etc.+It%27s+also+the+tool+generally+used+to+configure+and+manage+SAP.%5B..%5D&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/sap-gui-special-transaction-command.html&amp;amp;t=Sap+GUI+Special+Transaction+Command" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Sap+GUI+Special+Transaction+Command&amp;u=http://www.karadere.com/blog/sap-gui-special-transaction-command.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/sap-gui-special-transaction-command.html&amp;title=Sap+GUI+Special+Transaction+Command" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Sap GUI Special Transaction Command...&body=SAPgui Â is the application most folks use to interact with SAP. It provides a graphical way to enter vouchers, receipt inventory, process sales orders, etc. It's also the tool generally used to configure and manage SAP.

To get around in SAP, eith[..] - http://www.karadere.com/blog/sap-gui-special-transaction-command.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/sap-gui-special-transaction-command.html&amp;title=Sap+GUI+Special+Transaction+Command" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/sap-gui-special-transaction-command.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UNIX Server File System Browse &#8211; Command Promt Shell KomutlarÄ±</title>
		<link>http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html</link>
		<comments>http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html#comments</comments>
		<pubDate>Thu, 22 Apr 2010 05:47:32 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=420</guid>
		<description><![CDATA[REPORT ZUNIX_FILE_BROWSE_COMMAND_PROMPT DATA UNIXCMD(50) TYPE C. DATA: BEGIN OF ITAB occurs 0, LINE(200), end of ITAB. PARAMETERS UNIXCOMM LIKE UNIXCMD DEFAULT 'ls -ls /usr/sap/' LOWER CASE. * Executing the system commands witin ABAP. call 'SYSTEM' id 'COMMAND' field UNIXCOMM id 'TAB' field ITAB-*SYS*. EDITOR-CALL FOR ITAB DISPLAY-MODE.  <p><a href="http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png"><img class="alignleft size-full wp-image-309" title="sap-abap-logo" src="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png" alt="" width="230" height="121" /></a>REPORT ZUNIX_FILE_BROWSE_COMMAND_PROMPT</p>
<p>DATAÂ Â UNIXCMD(50)Â TYPEÂ C.<br />
DATA:Â BEGINÂ OFÂ ITABÂ occursÂ 0,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â LINE(200),<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â endÂ ofÂ ITAB.</p>
<p>PARAMETERSÂ UNIXCOMMÂ LIKEÂ UNIXCMD<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â DEFAULTÂ &#8217;lsÂ -lsÂ /usr/sap/&#8217;Â LOWERÂ CASE.</p>
<p>*Â ExecutingÂ theÂ systemÂ commandsÂ witinÂ ABAP.</p>
<p>callÂ &#8217;SYSTEM&#8217;Â idÂ &#8217;COMMAND&#8217;Â fieldÂ Â UNIXCOMM<br />
Â Â Â Â Â Â Â idÂ &#8217;TAB&#8217;Â Â Â fieldÂ Â ITAB-*SYS*.</p>
<p>EDITOR-CALLÂ FORÂ ITABÂ DISPLAY-MODE.</p>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html&amp;amp;t=UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1+-+http://ri.ms/d53f" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.htmltitle=UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html&title=UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1&summary=&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html&amp;amp;t=UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1&amp;u=http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html&amp;title=UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=UNIX Server File System Browse &#8211; Command Promt S...&body=[..] - http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html&amp;title=UNIX+Server+File+System+Browse+%26%238211%3B+Command+Promt+Shell+Komutlar%C4%B1" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/unix-server-file-system-browse-command-promt-shell-komutlari.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu for sap gui installation</title>
		<link>http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html</link>
		<comments>http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 06:26:08 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=391</guid>
		<description><![CDATA[ sudo gedit /etc/apt/sources.list apt-cache search jdk apt-get update apt-get upgrade ubuntu permission https://help.ubuntu.com/community/FilePermissions <p>http://basishowto.blogspot.com/2008/09/installation-and-configuration-of.html</p> <p>http://forums.sdn.sap.com/thread.jspa?forumID=189&#038;threadID=194324</p> <p>http://www.linuxfellaz.net/doku.php?id=blog:howtos:ubuntu:sap-gui</p> <p>http://ubuntuforums.org/archive/index.php/t-232847.html</p> <p>ftp://ftp.sap.com/pub/sapgui/java/720/</p> <p>http://forums.sdn.sap.com/thread.jspa?threadID=1605467&#038;tstart=0</p> java -jar PlatinGUI-Linux-700.jar http://packages.ubuntu.com/karmic/ http://www.sdn.sap.com/irj/sdn/sap-gui?rid=/library/uuid/409011e2-0ef8-2a10-3b96-cd490895cbdc ArrayArrayArrayArrayArrayArrayArrayArrayArray]]></description>
			<content:encoded><![CDATA[<h1><a href="http://www.karadere.com/blog/uploads//2010/02/logo_ubuntu.gif"><img class="size-full wp-image-349 alignnone" title="logo_ubuntu" src="http://www.karadere.com/blog/uploads//2010/02/logo_ubuntu.gif" alt="" width="217" height="250" /></a><a href="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png"><img class="size-full wp-image-309 alignnone" title="sap-abap-logo" src="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png" alt="" width="230" height="121" /></a><strong></strong></h1>
<h3><strong><code>sudo gedit /etc/apt/sources.list</code></strong></h3>
<h3 style="font-family: monospace;">apt-cache search jdk apt-get update</h3>
<h3 style="font-family: monospace;">apt-get upgrade   ubuntu permission</h3>
<h3 style="font-family: monospace;">https://help.ubuntu.com/community/FilePermissions</h3>
<p>http://basishowto.blogspot.com/2008/09/installation-and-configuration-of.html</p>
<p>http://forums.sdn.sap.com/thread.jspa?forumID=189&#038;threadID=194324</p>
<p>http://www.linuxfellaz.net/doku.php?id=blog:howtos:ubuntu:sap-gui</p>
<p>http://ubuntuforums.org/archive/index.php/t-232847.html</p>
<p>ftp://ftp.sap.com/pub/sapgui/java/720/</p>
<p>http://forums.sdn.sap.com/thread.jspa?threadID=1605467&#038;tstart=0</p>
<pre>java -jar Platin<span>GUI</span>-Linux-700.jar

http://packages.ubuntu.com/karmic/

http://www.sdn.sap.com/irj/sdn/sap-gui?rid=/library/uuid/409011e2-0ef8-2a10-3b96-cd490895cbdc</pre>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html&amp;amp;t=Ubuntu+for+sap+gui+installation" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Ubuntu+for+sap+gui+installation+-+http://ri.ms/zixz1" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.htmltitle=Ubuntu+for+sap+gui+installation" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html&title=Ubuntu+for+sap+gui+installation&summary=&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html&amp;amp;t=Ubuntu+for+sap+gui+installation" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Ubuntu+for+sap+gui+installation&amp;u=http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html&amp;title=Ubuntu+for+sap+gui+installation" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Ubuntu for sap gui installation...&body= - http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html&amp;title=Ubuntu+for+sap+gui+installation" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/ubuntu-for-sap-gui-installation.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sap System Fields</title>
		<link>http://www.karadere.com/blog/sap-system-fields.html</link>
		<comments>http://www.karadere.com/blog/sap-system-fields.html#comments</comments>
		<pubDate>Fri, 02 Apr 2010 10:56:53 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=405</guid>
		<description><![CDATA[Name Type Content sy-abcde c(26) Contains the Latin alphabet. Can be used to access individual letters directly by specifying the offset/length, regardless of the code page. sy-batch c(1) Set to "X" in an ABAP program that runs in the background, otherwise initial. sy-binpt c(1) Set to "X" during processing of batch input sessions, and in ABAP programs called using CALL TRANSACTION USING. Otherwise initial. sy-calld c(1) Contains a blank character in the first program in a call sequence, otherwise contains the value "X". Is set to "X" after calls using CALL TRANSACTION, CALL DIALOG, or SUBMIT ... AND RETURN. Empty if the program was started using LEAVE TO TRANSACTION or a transaction from the screen. A call using SUBMIT (without AND RETURN) assumes the value of the calling program. sy-callr c(8) When printing lists, contains a value that displays where printing was started - for example, NEW-PAGE for program-controlled printing, or RSDBRUNT for printing from the selection screen. sy-colno i Current position during creation of a list in the list buffer. Counting begins at 1. In non- Unicode systems, this position also corresponds to the column in the displayed list. In Unicode systems, this is only guaranteed for the lower and upper output limits applicable to each output, as one character may take up more columns in the list than positions in the list buffer. sy-cpage i Page number of the page displayed at the top of the list for which a list event was triggered. Counting begins at 1. sy-cprog c(40) In procedures called externally, the name of the calling program, otherwise the name of the current program. If a procedure called externally calls another external procedure, sy-cprog contains the name of the framework program, and is not set to the name of the framework program of the subsequent calling program. sy-cucol i Horizontal cursor position in the display on a dynpro. Counting begins at column 2. sy-curow i Vertical cursor position on the screen display of a screen. Counting begins at line 1. sy-datar c(1) At PAI, contains "X" if at least one input field of a screen has been changed by a user or by further data transfer, otherwise initial. sy-datlo d Local date of the user - for example, "19990723". Can be set using GET TIME. sy-datum d System date (local date of the AS ABAP). Can be set using GET TIME. sy-dayst c(1) "X" during summertime, otherwise initial. sy-dbcnt i SQL statements set the content of sy-dbcnt to the number of processed table lines.  <p><a href="http://www.karadere.com/blog/sap-system-fields.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png"><img class="size-full wp-image-309 alignnone" title="sap-abap-logo" src="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png" alt="" width="230" height="121" /></a></p>
<table border="0" cellspacing="0" cellpadding="0" width="681">
<colgroup span="1">
<col span="1" width="202"></col>
<col span="1" width="63"></col>
<col span="1" width="416"></col>
</colgroup>
<tbody>
<tr height="21">
<td width="202" height="21">Name</td>
<td width="63">Type</td>
<td width="416">Content</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-abcde</td>
<td width="63">c(26)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENCODEPAGE_GLOSRY.htm">Contains the Latin alphabet. Can be used to access individual letters directly by specifying the offset/length, regardless of the code page.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-batch</td>
<td width="63">c(1)</td>
<td width="416">Set to &#8220;X&#8221; in an ABAP program that runs in the background, otherwise initial.</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-binpt</td>
<td width="63">c(1)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENBATCH_INPUT_SESSION_GLOSRY.htm">Set to &#8220;X&#8221; during processing of batch input sessions, and in ABAP programs called using CALL TRANSACTION USING. Otherwise initial.</a></td>
</tr>
<tr height="134">
<td width="202" height="134">sy-calld</td>
<td width="63">c(1)</td>
<td width="416">Contains a blank character in the first program in a call sequence, otherwise contains the value &#8220;X&#8221;. Is set to &#8220;X&#8221; after calls using CALL TRANSACTION, CALL DIALOG, or SUBMIT &#8230; AND RETURN. Empty if the program was started using LEAVE TO TRANSACTION or a transaction from the screen. A call using SUBMIT (without AND RETURN) assumes the value of the calling program.</td>
</tr>
<tr height="77">
<td width="202" height="77">sy-callr</td>
<td width="63">c(8)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSELECTION_SCREEN_GLOSRY.htm">When printing lists, contains a value that displays where printing was started &#8211; for example, NEW-PAGE for program-controlled printing, or RSDBRUNT for printing from the selection screen.</a></td>
</tr>
<tr height="134">
<td width="202" height="134">sy-colno</td>
<td width="63">i</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENUNICODE_SYSTEM_GLOSRY.htm">Current position during creation of a list in the list buffer. Counting begins at 1. In non- Unicode systems, this position also corresponds to the column in the displayed list. In Unicode systems, this is only guaranteed for the lower and upper output limits applicable to each output, as one character may take up more columns in the list than positions in the list buffer.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-cpage</td>
<td width="63">i</td>
<td width="416">Page number of the page displayed at the top of the list for which a list event was triggered. Counting begins at 1.</td>
</tr>
<tr height="115">
<td width="202" height="115">sy-cprog</td>
<td width="63">c(40)</td>
<td width="416">In procedures called externally, the name of the calling program, otherwise the name of the current program. If a procedure called externally calls another external procedure, sy-cprog contains the name of the framework program, and is not set to the name of the framework program of the subsequent calling program.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-cucol</td>
<td width="63">i</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENDYNPRO_GLOSRY.htm">Horizontal cursor position in the display on a dynpro. Counting begins at column 2.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-curow</td>
<td width="63">i</td>
<td width="416">Vertical cursor position on the screen display of a screen. Counting begins at line 1.</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-datar</td>
<td width="63">c(1)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENPAI_GLOSRY.htm">At PAI, contains &#8220;X&#8221; if at least one input field of a screen has been changed by a user or by further data transfer, otherwise initial.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-datlo</td>
<td width="63">d</td>
<td width="416">Local date of the user &#8211; for example, &#8220;19990723&#8243;. Can be set using GET TIME.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-datum</td>
<td width="63">d</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSAP_NW_ABAP_GLOSRY.htm">System date (local date of the AS ABAP). Can be set using GET TIME.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-dayst</td>
<td width="63">c(1)</td>
<td width="416">&#8220;X&#8221; during summertime, otherwise initial.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-dbcnt</td>
<td width="63">i</td>
<td width="416">SQL statements set the content of sy-dbcnt to the number of processed table lines.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-dbnam</td>
<td width="63">c(20)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENLOGICAL_DATA_BASE_GLOSRY.htm">In executable programs, the linked logical database.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-dbsys</td>
<td width="63">c(10)</td>
<td width="416">Central database system &#8211; for example, &#8220;ORACLE&#8221;, &#8220;INFORMIX&#8221;.</td>
</tr>
<tr height="77">
<td width="202" height="77">sy-dyngr</td>
<td width="63">c(4)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSCREEN_PAINTER_GLOSRY.htm">Screen group of the current screen. In the Screen Painter, several screens can be assigned to a common screen group, which can be used, for example, for making modifications to all screens in the group at once.</a></td>
</tr>
<tr height="96">
<td width="202" height="96">sy-dynnr</td>
<td width="63">c(4)</td>
<td width="416">Number of the current screen. During selection screen processing, this is the current selection screen. During list processing, the number of the subscreen container. During processing of a subscreen dynpro (including in tabstrips), this screen number.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-fdayw</td>
<td width="63">b</td>
<td width="416">Factory calendar weekday, Monday = 1, &#8230;, Friday = 5.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-fdpos</td>
<td width="63">i</td>
<td width="416">Found location for certain searches in character-like and byte-like data objects.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-host</td>
<td width="63">c(32)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENAPPLICATION_SERVER_GLOSRY.htm">Network name of the host on which the current application server is instantiated, for example &#8220;KSAP0001&#8243;, &#8220;HS01234&#8243;.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-index</td>
<td width="63">i</td>
<td width="416">Loop index. In DO and WHILE loops, contains the number of the loop passes including the current pass.</td>
</tr>
<tr height="77">
<td width="202" height="77">sy-langu</td>
<td width="63">c(1)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENTEXT_ENVIRONMENT_GLOSRY.htm">Single-character language key &#8211; for example, &#8220;D&#8221;, &#8220;E&#8221;, &#8220;F&#8221; &#8211; for the current text environment. Set according to the logon language of the user or by using the statement SET LOCALE.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-ldbpg</td>
<td width="63">c(40)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENDATABASE_PROGRAM_GLOSRY.htm">In executable programs, the database program of the linked logical database.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-lilli</td>
<td width="63">i</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENPAGE_HEADER_GLOSRY.htm">List line for which a list event was triggered. Counting begins at 1 and includes the page header.</a></td>
</tr>
<tr height="58">
<td width="202" height="58">sy-linct</td>
<td width="63">i</td>
<td width="416">Page length of the current list during list creation. sy-linct is 0 for a standard list of any length, and has a value that is not 0 for lists with a defined page length.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-linno</td>
<td width="63">i</td>
<td width="416">Current list line during list creation. Counting begins at 1 and includes the page header.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-linsz</td>
<td width="63">i</td>
<td width="416">Line width of the current list in the list buffer during list creation.</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-lisel</td>
<td width="63">c(255)</td>
<td width="416">Content of the list line in the list buffer, on which the cursor was positioned while a list event was triggered (restricted to the first 255 lines).</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-listi</td>
<td width="63">i</td>
<td width="416">List level of the list for which a list event was triggered.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-loopc</td>
<td width="63">i</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENTABLE_CONTROL_GLOSRY.htm">Number of lines currently displayed in a table control.</a></td>
</tr>
<tr height="96">
<td width="202" height="96">sy-lsind</td>
<td width="63">i</td>
<td width="416">List level of the list that is currently being created (basic list: 0, details lists: greater than 0). For every interactive list event, sy-lsind is automatically increased by an increment of 1. sy-lsind can only be changed in ABAP programs for navigating between details lists.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-macol</td>
<td width="63">i</td>
<td width="416">When printing lists, contains the number of columns on the left edge.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-mandt</td>
<td width="63">c(3)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENCLIENT_IDENTIFIER_GLOSRY.htm">Client identifier with which the user has logged on &#8211; for example, &#8220;401&#8243;, &#8220;800&#8243;.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-marow</td>
<td width="63">i</td>
<td width="416">When printing lists, contains the number of lines on the top margin.</td>
</tr>
<tr height="96">
<td width="202" height="96">sy-modno</td>
<td width="63">i</td>
<td width="416">Indexing of external sessions. Contains the value 0 in the first session. In new sessions that are opened using the Create Session function or by calling a transaction with /o in the command field of the standard toolbar, this value is increased by 1.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-msgid</td>
<td width="63">c(20)</td>
<td width="416">After the statement MESSAGE, contains the message class.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-msgno</td>
<td width="63">n(3)</td>
<td width="416">After the statement MESSAGE, contains the message number.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-msgty</td>
<td width="63">c(1)</td>
<td width="416">After the statement MESSAGE, contains the message type.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-msgv1 &#8230; sy-msgv4</td>
<td width="63">c(50)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENMESSAGE_GLOSRY.htm">After the statement MESSAGE, contain the contents of the fields that were used as placeholders in the message.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-opsys</td>
<td width="63">c(10)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENAPPLICATION_SERVER_GLOSRY.htm">Operating system of the current application server &#8211; for example, &#8220;SOLARIS&#8221;, &#8220;HP-UX&#8221;.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-pagno</td>
<td width="63">i</td>
<td width="416">Current page in list creation.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-pfkey</td>
<td width="63">c(20)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENDYNPRO_GLOSRY.htm">GUI status of the current dynpro.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-prdsn</td>
<td width="63">c(6)</td>
<td width="416">When printing lists, contains the name of the spool file.</td>
</tr>
<tr height="96">
<td width="202" height="96">sy-repid</td>
<td width="63">c(40)</td>
<td width="416">Name of the current ABAP program. For procedures called externally, name of the framework program of the procedure. If sy-repid is transferred as an actual parameter to an external procedure, the formal parameter is set to the name of the caller.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-saprl</td>
<td width="63">c(4)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSAP_NW_ABAP_GLOSRY.htm">Release status of the AS ABAP, e.g. &#8220;46D&#8221;, &#8220;610&#8243;.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-scols</td>
<td width="63">i</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSCREEN_GLOSRY.htm">Number of columns of the current screen.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-slset</td>
<td width="63">c(14)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSELECTION_SCREEN_GLOSRY.htm">Variant that was used for filling a selection screen. The associated program name is in sy-cprog.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-spono</td>
<td width="63">n(10)</td>
<td width="416">When printing lists, contains the name of the spool number.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-srows</td>
<td width="63">i</td>
<td width="416">Number of lines of the current screen.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-staco</td>
<td width="63">i</td>
<td width="416">Number of the first column displayed in the list for which a list event has been triggered. Counting begins at 1.</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-staro</td>
<td width="63">i</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENPAGE_HEADER_GLOSRY.htm">Number of the list line displayed at the top of the page at the top of the list, for which a list event was triggered. Counting begins at 1 and does not include the page header.</a></td>
</tr>
<tr height="39">
<td width="202" height="39">sy-stepl</td>
<td width="63">i</td>
<td width="416">Index of the current line in a table control. This is set for every loop pass.</td>
</tr>
<tr height="134">
<td width="202" height="134">sy-subrc</td>
<td width="63">i</td>
<td width="416">Return value that is set by many ABAP statements. In general, the value 0 means that the statement was executed with no problems. Depending on which statement was used to set sy-subrc, the cause of any errors can be derived from the corresponding value. The content of sy-subrc is not defined after statements for which the setting of sy-subrc is not documented explicitly.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-sysid</td>
<td width="63">c(8)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSAP_NW_ABAP_GLOSRY.htm">Name of the AS ABAP, for example &#8220;S01&#8243;, &#8220;K99&#8243;..</a></td>
</tr>
<tr height="58">
<td width="202" height="58">sy-tabix</td>
<td width="63">i</td>
<td width="416">Line number in the table index of an internal table. Contains the last line accessed with a primary or secondary table index. Is set to 0 when accessed with a hash algorithm.</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-tcode</td>
<td width="63">c(20)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENBACKROUND_PROCESSING_GLOSRY.htm">Name of the current transaction code. Initial in background processing unless a transaction was called during background processing.</a></td>
</tr>
<tr height="58">
<td width="202" height="58">sy-tfill</td>
<td width="63">i</td>
<td width="416">In the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, sy-tfill is filled with the number of lines in the internal table that has been addressed.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-timlo</td>
<td width="63">t</td>
<td width="416">Local time of the user, for example &#8220;152557&#8243;. Can be set using GET TIME.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-title</td>
<td width="63">c(70)</td>
<td width="416">Text that appears in the title bar of the screen.</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-tleng</td>
<td width="63">i</td>
<td width="416">In the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, sy-tleng is filled with the line size of the internal table that is being addressed.</td>
</tr>
<tr height="77">
<td width="202" height="77">sy-tvar0 &#8230; sy-tvar9</td>
<td width="63">c(20)</td>
<td width="416">These system fields can be assigned values in the program. At the event TOP-OF-PAGE, the content of sy-tvar0 to sy-tvar9 replaces the placeholders &#8220;&amp;0&#8243; to &#8220;&amp;9&#8243; in the list and column headers of the text elements of the program.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-tzone</td>
<td width="63">i</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENUTC_GLOSRY.htm">Time difference to the UTC reference time in seconds &#8211; for example, &#8220;3600&#8243;, &#8220;10800&#8243;.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-ucomm</td>
<td width="63">c(70)</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENPAI_GLOSRY.htm">Function code that triggered the event PAI.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-uline</td>
<td width="63">c(255)</td>
<td width="416">Contains a horizontal line of length 255 for displaying in lists.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-uname</td>
<td width="63">c(12)</td>
<td width="416">User&#8217;s logon name &#8211; for example, &#8220;KELLERH&#8221;.</td>
</tr>
<tr height="39">
<td width="202" height="39">sy-uzeit</td>
<td width="63">t</td>
<td width="416"><a title="Glossary Entry" href="http://help.sap.com/abapdocu_70/en/ABENSAP_NW_ABAP_GLOSRY.htm">System time (local time of the AS ABAP). Can be set using GET TIME.</a></td>
</tr>
<tr height="21">
<td width="202" height="21">sy-vline</td>
<td width="63">c(1)</td>
<td width="416">Contains a vertical line (|) for displaying in lists.</td>
</tr>
<tr height="58">
<td width="202" height="58">sy-wtitl</td>
<td width="63">c(1)</td>
<td width="416">In the statements REPORT, PROGRAM, and FUNCTION-POOL, set to &#8220;N&#8221; if the addition NO STANDARD PAGE HEADING is used, otherwise initial.</td>
</tr>
<tr height="21">
<td width="202" height="21">sy-zonlo</td>
<td width="63">c(6)</td>
<td width="416">Time zone of the user &#8211; for example, &#8220;CET&#8221;, &#8220;PST&#8221;.</td>
</tr>
</tbody>
</table>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/sap-system-fields.html&amp;amp;t=Sap+System+Fields" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Sap+System+Fields+-+http://ri.ms/llqn2" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/sap-system-fields.htmltitle=Sap+System+Fields" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/sap-system-fields.html&title=Sap+System+Fields&summary=&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/sap-system-fields.html&amp;amp;t=Sap+System+Fields" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Sap+System+Fields&amp;u=http://www.karadere.com/blog/sap-system-fields.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/sap-system-fields.html&amp;title=Sap+System+Fields" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Sap System Fields...&body=[..] - http://www.karadere.com/blog/sap-system-fields.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/sap-system-fields.html&amp;title=Sap+System+Fields" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/sap-system-fields.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Abap Excel to Internal Table</title>
		<link>http://www.karadere.com/blog/abap-excel-to-internal-table.html</link>
		<comments>http://www.karadere.com/blog/abap-excel-to-internal-table.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:55:32 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>
		<category><![CDATA[abaÄŸ]]></category>
		<category><![CDATA[excel]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=389</guid>
		<description><![CDATA[ TYPES: BEGIN OF t_datatab, ebeln LIKE ymtil_cons_po-ebeln, ebelp LIKE ymtil_cons_po-ebelp, END OF t_datatab. DATA: it_datatab TYPE STANDARD TABLE OF t_datatab,  <p><a href="http://www.karadere.com/blog/abap-excel-to-internal-table.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong><em><code><img class="alignleft size-full wp-image-309" title="sap-abap-logo" src="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png" alt="sap-abap-logo" width="230" height="121" /></code></em></strong></p>
<p><strong><em></em></strong></p>
<p><strong><em></em></strong></p>
<p><strong><em></em></strong></p>
<p><strong><em></em></strong></p>
<p><strong><em></em></strong></p>
<p><strong><em><code>REPORT Z_EXCEL_to_ITAB.<br />
</code></em></strong><strong><em><code>TYPE-POOLS: truxs.<br />
PARAMETERS: p_file TYPE rlgrap-filename.</code></p>
<p></em></strong><code><strong><em>TYPES: BEGIN OF t_datatab,<br />
ebeln LIKE ymtil_cons_po-ebeln,<br />
ebelp LIKE ymtil_cons_po-ebelp,<br />
END OF t_datatab.</em></strong></code></p>
<pre><strong><em>DATA: it_datatab TYPE STANDARD TABLE OF t_datatab,

Â wa_datatab TYPE t_datatab.</em></strong></pre>
<pre><strong><em>DATA: it_raw TYPE truxs_t_text_data.</em></strong></pre>
<pre><strong><em>AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

Â CALL FUNCTION 'F4_FILENAME'

Â EXPORTING

Â field_name = 'p_file'

Â IMPORTING

Â file_name  = p_file.</em></strong></pre>
<pre><strong><em>START-OF-SELECTION.

Â CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

Â EXPORTING

Â i_line_header        = 'X'

Â i_tab_raw_data       = it_raw

Â i_filename           = p_file

Â TABLES

Â i_tab_converted_data = it_datatab[]

Â EXCEPTIONS

Â conversion_failed    = 1

Â OTHERS               = 2.

Â IF sy-subrc &lt;&gt; 0.

Â *  key in some message

Â ENDIF.</em></strong></pre>
<pre><strong><em>END-OF-SELECTION.

Â LOOP AT it_datatab INTO wa_datatab.

Â * Do anything with the work area wa_datatab.

Â ENDLOOP.</em></strong></pre>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/abap-excel-to-internal-table.html&amp;amp;t=Abap+Excel+to+Internal+Table" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Abap+Excel+to+Internal+Table+-+http://ri.ms/o8hyg" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/abap-excel-to-internal-table.htmltitle=Abap+Excel+to+Internal+Table" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/abap-excel-to-internal-table.html&title=Abap+Excel+to+Internal+Table&summary=&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/abap-excel-to-internal-table.html&amp;amp;t=Abap+Excel+to+Internal+Table" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Abap+Excel+to+Internal+Table&amp;u=http://www.karadere.com/blog/abap-excel-to-internal-table.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/abap-excel-to-internal-table.html&amp;title=Abap+Excel+to+Internal+Table" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Abap Excel to Internal Table...&body=

 - http://www.karadere.com/blog/abap-excel-to-internal-table.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/abap-excel-to-internal-table.html&amp;title=Abap+Excel+to+Internal+Table" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/abap-excel-to-internal-table.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internal Table export (convert) to  XML file</title>
		<link>http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html</link>
		<comments>http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 09:47:24 +0000</pubDate>
		<dc:creator>Burhan KARADERE</dc:creator>
				<category><![CDATA[ABAP (Advanced Business Application Programming)]]></category>

		<guid isPermaLink="false">http://www.karadere.com/blog/?p=385</guid>
		<description><![CDATA[*----------------------------------------------------------------------* * Report ZPRUEBA_MML_13 * * Export an internal table to XML document * * NO BORRAR ESTE CODIGO * *----------------------------------------------------------------------* REPORT ZPRUEBA_MML_13. *----------------------------------------------------------------------* * PANTALLA SELECCION * PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME. * PANTALLA SELECCION * *----------------------------------------------------------------------* *----------------------------------------------------------------------* * TYPE TURNOS * TYPES: BEGIN OF TURNOS, LU LIKE T552A-TPR01, MA LIKE T552A-TPR01, MI LIKE T552A-TPR01, JU LIKE T552A-TPR01, VI LIKE T552A-TPR01, SA LIKE T552A-TPR01, DO LIKE T552A-TPR01, END OF TURNOS. * TYPE TURNOS * <p><a href="http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html">[..]DevamÄ±nÄ± Oku</a></p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-309" title="sap-abap-logo" src="http://www.karadere.com/blog/uploads//2010/02/sap-abap-logo.png" alt="sap-abap-logo" width="230" height="121" /></p>
<p>Â </p>
<p>Â </p>
<p>Â </p>
<p>Â <br />
* Report ZPRUEBA_MML_13 *<br />
* Export an internal table to XML document *<br />
* NO BORRAR ESTE CODIGO *</p>
<p>Â </p>
<p>REPORT ZPRUEBA_MML_13.<br />
* PANTALLA SELECCION *<br />
Â Â Â  PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME.<br />
* PANTALLA SELECCION *</p>
<p>* TYPE TURNOS *<br />
TYPES: BEGIN OF TURNOS,<br />
Â Â Â  LU LIKE T552A-TPR01,<br />
Â Â Â  MA LIKE T552A-TPR01,<br />
Â Â Â  MI LIKE T552A-TPR01,<br />
Â Â Â  JU LIKE T552A-TPR01,<br />
Â Â Â  VI LIKE T552A-TPR01,<br />
Â Â Â  SA LIKE T552A-TPR01,<br />
Â Â Â  DO LIKE T552A-TPR01,<br />
END OF TURNOS.<br />
* TYPE TURNOS *<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</p>
<p>*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
* TYPE SOCIO *<br />
TYPES: BEGIN OF SOCIO,<br />
Â Â Â  NUMERO LIKE PERNR-PERNR,<br />
Â Â Â  REPOSICION LIKE PA0050-ZAUVE,<br />
Â Â Â  NOMBRE LIKE PA0002-VORNA,<br />
Â Â Â  TURNOS TYPE TURNOS,<br />
END OF SOCIO.<br />
* TYPE SOCIO *<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</p>
<p>*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
* ESTRUCTURA ACCESOS *<br />
DATA: BEGIN OF ACCESOS OCCURS 0,<br />
Â Â Â  SOCIO TYPE SOCIO,<br />
END OF ACCESOS.<br />
* ESTRUCTURA ACCESOS *<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</p>
<p>*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
* START OF SELECTION *<br />
START-OF-SELECTION.<br />
Â Â Â  PERFORM LLENA_ACCESOS.<br />
Â Â Â  PERFORM DESCARGA_XML.<br />
END-OF-SELECTION.<br />
* END OF SELECTION *<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</p>
<p>*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
* FORM LLENA_ACCESOS *<br />
FORM LLENA_ACCESOS.<br />
REFRESH ACCESOS.<br />
CLEAR ACCESOS.<br />
MOVE: &#8217;45050&#8242; TO ACCESOS-SOCIO-NUMERO,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;MOISES MORENO&#8217; TO ACCESOS-SOCIO-NOMBRE,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8217;0&#8242; TO ACCESOS-SOCIO-REPOSICION,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T1&#8242; TO ACCESOS-SOCIO-TURNOS-LU,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T2&#8242; TO ACCESOS-SOCIO-TURNOS-MA,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T3&#8242; TO ACCESOS-SOCIO-TURNOS-MI,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T4&#8242; TO ACCESOS-SOCIO-TURNOS-JU,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T5&#8242; TO ACCESOS-SOCIO-TURNOS-VI,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T6&#8242; TO ACCESOS-SOCIO-TURNOS-SA,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T7&#8242; TO ACCESOS-SOCIO-TURNOS-DO.<br />
APPEND ACCESOS.<br />
CLEAR ACCESOS.<br />
MOVE: &#8217;45051&#8242; TO ACCESOS-SOCIO-NUMERO,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;RUTH PEï¿½A&#8217; TO ACCESOS-SOCIO-NOMBRE,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8217;0&#8242; TO ACCESOS-SOCIO-REPOSICION,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T1&#8242; TO ACCESOS-SOCIO-TURNOS-LU,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T2&#8242; TO ACCESOS-SOCIO-TURNOS-MA,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T3&#8242; TO ACCESOS-SOCIO-TURNOS-MI,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T4&#8242; TO ACCESOS-SOCIO-TURNOS-JU,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T5&#8242; TO ACCESOS-SOCIO-TURNOS-VI,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T6&#8242; TO ACCESOS-SOCIO-TURNOS-SA,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  &#8216;T7&#8242; TO ACCESOS-SOCIO-TURNOS-DO.<br />
APPEND ACCESOS.<br />
ENDFORM.<br />
* FORM LLENA_ACCESOS *<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</p>
<p>*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
* FORM DESCARGA_XML *<br />
FORM DESCARGA_XML.<br />
DATA: L_DOM TYPE REF TO IF_IXML_ELEMENT,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  M_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  G_IXML TYPE REF TO IF_IXML,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  W_STRING TYPE XSTRING,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  W_SIZE TYPE I,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  W_RESULT TYPE I,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  W_LINE TYPE STRING,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  IT_XML TYPE DCXMLLINES,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  S_XML LIKE LINE OF IT_XML,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  W_RC LIKE SY-SUBRC.</p>
<p>DATA: XML TYPE DCXMLLINES.<br />
DATA: RC TYPE SY-SUBRC,<br />
BEGIN OF XML_TAB OCCURS 0,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  D LIKE LINE OF XML,<br />
END OF XML_TAB.</p>
<p>CLASS CL_IXML DEFINITION LOAD.<br />
G_IXML = CL_IXML=&gt;CREATE( ).<br />
CHECK NOT G_IXML IS INITIAL.<br />
M_DOCUMENT = G_IXML-&gt;CREATE_DOCUMENT( ).<br />
CHECK NOT M_DOCUMENT IS INITIAL.<br />
WRITE: / &#8216;Converting DATA TO DOM 1:&#8217;.<br />
CALL FUNCTION &#8216;SDIXML_DATA_TO_DOM&#8217;<br />
EXPORTING<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  NAME = &#8216;ACCESOS&#8217;<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  DATAOBJECT = ACCESOS[]<br />
IMPORTING<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  DATA_AS_DOM = L_DOM<br />
CHANGING<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  DOCUMENT = M_DOCUMENT<br />
EXCEPTIONS<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  ILLEGAL_NAME = 1<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  OTHERS = 2.<br />
IF SY-SUBRC = 0.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  WRITE &#8216;Ok&#8217;.<br />
ELSE.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  WRITE: &#8216;Err =&#8217;,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  SY-SUBRC.<br />
ENDIF.<br />
CHECK NOT L_DOM IS INITIAL.<br />
W_RC = M_DOCUMENT-&gt;APPEND_CHILD( NEW_CHILD = L_DOM ).<br />
IF W_RC IS INITIAL.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  WRITE &#8216;Ok&#8217;.<br />
ELSE.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  WRITE: &#8216;Err =&#8217;,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  W_RC.<br />
ENDIF.<br />
CALL FUNCTION &#8216;SDIXML_DOM_TO_XML&#8217;<br />
EXPORTING<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  DOCUMENT = M_DOCUMENT<br />
IMPORTING<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  XML_AS_STRING = W_STRING<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  SIZE = W_SIZE<br />
TABLES<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  XML_AS_TABLE = IT_XML<br />
EXCEPTIONS<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  NO_DOCUMENT = 1<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  OTHERS = 2.<br />
IF SY-SUBRC = 0.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  WRITE &#8216;Ok&#8217;.<br />
ELSE.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  WRITE: &#8216;Err =&#8217;,<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  SY-SUBRC.<br />
ENDIF.<br />
LOOP AT IT_XML INTO XML_TAB-D.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  APPEND XML_TAB.<br />
ENDLOOP.<br />
CALL FUNCTION &#8216;WS_DOWNLOAD&#8217;<br />
EXPORTING<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  BIN_FILESIZE = W_SIZE<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  FILENAME = GK_RUTA<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  FILETYPE = &#8216;BIN&#8217;<br />
TABLES<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  DATA_TAB = XML_TAB<br />
EXCEPTIONS<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  OTHERS = 10.<br />
IF SY-SUBRC &lt;&gt; 0.<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.<br />
ENDIF.</p>
<p>ENDFORM.<br />
* FORM DESCARGA_XML *<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</p>
<div class="damn-sexy-bookmarks"><ul class="socials"><li class="damn-sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html&amp;amp;t=Internal+Table+export+%28convert%29+to++XML+file" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-twitter"><a href="http://www.twitter.com/home?status=RT+@burhan_07:++Internal+Table+export+%28convert%29+to++XML+file+-+http://ri.ms/wmypm" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-google"><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.htmltitle=Internal+Table+export+%28convert%29+to++XML+file" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html&title=Internal+Table+export+%28convert%29+to++XML+file&summary=%0D%0A%0D%0A%C2%A0%0D%0A%0D%0A%C2%A0%0D%0A%0D%0A%C2%A0%0D%0A%0D%0A%C2%A0%0D%0A%2A+Report+%5B..%5D&source=Burhan KARADERE KiÅŸisel Blog SayfasÄ±" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-myspace"><a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html&amp;amp;t=Internal+Table+export+%28convert%29+to++XML+file" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-yahoomyweb"><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=Internal+Table+export+%28convert%29+to++XML+file&amp;u=http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-delicious"><a href="http://del.icio.us/post?url=http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html&amp;title=Internal+Table+export+%28convert%29+to++XML+file" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-mail"><a href="mailto:?&subject=Internal Table export (convert) to  XML file...&body=

Â 

Â 

Â 

Â 
* Report ZPRUEBA_MML_13 *
* Export an [..] - http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html" target="_blank" rel="nofollow" title="Array">Array</a></li><li class="damn-sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html&amp;title=Internal+Table+export+%28convert%29+to++XML+file" target="_blank" rel="nofollow" title="Array">Array</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.karadere.com/blog/internal-table-export-convert-to-xml-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

