Need answer for this thread
I have a standard report..
RM06BA00
when i run this report it is runing properly,
the fileds are displaying properly
My requirment is when i run a new zreport based on that old report...
I have created a zreport...
I need to get a additional field "LONG TEXT DESCRIPTION " to be displayed on the report as a collumm....
i have tried it using the function-module read_text....
But i am unable to get the parameters to pass into the table internal-table
i am unable to get the final internal table....
can anybody provide the solution to me....
Hai Nagaraj,
What to do with the table STXH...
I opened the table stxh...
what should i do with it....
can u explain me once....
i could not understand at all...
what to do with that table....
Similar Messages
-
Hi to everybody
I have a t-code AC01 service purchase request number..
In that , I have a field "LONG TEXT"...
if i enter some data into the Long Text, it directly goes to the database ,
so How to know the Database-Table and the field...
Can you tell me the ways to find out the database table and the field....hi,
long text doesnt have any field, place where u enter long text in ac01 ,above it there is t symbol, just double click it it takes u to script editor, its shows u text id,
language, tdname,object.
u had to pass this parametrs in to function module read_text to retrive, other wise, create_text to upload,
check this tables
The text is stored in table STXH/STXL
Keys:
TDID = 'LTXT'
TDPRAS = <language>
TDNAME = nr of the service
TDOBJECT = 'ASMD'.
check this code for uploading long text.
DATA: BEGIN OF itab OCCURS 0,
asnum LIKE asmd-asnum, " Service No
text(5000) TYPE c, " Long Text
END OF itab.
*DATA: itab1 LIKE itab OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF itab1 OCCURS 0,
asnum LIKE asmd-asnum, " Service No
sequ type i, " Text Sequence
text(5000) TYPE c, " Long Text
END OF itab1.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras. " Language
Constants
Object ID for Long Text of Service Master
CONSTANTS:c_best TYPE thead-tdid VALUE 'LTXT',
c_material TYPE thead-tdobject VALUE 'ASMD'. " Object
for file splitting.
DATA: start TYPE i,
len TYPE i VALUE 92,
totlen TYPE i,
n TYPE i.
PARAMETERS p_file LIKE rlgrap-filename."input file
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
LOOP AT itab.
itab1-asnum = itab-asnum.
CLEAR: totlen,n, start.
totlen = STRLEN( itab-text ).
n = totlen / len.
n = n + 1.
DO n TIMES.
itab1-text = itab-text+start(len).
itab1-sequ = sy-index.
start = start + len.
APPEND itab1.
ENDDO.
ENDLOOP.
delete itab1 where text is initial.
SORT itab1 BY asnum sequ.
LOOP AT itab1.
dt_lines-tdformat = '*'.
dt_lines-tdline = itab1-text.
APPEND dt_lines.
Call the Function Module to Create Text
AT END OF asnum.
dl_lan = sy-langu.
WRITE : / itab-asnum.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = itab1-asnum
IMPORTING
output = itab1-asnum.
MOVE itab1-asnum TO dl_name.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Service No'(001),
itab1-asnum.
ELSE.
WRITE:/ 'Long Text Created Successfully for Service No'(002),
itab1-asnum.
ENDIF.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
regards
siva. -
hello please help me in my problem in apple id, i cannot connect to my ipad mini in itune store and app store because they find me a credit card but i dont have credit card. what can i do now? i need an answer for this problem. thank you
I would suggest that you buy a visa or mastercard gift card and put a few dollars on it and use it to access the store. Just add money to it before you want to buy something from the store and it will act like a normal credit card for you.
-
I'm using Photoshop cc 2014.21 I you save for Web and dialog box comes up that says that Photoshop is using Latin characters and that servers cannot recognize Latin characters in webpages and you may have trouble viewing these pages does anyone have an answer for this problem?
What Firefox version is currently installed on the computer?
You can find the full version of the current current Firefox release (37.0.2) in all languages and all operating systems here:
*https://www.mozilla.org/en-US/firefox/all/
If you have a very old Firefox version then you could consider to uninstall that version to clean up existing registry keys (especial the uninstall key).
Make sure NOT to remove "personal data" when you uninstall Firefox, because that will remove all profile folders and you lose personal data like bookmarks and passwords including data in profiles created by other Firefox versions.
Check the Firefox program folder and remove the Firefox program folder if there are still files left in it.
*(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
*(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
*http://kb.mozillazine.org/Uninstalling_Firefox
Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure NOT to remove personal data when you uninstall Firefox as that will remove all Firefox profile folders and you lose your personal data.
*http://kb.mozillazine.org/Profile_folder_-_Firefox
*http://kb.mozillazine.org/Profile_backup
*http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall -
No externally managed transaction is currently active for this thread
Got the following exception after updating an entity bean and call persist method. Code the given below the exception.
Exception [TOPLINK-23010] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.TransactionException
Exception Description: No externally managed transaction is currently active for this thread
public Object persistEntity(Object entity) {
em.flush();
em.persist(entity);
return entity;
private void modifyUser (Iuser user, String newHandle, Hashtable userDetails) throws UnknownException, WarningException {
if (user == null) {
throw new WarningException (new CatalogHelper("ITOOLS_000015", "to modify a user"));
boolean handleUpdate = false;
if ((newHandle != null) && !newHandle.equals("^\\s*$")) {
handleUpdate = true;
String oldHandle = user.getUserhandle();
if (handleUpdate && oldHandle.equalsIgnoreCase(newHandle)) {
handleUpdate = false;
if (!handleUpdate && (userDetails == null) || (userDetails.size() == 0)) {
return;
if (handleUpdate) {
userDetails.put("userhandle", newHandle);
IToolsUtil.validateInputData("iuser", userDetails, false);
if (handleUpdate) {
userDetails.remove("userhandle");
System.out.println("handleUpdate " + handleUpdate);
// For User admin, handle, isactive, isadmin cannot be changed.
if (oldHandle.equals("admin")) {
if (handleUpdate) {
throw new WarningException (new CatalogHelper("ITOOLS_000045", "Handle"));
String active = (String)userDetails.get("isactive");
if ((active != null) && !active.equals("Yes")) {
throw new WarningException (new CatalogHelper("ITOOLS_000045", "Is Active"));
String admin = (String)userDetails.get("isadmin");
if ((admin != null) && !admin.equals("Yes")) {
throw new WarningException (new CatalogHelper("ITOOLS_000045", "Is Admin"));
System.out.println("user transaction started");
if (handleUpdate) {
FinderMethods fm = new FinderMethods();
try {
fm.findByUserHandle(em, newHandle);
throw new WarningException (new CatalogHelper("ITOOLS_000043", newHandle));
} catch (ObjectNotFoundException onfe) {
user.setUserhandle(newHandle);
System.out.println("User handle modified");
} catch (SQLException se) {
se.printStackTrace();
throw new UnknownException (new CatalogHelper("ITOOLS_100000", new Object[]{"modifyUser", se.getMessage()}));
String lname = (String)userDetails.get("userlname");
if (lname != null) {
user.setUserlname(lname);
String fname = (String)userDetails.get("userfname");
if (fname != null) {
user.setUserfname(fname);
String email = (String)userDetails.get("useremail");
if (email != null) {
user.setUseremail(email);
String passwd = (String)userDetails.get("userpasswd");
if (passwd != null) {
user.setUserpasswd(passwd);
String active = (String)userDetails.get("isactive");
if (active != null) {
user.setIsactive(active);
String admin = (String)userDetails.get("isadmin");
if (admin != null) {
user.setIsactive(admin);
System.out.println("details are updated");
persistEntity(user);
System.out.println("committed");
How to resolve this issue? I am using Jdeveloper 10.1.3.0.4 (SU4)
regds
-rajuThe stack trace is given below. This exception is occured at "em.flush()" method. I even tried removing em.flush() method. Even then I got the same exception.
I tried a different way of overcome this problem. Used UserTransaction instance say "ut" before create / modify the entity bean and later comitted. In that case I am not getting any exceptions. However, commit is happening only when new instance is created, commit works, but modification of an existing instance, commit is not working. Looks like there is some serious problem with EJB 3.0 in OC4J. Basic functionality is not working.
Stack trace when flush method is called:
Local Exception Stack:
Exception [TOPLINK-23010] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.TransactionException
Exception Description: No externally managed transaction is currently active for this thread
at oracle.toplink.exceptions.TransactionException.externalTransactionNotActive(TransactionException.java:98)
at oracle.toplink.internal.ejb.cmp3.transaction.base.JTATransactionWrapper.checkForTransaction(JTATransactionWrapper.java:39)
at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:322)
at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.getActiveUnitOfWork(EntityManagerImpl.java:314)
at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.flush(EntityManagerImpl.java:164)
at com.itools.vs.model.session.AdminSessionBean.persistEntity(AdminSessionBean.java:57)
at com.itools.vs.model.session.AdminSessionBean.createUser(AdminSessionBean.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Stack trace when persist method is called:
Local Exception Stack:
Exception [TOPLINK-23010] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.TransactionException
Exception Description: No externally managed transaction is currently active for this thread
at oracle.toplink.exceptions.TransactionException.externalTransactionNotActive(TransactionException.java:98)
at oracle.toplink.internal.ejb.cmp3.transaction.base.JTATransactionWrapper.checkForTransaction(JTATransactionWrapper.java:39)
at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:322)
at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.getActiveUnitOfWork(EntityManagerImpl.java:314)
at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.persist(EntityManagerImpl.java:74)
at com.itools.vs.model.session.AdminSessionBean.persistEntity(AdminSessionBean.java:57)
at com.itools.vs.model.session.AdminSessionBean.createUser(AdminSessionBean.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595) -
pls i need help for this simple problem of my palm os zire 72. pls share your ideas with me.... i tried to connect my palm os zire72 in my desktop computer using my usb cable but i can't see it in my computer.. my palm has no problem and it works well. the only problem is that, my desktop computer can't find my palm when i tried to connect it using usb cable. is thier any certain driver or installer needed for it so that i can view my files in my palm using the computer. where i can download its driver? is there somebody can help me for this problem? just email me pls at [email protected] i really accept any suggestions for this problem. thanks for your help...
If you are using Windows Vista go to All Programs/Palm and click on the folder and select Hot Sync Manager and then try to sync with the USB cable. If you are using the Windows XP go to Start/Programs/Palm/Hot Sync Manager and then try to sync. If you don’t have the palm folder at all on your PC you have to install it. Here is the link http://kb.palm.com/wps/portal/kb/common/article/33219_en.html that version 4.2.1 will be working for your device Zire 72.
-
Need answers for finance module? so any finance consultant can help me
hai
i need answers for automatic credit check managament.
So,Can any functional consultant or technical consultant
who knew the concept can help me to resolve
the query.
The query is abt the functional module
"ENTIRE_LOAN_AMOUNT_CALCULATE".
this will retrieve the structure RLOAM
from which i have <u>to get the balance amount</u>
for the relevant company code and contract number found.
1) here what is the balance amount from that structure
and which fields i have to consider.
2) what is the security fund contract?Sorry about cross-posting. I just coudn't help. I was so desperate because I'm having F in this class since I haven't turned in any programs so far. So please understand me a little bit.
And Thank you all for reading and answering my question. It really helped me a lot.
I think I'm gonna have to bother you guys often =) Thank you again~!
Oh.. by the way, is there any way that I can write this program using basic methods like 'for', 'while' ,'array'?
because we haven't got so far in my class and I'm not sure if my teacher's will accept my program written, using the methods that we haven't even learned. Any way Thank you again~!
c.f> I will cross-post this so I can thank everyone. -
what the answer for this error, the application could not open because the "NameRegistryLib" could not be found
http://www.everymac.com/mac-answers/mac-os-9-classic-support-faq/run-macos-9-on- intel-macs.html
http://www.macwindows.com/Emulator-for-Mac-OS-9-in-OS-X-updated-for-Mountain-Lio n.html
http://hints.macworld.com/article.php?story=20060509180914879
How to run Classic (pre OS X) apps on Intel Macs -
hi, sometimes big images could not open with photoshop.ı can open with windows but cant open photoshop.if ı try to open i am seeing a white image.is there any answer for this problem please.
Just to assist those who might help you with this, please give the exact version of Photoshop CS6 you are running, for instance CS6 13.0.1.3.
I had already asked for that in my previous post, but I guess you didn't quite know what I was referencing when I typed "exact version".
Sorry, I cannot help you myself because I don't deal with that kind of 3D images, don't use Windows, and in all frankness I'm not quite following your last post.
Also please give the exact model of your graphics card, so they can check whether it is on the list of cards tested by Adobe.
Thank you. -
Hi there, need help for this program...thx!
Hi there guys,
I have created this applet program that requires a user to login with a user no, and a password. I am using arrays as to store the defined variables,(as required by my project supervisor). My problem here is that when the arrays are declared in class validateUser(), the program would run fine, but i cant login and i get a NullPointerException error. if the arrays are located in actionPerformed, i get a 'cannot resolve symbol' error for the method 'get' and 'if (Admin.equals(admins.get(i).toString())) ' as well as 'if (Password.equals(passwordsget(i).toString())) '. I am not very effecient in java, hence the untidy program (and i have to admit, it isnt any good), so sorry for any inconvenience caused. Once agani thx in advance ;)
here are my codings :
import java.applet.Applet;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.io.*;
import java.net.URL;
import java.net.*;
import javax.swing.*;
import java.lang.*;
import java.util.Vector;
public class eg31662 extends Applet implements ActionListener
Panel panel1, panel2, panel3, panel4, panel5;
Button login, enter;
Label inst, top, admin, pass, fieldlabel;
TextField adminF, passF, field;
String Admin, Password;
Vector admins, passwords;
Thread thread = null;
boolean status = false;
public class validateUser extends Applet
String[] admins = {"User1", "User2", "User3"};
String[] passwords = {"P1", "P2", "P2"};
public void init()
setLayout (new BorderLayout());
panel1 = new Panel(new FlowLayout());
panel2 = new Panel(new FlowLayout());
//login button
login = new Button("Login");
//instruction
inst = new Label("Please type in your User no. and the given password in order to proceed");
//label
top = new Label("Login login");
admin = new Label("Admin No :");
pass = new Label("Password :");
//input textfields
adminF = new TextField(8);
passF = new TextField(10);
passF.setEchoChar('*');
panel1.setBackground(Color.gray);
panel2.setBackground(Color.orange);
panel2.add(admin);
panel2.add(adminF);
panel2.add(pass);
panel2.add(passF);
panel2.add(login);
panel2.add(inst);
panel1.add(top);
add(panel1, BorderLayout.NORTH);
add(panel2, BorderLayout.CENTER);
login.addActionListener(this);
setSize(500,400);
void mainpage()
boolean flag = true;
setLayout (new BorderLayout());
panel1 = new Panel(new FlowLayout());
panel2 = new Panel(new FlowLayout());
top = new Label("Welcome");
enter = new Button("Enter");
panel2.setBackground(Color.orange);
panel1.setBackground(Color.gray);
fieldlabel = new Label("Type something here :");
field = new TextField(20);
add(panel1, BorderLayout.NORTH);
add(panel2, BorderLayout.CENTER);
panel2.add(fieldlabel);
panel2.add(field);
enter.addActionListener(this);
public void start() {
if(thread == null) {
status = true;
public void stop() {
status = false;
public void run() {
while(status == true) {
try {
thread.sleep(50);
catch(InterruptedException ie) {
repaint();
thread = null;
public void actionPerformed(ActionEvent ev)
//String[] admins = {"User1", "User2", "User3"};
//String[] passwords = {"P1", "P2", "P3"};
if(ev.getSource() == login)
Admin = adminF.getText();
Password = passF.getText();
boolean ok = true;
for (int i = 0; i < admins.size(); i++) {
if (Admin.equals(admins.get(i).toString())) {
if (Password.equals(passwords.get(i).toString())) {
ok = true;
this.setVisible(false);
//break;
JOptionPane.showMessageDialog(null, "Welcome, u have successfully logged in");
mainpage();
else {
ok = false;
else {
ok = false;
if (ok == false) {
JOptionPane.showMessageDialog(null,
"Incorrect Password or Admin No, Please Try Again",
"Access Denied",
JOptionPane.ERROR_MESSAGE);
else {
this.setVisible(false);
}Hi, sorry to bring this thread up again, but this is actually a continuation from my previous posted program. Hope u guys can help me again!
Right now i'm supposed to come up with a simple quiz program, which consists of the center panel displayin the question (in a pic format), and a textfield to enter the answer at the lower panel. this goes on for a couple of pages and once it is completed, the final page would display the total correct answers out of the number of questions, as well as the score in percentage form.
The few(or many) problems taht i'm facing are :
1)How do i save the answers that are typed in each textfieldAnd later on checked for the correct answer based on the array given?
2)How do i go about doing the final score in percentage form and total of correct answers?
3)I previously tried out using canvas, but it didnt seem to work. my questions(pictures) that are supposed to displayed in the center(canvas) produce nothing. How do i rectify that?
i'm really sorry for the mess in the codings, hope this wouldnt be a hassle for any of u out there. Once again thanks in advance!
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import java.net.URL;
import java.net.*;
import java.util.Vector;
import javax.swing.*;
import java.awt.image.*;
import java.lang.*;
import java.awt.Graphics;
public class eg31662 extends Applet implements ActionListener
Panel panel1, panel2, panel3, panel4, panel5;
Button login, enter;
Label inst, top, admin, pass, startLabel;
TextField adminF, passF, field;
String Admin, Password;
Vector admins, passwords;
//Quiz declarations
TextField ansF1,ansF2,ansF3;
Button startBut, next0, next1, finishB, previous1;
Image q1, q2, q3;
Image ques[] = new Image[2];
boolean text = false;
boolean checked = false;
int correct = 0;
String [] answer = new String [2];
String [] solution = {"11", "22", "33"};
boolean text = false;
boolean sound = true;
int red,green,blue;
int question =0;
int good = 0;
boolean pause= false;
boolean start = true;*/
Thread thread = null;
boolean status = false;
public void init()
validateUser();
setLayout (new BorderLayout());
panel1 = new Panel(new FlowLayout());
panel2 = new Panel(new FlowLayout());
panel3 = new Panel(new FlowLayout());
//login button
login = new Button("Login");
//instruction
inst = new Label("Please type in your UserName and the given " +
"password in order to proceed");
//label
top = new Label("Top Label");
admin = new Label("User Name :");
pass = new Label("Password :");
//input textfields
adminF = new TextField(8);
passF = new TextField(10);
passF.setEchoChar('*');
panel1.setBackground(Color.gray);
panel2.setBackground(Color.orange);
panel3.setBackground(Color.gray);
panel2.add(admin);
panel2.add(adminF);
panel2.add(pass);
panel2.add(passF);
panel2.add(login);
panel3.add(inst);
panel1.add(top);
add(panel1, BorderLayout.NORTH);
add(panel2, BorderLayout.CENTER);
add(panel3, BorderLayout.SOUTH);
login.addActionListener(this);
setSize(500,400);
private void validateUser()
String[] adminData = {"t", "User1", "User2", "User3"};
String[] passwordData = {"t", "P1", "P2", "P3"};
admins = new Vector();
passwords = new Vector();
for(int j = 0; j < adminData.length; j++)
admins.add(adminData[j]);
passwords.add(passwordData[j]);
private void Mainpage()
boolean flag = true;
removeAll(); // remove all components from container
panel1 = new Panel(new FlowLayout());
panel2 = new Panel(new FlowLayout());
panel3 = new Panel(new FlowLayout());
top = new Label("Welcome");
enter = new Button("Enter");
panel2.setBackground(Color.orange);
panel1.setBackground(Color.gray);
panel3.setBackground(Color.gray);
startLabel = new Label("Welcome! " +
"Please click on the 'Start' button to begin the quiz ");
startBut = new Button("Start");
startBut.requestFocus();
Dimension dim = getSize();
startBut.setSize(50,20);
add(panel1, BorderLayout.NORTH);
add(panel2, BorderLayout.CENTER);
add(panel3, BorderLayout.SOUTH);
panel2.add(startLabel);
panel2.add(startBut);
startBut.addActionListener(this);
validate();
repaint();
private void Quiz1()
//quizCanvas = new Canvas();
boolean flag = true;
removeAll(); // remove all components from container
panel1 = new Panel(new FlowLayout());
panel2 = new Panel(new FlowLayout());
panel3 = new Panel(new FlowLayout());
panel1.setBackground(Color.gray);
panel2.setBackground(Color.orange);
panel3.setBackground(Color.gray);
add(panel1, BorderLayout.NORTH);
add(panel2, BorderLayout.CENTER);
add(panel3, BorderLayout.SOUTH);
q1 = getImage(getDocumentBase(), "1.gif");
ques[0] = q1;
//ques[1] = q2;
//previous = new Button("<");
next0 = new Button("Done");
ansF1 = new TextField(25);
next0.addActionListener(this);
//quizCanvas.insert(ques1);
//panel3.add(previous);
panel3.add(next0);
panel3.add(ansF1);
//panel2.add("1.gif");
ansF1.requestFocus();
ansF1.setText("focussing");
validate();
repaint();
public void Quiz2(){
boolean flag = true;
removeAll(); // remove all components from container
panel1 = new Panel(new FlowLayout());
panel2 = new Panel(new FlowLayout());
panel3 = new Panel(new FlowLayout());
panel1.setBackground(Color.gray);
panel2.setBackground(Color.orange);
panel3.setBackground(Color.gray);
add(panel1, BorderLayout.NORTH);
add(panel2, BorderLayout.CENTER);
add(panel3, BorderLayout.SOUTH);
q2 = getImage(getDocumentBase(), "2.gif");
ques[1] = q2;
next1 = new Button("Done");
ansF2 = new TextField(25);
next1.addActionListener(this);
panel3.add(next1);
panel3.add(ansF2);
ansF2.requestFocus();
ansF2.setText("focussing");
validate();
repaint();
public void Quiz3(){
boolean flag = true;
removeAll(); // remove all components from container
panel1 = new Panel(new FlowLayout());
panel2 = new Panel(new FlowLayout());
panel3 = new Panel(new FlowLayout());
panel1.setBackground(Color.gray);
panel2.setBackground(Color.orange);
panel3.setBackground(Color.gray);
add(panel1, BorderLayout.NORTH);
add(panel2, BorderLayout.CENTER);
add(panel3, BorderLayout.SOUTH);
q3 = getImage(getDocumentBase(), "3.gif");
ques[2] = q3;
finishB = new Button("Finish");
ansF3 = new TextField(25);
finishB.addActionListener(this);
panel3.add(finishB);
panel3.add(ansF3);
ansF3.requestFocus();
ansF3.setText("focussing");
validate();
repaint();
public void start() {
if(thread == null) {
status = true;
public void stop() {
status = false;
public void actionPerformed(ActionEvent ev)
boolean ok = true;
if(ev.getSource() == login)
Admin = adminF.getText();
Password = passF.getText();
for (int i = 0; i < admins.size(); i++) {
if (Admin.equals(admins.get(i).toString())) {
if (Password.equals(passwords.get(i).toString())) {
ok = true;
JOptionPane.showMessageDialog(null,
"Welcome, u have successfully logged in");
Mainpage();
break;
else {
ok = false;
else {
ok = false;
if (!ok) {
JOptionPane.showMessageDialog(null,
"Incorrect Password or Admin No, Please Try Again",
"Access Denied",
JOptionPane.ERROR_MESSAGE);
if(ev.getSource() == startBut)
Quiz1();
if (ev.getSource () == next0) {
saveanswer();
Quiz2();
if (ev.getSource () == next1) {
//saveanswer();
Quiz3();
if (ev.getSource () == finishB) {
//saveanswer();
//checkanswer();
/*class quizCanvas extends Canvas {
private Image quest;
public quizCanvas() {
this.quest = null;
public quizCanvas(Image quest) {
this.quest = quest;
public void insert(Image quest) {
this.quest=quest;
repaint();
public void paint(Graphics g) {
public void checkanswer() {
if (!checked) {
/*question = 0;
for (int a=1;a<16;a++) {
question++;*/
if (ansF1) {
if (answer[1].toUpperCase().equals(solution[1])) {
correct++;
if (ansF2) {
if (answer[2].toUpperCase().equals(solution[2])) {
correct++;
if (ansF3) {
if (answer[3].toUpperCase().equals(solution[3])) {
correct++;
checked = true; }
public void saveanswer() {
if (text) {
if (!ansF1.getText().equals("")) {
answer [Quiz1] = ansF1.getText();
//answer2[question] = tf2.getText();
if (!ansF2.getText().equals("")) {
answer [] = ansF2.getText();
if (!ansF3.getText().equals("")) {
answer [] = ansF3.getText();
} -
Hi,
I need sequence for autogenerate of code
Table 1
id code
We need to autogenerate code for every new entity of id
ex:
id code
sbi sbi001
hsb hsb002
xyz xyz003
And
ex:
id code
sbi s001
hsb h002
xyz x003You can use a Sequence and Trigger in combination like this
create table t
id varchar2(10)
, code varchar2(25)
create sequence t_seq;
create or replace trigger t_trig before insert on t for each row
declare
l_seq integer;
begin
select t_seq.nextval into l_seq from dual;
:new.code := :new.id || to_char(l_seq, 'fm099');
end;
insert into t (id) values ('sbi');
insert into t (id) values ('hsb');
insert into t (id) values ('xyz');
select * from t; -
Need code for this Small validation on when-validate-item
Hi All,
I have a text item(date datatype) in forms 4.5 I need to do a small validation want to write on when-validate-item. When I enter a date in that text item (Ex 10-JUN-2005) it has to check
1) It Cannot be "blank"
2) It cannot be "Not older than today"
can you please put me code for this small validation. I am new to Forms.
Thanks in Advance,
ReddyI always put code in the when-validate-RECORD trigger to ensure fields are entered, rather than setting the property. That way, the user can enter other fields within the record, and then gets a message that the field is required only when leaving the record.
...of course, if the date item is the only field in the block, then the when-validate triggers will not run unless the user at least types a space in the date. In that case, you need to check in the key-commit trigger. -
The puzzle relates to displaying check boxes (checkbox or multibox).
What I have are members who belong to professional groups and sub-groups. E.g.,
Group A with sub-groups A-1, A-2, A-3, A-4.
Group B with sub-groups B-1, B-2, B-3
Group C with sub-groups C-1, C-2, C-3, C-4, C-5, C-6
etc.
web site users make multiple selections among groups. And all members in those groups will receive an e-mail message.
I can display a check box for every single "sub-group". And give each "group" a "select all" check box. All I have to take care are the checked "sub-groups".
The challege comes as the "roles" of the web site users are introduced. According to the role of the web site user, I have to display certain groups (not all the groups) and certain sub-groups (not all sub-groups within a group) to him/her.
How do I disply groups and their sub-groups under such a condition?well, presuming you still need all values..., something along these lines
<%
boolean checked = isChecked("a"); // check if the value should be checked by default
if(showCheckbox(user, "a")) { // check if, for this user, the checkbox should be visible
%>
<input type="checkbox" name="a" value="a" <%= checked ?"checked":"" %>>
<%
} else { // show disabled checkbox (or leave that out to show nothing...)
%>
<input type="checkbox" name="noname" <%= checked ? "checked" : "" %> disabled="diabled" />
<%
if(checked) { // don't need hidden value if default is unchecked
%>
<input type="hidden" name="a" value="a">
<%
%> -
Please give answers for this. This is urgent
1)can u create internal table dynamically ?how?
2)what is the model dialogbox?
3)can u create more than one selectionscreen
4)in which event we will be writing authorization object.Hi
1)can u create internal table dynamically ?how?
Dynamic internal table is internal table that we create on the fly with flexible column numbers.
For sample code, please look at this code tutorial. Hopefully it can help you
Check this link:
http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
2)what is model dialog box?
Go to SE51 and create the model dialog box and see.
It is like creating the screen.
3)can u create more than one selectionscreen
Why do you need more than one selection screen for a program,One is enough .
4)in which event we will be writing authorization object.
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
I need solution for this query
hi all,
could anyone please send me solution for this query these are the database tables am having
TABLE NAME :USERS
ATTRIBUTES
UNAME
PASSWORD
GROUPNAME
TABLE NAME:GROUPS
ATTRIBUTES
GROUPID
GROUPNAME
my requirement is that i need 2 acces the groupname of a particular user and the reamining groups to which i doesn't belong in A SINGLE QUERY
my result needs to be like this
Authorised group
consultant
UNAuthorised groups
sales
vender
recruiter
admin
if any body got the solution please sendhi All,
I have 3 tables 1)PREVILEGES (groupname, previleges(values y or n only))
2)GROUPS (groupid, groupname)
3) USERS (uname, groupname).
Here each user belongs to one group, each user hav a default previlege means example if user is consutant then he can access only consultant group. Means default previlege will be used. For default previleges, there is no record in Previleges table.
The Problem is that, I need to reterive the groupname from users which de doesn't belong as well as his previleges from previleges, If there is no values in previleges in the table it should return n. or value what is therey.
the different groups are
SALES,CONSULTANT,VENDER,RECRUTER,ADMIN
Maybe you are looking for
-
Regardless of where I right-click on a displayed webpage (NOT the menu bar at the top of the screen), be it highlighted text, a blank spot in a webpage, or anything, the context menu for a hyperlink pops up (with the options for opening it in a new t
-
Bugs in calendar and alert in new software Anna fo...
I use my E7 for business. I think it is a good smart phone. My previous one was an HTC with Windows Phone 6.5. But windows decided to shut down 6.5 to develop 7 so deceided to go back to symbiam. I found some problem after I successfully upgraded my
-
Form created but not visible!!
Form created but not visible!! Hi everyBody, I've created 2 user Forms binded with a 2 user tables (with diffrent UDOs) and everything works perfectly. When I tried to run it on a machine at a customer, the first form functions perfectly and the se
-
Unable to open Canon T4i camera raw files in PSE10
I have a new Canont41 and I can't sign on to elements org Message title was edited by: Brett N
-
Hello Experts, We have a requirement of showing F4 help for a editable field of ALV Grid. I'm able to register the on_f4 event, but I do have a problem while implementing the method, as the pop up values are not appearing. I have used following logic