<?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>Max Titov IV @ TechSplice &#187; function</title>
	<atom:link href="http://www.blog.techsplice.com/archives/tag/function/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blog.techsplice.com</link>
	<description>The most beautiful music of all is the music of what happens.</description>
	<lastBuildDate>Tue, 20 Dec 2011 18:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ABAP: check if a function module exists programmatically</title>
		<link>http://www.blog.techsplice.com/archives/329</link>
		<comments>http://www.blog.techsplice.com/archives/329#comments</comments>
		<pubDate>Tue, 04 May 2010 07:27:07 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[SAP/ABAP]]></category>
		<category><![CDATA[abap]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=329</guid>
		<description><![CDATA[If you need to check if a function module within your program try running the following function: RH_FUNCTION_EXIST.]]></description>
			<content:encoded><![CDATA[<p>If you need to check if a function module within your program try running the following function: RH_FUNCTION_EXIST.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/329/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABAP cancelling an SD Billing Document</title>
		<link>http://www.blog.techsplice.com/archives/228</link>
		<comments>http://www.blog.techsplice.com/archives/228#comments</comments>
		<pubDate>Thu, 23 Apr 2009 17:49:15 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[SAP/ABAP]]></category>
		<category><![CDATA[cancellation]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[invoice]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=228</guid>
		<description><![CDATA[If you have access to a billing document number try executing the following function: DATA: l_rtrn TYPE bapireturn1 OCCURS 0. DATA: l_succ TYPE bapivbrksuccess OCCURS 0. CALL FUNCTION 'BAPI_BILLINGDOC_CANCEL1' EXPORTING billingdocument = * testrun = * no_commit = billingdate = sy-datum TABLES return = l_rtrn success = l_succ. This should create a cancellation document.]]></description>
			<content:encoded><![CDATA[<p>If you have access to a billing document number try executing the following function:</p>
<pre class="prettyprint">DATA: l_rtrn TYPE bapireturn1 OCCURS 0.
DATA: l_succ TYPE bapivbrksuccess OCCURS 0.

CALL FUNCTION 'BAPI_BILLINGDOC_CANCEL1'
              EXPORTING
                billingdocument       =
*               testrun               =
*               no_commit             =
                billingdate           = sy-datum
              TABLES
                return                = l_rtrn
                success               = l_succ.</pre>
<p>This should create a cancellation document.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/228/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABAP: execute OS level command</title>
		<link>http://www.blog.techsplice.com/archives/209</link>
		<comments>http://www.blog.techsplice.com/archives/209#comments</comments>
		<pubDate>Wed, 25 Mar 2009 16:13:24 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[SAP/ABAP]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[sap]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=209</guid>
		<description><![CDATA[There are many things that one can do to execute a command in an Operating System from an ABAP report.  I&#8217;ll explain one method that one can take to accomplish this. Using transactions SM49 and SM69 set up and test a new OS command that you wish to execute.  For the purposes of this post [...]]]></description>
			<content:encoded><![CDATA[<p>There are many things that one can do to execute a command in an Operating System from an ABAP report.  I&#8217;ll explain one method that one can take to accomplish this.</p>
<ol>
<li>Using transactions SM49 and SM69 set up and test a new OS command that you wish to execute.  For the purposes of this post I&#8217;ve set up an executable command ZSAPCAR32.</li>
<li>When I was setting up the new command I&#8217;ve selected the option to add additional parameters to the command.</li>
<li>Once tested and satisfied you can add a new function module [SXPG_COMMAND_EXECUTE] to your report that will call preset executable command.</li>
</ol>
<pre class="prettyprint">data: g_rlog                TYPE btcxpm OCCURS 0.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
       EXPORTING
            commandname                   = 'ZSAPCAR32'
            additional_parameters         = &lt;additional parameters&gt;
            operatingsystem               = &lt;system you specified in SM69&gt;
       TABLES
            exec_protocol                 = g_rlog
       EXCEPTIONS
            no_permission                 = 1
            command_not_found             = 2
            parameters_too_long           = 3
            security_risk                 = 4
            wrong_check_call_interface    = 5
            program_start_error           = 6
            program_termination_error     = 7
            x_error                       = 8
            parameter_expected            = 9
            too_many_parameters           = 10
            illegal_command               = 11
            wrong_asynchronous_parameters = 12
            cant_enq_tbtco_entry          = 13
            jobcount_generation_error     = 14
            OTHERS                        = 15.

if sy-subrc eq 0.
    LOOP AT g_rlog INTO g_warlog.
*     display command output
      write g_warlog.
    ENDLOOP.
endif.</pre>
<p>The above code will execute your OS command and display the results.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/209/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ABAP: load file using pop-up window</title>
		<link>http://www.blog.techsplice.com/archives/205</link>
		<comments>http://www.blog.techsplice.com/archives/205#comments</comments>
		<pubDate>Wed, 25 Mar 2009 14:00:42 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[SAP/ABAP]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[sap]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=205</guid>
		<description><![CDATA[When writing a program the simplest way to load a file from your client PC in to the server SAP syste is through a use of a regular text box.  But if you want to get a little fancier try using the following function: data: l_select TYPE sapb-sappfad. CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = l_select [...]]]></description>
			<content:encoded><![CDATA[<p>When writing a program the simplest way to load a file from your client PC in to the server SAP syste is through a use of a regular text box.  But if you want to get a little fancier try using the following function:</p>
<pre class="prettyprint">data: l_select TYPE sapb-sappfad.

CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
            def_filename     = l_select
            def_path         = ' '
            mask             = ',*.*,*.*.'
            mode             = 'O'
            title            = 'Select filename to OPEN'(f05)
       IMPORTING
            filename         = l_select
       EXCEPTIONS
            selection_cancel = 1
            selection_error  = 2
            OTHERS           = 3.</pre>
<p>This function will open up a pop-up window [standard to windows] allowing the user to select a file somewhere on their local comptuer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/205/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.905 seconds -->

