No argument of type TABLE frm-10764 error
I'm trying to base a data block on a procedure. When I use a cursor ref there is no problem, however when I use a table I get the error no argument of type TABLE or REFCURSOR (frm-10764). In the package I have defined a table and I use an in out variable of the table type defined. In the block I reference the package.procedure and I get the above message. Can any one tell me what I'm doing wrong??
Thanks
Simon
Hello,
If i understood u guys correctly then here is example and it is working perfectly with F5.0 & O8.0. May be u will find some un-necessary code. pl. ingore it.
Step1- Create a stored Package Specification with declaration of ur REF Cursor.
package plsql_tab IS
--Declare REF Cursor Type
type plsql_refcur is ref cursor;
end plsql_tab;
Step2- Create ur own stored procedure and pass REF cursor as an argument.
procedure proc1
(p_cur in plsql_tab.plsql_refcur)
is
k pls_integer := 0;
var1 number;
var2 varchar2(50);
begin
loop
fetch p_cur into var1, var2;
exit when k>=10 or p_cur%notfound;
insert into plsq_tbl values
(k,'In Proc1 : '| |var2);
dbms_output.put_line('In Proc1 : '| |var2);
end loop;
close p_cur;
end;
Step3- Create a form, write form procedure like below and then call this procedure on WHEN-Button-Press or anywhere u needed.
procedure proc2 is
--declare REF Cursor
cur_plsql plsql_tab.plsql_refcur;
begin
--Open REF Cursor for a given Qry
open cur_plsql for select * from plsq_tbl
where rownum < 10;
--Pass REF Cursor as an IN Parameter
proc1(cur_plsql);
--Close REF Cursor
close cur_plsql;
end;
Hope it will help u.
Thanks & Regards,
Anil
Similar Messages
-
Unknown type TABLE for element Error
This question i am posting on behalf of one of my friend
In RF transaction, created a screen that contains table control. The table control has created using wizard
If we run the transaction with in SAPGui its working fine. After creating Internet service, and publish and run thru internet explorer its giving the following said Error
" Unknow type TABLE for element IT_PRODUCT"
I checked the controls statement for table view , its there in the code Here IT_PRODUCT is tableview for tablecontrol
Any Info ?
a®Solved.
The problem is because , the table control had been created thru "Table Control Wizard" , solved by creating the table control using SE51 has resolved the issue.
Strange ?
May be because wizard unncessary creating lot of HTML code while publishing
a® -
ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
Hi,
I have two schema on the two servers for replication replication is working fine.
i export one schema to another so all the tables exists at both the sites.
I am adding objects in the replication group using oracle enterprise manager
console.
some of the tables added fine.
but some gives me error like.
ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
before adding this objects in the group i do like
SQL> SELECT oname FROM DBA_REPOBJECT ;
ONAME
AC_ACCOUNT
AC_ACCOUNT$RP
AC_ACCOUNT$RP
AC_ACCOUNT_MASTER
AC_ACCOUNT_MASTER$RP
AC_ACCOUNT_MASTER$RP
6 rows selected.
at both the sites.
when i add product_master in the group then entries becomes like
SQL> SELECT oname FROM DBA_REPOBJECT ;
ONAME
AC_ACCOUNT
AC_ACCOUNT$RP
AC_ACCOUNT$RP
AC_ACCOUNT_MASTER
AC_ACCOUNT_MASTER$RP
AC_ACCOUNT_MASTER$RP
PRODUCT_MASTER
7 rows selected.
but with the error in
and when generate replication support.
SQL> select status,request,message,oname from dba_repcatlog;
STATUS REQUEST
MESSAGE
ONAME
ERROR CREATE_MASTER_REPOBJECT
ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
PRODUCT_MASTER
ERROR CREATE_MASTER_REPOBJECT
ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
PRODUCT_MASTER
STATUS REQUEST
MESSAGE
ONAME
ERROR GENERATE_INTERNAL_PKG_SUPPORT
ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
PRODUCT_MASTER
ERROR GENERATE_INTERNAL_PKG_SUPPORT
ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
STATUS REQUEST
MESSAGE
ONAME
PRODUCT_MASTER
ERROR GENERATE_INTERNAL_PKG_SUPPORT
ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
PRODUCT_MASTER
but in the same situation other objects are working fine.i am fed up with this error.
any help will be appreciated.
Thanks
Umesh
nullthanks hament
I have two schema my master definition site have all the objects but second master
site. have no object.
i use these command like
this is at master definition site.
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MASTER_REPGROUP(
3 gname => '"AA"',
4 qualifier => '',
5 group_comment => '');
6 END;
7 /
PL/SQL procedure successfully completed.
SQL> ed
Wrote file afiedt.buf
1 BEGIN
2 DBMS_REPCAT.CREATE_MASTER_REPOBJECT(
3 gname => '"AA"',
4 type => 'TABLE',
5 oname => '"PRODUCT_MASTER"',
6 sname => '"UMESH"',
7 copy_rows => TRUE,
8 use_existing_object => FALSE);
9* END;
SQL> /
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
SQL> BEGIN
2 DBMS_REPCAT.ADD_MASTER_DATABASE (
3 gname => 'AA',
4 master => 'neo.world',
5 use_existing_objects => FALSE,
6 copy_rows => TRUE,
7 propagation_mode => 'ASYNCHRONOUS');
8 END;
9 /
PL/SQL procedure successfully completed.
SQL> COMMIT;
SQL> select source, status, master,sname, request, oname, type, message from dba_repcatlog;
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
LOCAL.WORLD
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
ERROR
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
NEO.WORLD
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
UMESH CREATE_MASTER_REPOBJECT
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
PRODUCT_MASTER TABLE
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
ORA-00942: table or view does not exist
SOURCE
STATUS
MASTER
SNAME REQUEST
ONAME TYPE
MESSAGE
but according to me this table must be created at the second master site.
which is main issue i am facing.
and if i made product_master at second master site manually
then execute this at master defination site.
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MASTER_REPOBJECT(
3 gname => '"AA"',
4 type => 'TABLE',
5 oname => '"PRODUCT_MASTER"',
6 sname => '"UMESH"',
7 copy_rows => TRUE,
8 use_existing_object => TRUE);
9 END;
10 /
BEGIN
ERROR at line 1:
ORA-23309: object "UMESH"."PRODUCT_MASTER" of type TABLE exists
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2552
ORA-06512: at "SYS.DBMS_REPCAT", line 562
ORA-06512: at line 2
SQL> /
PL/SQL procedure successfully completed.This is very strange if the table exists then error and if
it doesn't then error.
Thanks
Message was edited by:
Umesh Sharma -
Hello experts,
I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
while (allFiles.Contains(tempFileName ))
tempFileName = String.Format("{0} ({1})", fileName, count++);
output = Path.Combine(folderPath, tempFileName );
string fullPath=output + ".xml";
However, it gives the following compilation errors
for the Select and Contain methods respectively.:
'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
(are you missing a using directive or an assembly reference?)
'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
found (are you missing a using directive or an assembly reference?)
I googled on these errors, and people suggested to add using System.Linq;
I did, but the errors persist.
Any help and information is greatly appreciated.
P. S. Here are the using clauses I have:
using System;
using System.Data;
using System.Windows.Forms;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Linq;Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace consAppFileManipulation
class Program
static void Main(string[] args)
string fullPath = @"c:\temp\trace.log";
string folderPath = @"c:\temp\";
string fileName = "trace.log";
string output = "";
string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
string extension = Path.GetExtension(fullPath);
string path = Path.GetDirectoryName(fullPath);
string newFullPath = fullPath;
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
//THIS IS AN INFINITE LOOP
while (allFiles.Contains(fileNameOnly))
tempFileName = String.Format("{0} ({1})", fileName, count++);
//THIS CODE IS NEVER REACHED
output = Path.Combine(folderPath, tempFileName);
fullPath = output + ".xml";
//string fullPath = output + ".xml";
UML, then code -
Frm-41380 error - cannot set the blocks query data source
Fairly new forms so bare with me. I am creating a form based on one table. This table has one column that is a nested table.
table name: szrtime
table columns: szrtime_code, szrtime_styp_list
szrtime_styp_list is a table of varchar2(1).
main block is szvtime_block
the block that contains the nested table is szvtime_styp_block
I read that I could use a WHEN_NEW_RECORD_INSTANCE trigger on the main block to display the related nested table. I have tried the folllowing:
Declare
select_stmt Varchar2(512) ;
Begin
If :szvtime_block.szvtime_code Is not null Then
select_stmt := '(SELECT column_value FROM TABLE ( SELECT szrtime_styp_list FROM szrtime WHERE szrtime_code = ''' || :SZVTIME_BLOCK.SZVTIME_CODE || '''))';
Go_Block('SZVTIME_STYP_BLOCK' );
Clear_Block ;
message('select_stmt = '||select_stmt);
Set_Block_Property( 'SZVTIME_STYP_BLOCK', QUERY_DATA_SOURCE_NAME, select_stmt ) ;
Execute_Query ;
Go_Block('SZVTIME_BLOCK') ;
Else
Go_Block('SZVTIME_STYP_BLOCK' );
Clear_Block ;
Go_Block('SZVTIME_BLOCK') ;
End if ;
End ;
The result is the frm-41380 error.
I have tried change the query data source type on the nested table block to Table or From-clause but did not help. The select statement that is valid and returns the correct result in Toad.
Any suggestions on what to look for? Thank you.
Todd> But what is giving me pause is that the user will be updating, deleting, and inserting
into this table and, of course, the nested table column.
It would give me pause, too. I've never used nested tables, so I poked around in Forms on-line help. In Forms 6i, it specifically states that Forms does not support the Nested Table structure.
In Forms 10g help, it describes Nested Table structures, but says NOTHING about how a form would handle it. And that implies to me that it is still not supported. So good luck.
In addition to creating the view, you may need to provide your own nested table updating procedures via a package on the server which your form can call. I know Forms supports passing pl/sql tables ("indexed by binary_integer"), so you could pass your nested table back and forth between the package and the form in that format. -
TABLE ILLEGAL STATEMENT error with MODIFY command
Hi gurus,
i want you to inform me about table illegal statement error. The error occurs when i use modify as below.
loop at itab.
select .......
where xxx eq itab-xxxx.
MODIFY itab.
endselect.
endloop.
i know that i have to give the sy-tabix as INDEX parameter to the modify command. but i want to know why i have to do this?
cause when i debug, i follow the sy-tabix field and it have not a change in select endselect.
may the reason of the error about cursor in select and cursor effects modify command?
or why?
Thx,Hello,
I guess this is because your MODIFY statement is inside the SELECT ... ENDSELECT & not inside the LOOP ... ENDLOOP.
SAP documentation says:
Within a LOOP loop, the INDEX addition can be ommitted. In this case the current table line of the LOOP loop is changed.
You have to change the coding:
DATA: v_index TYPE i.
loop at itab.
v_index = sy-index.
select .......
where xxx eq itab-xxxx.
MODIFY itab INDEX v_index.
endselect.
endloop.
BR,
Suhas
PS: The coding practice followed is not very performance oriented as well. May be you should have a look around in some blogs, wikis in SCN & change the code accordingly.
Edited by: Suhas Saha on Nov 19, 2009 9:41 AM -
Getting FRM-40010 Error While opening new form .fmx
Hi,
Oracle apps : 11.5.10.2
Forms : Forms 6.0
I'm creating a custom form by using one oracle apps table.I created a basic form by using template.fmb and then saved it to directory "/dir1" and run this form by connecting to oracle apps database.
When I try to open .fmx from this directory ('/dir1') I'm getting FRM-40010 error.When I checked FORM60_PATH = It's showing /u01...../au/11.5.0/resource.I don't see "/dir1" in that path?
Do I need to modify forms60_path ?
Do I need to register this form before running as it's using table from Oracle apps schema?
Thanks,
KiranWhen I try to open .fmx from this directory ('/dir1') I'm getting FRM-40010 error.When I checked FORM60_PATH = It's showing /u01...../au/11.5.0/resource.I don't see "/dir1" in that path?You need to set FORMS60_PATH and include /dir1 in this path.
https://forums.oracle.com/forums/search.jspa?threadID=&q=FRM-40010+&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Do I need to modify forms60_path ?Yes.
$ export FORMS60_PATH=$FORMS60_PATH:/dir1
Do I need to register this form before running as it's using table from Oracle apps schema?Yes.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Register+AND+Custom+AND+Form&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Custom+AND+Form&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Unable to read attribute of type TABLE
Hello IDM Gurus,
I was having some trouble reading data in the source tab from a temporary table created in a FROM AD Pass; specifically I am unable to read from an attrribute of type TABLE, which is being used for the memberOf attribute when reading members of a group from AD. I don't get any errors in the FROM Pass, nor do I get any errors when trying to read all other data from the temporary table; I'm able to read all data except the memberOf attribute of type TABLE; I've tried different variations of SELECT statements as well as different possible values in the destination tab but it still hasn't resulted in valid memberOf values from the temporary table.
I thought this would be a lot simpler than it's turned out to be; I would appreciate any help I could get on this issue.
Thanks a lot in advance!
Best regards,
SandeepHi Achim,
Thank you for your quick response! I was actually able to spend a bit of time on the table itself and after experimenting a bit I managed to work out a query to correlate the memberOf values with the appropriate keys from the two separate tables in the same pass.
Thanks again for your suggestions!
Best regards,
Sandeep -
Error in creating Table Maintenance for TABLES: J_2IRG1BAL ,Dump error show
Dear Gurus
I have Created one Table Maintenance for TABLES: J_2IRG1BAL ,
1) I have take function group as same as table name like J_2IRG1BAL
3) Authorization Group &NC&
4) Authorization object S_TABU_DIS
5) Function group J_2IRG1BAL
6) Package J1I5
7) Maintenance type one step.
8) Maint. Screen No. Overview screen 2009.
9) Recording routine STD recording routines .
I have assign screen single screen 1 but it will not take the screen so ill put screen 2009 ,the system will not not accept the screen but I proposed to Save and activate the table maintenance generator and created and save the function group ,the table is ready to save the entries
We have to go to SM30 then put 4-5 entries ,after that a dump error shows
Which i have attachéd in this mail kindly help me out
Its effect in production server.
I have found that the error is given below I have mentioned all the details
Kindly read this
I have created function group J_2IRG1BAL and assign Package J1I5 and function group,J1I5 is already a Function group so problem occurs a dump error message displays
Kindly give me the right solution all the Clients are effected
110,100 150,250 these all are effected development clients
300 is prod client this is also affected because I have created a table maintenance generator and send the req to production .
*Dump Error Shows in Production*
Runtime Errors SYNTAX_ERROR
Date and Time 11.12.2008 09:26:30
What happened?
| Error in ABAP application program.
Error analysis
In program "SAPLJ1I5 ", the following syntax error occurred:
"The program "SAPLJ1I5" is not Unicode-compatible, according to its pro"
"gram attributes."
The current ABAP program "SAPLSVIM" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
In program "SAPLJ1I5 ", the following syntax error occurred
in the Include "SAPLJ1I5 " in line 0:
"The program "SAPLJ1I5" is not Unicode-compatible, according to its pro"
"gram attributes."
rigger Location of Runtime Error |
Program SAPLSVIM
Include LSVIMU01
Row 107
Module type (FUNCTION)
| Module Name VIEW_MAINTENANCE
Author and last person to change the Include are:
Author "TTLABAP2 "
Last changed by "TTLABAP2 "
105
Initialisierung des Abgleichsmandanten zum View *
106
>>>>>
vim_default_upgr_clnt-viewname = x_header-viewname.
108
vim_default_upgr_clnt-client = client_for_upgrade.
109
PERFORM vim_set_global_field_value IN PROGRAM (fpool)
| 110| USING 'VIM_DEFAULT_UPGR_CLNT' 'C' vim_default_upgr_clnt rc.I have send you all the details regarding the table maintenance generator
error is shown below
I have Created one Table Maintenance for TABLES: J_2IRG1BAL ,
1) I have take function group as same as table name like J_2IRG1BAL
3) Authorization Group &NC&
4) Authorization object S_TABU_DIS
5) Function group J_2IRG1BAL
6) Package J1I5
7) Maintenance type one step.
8) Maint. Screen No. Overview screen 2009.
9) Recording routine STD recording routines .
I have assign screen single screen 1 but it will not take the screen so ill put screen 2009 ,the system will not not accept the screen but I proposed to Save and activate the table maintenance generator and created and save the function group ,the table is ready to save the entries
We have to go to SM30 then put 4-5 entries ,after that a dump error shows
Which i have attachéd in this mail kindly help me out
Its effect in production server.
I have found that the error is given below I have mentioned all the details
Kindly read this
I have created function group J_2IRG1BAL and assign Package J1I5 and function group,J1I5 is already a Function group so problem occurs a dump error message displays
Kindly give me the right solution all the Clients are effected
110,100 150,250 these all are effected development clients
300 is prod client this is also affected because I have created a table maintenance generator and send the req to production .
Runtime Errors SYNTAX_ERROR
Date and Time 11.12.2008 09:26:30
ShrtText
Syntax error in program "SAPLJ1I5 ".
What happened?
Error in ABAP application program.
The current ABAP program "SAPLSVIM" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
In program "SAPLJ1I5 ", the following syntax error occurred
in the Include "SAPLJ1I5 " in line 0:
"The program "SAPLJ1I5" is not Unicode-compatible, according to its pro"
"gram attributes."
Author and last person to change the Include are:
Author "TTLABAP2 "
Last changed by "TTLABAP2 "
Error analysis
In program "SAPLJ1I5 ", the following syntax error occurred:
"The program "SAPLJ1I5" is not Unicode-compatible, according to its pro"
"gram attributes."
Trigger Location of Runtime Error
Program SAPLSVIM
Include LSVIMU01
Row 107
Module type (FUNCTION)
Module Name VIEW_MAINTENANCE
Source Code Extract
Line
SourceCde
77
TRANSPORTING NO FIELDS.
78
IF sy-subrc NE 0.
79
SELECT SINGLE * FROM tfdir WHERE funcname EQ <function_name>.
80
IF sy-subrc NE 0.
81
RAISE no_editor_function.
82
ELSE.
83
length = strlen( function_name1 ).
84
ASSIGN function_name1(length) TO <function_name>.
85
SELECT SINGLE * FROM tfdir WHERE funcname EQ <function_name>.
86
IF sy-subrc NE 0.
87
RAISE no_database_function.
88
ENDIF.
89
ENDIF.
90
INSERT x_header-viewname INTO alr_checked_views INDEX sy-tabix.
91
ELSE.
92
length = strlen( function_name1 ).
93
ASSIGN function_name1(length) TO <function_name>.
94
ENDIF.
95
96
Initialisierung der RFC-Destination zum View *
97
98
FPOOL+4 = X_HEADER-AREA.
99
fpool = x_header-fpoolname.
100
vim_default_rfc_dest-viewname = x_header-viewname.
101
vim_default_rfc_dest-rfcdest = rfc_destination_for_upgrade.
102
PERFORM vim_set_global_field_value IN PROGRAM (fpool)
103
USING 'VIM_DEFAULT_RFC_DEST' 'C' vim_default_rfc_dest rc.
104
105
Initialisierung des Abgleichsmandanten zum View *
106
>>>>>
vim_default_upgr_clnt-viewname = x_header-viewname.
108
vim_default_upgr_clnt-client = client_for_upgrade.
109
PERFORM vim_set_global_field_value IN PROGRAM (fpool)
110
USING 'VIM_DEFAULT_UPGR_CLNT' 'C' vim_default_upgr_clnt rc.
111
112
set flag if complex selection conditions in sellist *
113
114
IF complex_selconds_used NE space.
115
READ TABLE dba_sellist INDEX 1.
116
IF sy-subrc EQ 0 AND dba_sellist-cond_kind EQ space.
117
dba_sellist-cond_kind = 'C'. MODIFY dba_sellist INDEX 1.
118
ENDIF.
119
ENDIF.
120
121
direkter Vergleich: Flagge setzen usw. *
122
123
IF view_action EQ vim_direct_upgrade.
124
view_action = aendern.
125
PERFORM vim_set_global_field_value IN PROGRAM (fpool)
126
USING 'VIM_SPECIAL_MODE' 'C' vim_direct_upgrade rc. -
Errror::Illegal number of arguments or types of arguments in XSLT
HI All,
In our scenario we are using XSLT mapping with java enhancement.Its working fine in Stylus studio but when the same is imported into XI its throwing the below mentioned error:
javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Illegal number of arguments or types of arguments in a call of function 'Trans:Convert'.
Our requirement is that we are summing up the Field "Grant_Amount" which occurs multiple times in the source structure.PFB the XSL and the source XML:
<
XSL:
===
<Sum>
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
</Sum>
XML:
===
<Recordset>
<DETAILRECORD>
<Grant_Amount>$100.00</Grant_Amount>
</DETAILRECORD>
<DETAILRECORD>
<Grant_Amount>$200.00</Grant_Amount>
</DETAILRECORD>
</Recordset>
Java Code:
========
package com.company.group;
public class String2Number
public static String Convert(String[] a)
double sum=0;
String[] temp = new String[100];
for(int i=0;i<a.length;i++)
temp<i> = (a<i>).replaceAll("[,
$
sum=sum+Double.parseDouble(temp<i>);
return sum+"";
>
Please guide me into the right solution.
Thanks and Regards,
KaranamThanq for your response,
But my stylesheet is as below
<
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.infosys.com/sap/xi/projects/sce/n1" xmlns:Trans="com.company.group.String2Number">
<xsl:template match="/">
<a:MT_TargetXSLJava>
<Record>
<Detailrecord>
<Sum>
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
</Sum>
<Flag>
<xsl:value-of select="//DETAILRECORD/Grant_Amount"/>
</Flag>
</Detailrecord>
</Record>
</a:MT_TargetXSLJava>
</xsl:template>
</xsl:stylesheet>
> -
Internal Table occurs n Error - BSP
I have declared a type as
Types: BEGIN OF ty_mara
MATNR TYPE MARA-MATNR,
ENDOF ty_mara.
Problem is it is giving me error that "NO INTERNAL TABLE IS CREATED, OCCURS N SPECIFICATION".
Need Directions.
Edited by: NiksRules on Feb 14, 2011 6:25 AMHi,
I assume that you declared the types in "Type definitions" and trying the use this in page attributes for an internal table.
Is this correct?
If so, you need to have another type declaration like
types: ty_mara_table type table of ty_mara.
use the type ty_mara_table in the page attributes.
Regards,
Ravi. -
Exception: Argument(s) "type" can't be null in JDeveloper 11g R2 + JAX WS
Hello,
I am trying to run my application which contain JAX WS (2.1) Webservice using JDeceloper 11g R2(11.1.2.3.0) in JDK 1.6_38. The error is coming from @WebService annotation present on the class.
When I am running the application, I am getting below error,
java.lang.IllegalArgumentException: Argument(s) "type" can't be null.
at com.sun.xml.bind.api.TypeReference.<init>(TypeReference.java:89)
at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:758)
at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:678)
at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:428)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:277)
at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:363)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:202)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:496)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:539)
at weblogic.wsee.jaxws.JAXWSDeployedServlet.getEndpoint(JAXWSDeployedServlet.java:183)It seems that embedded Web Logic is using the internal libraries instead of provided one from JDK. The classes RuntimeModeler or TypeReference are present in JDK rt.jar* starts with package com.sun.xml.ws.internal. Weblogic is picking these classes from glassfish.jaxb_1.0.0.0_2-1-12.jar & glassfish.jaxws.rt_1.2.0.0_2-1-5.jar, but these jars are not part of my application.
1. I have already used weblogic.xml with below tag,
<prefer-web-inf-classes>true</prefer-web-inf-classes>2. I tried adding jaxws-api.jar & jws-api.jar in DefaultDomain/lib directory, but that didnt work
Any clue how to resolve this exception? The same application work properly on stand alone weblogic.
- SujayHi,
on the f:view element of the JSPX page, define the afterMethod property to point to a managed bean method. In this managed bean method, determine the phase and if this phase is afterRestore, read the request parameter if it exists (make sure you check if the parameter exists). If the parameter exists, write it to a memeory scope like viewScope or session. Then when you need this parameter in the managed bean, get it from the memory scope
Frank -
Warning: Type created with compilation errors. sql : oracle 11gr2
I'm trying to create a supertype customer service and subtype agent and supervisor, so they can inherent values however when I try to run this in oracle sql: a message comes up
Warning: Type created with compilation errors.
What is wrong with the code below?
Create or replace type customer_s_type as object ( csID number, csName varchar(15), csType number ) NOT FINAL; Create or replace type supervisor_type UNDER customer_s_type ( title varchar (10) ); Create or replace type agent_type UNDER customer_s_type (title varchar (10)); Create table supervisor of supervisor_type ( CONSTRAINT supervisor_PK PRIMARY KEY (csID)); Create table agent of agent_type (CONSTRAINT agent_PK PRIMARY KEY (csID)); create table customer_service( csID number(10), csType number(10), constraint supervisor_pk primary key(csID) );Wile creating TYPE you need to terminate with a back slash (/) semi colon does not work.
Try like this
create or replace type customer_s_type as object ( csid number, csname varchar(15), cstype number ) not final
create or replace type supervisor_type under customer_s_type ( title varchar (10) )
create or replace type agent_type under customer_s_type (title varchar (10)) -
Hi Colleagues,
regarding my IDOC viewer project I'm facing a question regarding the SAP release. I started with some success on Release 471, now I tried to continue on 46C.
CREATE DATA gr_ref
TYPE lvc_t_fcat."STANDARD TABLE OF LVC_S_FCAT.
works in both releases, while
CREATE DATA ls_seg_dat-ref
TYPE STANDARD TABLE OF (<edid4>-segnam).
compiles on 471, but generates syntax error in 46C.
The error message "Unable to interpret "TABLE". Possible causes of error: Incorrect spelling or comma error."
does not help too much.
Does this mean that there is no way to create tables dynamically on release 46C?
Hope for a solution!
regards,
C.Hello,
the only possibility I found was to use available table types in the dictionary. This works on a 4.6C system:
DATA: lf_type(20) TYPE c VALUE 'MARA',
lf_table_type(20) TYPE c VALUE 'MARA_TAB'.
DATA: wa_data TYPE REF TO data,
lt_data TYPE REF TO data.
FIELD-SYMBOLS: <structure> TYPE ANY,
<field> TYPE ANY,
<table> TYPE TABLE.
CREATE DATA wa_data TYPE (lf_type).
ASSIGN wa_data->* TO <structure>.
ASSIGN COMPONENT 'MATNR' OF STRUCTURE <structure> TO <field>.
<field> = 'My Material'.
CREATE DATA lt_data TYPE (lf_table_type).
ASSIGN lt_data->* TO <table>.
APPEND <structure> TO <table>.
Little curious: An internal table type defined with "TYPES ty_mara_tab TYPE TABLE OF mara" is not accepted by CREATE DATA, but the dictionary type is. So even generating a little top include dynamically with the needed type as a table type will not work on 4.6C
Best regards,
Stefan Kozlowski -
Hi
Quick one, can I dynamically create tables in 46B using the 'create data dref type table of ty_table' in 46B. It seems not but I just wanted to check. Otherwise I will resort to using the construct below:
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = gt_fieldcat
IMPORTING ep_table = gp_table.
From what I can see the RTTS has not been fully implemented yet.
Cheers
IanThanks Svetlin but I can already create my table like this. What I wanted was a 'cleaner' version so that I can have for example:
if p_plant = 'X'.
create data dref type table of ty_plant.
elseif p_workcentre = 'X'.
create data dref type table of ty_workcentre.
endif.
assign dref->* to <gt_output>.
However I get a syntax error when I use the above or even when I create a table such such as;
begin of ty_gbp,
plant TYPE qals-werk,
insp_end TYPE qals-paendterm,
workcentre TYPE QAQEE-PRPLATZ,
lwr TYPE qals-zz_lwr,
insp_lot TYPE qals-prueflos,
end of ty_gbp,
ty_gbp_table type table of ty_gbp.
create data dref type ty_gbp_table.
It says the type specification of ty_gbp_table is incomplete.
Ian
Maybe you are looking for
-
Post Migration from SP2010 -Attach File Button not working in any list new/edit forms
Hi, We have migrated the SharePoint 2010 farm to Sharepoint 2013 on last saturday and we are noticing an interesting issue after the migration . On any custom list on any web application ,When we create a new item,if we click on attach file button in
-
Disable Wizard (limited functionality) under Analysis Editor Preference Tab In OBIEE
Hai Experts I want to disable this option(Disable Wizard (limited functionality) under Analysis Editor Preference Tab) for all users globally. This option should not appear in Preference tab of OBIEE Regards Saurabh Anand
-
Manual entries of TDS/TCS deduction not creating Challans in system
Hi All, We are to pass the entries of TCS (tax collected at source) deduction from sales invoice through FI module. Since it is not possible to deduct the TCS from sales invoice automatically without SD module, we have decided to post the TCS deducti
-
To those of you who've already had yours shipped, and who were suckers like me and paid for expedited shipping... I just received a very silly invoice from Apple in the amount of $15. How long did it take between this message and your shipping notifi
-
STRUTS & Oracle Application Server?
Hi We're trying to setup Jakarta Struts on an Oracle 9i Application Server. After installation and setting up an simple test, the following error occured: Cannot find message resources under key org.apache.struts.action.MESSAGE Questions: 1. what cau