<?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; code</title>
	<atom:link href="http://www.blog.techsplice.com/archives/tag/code/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>SAP tp: return codes</title>
		<link>http://www.blog.techsplice.com/archives/322</link>
		<comments>http://www.blog.techsplice.com/archives/322#comments</comments>
		<pubDate>Thu, 08 Apr 2010 05:09:36 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[Everyday stuff]]></category>
		<category><![CDATA[abap]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[return]]></category>
		<category><![CDATA[sap]]></category>
		<category><![CDATA[transports]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=322</guid>
		<description><![CDATA[For each step that takes place within the tp command there could be 8 different possible return codes [0, 4, 6, 8, 12, 13, 14, 16]. The meaning for each of those codes is as follows: Transport imported successfully: 0: Transport successful 4: Warning occurred Transport did not import successfully: 6: Post-processing is required 8: [...]]]></description>
			<content:encoded><![CDATA[<p>For each step that takes place within the tp command there could be 8 different possible return codes [0, 4, 6, 8, 12, 13, 14, 16]. The meaning for each of those codes is as follows:</p>
<p><strong>Transport imported successfully:</strong></p>
<p style="padding-left: 30px;">0: Transport successful</p>
<p>4: Warning occurred</p>
<p><strong>Transport did not import successfully:</strong></p>
<p style="padding-left: 30px;">
6: Post-processing is required</p>
<p>8: Transport carried out with an error [individual object could not be transported successfully]</p>
<p style="padding-left: 60px;">ex: objects could not be overwritten<strong></strong></p>
<p><strong>Transport termination:</strong></p>
<p style="padding-left: 30px;">12 and greater: transport was terminated</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/322/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAP: debugging in pop-up windows</title>
		<link>http://www.blog.techsplice.com/archives/298</link>
		<comments>http://www.blog.techsplice.com/archives/298#comments</comments>
		<pubDate>Sat, 22 Aug 2009 01:38:17 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[SAP/ABAP]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[sap]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=298</guid>
		<description><![CDATA[Debugging in SAP is something that I do almost on a daily basis, most of the time I get by just by typing the /h command in the transaction window and executing the program but this is not always possible. The scenario that I speak of occurs when you are debugging a pop-up window. When [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span><span lang="EN-US">Debugging in SAP is something that I do almost on a daily basis, most of the time I get by just by typing the <strong>/h</strong> command in the transaction window and executing the program but this is not always possible.</span></span></p>
<p class="MsoNormal"><span><span lang="EN-US">The scenario that I speak of occurs when you are debugging a pop-up window.<span> </span>When you are working with a pop-up window there is no convenient transaction window where you can turn on the debugger.<span> </span>So what do you do?</span></span></p>
<p class="MsoNormal"><span><span lang="EN-US">Simple.</span></span></p>
<p class="MsoNormal"><span><span lang="EN-US">Create a new file; lets call it <em>debugger.txt</em> and populate the contents of the file with the following lines:</span></span></p>
<p class="MsoNormal" style="padding-left: 30px;"><span><span lang="EN-US"><span> </span><em>[Function]</em></span></span></p>
<p class="MsoNormal" style="padding-left: 30px;"><span><em><span lang="EN-US"><span> </span>Title=Debugger Session</span></em></span></p>
<p class="MsoNormal" style="padding-left: 30px;"><span><em><span lang="EN-US"><span> </span>Command=/h</span></em></span></p>
<p class="MsoNormal" style="padding-left: 30px;"><span><em><span lang="EN-US"><span> </span>Type=SystemCommand</span></em></span></p>
<p class="MsoNormal"><span><span lang="EN-US"> </span></span></p>
<p class="MsoNormal"><span><span lang="EN-US">Save the file and leave it on your desktop.</span></span></p>
<p class="MsoNormal"><span><span lang="EN-US">Now when ever you get to a pop-up window that you want to debug simply drag the <em>debugger.txt</em> file in to the window and you will activate the debugging session.</span></span></p>
<p class="MsoNormal"><span><span lang="EN-US">Happy hunting!</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/298/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAP &#8211; ABAP &#8211; gui &#8211; hiding selection components</title>
		<link>http://www.blog.techsplice.com/archives/287</link>
		<comments>http://www.blog.techsplice.com/archives/287#comments</comments>
		<pubDate>Tue, 04 Aug 2009 20:52:01 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[SAP/ABAP]]></category>
		<category><![CDATA[abap]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[sap]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=287</guid>
		<description><![CDATA[If you want to make your reports more functional you can start controling the properties of different components based on selections that are performed by the user. For instance in this post I&#8217;ll show you a quick example of how to hide a on-screen component based on user selection. PARAMETER: cb_a AS CHECKBOX DEFAULT 'X' [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to make your reports more functional you can start controling the properties of different components based on selections that are performed by the user.</p>
<p>For instance in this post I&#8217;ll show you a quick example of how to hide a on-screen component based on user selection.</p>
<pre class="prettyprint">PARAMETER:  cb_a AS CHECKBOX DEFAULT 'X'
<strong>            </strong>USER-COMMAND batch MODIF ID ida,
            cb_bAS CHECKBOX DEFAULT 'X'
            USER-COMMAND batch MODIF ID idb.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'IDA' AND cb_b NE 'X'.
<strong>      </strong>screen-<strong>active </strong>= 0.
      MODIFY SCREEN.
    ENDIF.

    IF screen-group1 = 'IDB' AND cb_a NE 'X'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.</pre>
<p>This example will hide each of the check boxes depending on the selection of the other check-box.  If both are selected then both are visible, if one is un-checked then the other is hidden.</p>
<p>The active attribute controls the visibility of a particular screen component.  Explicitly: 0 = hidden, 1 = visible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/287/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>SAPGUI_PROGRESS_INDICATOR</title>
		<link>http://www.blog.techsplice.com/archives/193</link>
		<comments>http://www.blog.techsplice.com/archives/193#comments</comments>
		<pubDate>Tue, 17 Mar 2009 16:36:24 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[Everyday stuff]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[sap]]></category>
		<category><![CDATA[SAP/ABAP]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=193</guid>
		<description><![CDATA[A usefull little function that will allow you to display a status update on the bottom left corner of the screen when running your reports. call function 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 0 text = STATUS_TEXT. Note: anything lower then 0 will be rounded up to 0 and anything greater then 100 will be rounded down [...]]]></description>
			<content:encoded><![CDATA[<p>A usefull little function that will allow you to display a status update on the bottom left corner of the screen when running your reports.</p>
<pre class="”prettyprint”">call function 'SAPGUI_PROGRESS_INDICATOR'
       EXPORTING
            percentage = 0
            text = STATUS_TEXT.</pre>
<p>Note: anything lower then 0 will be rounded up to 0 and anything greater then 100 will be rounded down to 100.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/193/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cyrilic integration of Flex and PHP</title>
		<link>http://www.blog.techsplice.com/archives/20</link>
		<comments>http://www.blog.techsplice.com/archives/20#comments</comments>
		<pubDate>Mon, 10 Dec 2007 02:57:23 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=20</guid>
		<description><![CDATA[A recent project involved integration between a PHP content management tool like Joomla and Adobe Flex 2. I wrote a PHP script that parsed a MySQL database creating an XML structure that was then picked up by a HTTPService in a Flex application. The information in the database was stored in Cyrillic format, hence when [...]]]></description>
			<content:encoded><![CDATA[<p>A recent project involved integration between a <a href="http://uk.php.net/">PHP</a> content management tool like <a href="www.joomla.com">Joomla</a> and Adobe Flex 2. I wrote a <a href="http://uk.php.net/">PHP</a> script that parsed a <a href="http://www.mysql.com/">MySQL</a> database creating an <a href="http://www.xml.com/">XML</a> structure that was then picked up by a <a href="http://livedocs.adobe.com/flex/2/langref/mx/rpc/http/HTTPService.html">HTTPService</a> in a <a href="www.adobe.com/products/flex">Flex</a> application.</p>
<p>The information in the database was stored in <a href="http://en.wikipedia.org/wiki/Cyrillic_alphabet">Cyrillic</a> format, hence when ever I was loading the data in to the <a href="http://en.wikipedia.org/wiki/SWF">SWF</a> compiled file the end result was a collection of garbage data.  Setting the actuall HTML to <a href="http://en.wikipedia.org/wiki/Windows-1251">Windows-1251</a> encoding did not help the situation.</p>
<p>My following approach was to locate a native functionality within the <a href="www.adobe.com/products/flex">Flex</a> architecture to mediate the situation.  Unforchunately I wasn&#8217;t successful in aquiring sattisfying examples to solve the problem.  For that matter it became sadly obvious that I haven&#8217;t seen any flash pages using non/english alphabet [either I haven't been checking international sites that much or Adobe <a href="www.adobe.com/products/flex">Flex</a> isn't widely used overseas] .</p>
<p>My third approach was to look at the actual php code that was generating the <a href="http://www.xml.com/">XML</a> structure.  I&#8217;ve discovered a useful function <a href="http://php.net/mb_convert_encoding">mb_convert_encoding</a> that eventually solved my problems.  Using a simple snippet of code:</p>
<pre class="”prettyprint”">mb_convert_encoding($string_to_convert,'UTF-8','Windows-1251');</pre>
<p>I was able to convert the data from <a href="http://en.wikipedia.org/wiki/UTF-8">UTF-8</a> in to <a href="http://en.wikipedia.org/wiki/Windows-1251">Windows-1251</a> which allowed me to display the desired <a href="http://en.wikipedia.org/wiki/Cyrillic_alphabet">Cyrillic</a> characters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/20/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

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

