
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: SAPRfc &#8211; stock/requirements list in browser</title>
	<atom:link href="http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/</link>
	<description>The ramblings of a frog in Oz</description>
	<lastBuildDate>Sat, 10 Jul 2010 22:10:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jacob</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-28998</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Fri, 19 Jun 2009 11:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-28998</guid>
		<description>Hi Could you please send me the code for the Stock Requirements list - php code.

Thanks in Advance.
Rgs
Jacob</description>
		<content:encoded><![CDATA[<p>Hi Could you please send me the code for the Stock Requirements list &#8211; php code.</p>
<p>Thanks in Advance.<br />
Rgs<br />
Jacob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Minaxi</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-28108</link>
		<dc:creator>Minaxi</dc:creator>
		<pubDate>Wed, 31 Oct 2007 06:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-28108</guid>
		<description>Dear Sir,

I am trying to develop leave management progrom.I want the data of employee but prog. doen&#039;t display. my code is as below. Please guide me where I am wrong.

&quot;&quot; // application server
,&quot;SYSNR&quot;=&gt;&quot;00&quot; // system number
,&quot;CLIENT&quot;=&gt;&quot;900&quot; // client
,&quot;USER&quot;=&gt;&quot;&quot; // user
,&quot;PASSWD&quot;=&gt;&quot;&quot; // password
,&quot;show_errors&quot;=&gt;false // let class printout errors
,&quot;debug&quot;=&gt;true)) ; // detailed debugging information
// saprfc-class-library	
   $stno = $pernr;
   $rfc = saprfc_open ($login);
   if (! $rfc )
   {
       echo &quot;RFC connection failed with error:&quot;.saprfc_error();
       exit;
   }
   $fce = saprfc_function_discover($rfc, &quot;BAPI_EMPLOYEE_CHECKEXISTENCE&quot;);
   if (! $fce ) {
       echo &quot;Discovering interface of function module RFC_READ_REPORT failed&quot;;
       exit;
   }

   saprfc_import ($fce,&quot;NUMBER&quot;,$pernr);

   $rc = saprfc_call_and_receive ($fce);
   if ($rfc_rc != SAPRFC_OK)
   {
       if ($rfc == SAPRFC_EXCEPTION )
           echo (&quot;Exception raised: &quot;.saprfc_exception($fce));
       else
           echo (&quot;Call error: &quot;.saprfc_error($fce));
       exit;
   }
   
   $TRETURN = saprfc_export ($fce,&quot;RETURN&quot;);

   IF ($TRETURN  &quot;&quot;) {
  	echo $TRETURN;
   }else{
    $rfcfunction = &quot;BAPI_EMPLOYEE_GETDATA&quot;;
    $resultstable = &quot;ORG_ASSIGNMENT&quot;;
    $fce = saprfc_function_discover($rfc,$rfcfunction);
    if (!$fce) {
        echo &quot;failed to discover rfc function&quot;.saprfc_error($rfc);
        exit(1);
    }
    $x = saprfc_import($fce,&quot;EMPLOYEE_ID&quot;,$pernr);
         
      saprfc_table_init($fce,$resultstable);
      $rfcresults =saprfc_call_and_receive($fce);
      $results = array();
      $numrows =saprfc_table_rows($fce,$resultstable);
     
     echo $numrows;
     echo &quot;&quot;;
     for ( $i=1; $i$i$v2&quot;;
	}
    }
}
   saprfc_function_free($fce);
   saprfc_close($rfc);

}else{

     echo &quot;&quot;;
     
     echo &quot;&quot;;
     echo &quot;&lt;strong&gt;ERP Staff No.&lt;/strong&gt;
                    &quot;;
         
     echo &quot;&quot;;
     echo &quot;&quot;;
   }
?&gt; 


Thanks 

