Types in the class
hi i am creating a class, in that i have a method whcih is declared as public and has two parameters.i want the two parameters to be declared as interna;l type and use the type for the method as import parameter.i am in 4.7 version.when i declare the type in my program as classname=>ty_type ,it is giving me syntax error and there is no option in the internal type to make it visible as public.
when i make the method as private than it is ok but i cannot use the methof from my programme.please help me in this regard.
hi,
thanks got the answer in 4.7 we cannot use that option it is only for internal types where from ecc it is types not internal types.thanks alot.
Similar Messages
-
Passing select-options parameters type to the class
Hi All,
I am creating one class and I want to pass the select-options parameters directly to it like s_plant,s_mtart etc .
So while specifying these as paramters what type I should give them?
Rgds,
MadhuriWhatever you finally decide upon, you must have a Data Dictionary definition. So either create one for each type (bukrs, vkorg, etc.) or use a general one like RSELOPTION. However with the general one you have to put extra code in the class to convert back from a CHAR 45 field to your special field.
Anyway, using the Data Dictionary is fun! So go create as many new tables as you need. In the long term, the work you do in the Data Dictionary is never wasted and it may save you time in the future when you need that structure / table again for a different program.
Creating these structures and tables is easy if you use shortcuts. For example in local definitions in your program you can code...
data range1 type range of bukrs.
or
data wa_bukrs type bukrs.
ranges range1 for wa_bukrs.
either of these gives you the structure... no need to manually type sign, option, low, high...
What about Global (data dictionary) definitions? yes, there are also shortcuts...
start transaction SE11, enter range table name in the 'Data' field (e.g. ZMYRANGETAB), Hit Create, choose to create a Table Type... now you are on the blank new Maintain Table Type screen. enter a short text for your new table, then choose
Edit->Define as ranges table type
next enter your data element (e.g. BUKRS) under 'data element', hit Save and activate. You just created your range table without manually entering sign, option, low, high...
But wait there's more... on the same screen you can now (after saving the range table) also enter a structure name such as ZMYRANGE in the field 'structured row type'. Hit Create and you are taken to the Maintain Structure screen where the sign, option, low and high are already populated... add a short description and save and activate... you just created a workarea for your range table.
You just created a table type ZMYRANGETAB and a structure ZMYRANGE with minimal effort. -
Hi All,
Can any one help me regarding the issue?
Error:
package com.support.misc.feedback
I am getting the following error for the above line. But I have created the Hierarchy in folder structure. But still it is throwing the error.
1. Cannot find the class file for com.sapportals.htmlb.page.DynPage
2. This compilation unit indirectly references the missing type com.sapportals.htmlb.page.DynPage (typically some required class file is referencing a type outside the class path) FeedbackBean.java
Thanks in Advance.
Message was edited by: Gowsika KannanHi Gowsika,
the class needed is located in htmlb.jar which can be found under <irj-root>/WEB-INF/portal/portalapps/com.sap.portal.htmlb/lib
You need to integrate this jar in your .classpath
Hope this helps,
Robert
PS: Please do not post the same question 3 times -
== Issue
==
I have another kind of problem with Firefox
== Description
==
how do I fix the following error, it comes up every time I open a Firefox page; "type error: Components.classes[cid] is undefined" (JavaScript Application)
== This happened
==
Every time Firefox opened
== a few months ago
==
== Troubleshooting information
==
Application Basics
Name Firefox
Version 3.6.3
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Adblock Plus 1.2 true
Adobe DLM (powered by getPlus(R)) 1,6,2,49 true
AVG Safe Search 9.0.0.825 true {3f963a5b-e555-4543-90e2-c3908898db71}
AVG Security Toolbar 4.504.019.002 true avg@igeared
Fasterfox 2.0.0 false
Forecastfox 0.9.10.2 true {0538E3E3-7E9B-4d49-8831-A227C80A7AD3}
Java Console 6.0.05 true
Java Console 6.0.03 true
Java Console 6.0.07 true
Java Console 6.0.11 true
Java Console 6.0.13 true
Java Console 6.0.15 true
Java Console 6.0.17 true
Java Quick Starter 1.0 true [email protected]
Microsoft .NET Framework Assistant 1.2.1 true {20a82645-c095-46ed-80e3-08825760534b}
NoScript 1.9.9.77 true {73a6fe31-595d-460b-a920-fcc0f8843232}
Java Console 6.0.19 true
Java Console 6.0.20 true
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar 0
browser.history_expire_days 0
browser.history_expire_days.mirror 180
browser.places.importBookmarksHTML false
browser.places.importDefaults false
browser.places.leftPaneFolderId -1
browser.places.migratePostDataAnnotations false
browser.places.smartBookmarksVersion 2
browser.places.updateRecentTagsUri false
browser.startup.homepage_override.mstone rv:1.9.2.3
extensions.lastAppVersion 3.6.3
general.useragent.extra.microsoftdotnet ( .NET CLR 3.5.30729)
keyword.URL http://au.yhs.search.yahoo.com/avg/search?fr=yhs-avg&type=yahoo_avg_hs2-tb-web_au&p=
network.cookie.prefsMigrated true
places.last_vacuum 1272511429
print.print_bgcolor false
print.print_bgimages false
print.print_command
print.print_downloadfonts true
print.print_evenpages true
print.print_in_color true
print.print_margin_bottom 0.5
print.print_margin_left 0.5
print.print_margin_right 0.5
print.print_margin_top 0.5
print.print_oddpages true
print.print_orientation 0
print.print_pagedelay 500
print.print_paper_data 0
print.print_paper_height 11.00
print.print_paper_size -134744073
print.print_paper_size_type 1
print.print_paper_size_unit 0
print.print_paper_width 8.50
print.print_printer Lexmark 4200 Series
print.print_reversed false
print.print_scaling 1.00
print.print_shrink_to_fit true
print.print_to_file false
print.printer_Lexmark_4200_Series.print_bgcolor false
print.printer_Lexmark_4200_Series.print_bgimages false
print.printer_Lexmark_4200_Series.print_command
print.printer_Lexmark_4200_Series.print_downloadfonts true
print.printer_Lexmark_4200_Series.print_edge_bottom 0
print.printer_Lexmark_4200_Series.print_edge_left 0
print.printer_Lexmark_4200_Series.print_edge_right 0
print.printer_Lexmark_4200_Series.print_edge_top 0
print.printer_Lexmark_4200_Series.print_evenpages true
print.printer_Lexmark_4200_Series.print_footercenter
print.printer_Lexmark_4200_Series.print_footerleft &PT
print.printer_Lexmark_4200_Series.print_footerright &D
print.printer_Lexmark_4200_Series.print_headercenter
print.printer_Lexmark_4200_Series.print_headerleft &T
print.printer_Lexmark_4200_Series.print_headerright &U
print.printer_Lexmark_4200_Series.print_in_color true
print.printer_Lexmark_4200_Series.print_margin_bottom 0.5
print.printer_Lexmark_4200_Series.print_margin_left 0.5
print.printer_Lexmark_4200_Series.print_margin_right 0.5
print.printer_Lexmark_4200_Series.print_margin_top 0.5
print.printer_Lexmark_4200_Series.print_oddpages true
print.printer_Lexmark_4200_Series.print_orientation 0
print.printer_Lexmark_4200_Series.print_pagedelay 500
print.printer_Lexmark_4200_Series.print_paper_data 1
print.printer_Lexmark_4200_Series.print_paper_height 11.00
print.printer_Lexmark_4200_Series.print_paper_size -134744073
print.printer_Lexmark_4200_Series.print_paper_size_type 0
print.printer_Lexmark_4200_Series.print_paper_size_unit 1
print.printer_Lexmark_4200_Series.print_paper_width 8.50
print.printer_Lexmark_4200_Series.print_reversed false
print.printer_Lexmark_4200_Series.print_scaling 1.00
print.printer_Lexmark_4200_Series.print_shrink_to_fit true
print.printer_Lexmark_4200_Series.print_to_file false
print.printer_Lexmark_4200_Series.print_unwriteable_margin_bottom 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_left 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_right 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_top 0
privacy.clearOnShutdown.cookies false
privacy.clearOnShutdown.offlineApps true
privacy.cpd.cookies false
privacy.item.offlineApps true
privacy.sanitize.migrateFx3Prefs true
privacy.sanitize.timeSpan 3
security.warn_viewing_mixed false
security.warn_viewing_mixed.show_once false
== Firefox version
==
3.6.3
== Operating system
==
Windows XP
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
== Plugins installed
==
*-getplusplusadobe16249
*Office Plugin for Netscape Navigator
*Adobe PDF Plug-In For Firefox and Netscape
*Default Plug-in
*NPRuntime Script Plug-in Library for Java(TM) Deploy
*The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
*Shockwave Flash 10.0 r45
*iTunes Detector Plug-in
*Garmin Communicator Plug-In 2.8.1.0
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Java(TM) Platform SE binary
*Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
*Npdsplay dll
*DRM Store Netscape Plugin
*DRM Netscape Network ObjectHow do I fix this problem ...javascript (cid) applications.
-
Creating a new class type in the classification system
We are wanting to classify objects in a ZTABLE. We have a home grown system for defining our customer requirements that is used as the way for the sales people to communicate to the engineering dept. what the customer wants. A new need has come up that seems to be a good fit to be able to classify our customer requirements. I have been trying to create a new class type that is linked to our ZTABLE. However, even though it looks like we should be able to do this I have not been able to do it. I ran across some documentation that seems to imply that adding a new class type used to be possible, but no longer is.
Can anyone verify that creating a new class type is still possible to do? We are on ECC 5.0.Can someone point me in the right direction as to how to create my own Class Type. Is there some documentation as to how to dow this? Other than what is fould in SPRO I have tried and tried but no joy for me.
This is what I have done so far:
in SPRO:
1) Created an Object Key for my table ZLO_CUSTREQ. This table has a primary key of CRQNR (custormer requirements number which is I created) The documentation says that I need to add this key field to structure RMCLY (I did that). BUT, it also says the RMCLY is embeded in structure RMCLX and it is not. Do I need to modify RMCLX to add RMCLY as an append structure?
2) Went to Maintain Object types and Class types and selected my table. Double clicked on Class Types in the Dialog Structure tree, which displayed an empty list of class types.
I then Clicked New Entries button and filled in the fields: Class type(Z10), Description(Customer Requirements), Table(ZLO_CUSTREQ). in the Screens group I selected Keywords and Characteristics. In the Functions group I selected: Standard class type and Multiple classifications. I then Clicked the back arrow. This returned me to the Class Types list which now displayed my new class type.
When I click the save button it kicks me out the the SPRO menu screen and I get the warning message "Class type Z10 does not have the classification status incomplete system" .
Then, it won't let me re-enter the Maintain Object types and Class Types screen due to an error "View cluster is already open, go back with F3"
When I hit F3 I am returned to the main SPRO screen. After navigating back to the Maintain Object types and Class types I continue to get the View cluster already open error. The only way I can get back to Maintain Object types and Class types is to completely exit SPRO and start over. When I do, class type Z10 is gone.
I have repeated this procedure several times with always the same results.
Can anyone please help me? -
How to set required for group of condition type in the same condition class
Hello,
we have a group of condition type with the same condition class B, the last one have been set, and all of others will be inactive.
but we don't set any required for all the condition types in pricing control, so if user don't set any of them, the sales order or billing is still saved. that is a risk.How can i fix it? Thanks.
SophieHello,
incompletion log is not available in invoices.
You have different options:
- activate a validation in FI when the Billing document is released into accounting, so that te release into accounting is not allowed if the invoice amount is zero;
- define a subtotal in the pricing procedure as sum of the pricing conditions of your group, then develop a custom routine to be assigned in the formula "CalType" (field T683S-KOFRM) where an error should be raised if the amount of the subtotal is zero (use as an example formula 48);
Best regards,
Andrea -
From which table I can find the "Class type" and "Class" of the material?
From which table I can find the "Class type" and "Class" of the material?
Thanks in advance for the answers....Hi,
try following table
KSSK Material number to class
KLAS Class description
KSML Characteristic name
CABN/CABNT Characteristic name description
CAWN/CAWNT Characteristic name
[http://www.sap-img.com/materials/classification-view-of-material-master.htm]
[http://wiki.sdn.sap.com/wiki/display/ERPLO/FrequentlyUsedTables]
Regards
kailas Ugale -
The class of the deferred-methods return type "{0}" can not be found.
I am developing a multilingual portal application.
I have the method that changes the locale based on user's choice in the bean and the method is being referred to as below.
<af:selectOneChoice label="Select Language" autoSubmit="true"
value="#{localeBean.locale}"
valueChangeListener="localeBean.changeLocale">
<af:selectItem label="English" value="en" id="si1"/>
<af:selectItem label="French" value="fr" id="si2"/>
<af:selectItem label="Dutch" value="nl" id="si3"/>
</af:selectOneChoice>
when i try to run the application, i am getting compile time errors as below,
The class of the deferred-methods return type "{0}" can not be found.
No property editor found for the bean "javax.el.MethodExpression".
After going through the discussion forums i learned that the compilation errors can be resolved by setting the <jsp:directive.page deferredSyntaxAllowedAsLiteral="false> at the starting of the page.
Even after that i am getting the compilation error.
Any solutions, suggestions or possible approaches would be helpful as i am new to Webcenter Portal development.
Thanks,The error you get points to a problem on the page (somewhere). Switch to source mode and check the right margin if you see orange or red marks. These are pointing to problems (not all are show stoppers, but they give you hints that something is not according to the standard for jsf, jsff, jsp or jspx pages.
Have you checked that the bean is correctly defined and that it's reachable?
Start a fresh page and isolate the problem, e.g. build a selectOneChoiuce on the new page (don't copy it as you might copy the error too) and make it work on the new page. Once you have it running you can compare the solution to your not running page.
Timo -
Change the class and type in javascript or select statement of region
Application Express 3.2.0.00.27
I have a manually created tabular form where I need pk to be updatable or not not updateable depending on whether its a new record or not.
I am attempting this thru 2 different ways.
1st:
using decode in select statement of region:
SELECT decode(c001,NULL,APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#'),
apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#')) authid,
apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid,
-- apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid,
apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate,
apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope",
apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits",
apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed",
apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry",
apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed",
apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments",
apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator",
apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status,
-- apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id,
apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') ||
apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx
FROM apex_collections
WHERE collection_name = 'DELEG_COLL'
AND c011 IN ('O','N','U','D')
--order by c001However this approach yields this error when I try to pick a value from the lov:
Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
My other approach is to attempt to change the type and class in javascript. I am trying this but I get an error when I attempt to change the class and type like this:
<script type="text/javascript">
<!--
/* Client side validation on the Salary column */
function changeProp(pCol) {
var elms = document.getElementsByName(pCol);
for (i=0; i< elms.length; i++) {
/* elms.style.backgroundColor = 'yellow'; */
if (elms[i].value == null || elms[i].value == '%null%'
|| elms[i].value == '') {
elms[i].class = 't20data';
elms[i].type = 'hidden';
alert('The value is' + elms[i].value);
//-->
</script>not completely duplicate...here in this thread I am stressing what I am trying to accomplish and asking for help on the javascript side.
-
Any Java built in function to get the Class type corresponding to primitive
I know it sounds strange but basically I have a Class and a String (I'm reading values from an XML file).
If the Class is a primitive type (boolean, byte, char, short, int, long, float, and double) I would have to convert the String into the corresponding types.
So I know how to do stuff like
Integer.parseInt("22");but for all the primitive types is there some method where I can simply get a way to do that without writing a whole bunch of if statements?You could set up a class to parse your String. You could check to see if it contains a decimal point, if so then you check to see if it is less than float.MAX_VALUE etc same for the Integer family and you could use equals method to check if it is true or false.
one other way would be to use parseInt etc and catch exceptions if there is an error, this is a bad idea though and a dirty way to do things.
As suggested, maybe you have some idea of what data type your expecting and can limit the amount of parsing you have to do. Another way is to group all numeric values as doubles.
You could start with something like this adding other methods checking the max value of the data types.
public class StringParser
public static void main(String[] args)
String test = "1.0";
System.out.println(containsDecimal(test));
if (containsDecimal(test))
decimalSizeFinder(test);
else
integerSizeFinder(test);
static boolean containsDecimal(String input)
for(int i=0; i<input.length(); i++)
if (input.charAt(i) =='.')
return true;
return false;
static void integerSizeFinder(String input)
long value = Long.parseLong(input);
if(value <=Byte.MAX_VALUE)
byte b = (byte)value;
else if(value <= Short.MAX_VALUE)
short s = (short)value;
else if(value <=Integer.MAX_VALUE)
int i = (int)value;
//etc
//Add code to assign the value to a variable someplace
static void decimalSizeFinder(String input)
double value = Double.parseDouble(input);
if(value <=Float.MAX_VALUE)
float f = (float)value;
//Add code to assign the value to a variable someplace
}Message was edited by:
kikemelly
Message was edited by:
kikemelly -
Class file is referencing a type outside the classpath???
Hi All,
I'm developing a EJB project in NWDS.
I'm getthing the below syntax error.
This compilation unit indirectly references the missing type com.sap.exception.BaseException (typically some required class file is referencing a type outside the classpath)
Can you please help me to resolve this?
Thanks in advance.
SundarHi Sundar,
You need to add the ejb20.jar file to your Project classpath.
If you are developing the project locally then the jar file can be directly added to the class path using the Project Properties --> Java build PAth --> Libraries tab --> Add External Jar.
If it is a DC development, the ejb20.jar can be found under the SAP-JEE software component of your track.
Hope it helps.
Regards,
Alka. -
Getting the class of a primitive type or void
Hello,
Class.forName cannot be used to get the class of a primitive type or void. What does then ???
I thought of defining a class for each primitive type and override getClass() to return the required type, but getClass() is final ...
Please helpI don't understand what you mean e.g.I get the name of the primitive type at runtime and need to convert it to a class. For example, Class.forName("byte") returns byte.class. But, unfortunately, Class.forName() doesn't return classes of primitives or void.
I already solved the problem through putting ptimitive classes in a hashtable. But I was wondering if there is a simpler solution !!! -
How to find the Class Type of a Class ?
Hi,
Can anyone tell how can I find a Class Type of a Class?
e.g. I know the Class name as "Z_ABC" but do not know its Class Type, therefore, not able to display it in CL01.
Regards,
LuckyHi,
Just by entering the Class name in CL02 does not display the data because system asks to enter the Class Type as well.
Rammohan - Thanks for thissolution however, when I executed after entering the Class Name, table displyed no entries found..... message but this class is being used in the PO Release Strategy. May be the data is being saved in some other table. Is there any other way to find this?
Regards. -
Hi,
My DTP load failed due to following error.
Call of the method START_ROUTINE of the class LCL_TRANSFORM failed; wrong type for parameter SOURCE_PACKAGE
I don't think anything wrong with the following code as data loads successfully every day. Can any one check? What could be the issue?
METHOD start_routine.
*=== Segments ===
FIELD-SYMBOLS:
<SOURCE_FIELDS> TYPE _ty_s_SC_1.
DATA:
MONITOR_REC TYPE rstmonitor.
*$*$ begin of routine - insert your code only below this line *-*
* Fail safe which replaces DTP selection, just in case
DELETE SOURCE_PACKAGE WHERE version EQ 'A'.
* Fill lookup table for the ISPG
SELECT p~comp_code m~mat_plant m~/bic/zi_cpispg
INTO TABLE tb_lookup
FROM /bi0/pplant AS p INNER JOIN /bi0/pmat_plant AS m ON
p~objvers EQ m~objvers AND
p~plant EQ m~plant
FOR ALL ENTRIES IN SOURCE_PACKAGE
WHERE p~objvers EQ 'A' AND
p~comp_code EQ SOURCE_PACKAGE-comp_code AND
m~mat_plant EQ SOURCE_PACKAGE-material.
SORT tb_lookup BY comp_code material.
*$*$ end of routine - insert your code only before this line *-*
ENDMETHOD.Hi,
Compare the data types of the fields in your table tb_lookup with the data types in your datasource. Most probably there is an inconsistency with that. One thing that I realize is that
I use the select statement in the format select ... from ... into... Maybe you need to change places of that, but I am not sure. You may put a break point and debug it with simulation.
Hope it gives an idea.
Yasemin... -
Question
Every time I start up Firefox, I receive the following warning/message. Java Script Application. Type Error: Components.classes(cid) is undefined. How do I correct this?Do you see a Last 7 days folder?
If not then older history has been deleted.<br />
Firefox 5 doesn't use a time limit to store history like previous Firefox 3 versions did.
Maybe you are looking for
-
How to use two different report items in SSRS page header
Hi All, Can we use more than one report item in SSRS 2008 R2 page header... Like this in expression.. =IIF(Globals!PageNumber=1,ReportItems!Col1.Value,ReportItems!Col2.Value) Whenever Globals!PageNumber=1 I want to show values present in Col1 and whe
-
How do I upload pdf files to iCloud
I have pdf files stored in documents and my desktop. I can't figure out how to open and store them in icloud.
-
Hello Everybody, When I am trying to create a Material in MM01, I see this error "Tables TCURM and T001W inconsistent; notify your systems administrator". Can someone tell me where I am going wrong? What settings do I have to take care of? Thanks, Sn
-
Basically I had the hard drive go down on me that held 80% of my iphoto library, I got the drive up and running with disk warrior and moved the photos to a new drive, but now ( obviously ) non of the thumbnails match the pictures. Now I could find th
-
Hello, I dropped my N82 on water, and I had to flash the phone to bring it back to life. But when I turned on the Camera, It was REALLY dark. I realize that there is something wrong with hardware, cause I also did a Software Update with Nokia Softwar