ID: 24465 Updated by: [EMAIL PROTECTED] Reported By: artpego at hotmail dot com -Status: Open +Status: Bogus -Bug Type: Feature/Change Request +Bug Type: COM related Operating System: Windows XP SP1 PHP Version: 4.3.2 New Comment:
Learn PHP syntax first. Previous Comments: ------------------------------------------------------------------------ [2003-07-02 15:01:15] artpego at hotmail dot com Description: ------------ This is caused while using the "RFC_READ_TABLE" remote function call for SAP R/3. The ability to add a value to a temporary table at a specified row and column is required. Reproduce code: --------------- $funSap=new COM("SAP.Functions") or die ("Did Not Create"); $myFun=$funSap->Add("RFC_READ_TABLE"); $optionAdd=$myFun->Tables("OPTIONS"); $optionAdd->AppendRow(); $optionAdd(1,"TEXT")="FCURR = 'NTD'"; Expected result: ---------------- The script above supposed to do the following: a) $optionAdd=$myFun->Tables("OPTIONS") ## CREATE A TABLE NAMED OPTIONS. b) $optionAdd->AppendRow() ## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE c) $optionAdd(1,"TEXT")="FCURR = 'NTD'" ## ASSIGN THE VALUE "FCURR = 'NTD'" TO THE OPTIONS TABLE (ROW 1, COLUMN1)==(1,"TEXT") Actual result: -------------- ## ERROR -> parse error, unexpected '=' in line ... This is due to the line $optionAdd(1,"TEXT")="FCURR = 'NTD'" I have tried countless combinations, read every piece of documentation, searched the internet for over a week and can see exambles in every other language doing exactly this with COM objects (VB,Java,PERL,Etc). Every other part of the script works a) I can connect to SAP b) I can query functions and tables and get results However: If I am unable to use the portion of the script listed above, there is no way to limit my queries through a "WHERE CLAUSE" or even select specific fields... This means my query results would return every row from the entire table (some have millions of entries) and there is a buffer width of 512 Bytes that can not be exceeded for each row. Your assistance will be greatly appreciated. Michael ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24465&edit=1