Minaxi</description>
		<content:encoded><![CDATA[<p>Dear Sir,</p>
<p>I am trying to develop leave management progrom.I want the data of employee but prog. doen&#8217;t display. my code is as below. Please guide me where I am wrong.</p>
<p>&#8220;&#8221; // application server<br />
,&#8221;SYSNR&#8221;=&gt;&#8221;00&#8243; // system number<br />
,&#8221;CLIENT&#8221;=&gt;&#8221;900&#8243; // client<br />
,&#8221;USER&#8221;=&gt;&#8221;" // user<br />
,&#8221;PASSWD&#8221;=&gt;&#8221;" // password<br />
,&#8221;show_errors&#8221;=&gt;false // let class printout errors<br />
,&#8221;debug&#8221;=&gt;true)) ; // detailed debugging information<br />
// saprfc-class-library<br />
   $stno = $pernr;<br />
   $rfc = saprfc_open ($login);<br />
   if (! $rfc )<br />
   {<br />
       echo &#8220;RFC connection failed with error:&#8221;.saprfc_error();<br />
       exit;<br />
   }<br />
   $fce = saprfc_function_discover($rfc, &#8220;BAPI_EMPLOYEE_CHECKEXISTENCE&#8221;);<br />
   if (! $fce ) {<br />
       echo &#8220;Discovering interface of function module RFC_READ_REPORT failed&#8221;;<br />
       exit;<br />
   }</p>
<p>   saprfc_import ($fce,&#8221;NUMBER&#8221;,$pernr);</p>
<p>   $rc = saprfc_call_and_receive ($fce);<br />
   if ($rfc_rc != SAPRFC_OK)<br />
   {<br />
       if ($rfc == SAPRFC_EXCEPTION )<br />
           echo (&#8220;Exception raised: &#8220;.saprfc_exception($fce));<br />
       else<br />
           echo (&#8220;Call error: &#8220;.saprfc_error($fce));<br />
       exit;<br />
   }</p>
<p>   $TRETURN = saprfc_export ($fce,&#8221;RETURN&#8221;);</p>
<p>   IF ($TRETURN  &#8220;&#8221;) {<br />
  	echo $TRETURN;<br />
   }else{<br />
    $rfcfunction = &#8220;BAPI_EMPLOYEE_GETDATA&#8221;;<br />
    $resultstable = &#8220;ORG_ASSIGNMENT&#8221;;<br />
    $fce = saprfc_function_discover($rfc,$rfcfunction);<br />
    if (!$fce) {<br />
        echo &#8220;failed to discover rfc function&#8221;.saprfc_error($rfc);<br />
        exit(1);<br />
    }<br />
    $x = saprfc_import($fce,&#8221;EMPLOYEE_ID&#8221;,$pernr);</p>
<p>      saprfc_table_init($fce,$resultstable);<br />
      $rfcresults =saprfc_call_and_receive($fce);<br />
      $results = array();<br />
      $numrows =saprfc_table_rows($fce,$resultstable);</p>
<p>     echo $numrows;<br />
     echo &#8220;&#8221;;<br />
     for ( $i=1; $i$i$v2&#8243;;<br />
	}<br />
    }<br />
}<br />
   saprfc_function_free($fce);<br />
   saprfc_close($rfc);</p>
<p>}else{</p>
<p>     echo &#8220;&#8221;;</p>
<p>     echo &#8220;&#8221;;<br />
     echo &#8220;<strong>ERP Staff No.</strong><br />
                    &#8220;;</p>
<p>     echo &#8220;&#8221;;<br />
     echo &#8220;&#8221;;<br />
   }<br />
?&gt; </p>
<p>Thanks </p>
<p>Minaxi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renet@web</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-28107</link>
		<dc:creator>renet@web</dc:creator>
		<pubDate>Wed, 31 Oct 2007 05:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-28107</guid>
		<description>Minaxi, the code is no longer available.</description>
		<content:encoded><![CDATA[<p>Minaxi, the code is no longer available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Minaxi</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-28106</link>
		<dc:creator>Minaxi</dc:creator>
		<pubDate>Wed, 31 Oct 2007 05:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-28106</guid>
		<description>Dear sir,

I am interested with the code you have preview in PHP on about using transaction code.I can have more information and the code of this. Now a day I am developing Leave management in PHP.

thanks

minaxi</description>
		<content:encoded><![CDATA[<p>Dear sir,</p>
<p>I am interested with the code you have preview in PHP on about using transaction code.I can have more information and the code of this. Now a day I am developing Leave management in PHP.</p>
<p>thanks</p>
<p>minaxi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Re-writing SAP with PHP (part 1) at renet@web</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-384</link>
		<dc:creator>Re-writing SAP with PHP (part 1) at renet@web</dc:creator>
		<pubDate>Sat, 13 May 2006 07:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-384</guid>
		<description>[...] Don&#8217;t let the title fool you, I&#8217;m not quite there yet. I&#8217;ve already written a few posts that dealt with integrating SAP and PHP (which you can find here and here to get you started), but I thought it was time to take it to another level. So what I&#8217;ve done here is to try and build a portal of sorts and bundled together scripts that will allow one to perform various request to a SAP system. All the scripts I&#8217;ve written so far deal with material masters in one way or another. [...]</description>
		<content:encoded><![CDATA[<p>[...] Don&#8217;t let the title fool you, I&#8217;m not quite there yet. I&#8217;ve already written a few posts that dealt with integrating SAP and PHP (which you can find here and here to get you started), but I thought it was time to take it to another level. So what I&#8217;ve done here is to try and build a portal of sorts and bundled together scripts that will allow one to perform various request to a SAP system. All the scripts I&#8217;ve written so far deal with material masters in one way or another. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renet@web &#187; Blog Archive &#187; SAPRfc - MATERIAL_GETLIST in browser</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-86</link>
		<dc:creator>renet@web &#187; Blog Archive &#187; SAPRfc - MATERIAL_GETLIST in browser</dc:creator>
		<pubDate>Thu, 23 Feb 2006 02:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-86</guid>
		<description>[...] This post deals with using PHP to communicate with SAP, so you&#8217;ll need to have acces to a SAP system if you want to reproduce this. All-right, some time ago I wrote a post in which I said that I wanted to use a BAPI (or other) to retrieve a list of material numbers from a SAP client and build a select list as opposed to hard coding it in my PHP script. At the time my other options might have been to upload a list of material numbers into an SQL database or hard code a list of materials numbers in my script : The downside here being that you could hardly call this dynamic. Anyway, thanks to Jako (Jopac) and his valuable contributions , success is the name of the game - nothing is going to stop me now! I&#8217;m kinda eager to post this , so you&#8217;ll have to wait a bit longer for the complete code where I: [...]</description>
		<content:encoded><![CDATA[<p>[...] This post deals with using PHP to communicate with SAP, so you&#8217;ll need to have acces to a SAP system if you want to reproduce this. All-right, some time ago I wrote a post in which I said that I wanted to use a BAPI (or other) to retrieve a list of material numbers from a SAP client and build a select list as opposed to hard coding it in my PHP script. At the time my other options might have been to upload a list of material numbers into an SQL database or hard code a list of materials numbers in my script : The downside here being that you could hardly call this dynamic. Anyway, thanks to Jako (Jopac) and his valuable contributions , success is the name of the game &#8211; nothing is going to stop me now! I&#8217;m kinda eager to post this , so you&#8217;ll have to wait a bit longer for the complete code where I: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-84</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Mon, 20 Feb 2006 09:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-84</guid>
		<description>C&#039;est bon Jako! J&#039;ai fait quelques modifications au code que tu as ajoute a ce billet et ca marche nickel! - Merci pour tes suggestions. Je vais tres prochainement faire un billet rien que pour ca.
A</description>
		<content:encoded><![CDATA[<p>C&#8217;est bon Jako! J&#8217;ai fait quelques modifications au code que tu as ajoute a ce billet et ca marche nickel! &#8211; Merci pour tes suggestions. Je vais tres prochainement faire un billet rien que pour ca.<br />
A</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jopac</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-78</link>
		<dc:creator>jopac</dc:creator>
		<pubDate>Sat, 18 Feb 2006 09:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-78</guid>
		<description>bon je crois que c&#039;est le signe &quot;inferieur &quot; debut de balise qu&#039;il n&#039;aime pas...
je repete donc 
&quot;inferieur&quot; &quot;point d&#039;interro&quot; 
$login = array (&quot;ASHOST&quot;   

etc...</description>
		<content:encoded><![CDATA[<p>bon je crois que c&#8217;est le signe &#8220;inferieur &#8221; debut de balise qu&#8217;il n&#8217;aime pas&#8230;<br />
je repete donc<br />
&#8220;inferieur&#8221; &#8220;point d&#8217;interro&#8221;<br />
$login = array (&#8220;ASHOST&#8221;   </p>
<p>etc&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jopac</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-77</link>
		<dc:creator>jopac</dc:creator>
		<pubDate>Sat, 18 Feb 2006 09:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-77</guid>
		<description>en fait je n&#039;arrive pas à te transmettre le debut

car il s&#039;agit de balise php que ton &quot;blob&quot; interprete

au debut c&#039;est la chaine de connexion. que tu connais je pense ...
un truc du type : </description>
		<content:encoded><![CDATA[<p>en fait je n&#8217;arrive pas à te transmettre le debut</p>
<p>car il s&#8217;agit de balise php que ton &#8220;blob&#8221; interprete</p>
<p>au debut c&#8217;est la chaine de connexion. que tu connais je pense &#8230;<br />
un truc du type :</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jopac</title>
		<link>http://www.renet-web.net/2006/01/09/saprfc-stockrequirements-list-in-da-browser/comment-page-1/#comment-76</link>
		<dc:creator>jopac</dc:creator>
		<pubDate>Sat, 18 Feb 2006 09:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.renet-web.net/?p=108#comment-76</guid>
		<description>error, il manque du code  ....
&quot;sdso28u.par.siemens.fr&quot;,	&quot;SYSNR&quot;=&gt;&quot;30&quot;, &quot;CLIENT&quot;=&gt;&quot;212&quot;,	&quot;USER&quot;=&gt;&quot;dev10&quot;, &quot;PASSWD&quot;=&gt;&quot;paspourtoi&quot;, &quot;CODEPAGE&quot;=&gt;&quot;1100&quot;);
$rfc = saprfc_open ($login );
if (! $rfc ) { echo &quot;RFC connection failed&quot;; exit; }

$fce = saprfc_function_discover($rfc,&quot;BAPI_MATERIAL_GETLIST&quot;);
if (! $fce ) { echo &quot;Discovering interface of function module failed&quot;; exit; }

//saprfc_import ($fce,&quot;MAXROWS&quot;,&quot;&quot;);

saprfc_table_append ($fce,&quot;MATNRSELECTION&quot;, 
											array (&quot;SIGN&quot;=&gt;&quot;I&quot;,&quot;OPTION&quot;=&gt;&quot;BT&quot;,&quot;MATNR_LOW&quot;=&gt;&quot;1FK7043-7AK71-1AG0&quot;,&quot;MATNR_HIGH&quot;=&gt;&quot;1FK7060-5AF71-1EH3&quot;));

$rfc_rc = saprfc_call_and_receive ($fce);
if ($rfc_rc != SAPRFC_OK) { 
	if ($rfc == SAPRFC_EXCEPTION ) echo (&quot;Exception raised: &quot;.saprfc_exception($fce));
	else echo (saprfc_error($fce)); exit; }

$rows = saprfc_table_rows ($fce,&quot;RETURN&quot;);
if ($rows){
	for ($i=1;$i&quot;); }
}

$rows = saprfc_table_rows ($fce,&quot;MATNRLIST&quot;);
for ($i=1;$i&quot;; }

saprfc_function_free($fce);
saprfc_close($rfc);



 --&gt;
&quot;&quot;</description>
		<content:encoded><![CDATA[<p>error, il manque du code  &#8230;.<br />
&#8220;sdso28u.par.siemens.fr&#8221;,	&#8220;SYSNR&#8221;=>&#8221;30&#8243;, &#8220;CLIENT&#8221;=>&#8221;212&#8243;,	&#8220;USER&#8221;=>&#8221;dev10&#8243;, &#8220;PASSWD&#8221;=>&#8221;paspourtoi&#8221;, &#8220;CODEPAGE&#8221;=>&#8221;1100&#8243;);<br />
$rfc = saprfc_open ($login );<br />
if (! $rfc ) { echo &#8220;RFC connection failed&#8221;; exit; }</p>
<p>$fce = saprfc_function_discover($rfc,&#8221;BAPI_MATERIAL_GETLIST&#8221;);<br />
if (! $fce ) { echo &#8220;Discovering interface of function module failed&#8221;; exit; }</p>
<p>//saprfc_import ($fce,&#8221;MAXROWS&#8221;,&#8221;");</p>
<p>saprfc_table_append ($fce,&#8221;MATNRSELECTION&#8221;,<br />
											array (&#8220;SIGN&#8221;=>&#8221;I&#8221;,&#8221;OPTION&#8221;=>&#8221;BT&#8221;,&#8221;MATNR_LOW&#8221;=>&#8221;1FK7043-7AK71-1AG0&#8243;,&#8221;MATNR_HIGH&#8221;=>&#8221;1FK7060-5AF71-1EH3&#8243;));</p>
<p>$rfc_rc = saprfc_call_and_receive ($fce);<br />
if ($rfc_rc != SAPRFC_OK) {<br />
	if ($rfc == SAPRFC_EXCEPTION ) echo (&#8220;Exception raised: &#8220;.saprfc_exception($fce));<br />
	else echo (saprfc_error($fce)); exit; }</p>
<p>$rows = saprfc_table_rows ($fce,&#8221;RETURN&#8221;);<br />
if ($rows){<br />
	for ($i=1;$i&#8221;); }<br />
}</p>
<p>$rows = saprfc_table_rows ($fce,&#8221;MATNRLIST&#8221;);<br />
for ($i=1;$i&#8221;; }</p>
<p>saprfc_function_free($fce);<br />
saprfc_close($rfc);</p>
<p> &#8211;><br />
&#8220;&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
