Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Delete a record from SAP using SAPRFC

Hello experts,

I am trying to delete a record from SAP using SAPRFC.

I tried this but I doesn't work

Thanks a lot for you help

require_once("../saprfc/saprfc.php");
require_once("./loginsap.php");

$fce = saprfc_function_discover($rfc, "BAPI_PRODORDCONF_CREATE_TT");
if ($fce) echo "OK fce<br>";
$function = saprfc_table_remove ($fce,"Timetickets", array(
	"conf_no"=>"1067124",
	"conf_cnt"=>"1"
	));	
saprfc_call_and_receive($fce);
$odetailreturn = saprfc_table_read($fce, "DETAIL_RETURN", 1);

if($odetailreturn['TYPE'] == "I") {
	 $function = saprfc_function_discover $rfc, "BAPI_TRANSACTION_COMMIT");
	saprfc_call_and_receive($function); 
}

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question