<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SAP ABAP</title>
	<atom:link href="http://sapient.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sapient.wordpress.com</link>
	<description>Learn SAP ABAP Online</description>
	<lastBuildDate>Mon, 09 Jan 2012 17:26:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sapient.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>SAP ABAP</title>
		<link>http://sapient.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sapient.wordpress.com/osd.xml" title="SAP ABAP" />
	<atom:link rel='hub' href='http://sapient.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SAP Upgrade from 4.6C to ECC6.0</title>
		<link>http://sapient.wordpress.com/2009/02/14/sap-upgrade-from-46c-to-ecc60/</link>
		<comments>http://sapient.wordpress.com/2009/02/14/sap-upgrade-from-46c-to-ecc60/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 11:46:28 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/?p=690</guid>
		<description><![CDATA[Download some good Pdf for SAP Upgrading. (i) SAP Upgrade Guide Download pdf ( ii ) Complete Upgrade and Unicode Conversion Guide for R/3 4.6c. Download pdf (iii) Unicode In SAP system Download pdf ( iv) Conversion fo SAP system to Unicode Download pdf Read Complete Posting on http://abapcode.info<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=690&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>Download some good Pdf for SAP Upgrading.</div>
<div>(i) SAP Upgrade Guide</div>
<div>Download pdf</div>
<div>( ii ) Complete Upgrade and Unicode Conversion Guide for R/3 4.6c.</div>
<div>Download pdf</div>
<div>(iii) Unicode In SAP system</div>
<div>Download pdf</div>
<div>( iv) Conversion fo SAP system to Unicode</div>
<div>Download pdf</div>
<div>Read Complete Posting on <a href="http://abapcode.info/">http://abapcode.info</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/690/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=690&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2009/02/14/sap-upgrade-from-46c-to-ecc60/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>
	</item>
		<item>
		<title>Site Name has changed to abapcode.info</title>
		<link>http://sapient.wordpress.com/2009/02/14/site-name-has-changed-to-abapcodeinfo/</link>
		<comments>http://sapient.wordpress.com/2009/02/14/site-name-has-changed-to-abapcodeinfo/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 11:35:27 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2009/02/14/site-name-has-changed-to-abapcodeinfo/</guid>
		<description><![CDATA[Now You can read Complete Site on http://abapcode.info. This Site Contains whole sap document about SAP ABAP Online Magazine ABAP,ABAP report,Interactive Report,ALV grid,ALV list,IDOC,User Exit,RFC,Smartform,sapscript,ABAP Performance,Remote Function Module( RFC ),Function Module,Modularization techniques,ABAP tools,ALV report Generator,ABAP Interview Questions,BDC,BAPI,ALE,BADI, EDI,InternalTable,DataStructure,LSMW,Domain,DataElement,Basis and Administration ,ABAP HR development,ABAP Debugger,BW,ExceptionHandling,Download FI, CO, MM, PP, SD, PM, PS, QM, SM, HR, BW, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=732&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now You can read Complete Site on http://abapcode.info.</p>
<p>This Site Contains whole sap document about SAP ABAP Online Magazine<br />
ABAP,ABAP report,Interactive Report,ALV grid,ALV list,IDOC,User Exit,RFC,Smartform,sapscript,ABAP Performance,Remote Function Module( RFC ),Function Module,Modularization techniques,ABAP tools,ALV report Generator,ABAP Interview Questions,BDC,BAPI,ALE,BADI, EDI,InternalTable,DataStructure,LSMW,Domain,DataElement,Basis and Administration ,ABAP HR development,ABAP Debugger,BW,ExceptionHandling,Download FI, CO, MM, PP, SD, PM, PS, QM, SM, HR, BW, APO,ABAP Tutorial</p>
<p>Read Complete Posting on <a href="http://abapcode.info/">http://abapcode.info</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/732/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=732&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2009/02/14/site-name-has-changed-to-abapcodeinfo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>
	</item>
		<item>
		<title>Learn Object Oriented Pogramming ( OOPS )</title>
		<link>http://sapient.wordpress.com/2008/03/09/learn-object-oriented-pogramming-oops/</link>
		<comments>http://sapient.wordpress.com/2008/03/09/learn-object-oriented-pogramming-oops/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 07:56:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Object Oriented ABAP]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/03/09/learn-object-oriented-pogramming-oops/</guid>
		<description><![CDATA[Definitions Public attributes Private attributes Instance attributes Static attributes Public methods Private methods Constructor method Static constructor Protected components Polymorphism Public attributes Public attributes are defined in the PUBLIC section and can be viewed and changed from outside the class. There is direct access to public attributes. As a general rule, as few public attributes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=731&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Definitions </strong></p>
<p><strong></p>
<p></strong>Public attributes</p>
<p>Private attributes</p>
<p>Instance attributes</p>
<p>Static attributes</p>
<p>Public methods</p>
<p>Private methods</p>
<p>Constructor method</p>
<p>Static constructor</p>
<p>Protected components</p>
<p>Polymorphism</p>
<p><strong>Public attributes</p>
<p></strong>Public attributes are defined in the PUBLIC section and can be viewed and changed from outside the class. There is direct access to public attributes. As a general rule, as few public attributes should be defined as possible.</p>
<p>PUBLIC SECTION.</p>
<p>DATA: Counter type i.</p>
<p><strong>Private attributes</p>
<p></strong>Private attributes are defined in the PRIVATE section. The can only be viewes and changed from within the class. There is no direct access from outside the class.</p>
<p>PRIVATE SECTION.</p>
<p>DATA: name(25) TYPE c,</p>
<p>planetype LIKE saplane-planetyp,</p>
<p><strong>Instance attributes</p>
<p></strong>There exist one instance attribute for each instance of the class, thus they exist seperately for each object. Instance attributes are declared with the DATA keyword.</p>
<p><strong>Static attributes</p>
<p></strong>Static attributes exist only once for each class. The data are the same for all instances of the class, and can be used e.g. for instance counters. Static attributes are defined with the keyword CLASS-DATA.</p>
<p><strong>PRIVATE SECTION.</p>
<p></strong>CLASS-DATA: counter type i,</p>
<p>Public methods</p>
<p>Can called from outside the class</p>
<p><strong>PUBLIC SECTION.</p>
<p></strong>METHODS: set_attributes IMPORTING p_name(25) TYPE c,</p>
<p>p_planetype LIKE saplane-planetyp,</p>
<p><strong>Private methods</strong></p>
<p>Can only be called from inside the class. They are placed in the PRIVATE section of the class.</p>
<p><strong>Constructor method</p>
<p></strong>Implicitly, each class has an instance constructor method with the reserved name constructor and a static constructor method with the reserved name class_constructor.</p>
<p>The instance constructor is executed each time you create an object (instance) with the CREATE OBJECT statement, while the class constructor is executed exactly once before you first access a class.</p>
<p>The constructors are always present. However, to implement a constructor you must declare it explicitly with the METHODS or CLASS-METHODS statements. An instance constructor can have IMPORTING parameters and exceptions. You must pass all non-optional parameters when creating an object. Static constructors have no parameters.</p>
<p><strong>Static constructor</strong></p>
<p>The static constructor is always called CLASS_CONSTRUCTER, and is called autmatically before the clas is first accessed, that is before any of the following actions are executed:</p>
<p>Creating an instance using CREATE_OBJECT</p>
<p>Adressing a static attribute using -&gt;</p>
<p>Calling a ststic attribute using CALL METHOD</p>
<p>Registering a static event handler</p>
<p>Registering an evetm handler method for a static event</p>
<p>The static constructor cannot be called explicitly.</p>
<p><strong>Protected components</strong></p>
<p>When we are talking subclassing and enheritance there is one more component than Public and Private, the Protected component. Protected components can be used by the superclass and all of the subclasses. Note that Subclasses cannot access Private components.</p>
<p><strong>Polymorphism</p>
<p></strong>Polymorphism: When the same method is implemented differently in different classes. This can be done using enheritance, by redefining a method from the superclass in subclasses and implement it differently.</p>
<p><strong>Other Related Topics :</strong></p>
<p><a href="http://abapcode.blogspot.com/2007/06/object-oriented-abap-local-and-global.html">Object Oriented ABAP-Local and Global Classes</a></p>
<p><a href="http://abapcode.blogspot.com/2007/06/easy-reference-for-alv-grid-control.html">A easy Reference for ALV grid Control</a></p>
<p><a href="http://abapcode.blogspot.com/2007/06/class-vs-interface.html">Class vs. interface</a></p>
<p><a href="http://abapcode.blogspot.com/2007/06/abstract-vs-interfaces.html">Abstract Vs Interfaces</a></p>
<p><a href="http://abapcode.blogspot.com/2007/06/object-oriented-alv-using-two.html">Object Oriented ALV-Using two Containers we can display data</a></p>
<p><a href="http://abapcode.blogspot.com/2007/06/object-oriented-alv-sample-program-to.html">Object Oriented ALV-Sample program to insert Logo in ALV</a></p>
<p><a href="http://abapcode.blogspot.com/2007/05/learn-object-oriented-abap-online-and.html">Learn Object Oriented ABAP online and Download Tutorial</a></p>
<p>Read Complete Posting on <a href="http://abapcode.info">http://abapcode.info</a></p>
<div class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img style="border:0;" src="http://buttons.googlesyndication.com/fusion/add.gif" alt="Add to Google Reader or Homepage" width="104" /></a></div>
<p><a title="get ABAP Code" href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode"><img style="border:0;" alt="" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/731/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/731/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/731/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=731&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/03/09/learn-object-oriented-pogramming-oops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
		<item>
		<title>How to assign Variable type at run time?</title>
		<link>http://sapient.wordpress.com/2008/03/09/how-to-assign-variable-type-at-run-time/</link>
		<comments>http://sapient.wordpress.com/2008/03/09/how-to-assign-variable-type-at-run-time/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 07:35:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Dynamic Programming]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/03/09/how-to-assign-variable-type-at-run-time/</guid>
		<description><![CDATA[Dynamic programing can save a lot of &#8216;superfluous&#8217; coding. To assign a variable a type at runtime, use the ABAP statement ASSIGN with the option TYPE. For instance: DATA: D_TYPE, D_FIELD(35). DATA: D_TEST TYPE P. FIELD-SYMBOLS: . D_FIELD = &#8216;D_TEST&#8217;. D_TYPE = &#8216;P&#8217;. ASSIGN (D_FIELD) TO TYPE D_TYPE. Additionally you can use the option DECIMALS [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=730&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dynamic programing can save a lot of &#8216;superfluous&#8217; coding.</p>
<p>To assign a variable a type at runtime, use the ABAP statement ASSIGN with the option TYPE. For instance:</p>
<p>DATA: D_TYPE,<br />
D_FIELD(35).<br />
DATA: D_TEST TYPE P.<br />
FIELD-SYMBOLS: .<br />
D_FIELD = &#8216;D_TEST&#8217;.<br />
D_TYPE = &#8216;P&#8217;.<br />
ASSIGN (D_FIELD) TO TYPE D_TYPE.</p>
<p>Additionally you can use the option DECIMALS of the ASSIGN statement if your type is &#8216;P&#8217;. You can even change the type at runtime of previously assigned field symbol like</p>
<p>ASSIGN TO TYPE &#8216;C&#8217;.</p>
<p>One more thing for dynamic programing. With the following coding you can access every DDIC table with the key you want:</p>
<p>SELECT SINGLE * FROM (DF_TNAME) INTO S_TMP WHERE (IF_KEY).<br />
It is very powerful, isn&#8217;t it !!!<br />
[ Ingo-Willy Raddatz, posted to SAP listserver]</p>
<p><strong>Example 1: Print page &#8220;n of x pages&#8221; on reports</strong></p>
<p>The following code is just a function to loop total pages. To use from the beginning of your report, you will have to loop through your report once before display. ABAP does not provide<br />
an easy &#8220;read-ahead&#8221; method of doing this, so this is the &#8220;cludgy&#8221; way of making it work if needed.</p>
<p>FORM GET_TOTAL_PAGENO.</p>
<p>WRITE SY-PAGNO TO NUM_PAGES_C LEFT-JUSTIFIED.</p>
<p>DO SY-PAGNO TIMES.<br />
READ LINE 2 OF PAGE SY-INDEX.<br />
REPLACE &#8216;*****&#8217; WITH NUM_PAGES_C INTO SY-LISEL.<br />
MODIFY LINE 2 OF PAGE SY-INDEX.<br />
ENDDO.</p>
<p>ENDFORM. &#8221; GET_TOTAL_PAGENO</p>
<p>Read Complete Posting on <a href="http://abapcode.info">http://abapcode.info</a></p>
<p> </p>
<p class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img style="border:0;" src="http://buttons.googlesyndication.com/fusion/add.gif" alt="Add to Google Reader or Homepage" width="104" /></a></p>
<p><a title="get ABAP Code" href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode"><img style="border:0;" alt="" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/730/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/730/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/730/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=730&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/03/09/how-to-assign-variable-type-at-run-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the raise Statement in Function Module</title>
		<link>http://sapient.wordpress.com/2008/02/16/using-the-raise-statement-in-function-module/</link>
		<comments>http://sapient.wordpress.com/2008/02/16/using-the-raise-statement-in-function-module/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 16:52:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Funtion Module]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/02/16/using-the-raise-statement-in-function-module/</guid>
		<description><![CDATA[Normally, after returning from a function module, the system automatically sets the value of sy-subrc to zero. Use one of the following two statements to set sy-subrc to a non-zero value: * raise * message &#8230; raising Using the raise Statement Use the raise statement to exit the function module and set the value of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=729&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>Normally, after returning from a function module, the system automatically sets the value of sy-subrc to zero. Use one of the following two statements to set sy-subrc to a non-zero value:</div>
<p>* raise<br />
* message &#8230; raising</p>
<p><strong>Using the raise Statement<br />
</strong><br />
Use the raise statement to exit the function module and set the value of sy-subrc on return.<br />
Syntax for the raise Statement</p>
<p>The following is the syntax for the raise statement.</p>
<p>raise xname.</p>
<p>where:</p>
<p>* xname is the name of the exception to be raised.</p>
<p>The following points apply:</p>
<p>* xname can be any name that you make up. It does not have to be previously defined anywhere. It can be up to 30 characters in length. All characters are allowed except &#8221; &#8216; . , and :.<br />
* Do not enclose xname within quotes.<br />
* xname cannot be a variable.</p>
<p>When the raise statement is executed, control returns immediately to the call function statement and a value is assigned to sy-subrc based on the exceptions you have listed there. Values assigned to export parameters are not copied back to the calling program. Listings 1.7 and 1.8 and Figure 1.9 illustrate how this happens.</p>
<p align="justify">Listing 1.7 How to Set the Value of SY-SUBRC from Within a Function Module</p>
<p>1 report ztx2007.<br />
2 parameters parm_in default &#8216;A&#8217;.<br />
3 data vout(4) value &#8216;INIT&#8217;.<br />
4 call function &#8216;Z_TX_2008&#8242;<br />
5 exporting<br />
6 exname = parm_in<br />
7 importing<br />
8 pout = vout<br />
9 exceptions<br />
10 error_a = 1<br />
11 error_b = 4<br />
12 error_c = 4<br />
13 others = 99.<br />
14 write: / &#8216;sy-subrc =&#8217;, sy-subrc,<br />
15 / &#8216;vout =&#8217;, vout.</p>
<p>Listing 1.8 This Is the Function Module Called from Listing 1.7</p>
<p>1 function z_tx_2008.<br />
2 *&#8221;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
3 *&#8221;*&#8221;Local interface:<br />
4 *&#8221; IMPORTING<br />
5 *&#8221; VALUE(EXNAME)<br />
6 *&#8221; EXPORTING<br />
7 *&#8221; VALUE(POUT)<br />
8 *&#8221; EXCEPTIONS<br />
9 *&#8221; ERROR_A<br />
10 *&#8221; ERROR_B<br />
11 *&#8221; ERROR_C<br />
12 *&#8221; ERROR_X<br />
13 *&#8221;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
14 pout = &#8216;XXX&#8217;.<br />
15 case exname.<br />
16 when &#8216;A&#8217;. raise error_a.<br />
17 when &#8216;B&#8217;. raise error_b.<br />
18 when &#8216;C&#8217;. raise error_c.<br />
19 when &#8216;X&#8217;. raise error_x.<br />
20 endcase.<br />
21 endfunction.</p>
<p>The code in Listings 1.7 and 1.8 produce this output, if you specify a value of A for parm_in:</p>
<p>sy-subrc = 1<br />
vout = INIT</p>
<p>* In Listing 1.7, line 4 takes the value from parm_in and passes it to the function module z_tx_2007. Control transfers to line 1 of Listing 1.8.<br />
* In Listing 1.8, line 14 assigns a value to the pout parameter. This parameter is passed by value, so the change is only to the local definition of pout. The original has not yet been modified.<br />
* In Listing 1.8, line 15 examines the value passed via parameter exname. The value is B, so line 17-raise error_b-is executed. Control transfers to line 9 of Listing 1.7. Because the raise statement has been executed, the value of pout is not copied back to the calling program, thus the value of vout will be unchanged.<br />
* In Listing 1.7, the system scans lines 10 through 13 until it finds a match for the exception named by the just-executed raise statement. In this case, it&#8217;s looking for error_b. Line 11 matches.<br />
* On line 11, the value on the right-hand side of the equals operator is assigned to sy-subrc. Control then transfers to line 20.</p>
<p>The special name others on line 13 of Listing 1.7 will match all exceptions not explicitly named on the exceptions addition. For example, if line 7 of Listing 20.8 were executed, exception error_x would be raised. This exception is not named in Listing 1.7, so others will match and the value of sy-subrc will be set to 99. You can code any numbers you want for exception return codes.</p>
<p>If an export parameter is passed by value, after a raise its value remains unchanged in the calling program even if a value was assigned within the function module before the raise statement was executed. If the parameter was passed by reference, it will be changed in the caller (it has the Reference flag turned on in the Export/Import Parameters screen). This effect is shown in Listing 20.7. The value of pout is changed in the function module and, if a raise statement is executed, the changed value is not copied back into the calling program.</p>
<p>Read Complete Posting on <a href="http://abapcode.info/">http://abapcode.info</a></p>
<p align="justify">
<div class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img style="border:0;" src="http://buttons.googlesyndication.com/fusion/add.gif" alt="Add to Google Reader or Homepage" width="104" /></a></div>
<p><a title="get ABAP Code" href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode"><img style="border:0;" alt="" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/729/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/729/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/729/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=729&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/02/16/using-the-raise-statement-in-function-module/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
		<item>
		<title>SAP Upgrade : Read_text Function Module has been Modified</title>
		<link>http://sapient.wordpress.com/2008/01/25/sap-upgrade-read_text-function-module-has-been-modified/</link>
		<comments>http://sapient.wordpress.com/2008/01/25/sap-upgrade-read_text-function-module-has-been-modified/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 17:18:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[SAP Upgrade]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/01/25/sap-upgrade-read_text-function-module-has-been-modified/</guid>
		<description><![CDATA[Read_text Function Module has been Modified in new Version.Please Comment INLINE table in ECC6.0.It is no more use in it. Older Version ( 4.6c) CALL FUNCTION &#8216;READ_TEXT&#8217;EXPORTINGclient = sy-mandtid = thead-tdidlanguage = thead-tdsprasname = thead-tdnameobject = thead-tdobjectTABLESlines = inlineinline = XXXX &#8220;comment this one in new version , it is no more have any useEXCEPTIONSid [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=728&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Read_text Function Module has been Modified in new Version.Please Comment INLINE table in ECC6.0.It is no more use in it.</p>
<p>Older Version ( 4.6c)</p>
<p>CALL FUNCTION &#8216;READ_TEXT&#8217;<br />EXPORTING<br />client = sy-mandt<br />id = thead-tdid<br />language = thead-tdspras<br />name = thead-tdname<br />object = thead-tdobject<br />TABLES<br />lines = inline<br />inline = XXXX    &#8220;comment this one in new version , it is no more have any use<br />EXCEPTIONS<br />id = 1<br />language = 2<br />name = 3<br />not_found = 4<br />object = 5<br />reference_check = 6<br />wrong_access_to_archive = 7<br />OTHERS = 8.
<div class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img width="104" style="border:0;" alt="Add to Google Reader or Homepage" src="http://buttons.googlesyndication.com/fusion/add.gif"></a></p>
<p><a href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode" title="get ABAP Code"><img alt="" style="border:0;"></a></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/728/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/728/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/728/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=728&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/01/25/sap-upgrade-read_text-function-module-has-been-modified/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
		<item>
		<title>SAP Function modules Related to Files</title>
		<link>http://sapient.wordpress.com/2008/01/06/sap-function-modules-related-to-files/</link>
		<comments>http://sapient.wordpress.com/2008/01/06/sap-function-modules-related-to-files/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 05:06:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Standard Function Module]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/01/06/sap-function-modules-related-to-files/</guid>
		<description><![CDATA[WS_UPLOAD &#8211; File transfer from presentation server file to internal table WS_DOWNLOAD &#8211; File Transfer From Internal Table to Presentation Server File WS_DOWNLOAD &#8211; Save Internal Table as File on the Presentation Server WS_FILE_DELETE &#8211; Delete File at the Frontend WS_FILENAME_GET &#8211; Call File Selector FILENAME_GET &#8211; popup to get a filename from a user, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=727&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WS_UPLOAD &#8211; File transfer from presentation server file to internal table</p>
<p>WS_DOWNLOAD &#8211; File Transfer From Internal Table to Presentation Server File</p>
<p>WS_DOWNLOAD &#8211; Save Internal Table as File on the Presentation Server</p>
<p>WS_FILE_DELETE &#8211; Delete File at the Frontend</p>
<p>WS_FILENAME_GET &#8211; Call File Selector</p>
<p>FILENAME_GET &#8211; popup to get a filename from a user, returns blank filename if user selects cancel</p>
<p>LIST_DOWNLOAD &#8211; Download of ABAP list (Report) to local file</p>
<p>LIST_TO_ASCI &#8211; Converts the specified list (LIST_INDEX) or the provided list (LISTOBJECT) to ASCII.</p>
<p>RZL_READ_FILE &#8211; Read a file from the presentation server if no server name is given, or read file from remote server. Very useful to avoid authority checks that occur doing an OPEN DATASET. This function using a SAP C program to read the data.</p>
<p>RZL_WRITE_FILE_LOCAL &#8211; Saves table to the presentation server (not PC). Does not use OPEN DATASET, so it does not suffer from authority checks!
<div class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img width="104" style="border:0;" alt="Add to Google Reader or Homepage" src="http://buttons.googlesyndication.com/fusion/add.gif"></a></p>
<p><a href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode" title="get ABAP Code"><img alt="" style="border:0;"></a></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/727/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/727/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/727/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=727&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/01/06/sap-function-modules-related-to-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
		<item>
		<title>SAP Function Module for Date and Time</title>
		<link>http://sapient.wordpress.com/2008/01/03/sap-function-module-for-date-and-time/</link>
		<comments>http://sapient.wordpress.com/2008/01/03/sap-function-module-for-date-and-time/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 15:16:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Standard Function Module]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/01/03/sap-function-module-for-date-and-time/</guid>
		<description><![CDATA[Get a date DATE_GET_WEEK Returns week for a date WEEK_GET_FIRST_DAY Returns first day for a week RP_LAST_DAY_OF_MONTHS Returns last day of month FIRST_DAY_IN_PERIOD_GET Get first day of a period LAST_DAY_IN_PERIOD_GET Get last day of a period RP_LAST_DAY_OF_MONTHS Determine last day of month Date calculations DATE_COMPUTE_DAY Returns a number indicating what day of the week the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=726&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Get a date </strong></p>
<p>DATE_GET_WEEK Returns week for a date</p>
<p>WEEK_GET_FIRST_DAY Returns first day for a week</p>
<p>RP_LAST_DAY_OF_MONTHS Returns last day of month</p>
<p>FIRST_DAY_IN_PERIOD_GET Get first day of a period</p>
<p>LAST_DAY_IN_PERIOD_GET Get last day of a period</p>
<p>RP_LAST_DAY_OF_MONTHS Determine last day of month</p>
<p><strong>Date calculations</strong></p>
<p>DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.<br />DATE_IN_FUTURE Calculate a date N days in the future.</p>
<p>RP_CALC_DATE_IN_INTERVAL Add days/months to a date</p>
<p>RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date</p>
<p>SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates<br />MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the &#8216;months&#8217; parameter.</p>
<p>DATE_CREATE Calculates a date from the input parameters:</p>
<p>Example: DATE_CREATE</p>
<p>CALL FUNCTION &#8216;DATE_CREATE&#8217;<br />EXPORTING<br />anzahl_jahre = 1<br />anzahl_monate = 2<br />anzahl_tage = 3<br />datum_ein = &#8217;20010101&#8242;<br />IMPORTING<br />datum_aus = l_new_date.<br />Result:<br />l_new_date = 20020304</p>
<p>Example: MONTH_PLUS_DETERMINE</p>
<p>data: new_date type d.</p>
<p>CALL FUNCTION &#8216;MONTH_PLUS_DETERMINE&#8217;<br />EXPORTING<br />months = -5 &#8221; Negative to subtract from old date, positive to add</p>
<p>olddate = sy-datum<br />IMPORTING<br />NEWDATE = new_date.</p>
<p>write: / new_date.</p>
<p><strong>Holidays</strong></p>
<p>HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &amp;/ Holiday Calendar.</p>
<p>HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the<br />date is a holiday by checking the parameter HOLIDAY_FOUND.<br />Example: HOLIDAY_CHECK_AND_GET_INFO</p>
<p>data: ld_date like scal-datum default sy-datum,<br />lc_holiday_cal_id like scal-hcalid default &#8216;CA&#8217;,<br />ltab_holiday_attributes like thol occurs 0 with header line,<br />lc_holiday_found like scal-indicator.</p>
<p>CALL FUNCTION &#8216;HOLIDAY_CHECK_AND_GET_INFO&#8217;<br />EXPORTING<br />date = ld_date<br />holiday_calendar_id = lc_holiday_cal_id<br />WITH_HOLIDAY_ATTRIBUTES = &#8216;X&#8217;</p>
<p>IMPORTING<br />HOLIDAY_FOUND = lc_holiday_found<br />tables<br />holiday_attributes = ltab_holiday_attributes<br />EXCEPTIONS<br />CALENDAR_BUFFER_NOT_LOADABLE = 1<br />DATE_AFTER_RANGE = 2<br />DATE_BEFORE_RANGE = 3<br />DATE_INVALID = 4<br />HOLIDAY_CALENDAR_ID_MISSING = 5<br />HOLIDAY_CALENDAR_NOT_FOUND = 6<br />OTHERS = 7.</p>
<p>if sy-subrc = 0 and</p>
<p>lc_holiday_found = &#8216;X&#8217;.<br />write: / ld_date, &#8216;is a holiday&#8217;.<br />else.<br />write: / ld_date, &#8216;is not a holiday, or there was an error calling the function&#8217;.<br />endif.<br />Checking dates</p>
<p>DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.</p>
<p><strong>Converting dates<br /></strong></p>
<p>DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. &#8217;28.03.2000&#8242; -&gt; 20000328 Can also be used to check if a date is valid ( sy-subrc  0 )</p>
<p>Function to return literal for month</p>
<p>he table you want to use is T247. You can also use the function MONTH_NAMES_GET. [ Monique Goodrich ,posted to SAP listserver]</p>
<p>You can also try table T015M. It has the month number in it&#8217;s key.<br />[Walter Barr , posted to SAP listserver]</p>
<p><strong>Formatting</strong></p>
<p>DATUMSAUFBEREITUNG Format date as the user settings</p>
<p><strong>Other<br /></strong>MONTH_NAMES_GET It returns all the month and names in repective language.
<div class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img width="104" style="border:0;" alt="Add to Google Reader or Homepage" src="http://buttons.googlesyndication.com/fusion/add.gif"></a></p>
<p><a href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode" title="get ABAP Code"><img alt="" style="border:0;"></a></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/726/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/726/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/726/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=726&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/01/03/sap-function-module-for-date-and-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
		<item>
		<title>Function modules Related to Amount and Currency</title>
		<link>http://sapient.wordpress.com/2008/01/02/function-modules-related-to-amount-and-currency/</link>
		<comments>http://sapient.wordpress.com/2008/01/02/function-modules-related-to-amount-and-currency/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 17:18:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[Standard Function Module]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/01/02/function-modules-related-to-amount-and-currency/</guid>
		<description><![CDATA[CURRENCY_AMOUNT_SAP_TO_IDOC &#8211; Convert currency to IDOC format CONVERT_TO_LOCAL_CURRENCY &#8211; Conversion of currency CLOI_PUT_SIGN_IN_FRONT Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like allcharacter fields), not right justifed as numbers normally are. CONVERT_TO_FOREIGN_CURRENCY Convert local currency [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=725&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>CURRENCY_AMOUNT_SAP_TO_IDOC</strong> &#8211; Convert currency to IDOC format</p>
<p><strong>CONVERT_TO_LOCAL_CURRENCY</strong> &#8211; Conversion of currency</p>
<p><strong>CLOI_PUT_SIGN_IN_FRONT</strong> Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all<br />character fields), not right justifed as numbers normally are.</p>
<p><strong>CONVERT_TO_FOREIGN_CURRENCY</strong> Convert local currency to foreign currency.</p>
<p><strong>CONVERT_TO_LOCAL_CURRENCY</strong> Convert from foreign currency to local currency</p>
<p>Example 1: Convert amount to/from string</p>
<p>Amount to string:</p>
<p>CALL FUNCTION &#8216;HRCM_AMOUNT_TO_STRING_CONVERT&#8217;<br />EXPORTING<br />betrg = 3000<br />WAERS = &#8216;DKK&#8217;<br />* NEW_DECIMAL_SEPARATOR =<br />* NEW_THOUSANDS_SEPARATOR =<br />IMPORTING<br />STRING = slam<br />.</p>
<p>String to amount:</p>
<p>CALL FUNCTION &#8216;HRCM_STRING_TO_AMOUNT_CONVERT&#8217;<br />EXPORTING<br />string = slam2<br />DECIMAL_SEPARATOR = &#8216;.&#8217;<br />* THOUSANDS_SEPARATOR =</p>
<p>WAERS = &#8216;HUF&#8217;<br />IMPORTING<br />BETRG = b2<br />* EXCEPTIONS<br />* CONVERT_ERROR = 1<br />* OTHERS = 2
<div class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img width="104" style="border:0;" alt="Add to Google Reader or Homepage" src="http://buttons.googlesyndication.com/fusion/add.gif"></a></p>
<p><a href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode" title="get ABAP Code"><img alt="" style="border:0;"></a></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/725/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/725/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/725/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=725&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/01/02/function-modules-related-to-amount-and-currency/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
		<item>
		<title>ABAP Interview Questions -SQL , Tables , Basic</title>
		<link>http://sapient.wordpress.com/2008/01/01/abap-interview-questions-sql-tables-basic/</link>
		<comments>http://sapient.wordpress.com/2008/01/01/abap-interview-questions-sql-tables-basic/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 17:03:00 +0000</pubDate>
		<dc:creator>amitkhari</dc:creator>
				<category><![CDATA[ABAP Interview Question]]></category>

		<guid isPermaLink="false">http://sapient.wordpress.com/2008/01/01/abap-interview-questions-sql-tables-basic/</guid>
		<description><![CDATA[Basic Question : (1)Choose the menu path Tools-&#62;Administration, Monitoring-&#62;System monitoring-&#62;User overview. What is the transaction code for this transaction?(2) What is the transaction code for the R/3 main menu? (The main menu is the first menu displayed after logon.)(3)What is the transaction code for the menu path Tools-&#62;Development Workbench?(4)If there are three R/3 systems in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=724&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Basic Question :</p>
<p>(1)Choose the menu path Tools-&gt;Administration, Monitoring-&gt;System monitoring-&gt;User overview. What is the transaction code for this transaction?<br />(2) What is the transaction code for the R/3 main menu? (The main menu is the first menu displayed after logon.)<br />(3)What is the transaction code for the menu path Tools-&gt;Development Workbench?<br />(4)If there are three R/3 systems in your current system landscape, how many databases are there?<br />(5)If an R/3 system has two application servers, how many instances does it have?<br />(6)What is Open SQL?<br />(7)What advantages does Open SQL offer over native SQL?<br />(8)Which part of the work process is used to implement Open SQL?<br />(9)When is a roll area allocated, when is it de-allocated, and what does it contain?<br />(10)When is a user context allocated, when is it de-allocated, and what does it contain?<br />(11)When does the roll-out occur, and why does it occur?<br />(12)What two things does the tables statement do?<br />(13)To what does the term default table work area refer?<br />(14)If the select statement is missing an into clause, where do the rows go?<br />(15)If a write statement does not contain a slash, is the output written to the same line as the output for the previous write statement or is it written to a new line?<br />(16)What is the name of the system variable that indicates whether any rows were found by the select statement?<br />(17)What is the name of the system variable that indicates how many rows were found by the select statement?<br />(18)What is the purpose of the domain?<br />(19)What does the data element contain?<br />(20)To what does the term application data refer?<br />(21)For fields of type DEC, is the decimal point stored with the value of the field?<br />(22)What are the transaction codes of the four data browsers. Which one is most commonly used, and which one cannot be used to update data?<br />(23)What is the difference between a transparent table and a pooled or cluster table?</p>
<p><strong>To Get ABAP Interview Question Pls Click here</strong></p>
<p><a href="http://abapinterveiw.blogspot.com/">ABAP INTERVIEW QUESTIONS</a>
<div class="blogger-post-footer"><a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/abapcode"><img width="104" style="border:0;" alt="Add to Google Reader or Homepage" src="http://buttons.googlesyndication.com/fusion/add.gif"></a></p>
<p><a href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/abapcode" title="get ABAP Code"><img alt="" style="border:0;"></a></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sapient.wordpress.com/724/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sapient.wordpress.com/724/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sapient.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sapient.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sapient.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sapient.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sapient.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sapient.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sapient.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sapient.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sapient.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sapient.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sapient.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sapient.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sapient.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sapient.wordpress.com/724/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sapient.wordpress.com&amp;blog=390328&amp;post=724&amp;subd=sapient&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sapient.wordpress.com/2008/01/01/abap-interview-questions-sql-tables-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af144ef75687f37b51a22a4f85a7bc3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amitkhari</media:title>
		</media:content>

		<media:content url="http://buttons.googlesyndication.com/fusion/add.gif" medium="image">
			<media:title type="html">Add to Google Reader or Homepage</media:title>
		</media:content>
	</item>
	</channel>
</rss>
