Reading GL Account Text Values FSS0
Hi folks,
In T-Code FSS0, under the Information tab, there are three text fields under "GL account texts in company code" namely account assingment,accountingnote and additional info. Where are the contents of these get stored?(i mean which table).
I would like to read them and use in a sap query report.
Thanks.
Hi,
In continuation of the problem, I'm trying this piece of code behind a custom field in SAP query.
DATA: text_01 like STXH-TDNAME,
textlines LIKE tline OCCURS 0,
textline LIKE LINE OF textlines,
thisline TYPE i VALUE 0,
pos_i(6) type c,
kdauf_i(10) type c,
Bestelltext1 like stxh-tdname,
bestelltext2 like stxh-tdname,
bestelltext like stxh-tdname.
unpack SKB1-SAKNR to pos_i.
unpack SKB1-BUKRS to kdauf_i.
CONCATENATE kdauf_i pos_i into text_01.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = '0001'
language = 'E'
name = '00011111101001'
object = 'SKB1'
TABLES
lines = textlines.
thisline = 1.
LOOP AT textlines INTO textline.
CASE thisline.
WHEN 1. Bestelltext1 = textline-tdline.
WHEN 2. Bestelltext2 = textline-tdline.
ENDCASE.
thisline = thisline + 1.
ENDLOOP.
CONCATENATE Bestelltext1 ' ' Bestelltext2 into Bestelltext.
kdauf_i = 0.
pos_i = 0.
textline = 0.
thisline = 0.
It executes but it's not returning the actual text, but i see only 0 for all GL accounts. Can someone help me out. I'm not an ABAPer basically. Thanks
Similar Messages
-
Getting repeated values when reading from a text file.
I need to read from a text file. When the token encounters a particular word (command) I need to read the next line and perform some actions. However, this part is working but it is repeating the values again and again until it encounters the next particular word (command). Hope that someone will help me out, as always when I posted a problem in these forums.
SetOperations class - contains the set methods
// Imported packages.========================================================
import java.util.Vector;
import java.util.Iterator;
// Public class SetOperations.===============================================
public class SetOperations
// Instance variables.===================================================
private Vector v = null; // Creates new instance of vector.
protected int memberCount;
// Constructor.==========================================================
public SetOperations()
v = new Vector();
} // end constructor.
// Method isMember.======================================================
* Checks whether the element is already a member of the set.
* @return True if Vector v contains Object member.
public boolean isMember(Object member)
if (member != null) // only if Object member is not null.
return v.contains(member); // returns true if vector already contains member.
else
return false; // returns false if vector does not contain member.
} // end public boolean isMember(Object member).
// Method addMember.=====================================================
* Adds a member to the set.
* @return Adds Object member to Vector v.
public void addMember(Object member)
//if (! v.contains(member)) // only if element is not already a member.
if (isMember(member) == false) // only if element is not already a member.
v.add(member); // adds a member.
} // end public void addMember(Object member).
// Method countMember.===================================================
* Returns the number of members present in the vector.
* @return Number of elements present in the vector.
public int countMember()
return v.size();
} // end public int countMember().
// Method isSetEmpty.====================================================
* Returns true if set is empty.
* @return True if no elements are present in Vector v.
public boolean isSetEmpty()
return v.size() == 0; // returns 0 if no elements are present in the vector.
} // end of public boolean isSetEmpty().
// Method printMember.===================================================
* Displays member/s of the set.
* @return Prints element/s present in the vector.
public void printMember()
for (int i = 0; i < v.size(); i++) // iterates through present members.
System.out.println("[" + i + "] " + v.get(i)); // displays member/s present in the vector.
} // end of public void printMember().
} // end public class SetOperations.
SetTextLauncher class - reads from a text file and implements the set operations
// Imported packages.========================================================
import java.util.*;
import java.io.*;
// Public class SetTestLauncher.=============================================
public class SetTestLauncher
// Main method public static void main(String args[]).===================
public static void main(String args[])
displayFile("test.txt"); // outputs result from text file.
// method to display a file on screen
public static void displayFile (String textFile)
// Instance variables.===============================================
// Creates new instances of SetOperations.
SetOperations setA = new SetOperations();
SetOperations setB = new SetOperations();
SetOperations setC = new SetOperations();
SetOperations setD = new SetOperations();
SetOperations setE = new SetOperations();
// Initialisation.
String line = "", nextLine = "";
FileReader fr = null;
try
// Opens the file with the FileReader data sink stream.
fr = new FileReader(textFile);
// Converts the FileReader input stream with the BufferedReader processing stream.
BufferedReader br = new BufferedReader(fr);
// Iterates through text file reading lines until end of text lines.
while (line != null)
line = br.readLine(); // reads one line at a time.
if(line == null) break; // when the line is null break the loop.
// Creates a new instace of StringTokenizer.
StringTokenizer st = new StringTokenizer(line);
// Loops until there are no more tokens.
while (st.hasMoreTokens())
String token = st.nextToken(); // reads next token.
// Only if the token encounters the String "membera".
if(token.equals("membera"))
nextLine = br.readLine(); // gets next line.
setA.addMember(nextLine); // adds a member to the set.
// Displays members present in the set if vector is not empty.
if (! setA.isSetEmpty())
setA.printMember(); // print members present.
// Displays the number of member/s present in the vector.
System.out.println("Number of set members: " + setA.countMember());
// Catches and displays exceptions.
catch (FileNotFoundException exp)
System.out.println(exp.getMessage());
exp.printStackTrace();
catch (IOException exp)
System.out.println(exp.getMessage());
exp.printStackTrace();
finally
try
// if file is found
if (fr != null)
// close file
fr.close();
catch (IOException exp)
exp.printStackTrace();
} // end public static void main(String args[]).
} // end public class SetTestLauncher.Thanks for your interest. Please ignore SetOperations class, it is just the class containing the methods and it works correctly since I checked it without reading from a text file. I marked the part where I think lies my problem in class SetTestOperations.
The information in the text file is as follows:
membera
Hillman
membera
Skoda
membera
Honda
membera
Toyota
and the result is:
[0] Hillman
Number of set members: 1
[0] Hillman
[1] Skoda
Number of set members: 2
[0] Hillman
[1] Skoda
[2] Honda
Number of set members: 3
[0] Hillman
[1] Skoda
[2] Honda
[3] Toyota
Number of set members: 4
instead of just one set:
[0] Hillman
[1] Skoda
[2] Honda
[3] Toyota
Number of set members: 4
Hope it is easier to understand like this.
Regards
Marco
I need to read from a text file. When the token
encounters a particular word (command) I need to read
the next line and perform some actions. However, this
part is working but it is repeating the values again
and again until it encounters the next particular
word (command). Hope that someone will help me out,
as always when I posted a problem in these forums.
SetOperations class - contains the set
methods
// Imported
packages.=============================================
===========
import java.util.Vector;
import java.util.Iterator;
// Public class
SetOperations.========================================
=======
public class SetOperations
// Instance
e
variables.============================================
=======
private Vector v = null; // Creates new instance of
f vector.
protected int memberCount;
Constructor.==========================================
================
public SetOperations()
v = new Vector();
} // end constructor.
// Method
d
isMember.=============================================
=========
* Checks whether the element is already a member of
f the set.
* @return True if Vector v contains Object member.
public boolean isMember(Object member)
if (member != null) // only if Object member is not
ot null.
return v.contains(member); // returns true if
if vector already contains member.
else
return false; // returns false if vector does not
not contain member.
} // end public boolean isMember(Object member).
// Method
d
addMember.============================================
=========
* Adds a member to the set.
* @return Adds Object member to Vector v.
public void addMember(Object member)
//if (! v.contains(member)) // only if element is
is not already a member.
if (isMember(member) == false) // only if element
nt is not already a member.
v.add(member); // adds a member.
} // end public void addMember(Object member).
// Method
d
countMember.==========================================
=========
* Returns the number of members present in the
e vector.
* @return Number of elements present in the vector.
public int countMember()
return v.size();
} // end public int countMember().
// Method
d
isSetEmpty.===========================================
=========
* Returns true if set is empty.
* @return True if no elements are present in Vector
r v.
public boolean isSetEmpty()
return v.size() == 0; // returns 0 if no elements
ts are present in the vector.
} // end of public boolean isSetEmpty().
// Method
d
printMember.==========================================
=========
* Displays member/s of the set.
* @return Prints element/s present in the vector.
public void printMember()
for (int i = 0; i < v.size(); i++) // iterates
es through present members.
System.out.println("[" + i + "] " + v.get(i)); //
// displays member/s present in the vector.
} // end of public void printMember().
} // end public class SetOperations.
SetTextLauncher class - reads from a text file
and implements the set operations
// Imported
packages.=============================================
===========
import java.util.*;
import java.io.*;
// Public class
SetTestLauncher.======================================
=======
public class SetTestLauncher
// Main method public static void main(String
g args[]).===================
public static void main(String args[])
displayFile("test.txt"); // outputs result from
om text file.
// method to display a file on screen
public static void displayFile (String textFile)
// Instance
ce
variables.============================================
===
// Creates new instances of SetOperations.
SetOperations setA = new SetOperations();
// Initialisation.
String line = "", nextLine = "";
FileReader fr = null;
try
// Opens the file with the FileReader data sink
ink stream.
fr = new FileReader(textFile);
// Converts the FileReader input stream with the
the BufferedReader processing stream.
BufferedReader br = new BufferedReader(fr);
// Iterates through text file reading lines until
til end of text lines.
while (line != null)
line = br.readLine(); // reads one line at a
at a time.
if(line == null) break; // when the line is null
null break the loop.
// Creates a new instace of StringTokenizer.
StringTokenizer st = new StringTokenizer(line);
// Loops until there are no more tokens.
while (st.hasMoreTokens())
String token = st.nextToken(); // reads next
next token.
// Only if the token encounters the String
tring "membera".
if(token.equals("membera"))
// *****THE PROBLEM LIES HERE....I GUESS
// need to read the next line after encountering the word membera in text file
nextLine = br.readLine(); // gets next line.
setA.addMember(nextLine); // adds a member to
ber to the set.
// Displays members present in the set if
set if vector is not empty.
if (! setA.isSetEmpty())
setA.printMember(); // print members present.
// Displays the number of member/s present in
ent in the vector.
System.out.println("Number of set members: " +
s: " + setA.countMember());
// Catches and displays exceptions.
catch (FileNotFoundException exp)
System.out.println(exp.getMessage());
exp.printStackTrace();
catch (IOException exp)
System.out.println(exp.getMessage());
exp.printStackTrace();
finally
try
// if file is found
if (fr != null)
// close file
fr.close();
catch (IOException exp)
exp.printStackTrace();
} // end public static void main(String args[]).
} // end public class SetTestLauncher. -
How to read the Key value from the Message using the text value.. Urgent
I need to read the Key valuefrom the message pool using the text value for the Key.. Is it possible.. Please help me with sample code..
Thanks and Regards
AvijitAvijit,
I got your requirement. I really dont know the scenario your working on but its possible to do it. There is no direct way to do so, but complexity is in getting to know the Keys dynamically from interface.
Here you go..
try
Class msgClass = IMessageTestWDApps.class;
//Replace IMessageTestWDApps with IMessage<Your WD Component name>
Field keys[] = msgClass.getFields();
IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
if(keys != null)
String key = "";
for(int index=0;index<keys.length;index++)
key = keys[index].getName();
wdComponentAPI.getMessageManager().reportSuccess("Key= "+key);
if(textAccessor.getText(key).equals("My message text"))
//your logic.
catch(Exception cnfe)
wdComponentAPI.getMessageManager().reportException("Exe "+cnfe.getMessage(),false);
Regards
Abhilash
Message was edited by:
Abhilash Gampa -
How to get selected text values in a textarea by mouse click?
Hi Everyone,
What I am trying to do is to click on some texts in a textarea, then get the selected text value.
If you guys have used an accounting software called Simply Accounting, you might understand better.
I list all my customer names in a textarea. What I want is, when I click on one customer, another GUI pops up with this customer's information. My problem is that I don't know how to get the selected text value from a textarea.
Could anyone give a hand here? Thank you in advance.Is there some reason you aren't using a JList or
JTable to display
the user names/information?Thank you for es5f2000's reply. You just gave me a better idea! There is not a particular reason I have to use TextArea to list my customers. As long as the component can make my idea alive, I definitely use it. Still, if there is any way to get a selected text value, it will help me a lot with my project. Thank you. -
MT940 - How to change the text value in AC doc created through EBS
Dear All,
I would like to know how can we manipulate the payee details sent by the Bank so that unncessary things are removed from the text of the accounting document created through EBS posting (FF_5)
My bank statement has the below lines
:61:1001200120CX50,00FBGCNONREF//
:86:999/00BGCMDIR 5735826JAN185635826
After running the program the I see the below values
FEBRE-VWEZW : 999/00BGCMDIR 5735826JAN165635826
FEBEP-CHECT : NONREF
BSEG-SGTXT : NONREF 999/00BGCMDIR 5735826JAN185635826
I think, text value in the ac document is the concatenation of FEBEP-CHECT & FEBRE-VWEZW.
However I dont want FEBEP-CHECT & few initial chacters of FEBRE-VWEZW in my accounting document text. I would like the text to be MDIR 5735826JAN185635826
Can anyone please suggest how this can be achieved?
Thanks in advance.
KrishnaHi.
One of the solutions is (taken from another source):
As of Release 4.70, there is a Business Add-In (BADI) with the definition name FEB_BADI that is called immediately before the standard posting in program RFEBBU00. In this case, you can change the procedure of the standard posting or make additional account assignments by changing the tables that are to be transferred to the posting interface (FTPOST, FTCLEAR). To do this, go to the SAP menu and follow the path Tools->ABAP-Workbench->Business Add-ins, create an enhancement that you assign to the FEB_BADI BAdI and then implement the CHANGE_POSTING_DATA method.
When you activate the BAdI, you receive a message, telling you that the active implementation of this BAdI already exists. If you do not use the public sector industry solution, you can deactivate the active BAdI of the IBS_PS area and activate your own implementation.
Best regards,
Yuri. -
Hi users,
I want to load text in accounts, so i have made account's "Data type" to "Text". But I am getting following error when i load data through FDQM;
Error: Import Failed.
Can we load text values through FDQM, I know that we can load smartlist values and Dates through FDQM.
Thanks in advance.Yes i am trying to load the text values in Hyperion Planning.
Is there any other tool (other than FDQM)that can accomplish the said task? -
Hi John,
I have an account member tagged as Text(Data type). But when i tried entering a text value in the form for this member, it says You have entered an invalid value, Please try again.
Am i missing something to enable text values?Go to Administration > Dimensions > Evaluation Order > Choose Plan type > Move accounts to right hand window.
Cheers
John
http://john-goodwin.blogspot.com/ -
Reading POST-Request-Parameter-Values from WebDynPro now possible?
Hello,
in the past I always was disappointed that in WebDynPro there was no way to read POST-request-parameter-values directly after the call of a WebDynPro-Application.
The only (documented) way to read / transfer request-data into an WebDynPro-application was via "URL query string parameters" in the request URL.
The last week I forgot this restriction. I called my WebDynPro-application using a POST-Request-Parameter (cookie_guid) instead of an URL-parameter.
After noticing my mistake, I was really surprised that the WebDynPro could read / shows the the POST-Request-Value.
I didn't make any changes in the coding of my WebDynPro-Application (zvis_show_sso_cookie).
After this cognition I built the following simple HTML-formular to analyse the behavior of the WebyDynPro by calling it with an URL-Parameter (cookie_guid=Url-GUID) together with the POST-Parameter (cookie_guid = Post-Value-GUID).
After calling the WebyDynPro it reads / shows the "POST-Value" of the request !!!
(Remark: If I made a simple refresh or type directly the URL "http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID" in the browser, the same webdynpro reads / shows the URL-Parameter-Value).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<form method="post" action="http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID">
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">
<tr>
<td align="right">Cookie_GUID:</td>
<td><input name="cookie_guid" type="text" size="30" maxlength="30" value="Post-Value-GUID"></td>
</tr>
<tr>
<td>
<input type="submit" value=" Absenden ">
<input type="reset" value=" Abbrechen">
</td>
</tr>
</table>
</form>
</body>
</html>
My questions:
I there any documentation that describes the behavior of WebDynPro after calling it by using POST-Parameter values?
I believe in the past it wasn't possible to read POST-request-parameter-values in WD. Has SAP changed the functionality?
Is the behavior I described in my example above mandatory?
Regards
SteffenAs far as i know in general HTTP request GET method is standard but in SAP POST is standard. All the client request is passed as POST to the server in order to avoid the URL parameter length restriction in GET method.
-
Obtaining comma-separated list of text values associated with bitwise flag column
In the table msdb.dbo.sysjobsteps, there is a [flags] column, which is a bit array with the following possible values:
0: Overwrite output file
2: Append to output file
4: Write Transact-SQL job step output to step history
8: Write log to table (overwrite existing history)
16: Write log to table (append to existing history)
32: Include step output in history
64: Create a Windows event to use as a signal for the Cmd jobstep to abort
I want to display a comma-separated list of the text values for a row. For example, if [flags] = 12, I want to display 'Write Transact-SQL job step output to step history, Write log to table (overwrite existing history)'.
What is the most efficient way to accomplish this?Here is a query that gives the pattern:
DECLARE @val int = 43
;WITH numbers AS (
SELECT power(2, n) AS exp2 FROM (VALUES(0), (1), (2), (3), (4), (5), (6)) AS n(n)
), list(list) AS (
SELECT
(SELECT CASE WHEN exp2 = 1 THEN 'First flag'
WHEN exp2 = 2 THEN 'Flag 2'
WHEN exp2 = 4 THEN 'Third flag'
WHEN exp2 = 8 THEN 'IV Flag'
WHEN exp2 = 16 THEN 'Flag #5'
WHEN exp2 = 32 THEN 'Another flag'
WHEN exp2 = 64 THEN 'My lucky flag'
END + ', '
FROM numbers
WHERE exp2 & @val = exp2
ORDER BY exp2
FOR XML PATH(''), TYPE).value('.', 'nvarchar(MAX)')
SELECT substring(list, 1, len(list) - 1)
FROM list
Here I'm creating the numbers on the fly, but it is better to have a table of numbers in your database. It can be used in many places, see here for a short discussion:
http://www.sommarskog.se/arrays-in-sql-2005.html#numbersasconcept
(Only read down to the next header.)
For FOR XML PATH thing is the somewhat obscure way we create concatenated lists. There is not really any using trying to explain how it works; it just works. The one thing to keep in mind is that it adds an extra comma at the end and the final query strips
it off.
This query does not handle that 0 has a special meaning - that is left as an exercise to the reader.
Erland Sommarskog, SQL Server MVP, [email protected] -
How to display text value in the header data (Header text) of credit memo
Hi...
I need to display the text value of the text field in the header text of the header data in credit memo.
The text values are stored in a ztable and i need to display it based on the billing document stored in vbrk (zfield) that was inserted during the creation of credit request..
Appreciate your help on how to do this...
Thansk and will surely reward the points..
Kanthi..Hi kanthi ,
Read the value from Z Table and during the creation of cedit memo check out for some exit where u the value from The zTABLE AND use function module SAVE_TEXT with object and id in the header text .
Please award if useful. -
How can I get the text value of an XML element in MXML ?
Hi,
I have the following XML loaded into a variable of type XML :
<properties>
<comment>RIMpro Data Collector Configuration</comment>
<entry key="server.pear.username"/>
<entry key="server.apple.retry.times">5</entry>
<entry key="rdc.proxy.host">http://192.168.1.2:8080</entry>
/properties>
I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider to my variable and the dataField to "@key". But I do not know how to get the text value in a second column... Is there a way or do I need to change my XML to something like this :
<properties>
<comment>RIMpro Data Collector Configuration</comment>
<entry key="server.pear.username"/>
<entry key="server.apple.retry.times" value="5"></entry>
<entry key="rdc.proxy.host" value="http://192.168.1.2:8080"></entry>
/properties>
Many thanks in advance.
Marcyes, you'd better modify your XML structure to fit the DataGrid internals.
Since dataField pattern require each grid row item to have a named property to be displayed, otherwise you'll be forced to overcome this pattern using custom labelFunction for the particular column which will implement your custom actions on how to extract appropriate data for that column out of grid row item. It will be much more complicated than just rearranging your xml structure. -
Error while reading the Long text Using READ_TEXT
Hi friends,
Right now I am working with Smartforms.While I am reading the Long text of the material using function module READ_TEXT I am getting the following error if the text is not there.
OUT_PURCH_PO ID GRUN language EN not found.
I should not get this error Instead I should get the blank value.
OUT_PURCH_PO - my material name.
Following is my code.
IF WA_EKPO-KNTTP = 'F' AND WA_MTART-MTART = 'ZMSC'.
READ TABLE IT_SGTXT INTO WA_SGTXT WITH KEY MATNR = WA_EKPO-MATNR.
WA_EKPO-TXZ01 = WA_SGTXT-SGTXT.
NAME = WA_EKPO-MATNR.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = ID
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = OBJECT
IMPORTING
HEADER = THEAD
TABLES
LINES = LTEXT.Hi,
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = id
language = sy-langu
name = name
object = object
TABLES
lines = ltext
EXCEPTIONS " --> have this
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edited by: Avinash Kodarapu on Jun 5, 2009 7:32 PM -
Clear text value not allowed for credentials in config.xml
I am in the process of migrating our J2EE application from Weblogic 8.1 to Weblogic 10 MP1 and have converted config.xml to the new schema. When starting up in production mode, I see the following error which causes the server to shutdown:
<Server failed. Reason: [Management:141266]Parsing Failure in config.xml: java.lang.IllegalArgumentException: In production mode, it's not allowed to set a clear text value to the property: CredentialEncrypted of SecurityConfigurationMBean>
In 8.1 it seems that it would fill in the credentials based on the username and password in boot.properties so it was possible for our installation program to leave these entries blank. However, when starting in 10.0 it doesn't do this. Below is an excerpt from config.xml.
<security-configuration>
<name>xyz</name>
<realm>
<sec:authentication-provider xsi:type="wls:default-authenticatorType"></sec:authentication-provider>
<sec:authentication-provider xsi:type="wls:default-identity-asserterType">
<sec:active-type>AuthenticatedUser</sec:active-type>
</sec:authentication-provider>
<sec:role-mapper xsi:type="wls:default-role-mapperType"></sec:role-mapper>
<sec:authorizer xsi:type="wls:default-authorizerType"></sec:authorizer>
<sec:adjudicator xsi:type="wls:default-adjudicatorType"></sec:adjudicator>
<sec:credential-mapper xsi:type="wls:default-credential-mapperType"></sec:credential-mapper>
<sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"></sec:cert-path-provider>
<sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
<sec:user-lockout-manager></sec:user-lockout-manager>
<sec:security-dd-model>Advanced</sec:security-dd-model>
<sec:combined-role-mapping-enabled>false</sec:combined-role-mapping-enabled>
<sec:name>myrealm</sec:name>
</realm>
<default-realm>myrealm</default-realm>
<credential-encrypted></credential-encrypted>
<web-app-files-case-insensitive>os</web-app-files-case-insensitive>
<compatibility-connection-filters-enabled>true</compatibility-connection-filters-enabled>
<enforce-strict-url-pattern>false</enforce-strict-url-pattern>
</security-configuration>
Is anyone else trying to do this?
HenryHi henry,
While running a particular instance in the production mode(wls 10.x),prior to upgrading the domain you need to upgrade the security provider(all the mbeans ) you use in the previous versions and later on if you follow the domain upgrade you may find a solution for this issue... -
Reading in a text file to GUI for later analysis
Good Morning any and everyone,
I'm trying to get a piece of code working to read in a text file and it isn't working very well. The code has been seriously crunched together from a multitude of sources so I suspect that the error has occurred from there.
The errors that are occurring are "Can't Find Symbol" errors. Only 2 of them though which is a lot less than I had earlier. Now I'm just banging my head against the wall.
Has anyone got any suggestions as to where I'm going wrong? Anything greatly appreciated.
(PS> Please be gentle, I'm still a newbie)
Thanks.
import java.util.*; // required for List and ArrayList
import java.io.*; // required for handling and IOExceptions
import javax.swing.*;
public class textAnalyser extends JFrame // implements ActionListener
// the attributes
// declare a TextArea
private JTextArea viewArea = new JTextArea(10,55);
// declare the menu components
private JMenuBar bar = new JMenuBar();
private JMenu fileMenu = new JMenu("File");
private JMenu quitMenu = new JMenu("Quit");
private JMenuItem selectChoice = new JMenuItem("Select");
private JMenuItem runChoice = new JMenuItem("Run");
private JMenuItem reallyQuitChoice = new JMenuItem("Really quit");
private JMenuItem cancelChoice = new JMenuItem("Cancel");
// declare an attribute to hold the chosen file
private File chosenFile;
// the constructor
public textAnalyser()
setTitle("Text Analyser"); // set title of the frame
add(viewArea); // add the text area
// add the menus to the menu bar
bar.add(fileMenu);
bar.add(quitMenu);
// add the menu items to the menus
fileMenu.add(selectChoice);
fileMenu.add(runChoice);
quitMenu.add(reallyQuitChoice);
quitMenu.add(cancelChoice);
// add the menu bar to the frame
setJMenuBar(bar);
// add the ActionListeners
// selectChoice.addActionListener(this);
// runChoice.addActionListener(this);
// reallyQuitChoice.addActionListener(this);
// cancelChoice.addActionListener(this);
// configure the frame
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
setSize(450,200);
setVisible(true);
public void actionPerformed(ActionEvent e)
if(e.getSource() == displayContentsChoice)
try
final int MAX = 300;
FileReader textFile = new FileReader("textfile.txt");
BufferedReader textStream = new BufferedReader(textFile);
int ch; // holds integer value of character
char c; // holds character when type cast from integer
int counter = 0; //counts number of characters read
ch = textStream.read(); //reads the first character from the file
c = (char) ch; //type cast from integer to character
viewArea.append("\n");
/* continue through the file until either the end of the file or the maximum
number of characters allowed have been read*/
while(ch != -1 && counter <= MAX)
counter++; // increment the counter
viewArea.append("" + c); // display the character
ch = textStream.read(); // read the next character
c = (char) ch;
textStream.close();
viewArea.append("\n");
catch(IOException ioe)
if(chosenFile == null) // no file selected
viewArea.append("No file selected\n");
else
viewArea.append("There was a problem reading the file\n");
}A couple of points:
*You've commented out stuff that is needed, like the adding of actionlisteners, the implements actionlistener,...
*Your actionlistener is looking for a menu choice which doesn't exist "displayContentsChoice". Does this menu item need to be created?
*How much of this code have you yourself created? Do you understand its inner working?
*What is the purpose of this code? Is it for work? School? Homework?
Good luck!
/Pete -
Error AU133 Account 'Contra account: Acquisition value' could not be found
I have this error when running RAPERB2000 program in IDES ECC6.0.
I have checked AO90 and this B/S account (199990) is maintain correctly in area 64 for the account determination.
This is the job log:-
02.12.2010 23:21:41 Errors occurred during the posting run (see the log)
02.12.2010 23:21:41 Company code AA01, depreciation area 64, fiscal year 2010, account group 30000
02.12.2010 23:21:41 Account 'Contra account: Acquisition value' could not be found for area 64
02.12.2010 23:21:41 Company code AA01, depreciation area 64, fiscal year 2010, account group 40000
02.12.2010 23:21:41 Account 'Contra account: Acquisition value' could not be found for area 64
02.12.2010 23:21:41 Company code AA01, depreciation area 64, fiscal year 2010, account group 30000
02.12.2010 23:21:41 Account 'Contra account: Acquisition value' could not be found for area 64
02.12.2010 23:21:41 Document INT-000026 was created successfully for Asset Accounting
02.12.2010 23:21:41 Company code AA01, depreciation area 99, fiscal year 2010, account group 20000
02.12.2010 23:21:41 Document INT-000027 was created successfully for Asset Accounting
02.12.2010 23:21:42 Errors occurred during the posting run (see the log)
Anyone has any idea why this error occur?Hi,
Error AU133, is generally issued from some wrong or missing customizing. The text of the error message indicates in your case that a "Account 'Contra account'" and area 64 is concerned.
1) At first, please double check if in in AO90 (or table T095) the account is maintained for area 64. Do you have not defined a contra account for acquisition value postings in the Asset Accounting Customizing settings (Transaction AO90)?
Further, check in tr. OADB if you have defined "Different Depreciation Area XX". That means area 64 takes the account determination from area xx and perhaps there it is no account defined?
If this is not the reason:
2) Execute report RACKONT1 or transaction OAK4. Account determination should be set following the rules explained in SAP note 7595. Even if some account is not directly used, the account determination has to be completed. If output from RACKONT1 is not error free, it indicates that your customizing is wrong. You might correct it with the help of note 7595.
Furthermore:
3) You have defined the account in Asset Accounting, however, it is not created in the affected company code. Check whether the account is correct and create it for the company code, if necessary.
4) You have entered an asset reconciliation account for the "Contra account: Acquisition value posting" (for example, the same account as for the "Acquisition:Acquis. and production costs" account). This is not permitted.
5) As "Contra account: Acquisition value posting" you entered an asset G/L account. If necessary change the automatic posting indicator in the G/L account master record.
Regards Bernhard
Maybe you are looking for
-
Lightroom 2.1 Release Candidate is available in the Labs
http://labs.adobe.com/wiki/index.php/Lightroom_2.1 http://blogs.adobe.com/lightroomjournal
-
I get the following window pop up after trying to install Adobe Premiere Elements. After it prompts me to select the language i get this:
-
I have over one thousand photos that I took on a recent trip. I have most of them already posted at my web site (www.mcran.com). If you click on the Photos link, Poland 2006 you will see how I added the photos. There are 90 per page. I had to manuall
-
"We require that feeds include a title"
I recently tried to submit a podcast to the iTunes store, but was rejected during the first step. Where it asks for the feed url, I put it in, feed://web.mac.com/rafaelsands/GreatCommercials_Podcast/Great_CommercialsPodcast/rss.xml but it said +"We r
-
Hi gurus, Process: 1) Raised service PO 2) Capture service entry sheet based on PO 3) we do MIRO based on service entry sheet My client have requirment for VAT in MIRO. know when we r posting through MIRO the entries: Vendor 2187 Cr G