Abap code.........Plz help me
Hi all,
My requirement is
1. Users will be using the file upload Tcode in BW ( This TCode access will be authorized to specifi users)
2. ABAP Program need to place the file in the specified folder. Use the Z_FLATFILE_UPLOAD as a start. Copy to New program and work witht he New program
3. The ABAP program should be able to sent Trigger event after placingt he file to start the Process Chain, in which The flat file should be able to load to the ODS.
4. On Successful completion of the Process chain, the specific user group should be able to recive the email Message that the uploaded file has been loaded and avaible for reporting.
The ABAP program should be able to handle the follwing:
1. If the File Format is not correct the user should get an error message that the file is not in the expected format.
2. Once the File upload complete, user should see the message that the file uploaded correctly.
3. on Successful completion of the FileUpload, The program should trigger event.
and the program Z_FLATFILE_UPLOAD is given below
REPORT Z_FLATFILE_UPLOAD message-id zx .
PARAMETERS: FILE_NM LIKE RLGRAP-FILENAME obligatory.
PARAMETERS: P2 LIKE RLGRAP-FILENAME
DEFAULT '/Userdata/IFIN/0557'.
DATA: INRECORD_COUNT TYPE i,
OUTRECORD_COUNT TYPE i.
DATA : MASK(20) TYPE C VALUE ',. ,..'.
DATA: BEGIN OF ITAB OCCURS 0,
RECORD(3000),
END OF ITAB.
AT selection screen help and F4 statements
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE_NM.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = FILE_NM
MASK = MASK
MODE = 'O'
TITLE = 'File Select'
IMPORTING
FILENAME = FILE_NM
EXCEPTIONS
INV_WINSYS = 04
NO_BATCH = 08
SELECTION_CANCEL = 12
SELECTION_ERROR = 16.
IF FILE_NM = ' ' AND SY-SUBRC = 12.
SET CURSOR FIELD 'FILE_NM'.
MESSAGE I000(ZX) with 'File Selection cancelled.'
'Please select a valid file to proceed'.
ELSEIF SY-SUBRC NE 0.
MESSAGE E000(ZX) WITH FILE_NM.
EXIT.
ENDIF.
START-OF-SELECTION.
CALL FUNCTION 'UPLOAD'
EXPORTING
FILENAME = FILE_NM
TABLES
DATA_TAB = ITAB.
if sy-subrc <> 0.
message i000(ZX) with 'Upload Failed'.
LEAVE LIST-PROCESSING.
endif.
*editor-call for input_rec.
OPEN DATASET P2 FOR output IN text mode encoding default.
IF SY-SUBRC <> 0.
message i000(ZX) with 'COULD NOT OPEN THE FILE'.
LEAVE LIST-PROCESSING.
ENDIF.
INRECORD_COUNT = 0.
OUTRECORD_COUNT = 0.
LOOP AT ITAB. .
INRECORD_COUNT = INRECORD_COUNT + 1.
TRANSFER ITAB-RECORD TO P2.
OUTRECORD_COUNT = OUTRECORD_COUNT + 1.
ENDLOOP. "itab
END-OF-SELECTION.
CLOSE DATASET P2.
IF SY-SUBRC <> 0.
message e000(ZX) with 'COULD NOT OPEN THE FILE'.
ENDIF.
WRITE: / '# of records read ', INRECORD_COUNT,
/ '# of records transfered', OUTRECORD_COUNT.
WRITE:/ 'upload filename', FILE_NM.
WRITE:/ ' aix filename', P2.
after this code i need to trigger my event can any onle tell me the steps after this program and the code also please
thanks in advance
Sri
points will be assigned
Hey,
This forum is used to get some ideas/tips when you stcuk at some point during the development. This is not a place to send your work & expecting somebody to do it for you.
see similar funny thread
plz help me
Similar Messages
-
A i want to do sap abap certification plz help me what is process
hi ,
i am working with one MNC as an abap consultant, and i want to do certification ,and i want to know how exam and syllabus , fee , and model papers.if any one have info plz help.
thanking u ,Hi Kumar,
I wish al the best for you....have a look @ this link it will provide you smple details about certification.....
http://www.sapprofessionals.org/files/ABAP%20CERTIFICATION%20QUESTIONS.doc
please check the following site which offers some example questions.
http://www.sapdomain.com/certification.php
certification ..
/message/213564#213564 [original link is broken]
/message/514469#514469 [original link is broken]
/message/1315746#1315746 [original link is broken]
/message/1736299#1736299 [original link is broken]
/message/1736299#1736299 [original link is broken]
/message/257122#257122 [original link is broken]
/message/130164#130164 [original link is broken]
This is link from SAP about ABAP certification
http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
http://www.sapteched.com/india/confactivities/certexam.htm
http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
There is a pdf called ABAP certification.
http://www.esnips.com/web/SAP-ABAP?
You can try www.sapdoamin.com
They provide Certification simulation questions which are very useful and a must try site.
Some links which might help
/message/213564#213564 [original link is broken]
/message/514469#514469 [original link is broken]
/message/1315746#1315746 [original link is broken]
/message/1736299#1736299 [original link is broken]
/message/1736299#1736299 [original link is broken]
/message/257122#257122 [original link is broken]
/message/130164#130164 [original link is broken]
http://www.sapdomain.com/certification.php
Hope these links will help you..
Thanks'
Sakthi.
*Rewards if usefull* -
I want to install WhatsApp on my iphone 16gb, but I need a code of 3 figures! Where can I get this code? i tried looking at my messages folder, but i havent got any 3 digit code. plz help
post in the iPhone forum : https://discussions.apple.com/community/iphone/using_iphone
-
Need to learn abap objects plz help me
hi to all sdners ,
i need to learn oops in abap plz send me material and tutorials for learning it. please help me .you can send all the materials to my mail id [email protected] will rewarded.hi
Object Oriented prg
A programming technique in which solutions reflect real world objects
What are objects ?
An object is an instantiation of a class. E.g. If Animal is a class, A cat
can be an object of that class .
With respect to code, Object refers to a set of services ( methods /
attributes ) and can contain data
What are classes ?
A class defines the properties of an object. A class can be instantiated
as many number of times
Advantages of Object Orientated approach
Easier to understand when the system is complex
Easy to make changes
Encapsulation - Can restrict the visibility of the data ( Restrict the access to the data )
Polymorphism - Identically named methods behave differently in different classes
Inheritance - You can use an existing class to define a new class
Polymorphism and inheritance lead to code reuse
Have a look at these good links for OO ABAP-
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sap-img.com/
http://www.sapgenie.com/
http://help.sap.com
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com.
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
/people/dirk.feeken/blog/2007/07/06/abap-trial-version-for-newbies-part-17--your-first-abap-object
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/why%20use%20abap%20objects
Hope this helps
if it helped, you can acknowledge the same by rewarding
regards
ankit -
Install error -look at the code. plz help
I have the simple applet that I'm able to compile and load on to a JCOP10 cartd. When I try to install the applet so that I can start interacting with it, I get the following error. How do I go beyond this point? I'll appreciate your help.
JCOP shell
Load report:
747 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID 6
+ applet AIDs 13
+ classes 21
+ methods 470
+ statics 0
+ exports 0
overall 510 bytes
end
/set-var J 0
while ${J} < ${PKG_${I}_APP_COUNT}
install -i ${PKG_${I}_APP_${J}_INST_AID} -q C9#(${PKG_${I}_APP_${J}_INST_DATA}) ${PKG_${I}_AID} ${PKG_${I}_APP_${J}_AID}
=> 80 E6 0C 00 24 06 11 11 11 11 11 11 06 22 22 22 ....$........"""
22 22 22 06 22 22 22 22 22 33 01 00 0B C9 09 23 """."""""3.....#
42 38 47 36 74 63 76 73 00 00 B8G6tcvs..
(0 msec)
<= 6A 80 j.
Status: Wrong data
Error code: 6a80 (Wrong data)
Offending APDU: 6A80
Here is the code.
* Package: myWallet
* Filename: MyWallet.java
* Class: MyWallet
* Date: Jan 23, 2004 2:01:58 PM
package myWallet;
import javacard.framework.*;
//import javacardx.framework.*;
public class MyWallet extends Applet
/* constants declaration */
// code of CLA byte in the command APDU header
final static byte Wallet_CLA =(byte)0x80;
// codes of INS byte in the command APDU header
final static byte VERIFY = (byte) 0x20;
final static byte CREDIT = (byte) 0x30;
final static byte DEBIT = (byte) 0x40;
final static byte GET_BALANCE = (byte) 0x50;
// maximum balance
final static short MAX_BALANCE = (byte)0x7FFF;
// maximum transaction amount
final static byte MAX_TRANSACTION_AMOUNT =(byte)0x007F;
// maximum number of incorrect tries before the
// PIN is blocked
final static byte PIN_TRY_LIMIT =(byte)0x03;
// maximum size PIN
final static byte MAX_PIN_SIZE =(byte)0x08;
// signal that the PIN verification failed
final static short SW_VERIFICATION_FAILED = 0x6300;
// signal the the PIN validation is required
// for a credit or a debit transaction
final static short SW_PIN_VERIFICATION_REQUIRED = 0x6301;
// signal invalid transaction amount
// amount > MAX_TRANSACTION_AMOUNT or amount < 0
final static short SW_INVALID_TRANSACTION_AMOUNT = 0x6A83;
// signal that the balance exceed the maximum
final static short SW_EXCEED_MAXIMUM_BALANCE = 0x6A84;
// signal the the balance becomes negative
final static short SW_NEGATIVE_BALANCE = 0x6A85;
/* instance variables declaration */
OwnerPIN pin;
short balance;
private MyWallet (byte[] bArray,short bOffset,byte bLength)
// It is good programming practice to allocate
// all the memory that an applet needs during
// its lifetime inside the constructor
pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
byte iLen = bArray[bOffset]; // aid length
bOffset = (short) (bOffset+iLen+1);
byte cLen = bArray[bOffset]; // info length
bOffset = (short) (bOffset+cLen+1);
byte aLen = bArray[bOffset]; // applet data length
// The installation parameters contain the PIN
// initialization value
pin.update(bArray, (short)(bOffset+1), aLen);
register();
} // end of the constructor
public static void install(byte[] bArray, short bOffset, byte bLength){
// create a Wallet applet instance
MyWallet me = new MyWallet(bArray, bOffset, bLength);
me.register(bArray, bOffset, bLength);
} // end of install method
public boolean select()
// The applet declines to be selected
// if the pin is blocked.
if ( pin.getTriesRemaining() == 0 )
return false;
return true;
}// end of select method
public void deselect() {
// reset the pin value
pin.reset();
public void process(APDU apdu) {
// APDU object carries a byte array (buffer) to
// transfer incoming and outgoing APDU header
// and data bytes between card and CAD
// At this point, only the first header bytes
// [CLA, INS, P1, P2, P3] are available in
// the APDU buffer.
// The interface javacard.framework.ISO7816
// declares constants to denote the offset of
// these bytes in the APDU buffer
byte[] buffer = apdu.getBuffer();
// check SELECT APDU command
buffer[ISO7816.OFFSET_CLA] = (byte)(buffer[ISO7816.OFFSET_CLA] & (byte)0xFC);
if ((buffer[ISO7816.OFFSET_CLA] == 0) &&
(buffer[ISO7816.OFFSET_INS] == (byte)(0xA4)) )
return;
// verify the reset of commands have the
// correct CLA byte, which specifies the
// command structure
if (buffer[ISO7816.OFFSET_CLA] != Wallet_CLA)
ISOException.throwIt
(ISO7816.SW_CLA_NOT_SUPPORTED);
switch (buffer[ISO7816.OFFSET_INS]) {
case GET_BALANCE: getBalance(apdu);
return;
case DEBIT: debit(apdu);
return;
case CREDIT: credit(apdu);
return;
case VERIFY: verify(apdu);
return;
default: ISOException.throwIt (ISO7816.SW_INS_NOT_SUPPORTED);
} // end of process method
private void credit(APDU apdu)
// access authentication
if ( ! pin.isValidated() )
ISOException.throwIt(
SW_PIN_VERIFICATION_REQUIRED);
byte[] buffer = apdu.getBuffer();
// Lc byte denotes the number of bytes in the
// data field of the command APDU
byte numBytes = buffer[ISO7816.OFFSET_LC];
// indicate that this APDU has incoming data
// and receive data starting from the offset
// ISO7816.OFFSET_CDATA following the 5 header
// bytes.
byte byteRead =
(byte)(apdu.setIncomingAndReceive());
// it is an error if the number of data bytes
// read does not match the number in Lc byte
if ( ( numBytes != 1 ) || (byteRead != 1) )
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
// get the credit amount
byte creditAmount = buffer[ISO7816.OFFSET_CDATA];
// check the credit amount
if ( ( creditAmount > MAX_TRANSACTION_AMOUNT)
|| ( creditAmount < 0 ) )
ISOException.throwIt
(SW_INVALID_TRANSACTION_AMOUNT);
// check the new balance
if ( (short)( balance + creditAmount) > MAX_BALANCE )
ISOException.throwIt
(SW_EXCEED_MAXIMUM_BALANCE);
// credit the amount
balance = (short)(balance + creditAmount);
} // end of deposit method
private void debit(APDU apdu)
// access authentication
if ( ! pin.isValidated() )
ISOException.throwIt
(SW_PIN_VERIFICATION_REQUIRED);
byte[] buffer = apdu.getBuffer();
byte numBytes =
(byte)(buffer[ISO7816.OFFSET_LC]);
byte byteRead =
(byte)(apdu.setIncomingAndReceive());
if ( ( numBytes != 1 ) || (byteRead != 1) )
ISOException.throwIt
(ISO7816.SW_WRONG_LENGTH);
// get debit amount
byte debitAmount =
buffer[ISO7816.OFFSET_CDATA];
// check debit amount
if ( ( debitAmount > MAX_TRANSACTION_AMOUNT)
|| ( debitAmount < 0 ) )
ISOException.throwIt
(SW_INVALID_TRANSACTION_AMOUNT);
// check the new balance
if ( (short)( balance - debitAmount ) < (short)0 )
ISOException.throwIt(SW_NEGATIVE_BALANCE);
balance = (short) (balance - debitAmount);
} // end of debit method
private void getBalance(APDU apdu) {
byte[] buffer = apdu.getBuffer();
// inform system that the applet has finished
// processing the command and the system should
// now prepare to construct a response APDU
// which contains data field
short le = apdu.setOutgoing();
if ( le < 2 )
ISOException.throwIt
(ISO7816.SW_WRONG_LENGTH);
//informs the CAD the actual number of bytes
//returned
apdu.setOutgoingLength((byte)2);
// move the balance data into the APDU buffer
// starting at the offset 0
buffer[0] = (byte)(balance >> 8);
buffer[1] = (byte)(balance & 0xFF);
// send the 2-byte balance at the offset
// 0 in the apdu buffer
apdu.sendBytes((short)0, (short)2);
} // end of getBalance method
private void verify(APDU apdu) {
byte[] buffer = apdu.getBuffer();
// retrieve the PIN data for validation.
byte byteRead =(byte)(apdu.setIncomingAndReceive());
// check pin
// the PIN data is read into the APDU buffer
// at the offset ISO7816.OFFSET_CDATA
// the PIN data length = byteRead
if ( pin.check(buffer, ISO7816.OFFSET_CDATA,byteRead) == false )
ISOException.throwIt(SW_VERIFICATION_FAILED);
} // end of validate method
} // end of class WalletHow do I set a breakpoint in my install method in order to identify the error?
I've tried changing my install method and making it look exactly like the sample wallet applications accompanying the javacard kit, but I'm still getting the same error? here else could be the possible source of the error?
Thomas -
How to nullify the NullPointerException in my code. plz help Very Urgent!!
hi,
I registered the crystl32.ocx properly and the previous errors were gone.
thank you for your suggestions.
and right now I have an error as shown below.
Exception in thread "main" java.lang.NullPointerException
at crystal.CrystalReport.aboutBox(CrystalReport.java:4466)
at javaapplication10.CrystalClient.main(CrystalClient.java:25)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
how to overcome this.Thanks a lot mike.
I have attached some part of the source code here.
package crystal;
import com.linar.jintegra.*;
* COM Class 'CrystalReport'. Generated 11/10/2006 4:16:13 PM
* from 'C:\WINDOWS\system32\Crystl32.ocx'<P>
* Generated using com2java Version 2.6 Copyright (c) Intrinsyc Software International, Inc.
* See <A HREF="http://j-integra.intrinsyc.com/">http://j-integra.intrinsyc.com/</A><P>
* Description '<B>Crystal Report Control</B>'
* Generator Options:
* AwtForOcxs = True
* PromptForTypeLibraries = False
* RetryOnReject = False
* IDispatchOnly = False
* GenBeanInfo = False
* LowerCaseMemberNames = True
* TreatInStarAsIn = False
* ArraysAsObjects = False
* OmitRestrictedMethods = False
* ClashPrefix = zz_
* ImplementConflictingInterfaces = False
* DontRenameSameMethods = False
* RenameConflictingInterfaceMethods = False
* ReuseMethods = False
* Command Line Only Options:
* MakeClsidsPublic = False
* DontOverwrite = False
public class CrystalReport extends com.linar.jintegra.Ocx implements com.linar.jintegra.RemoteObjRef, crystal.CrystalCtrl {
private static final String CLSID = "00025601-0000-0000-c000-000000000046";
protected String getJintegraVersion() { return "2.6"; }
// Interface delegates
private crystal.CrystalCtrlProxy d_CrystalCtrlProxy = null;
/** Access this COM class's crystal.CrystalCtrl interface */
public crystal.CrystalCtrl getAsCrystalCtrl() { return d_CrystalCtrlProxy; }
/** Compare this object with another */
public boolean equals(Object o) {
if(java.beans.Beans.isDesignTime()) return super.equals(o);
else return getJintegraDispatch() == null ? false : getJintegraDispatch().equals(o);
/** J-Integra for COM internal method */
public com.linar.jintegra.Dispatch getJintegraDispatch() { return d_CrystalCtrlProxy; }
* addCrystalReportEventsListener. Listen to events generated by this class.
* @param theListener An object that implements the crystal.CrystalReportEvents interface.
* @exception java.io.IOException If there are communications problems.
public void addCrystalReportEventsListener(crystal.CrystalReportEvents theListener) throws java.io.IOException {
if(d_CrystalCtrlProxy == null) {
queuedListeners.addElement(new Object[] { "00025603-0000-0000-c000-000000000046", theListener });
} else {
d_CrystalCtrlProxy.addListener("00025603-0000-0000-c000-000000000046", theListener, this);
* removeCrystalReportEventsListener. Stop listening to events generated by this class.
* @param theListener An object that implements the crystal.CrystalReportEvents interface.
* @exception java.io.IOException If there are communications problems.
public void removeCrystalReportEventsListener(crystal.CrystalReportEvents theListener) throws java.io.IOException {
d_CrystalCtrlProxy.removeListener("00025603-0000-0000-c000-000000000046", theListener);
* Constructs a CrystalReport.
public CrystalReport() {
super(CLSID);
try {
if (super.getObjRef() == null) {
return;
d_CrystalCtrlProxy = new crystal.CrystalCtrlProxy(super.getObjRef());
} catch(java.io.IOException ioe) {
throw new RuntimeException("Unexpected: " + ioe);
* Constructs a CrystalReport.
public CrystalReport(Object o) {
super(CLSID, o);
try {
if (super.getObjRef() == null) {
return;
d_CrystalCtrlProxy = new crystal.CrystalCtrlProxy(super.getObjRef());
} catch(java.io.IOException ioe) {
throw new RuntimeException("Unexpected: " + ioe);
private java.util.Vector queuedListeners = new java.util.Vector();
public void addNotify() {
super.addNotify();
try {
if (super.getObjRef() == null) {
return;
if (d_CrystalCtrlProxy != null) {
return;
d_CrystalCtrlProxy = new crystal.CrystalCtrlProxy(super.getObjRef());
zz_doQueuedSets("d_CrystalCtrlProxy", d_CrystalCtrlProxy);
for(java.util.Enumeration e = queuedListeners.elements(); e.hasMoreElements(); ) {
Object[] l = (Object[])e.nextElement();
d_CrystalCtrlProxy.addListener(l[0] + "", l[1], this);
queuedListeners.setSize(0);
} catch(java.io.IOException ioe) {
throw new RuntimeException("Unexpected: " + ioe);
* Release a CrystalReport.
public void release() {
com.linar.jintegra.Cleaner.release(d_CrystalCtrlProxy);
* getPropertyByName. Get the value of a property dynamically at run-time, based on its name
* @return The value of the property.
* @param name The name of the property to get.
* @exception java.lang.NoSuchFieldException If the property does not exit.
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public Object getPropertyByName(String name) throws NoSuchFieldException, java.io.IOException, com.linar.jintegra.AutomationException {
try {
return d_CrystalCtrlProxy.getPropertyByName(name);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
} catch(NoSuchFieldException noSuchFieldException) {
noSuchFieldException.fillInStackTrace();
throw noSuchFieldException;
* getPropertyByName. Get the value of a property dynamically at run-time, based on its name and a parameter
* @return The value of the property.
* @param name The name of the property to get.
* @param rhs A parameter used when getting the proxy.
* @exception java.lang.NoSuchFieldException If the property does not exit.
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public Object getPropertyByName(String name, Object rhs) throws NoSuchFieldException, java.io.IOException, com.linar.jintegra.AutomationException {
try {
return d_CrystalCtrlProxy.getPropertyByName(name, rhs);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
} catch(NoSuchFieldException noSuchFieldException) {
noSuchFieldException.fillInStackTrace();
throw noSuchFieldException;
* invokeMethodByName. Invoke a method dynamically at run-time
* @return The value returned by the method (null if none).
* @param name The name of the method to be invoked.
* @param parameters One element for each parameter. Use primitive type wrappers.
* to pass primitive types (eg Integer to pass an int).
* @exception java.lang.NoSuchMethodException If the method does not exit.
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public Object invokeMethodByName(String name, Object[] parameters) throws NoSuchMethodException, java.io.IOException, com.linar.jintegra.AutomationException {
return d_CrystalCtrlProxy.invokeMethodByName(name, parameters);
* invokeMethodByName. Invoke a method dynamically at run-time
* @return The value returned by the method (null if none).
* @param name The name of the method to be invoked.
* @exception java.lang.NoSuchMethodException If the method does not exit.
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public Object invokeMethodByName(String name) throws NoSuchMethodException, java.io.IOException, com.linar.jintegra.AutomationException {
return d_CrystalCtrlProxy.invokeMethodByName(name, new Object[]{});
* getReportFileName. The filename of the report to be printed
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public String getReportFileName () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
String[] retVal = new String[1];
zz_get("ReportFileName", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.getReportFileName();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setReportFileName. The filename of the report to be printed
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setReportFileName (
String px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setReportFileName", (String)px);
return;
try {
d_CrystalCtrlProxy.setReportFileName(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* getWindowLeft. The coordinate of the left side of the print window, relative to its parent window
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public short getWindowLeft () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
short[] retVal = new short[1];
zz_get("WindowLeft", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.getWindowLeft();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowLeft. The coordinate of the left side of the print window, relative to its parent window
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowLeft (
short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowLeft", (short)px);
return;
try {
d_CrystalCtrlProxy.setWindowLeft(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* getWindowTop. The coordinate of the top of the print window, relative to its parent window
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public short getWindowTop () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
short[] retVal = new short[1];
zz_get("WindowTop", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.getWindowTop();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowTop. The coordinate of the top of the print window, relative to its parent window
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowTop (
short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowTop", (short)px);
return;
try {
d_CrystalCtrlProxy.setWindowTop(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* getWindowWidth. The width of the print window
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public short getWindowWidth () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
short[] retVal = new short[1];
zz_get("WindowWidth", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.getWindowWidth();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowWidth. The width of the print window
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowWidth (
short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowWidth", (short)px);
return;
try {
d_CrystalCtrlProxy.setWindowWidth(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* getWindowHeight. The height of the print window
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public short getWindowHeight () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
short[] retVal = new short[1];
zz_get("WindowHeight", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.getWindowHeight();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowHeight. The height of the print window
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowHeight (
short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowHeight", (short)px);
return;
try {
d_CrystalCtrlProxy.setWindowHeight(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* getWindowTitle. The title of the print window
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public String getWindowTitle () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
String[] retVal = new String[1];
zz_get("WindowTitle", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.getWindowTitle();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowTitle. The title of the print window
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowTitle (
String px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowTitle", (String)px);
return;
try {
d_CrystalCtrlProxy.setWindowTitle(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* isWindowControlBox. If set to TRUE, the print window will have a control box
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public boolean isWindowControlBox () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
boolean[] retVal = new boolean[1];
zz_get("WindowControlBox", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.isWindowControlBox();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowControlBox. If set to TRUE, the print window will have a control box
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowControlBox (
boolean px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowControlBox", (boolean)px);
return;
try {
d_CrystalCtrlProxy.setWindowControlBox(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* isWindowMaxButton. If set to TRUE, the print window will have a maximize button
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public boolean isWindowMaxButton () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
boolean[] retVal = new boolean[1];
zz_get("WindowMaxButton", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.isWindowMaxButton();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowMaxButton. If set to TRUE, the print window will have a maximize button
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowMaxButton (
boolean px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowMaxButton", (boolean)px);
return;
try {
d_CrystalCtrlProxy.setWindowMaxButton(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* isWindowMinButton. If set to TRUE, the print window will have a minimize button
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public boolean isWindowMinButton () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
boolean[] retVal = new boolean[1];
zz_get("WindowMinButton", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.isWindowMinButton();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setWindowMinButton. If set to TRUE, the print window will have a minimize button
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setWindowMinButton (
boolean px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setWindowMinButton", (boolean)px);
return;
try {
d_CrystalCtrlProxy.setWindowMinButton(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* getPrintFileName. The filename for output when printing to file
* @return The px
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public String getPrintFileName () throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
String[] retVal = new String[1];
zz_get("PrintFileName", retVal);
return retVal[0];
try {
return d_CrystalCtrlProxy.getPrintFileName();
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
* setPrintFileName. The filename for output when printing to file
* @param px The px (in)
* @exception java.io.IOException If there are communications problems.
* @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
public void setPrintFileName (
String px) throws java.io.IOException, com.linar.jintegra.AutomationException {
if(d_CrystalCtrlProxy == null) {
zz_queueSet("d_CrystalCtrlProxy", "setPrintFileName", (String)px);
return;
try {
d_CrystalCtrlProxy.setPrintFileName(px);
} catch(com.linar.jintegra.AutomationException automationException) {
automationException.fillInStackTrace();
throw automationException;
} -
How to write code for this logic, plz help me very urgent
Hi All,
i am new to sap-abap, i got this work and i m working on this can any body help me in writing code, plz help me, this is very very urgent.
here i m giving my logic, can anybody send me the code related to this logic.
this is very urgent .
this program o/p should be in ALV format and need to create one commond 'SAVE" on this o/t list if user clicks save processedon and processedby fields in ZFIBUE should be updated automatically.
i am creating one custom table zfibue having fields: (serialno, bukrs, matnr,prdha,hkont,gsber,wrbtr,budat, credate, cretime,processed, processedon, processedby,mapped)
fields of zfibue:
serailno = numc
bukrs = char
matnr = char
prdha = char
hkont = char
gsber = char
wrbtr = char
budat = date
credate = date
cretime = time
processed= char
processedon = date
processedby = char
mapped = char are belongs to above type data types
and seelct-optionfields: s_bukrs for bseg-bukrs
s_hkont for bseg-hkont,
s_budat for bkpf-budat,
s_processed for zfibue-processed,
s_processedon for zfibue-processedon,
s_mapped. for zfibue-mapped
parameters: p_chk1 as checkbox,
p_chk2 as checkbox.
p_filepath type rlgrap-filename.
1.1 Validate the user inputs (S_BUKRS and S_HKONT) against respective check tables (T001 and SKB1). If the validation fails, provide respective error message. Eg: Invalid input for Company Code.
1.2 Fetch SERIALNO, BUKRS, MATNR, PRDHA, HKONT, GSBER, WRBTR, BUDAT, CREDATE, CRETIME, PROCESSED, PROCESSEDON, PROCESSEDBY, MAPPED from table ZFIBUE into internal table GT_ZFIBUE where BUKRS IN S_BUKRS, HKONT IN S_HKONT, BUDAT IN S_BUDAT, PROCESSED IN S_PROCESSED, PROCESSEDON IN S_PROCESSEDON, and MAPPED IN S_MAPPED.
1.3 If P_CHK2 = X, go to step 1.11. Else continue.
1.4 If P_CHK1 = X, continue. Else go to step 1.9
1.5 Fetch MATNR, PRDHA from MARA into GT_MARA for all entries in GT_ZFIBUE where MATNR = GT_ZFIBUE-MATNR.
1.6 Sort and delete adjacent duplicates from GT_MARA based on MATNR.
1.7 Loop through GT_ZFIBUE where PRDHA = blank.
Read Table GT_MARA based on MATNR = GT_ZFIBUE-MATNR.
IF sy-subrc = 0.
Move GT_MARA-PRDHA to GT_ZFIBUE-PRDHA.
Modify Table GT_ZFIBUE. Update Product Hierarchy
Endif.
Fetch PRDHA, GSBER from ZFIBU into GT_ZFIBU for all entries in GT_ZFIBUE where PRDHA = GT_ZFIBUE-PRDHA.
Read Table GT_ZFIBU based on PRDHA = GT_ZFIBUE-PRDHA.
IF sy-subrc = 0.
Move GT_ZFIBU-GSBER to GT_ZFIBUE-GSBER.
Move X to GT_ZFIBUE-MAPPED.
Modify Table GT_ZFIBUE.
Endif.
Endloop.
1.8 Modify database table ZFIBUE from GT_ZFIBUE.
1.9 Fill the field catalog table GT_FIELDCAT using the details of output fields listed in section Inputs/Outputs (above).
Eg: LWA_ FIELDCAT -SELTEXT_L = 'Serial Number.
LWA_ FIELDCAT -DATATYPE = NUMC.
LWA_ FIELDCAT -OUTPUTLEN = 9.
LWA_ FIELDCAT -TABNAME = 'GT_ZFIBUE'.
LWA_ FIELDCAT-FIELDNAME = 'SERIALNO'.
Append LWA_FIELDCAT to GT_FIELDCAT
Note: a) The output field GT_ZFIBUE-PROCESSED will be editable marking INPUT = X in field catalog (GT_FIELDCAT).
b) The standard ALV functionality will be used to give the user option for selecting all or blocks of entries at a time.
c) The PF-STATUS STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN will be copied to the program and modified to include a SAVE button.
1.10 Call the function module REUSE_ALV_GRID_DISPLAY passing output table GT_ZFIBUE and field catalog GT_FIELDCAT. Additional parameters like I_CALLBACK_PF_STATUS_SET (= ZFIBUESTAT) and I_CALLBACK_USER_COMMAND (=HANDLE_USER_ACTION) will also be passed to handle user events. Go to 2.14.
1.11 Download the file to P_FILEPATH using function module GUI_DOWNLOAD passing GT_ZFIBUE.
1.12 Exit Program.
Logic to be implemented in routine Handle_User_Action
This routine will have the following interface:
FORM Handle_User_Action USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
ENDFORM.
Following logic will be implemented in this routine:
1. If r_ucomm = SAVE, continue. Else exit.
2. Loop through GT_ZFIBUE where SEL_ROW = X. Row is selected
a. IF GT_ZFIBUE-PROCESSED = X.
i. GT_ZFIBUE-PROCESSEDON = SY-DATUM.
ii. GT_ZFIBUE-PROCESSEDBY = SY-UNAME.
iii. MODIFY ZFIBUE FROM work area GT_ZFIBUE.
Endif.
Endloop.Hi Swathi,
If it's very very urgent then you better get on with it, don't waste time on the web. Chop chop. -
When i try to log in to the log in link at the site https://efp.bpcl.in the log in page does not open but the firefox wants to ask with which program the firefox should open the file and when we give firefox or internet explorer than it opens the source code.Plz help...
Those files are send as application/octet-stream and that makes Firefox display a download dialog.
http://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types -
Plz and plz help me with restriction code
hello to all i have nokia 6288 but when i enter any sim card it want restriction code plz help me thanks allot
tottiThe reason you are being asked for a code is because the phone is network locked.
You need to contact the network that it's locked to for the unlock code. -
Plz help me from the error - "org.apache.jasper.jasperException"
I am getting error with this code ,plz help me out ,i wanna correct this urgently
I've set the Environment variables JAVA_HOME and
CATALINA_HOME and here is my coding and error report
hello.html
<head><title>Database</title></head>
<body>
<form method="get" action="add.jsp">
<pre>
<center>Enter ur Name :<input type="text" name="nam" >
<br><input type="submit" value=" Add ">
</center></pre>
</form>
</body>
</html>
add.jsp
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<html>
<head><title>JSP</title></head>
<%! String name;
Connection con=null;
Statement st=null;
%>
<body>
<% name=request.getParameter("nam");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//I have created a User DSN sjp
con = DriverManager.getConnection("jdbc:odbc:sjp");
st = con.createStatement();
st.executeUpdate("insert into detail values('"+name+"')");
catch(Exception e)
con.close();
st.close();
%>
<h1> Name Added</h1>
</body>
</html>
Error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
java.lang.NullPointerException at org.apache.jsp.add_jsp._jspService(add_jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.31hi,
when i use the code
if(st != null)st.close();
if(con != null ) con.close();
that works good ,the old error has been corrected.
but it's now throwing an SQLException[b] "datasource name not found and default driver not specified" why this occurs and also can u give me the explanation for the old error????
I am sure that i have created an user DSN, i am 100% sure about it .even though there is an error.
Deepak.
Deepak.C -
How to translate an excel macro to ABAP code
Hi Guys,
My requirement is need to put the subtotaling option w.r.t divison when i download the file to an excel sheet via OLE.
Iam able to get the records in the excel sheet but unable to write the macro in ABAP code.
the macro which i recorded in Excel is
Range("A1:C3").Select
Selection.Subtotal GroupBy:=2, Function:=xlSum, TotalList:=Array(3), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True
how do i convert this into ABAP code .Pls help. Thanks...
the data might be like
NAME DIVISION AMOUNT
ABC IT 400
DEF BPO 500
HTG IT 400Hi,
You can run an excel macro like this
CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
Call Method of h_excel 'WORKBOOKS' = h_mapl.
set property of h_excel 'VISIBLE' = 0.
Call Method of h_mapl 'OPEN'
EXPORTING
#1 = d_file.
CALL METHOD OF H_EXCEL 'ActiveWorkbook' = h_book .
CALL METHOD OF H_book 'Activesheet' = H_sheet .
CALL METHOD OF h_excel 'RUN'
EXPORTING
#1 = ld_macro.
Check the links below as well
http://sample-code-abap.blogspot.com/2009/07/controlling-excel-using-ole-automation.html
http://arthur_ong.tripod.com/xab017.htm -
Plz help me[need abap oo]
hi frnds,
i lose abap oo [siemens]materials. so now don't hav any oo material. if any hav abap objects materials [pdf format] pls send the link.... i need it immediately... i need ur help ... plz help me....Hi this may be of some help.
OOPs ABAP uses Classes and Interfaces which uses Methods and events.
If you have Java skills it is advantage for you.
There are Local classes as well as Global Classes.
Local classes we can work in SE38 straight away.
But mostly it is better to use the Global classes.
Global Classes or Interfaces are to be created in SE24.
SAP already given some predefined classes and Interfaces.
This OOPS concepts very useful for writing BADI's also.
So first create a class in SE 24.
Define attributes, Methods for that class.
Define parameters for that Method.
You can define event handlers also to handle the messages.
After creation in each method write the code.
Methods are similar to ABAP PERFORM -FORM statements.
After the creation of CLass and methods come to SE38 and create the program.
In the program create a object type ref to that class and with the help of that Object call the methods of that Class and display the data.
Example:
REPORT sapmz_hf_alv_grid .
Type pool for icons - used in the toolbar
TYPE-POOLS: icon.
TABLES: zsflight.
To allow the declaration of o_event_receiver before the
lcl_event_receiver class is defined, decale it as deferred in the
start of the program
CLASS lcl_event_receiver DEFINITION DEFERRED.
G L O B A L I N T E R N A L T A B L E S
*DATA: gi_sflight TYPE STANDARD TABLE OF sflight.
To include a traffic light and/or color a line the structure of the
table must include fields for the traffic light and/or the color
TYPES: BEGIN OF st_sflight.
INCLUDE STRUCTURE zsflight.
Field for traffic light
TYPES: traffic_light TYPE c.
Field for line color
types: line_color(4) type c.
TYPES: END OF st_sflight.
TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
DATA: gi_sflight TYPE tt_sflight.
G L O B A L D A T A
DATA: ok_code LIKE sy-ucomm,
Work area for internal table
g_wa_sflight TYPE st_sflight,
ALV control: Layout structure
gs_layout TYPE lvc_s_layo.
Declare reference variables to the ALV grid and the container
DATA:
go_grid TYPE REF TO cl_gui_alv_grid,
go_custom_container TYPE REF TO cl_gui_custom_container,
o_event_receiver TYPE REF TO lcl_event_receiver.
DATA:
Work area for screen 200
g_screen200 LIKE zsflight.
Data for storing information about selected rows in the grid
DATA:
Internal table
gi_index_rows TYPE lvc_t_row,
Information about 1 row
g_selected_row LIKE lvc_s_row.
C L A S S E S
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING
e_object e_interactive,
handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
ENDCLASS.
CLASS lcl_event_receiver IMPLEMENTATION
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
Event handler method for event toolbar.
CONSTANTS:
Constants for button type
c_button_normal TYPE i VALUE 0,
c_menu_and_default_button TYPE i VALUE 1,
c_menu TYPE i VALUE 2,
c_separator TYPE i VALUE 3,
c_radio_button TYPE i VALUE 4,
c_checkbox TYPE i VALUE 5,
c_menu_entry TYPE i VALUE 6.
DATA:
ls_toolbar TYPE stb_button.
Append seperator to the normal toolbar
CLEAR ls_toolbar.
MOVE c_separator TO ls_toolbar-butn_type..
APPEND ls_toolbar TO e_object->mt_toolbar.
Append a new button that to the toolbar. Use E_OBJECT of
event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.
This class has one attribute MT_TOOLBAR which is of table type
TTB_BUTTON. The structure is STB_BUTTON
CLEAR ls_toolbar.
MOVE 'CHANGE' TO ls_toolbar-function.
MOVE icon_change TO ls_toolbar-icon.
MOVE 'Change flight' TO ls_toolbar-quickinfo.
MOVE 'Change' TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD.
METHOD handle_user_command.
Handle own functions defined in the toolbar
CASE e_ucomm.
WHEN 'CHANGE'.
PERFORM change_flight.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMETHOD.
ENDCLASS.
S T A R T - O F - S E L E C T I O N.
START-OF-SELECTION.
SET SCREEN '100'.
*& Module USER_COMMAND_0100 INPUT
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0100 OUTPUT
MODULE status_0100 OUTPUT.
DATA:
For parameter IS_VARIANT that is sued to set up options for storing
the grid layout as a variant in method set_table_for_first_display
l_layout TYPE disvariant,
Utillity field
l_lines TYPE i.
After returning from screen 200 the line that was selected before
going to screen 200, should be selected again. The table gi_index_rows
was the output table from the GET_SELECTED_ROWS method in form
CHANGE_FLIGHT
DESCRIBE TABLE gi_index_rows LINES l_lines.
IF l_lines > 0.
CALL METHOD go_grid->set_selected_rows
EXPORTING
it_index_rows = gi_index_rows.
CALL METHOD cl_gui_cfw=>flush.
REFRESH gi_index_rows.
ENDIF.
Read data and create objects
IF go_custom_container IS INITIAL.
Read data from datbase table
PERFORM get_data.
Create objects for container and ALV grid
CREATE OBJECT go_custom_container
EXPORTING container_name = 'ALV_CONTAINER'.
CREATE OBJECT go_grid
EXPORTING
i_parent = go_custom_container.
Create object for event_receiver class
and set handlers
CREATE OBJECT o_event_receiver.
SET HANDLER o_event_receiver->handle_user_command FOR go_grid.
SET HANDLER o_event_receiver->handle_toolbar FOR go_grid.
Layout (Variant) for ALV grid
l_layout-report = sy-repid. "Layout fo report
Setup the grid layout using a variable of structure lvc_s_layo
Set grid title
gs_layout-grid_title = 'Flights'.
Selection mode - Single row without buttons
(This is the default mode
gs_layout-sel_mode = 'B'.
Name of the exception field (Traffic light field) and the color
field + set the exception and color field of the table
gs_layout-excp_fname = 'TRAFFIC_LIGHT'.
gs_layout-info_fname = 'LINE_COLOR'.
LOOP AT gi_sflight INTO g_wa_sflight.
IF g_wa_sflight-paymentsum < 100000.
Value of traffic light field
g_wa_sflight-traffic_light = '1'.
Value of color field:
C = Color, 6=Color 1=Intesified on, 0: Inverse display off
g_wa_sflight-line_color = 'C610'.
ELSEIF g_wa_sflight-paymentsum => 100000 AND
g_wa_sflight-paymentsum < 1000000.
g_wa_sflight-traffic_light = '2'.
ELSE.
g_wa_sflight-traffic_light = '3'.
ENDIF.
MODIFY gi_sflight FROM g_wa_sflight.
ENDLOOP.
Grid setup for first display
CALL METHOD go_grid->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_variant = l_layout
i_save = 'A'
is_layout = gs_layout
CHANGING it_outtab = gi_sflight.
*-- End of grid setup -
Raise event toolbar to show the modified toolbar
CALL METHOD go_grid->set_toolbar_interactive.
Set focus to the grid. This is not necessary in this
example as there is only one control on the screen
CALL METHOD cl_gui_control=>set_focus EXPORTING control = go_grid.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0200 INPUT
MODULE user_command_0200 INPUT.
CASE ok_code.
WHEN 'EXIT200'.
LEAVE TO SCREEN 100.
WHEN'SAVE'.
PERFORM save_changes.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
*& Form get_data
FORM get_data.
Read data from table SFLIGHT
SELECT *
FROM zsflight
INTO TABLE gi_sflight.
ENDFORM. " load_data_into_grid
*& Form change_flight
Reads the contents of the selected row in the grid, ans transfers
the data to screen 200, where it can be changed and saved.
FORM change_flight.
DATA:l_lines TYPE i.
REFRESH gi_index_rows.
CLEAR g_selected_row.
Read index of selected rows
CALL METHOD go_grid->get_selected_rows
IMPORTING
et_index_rows = gi_index_rows.
Check if any row are selected at all. If not
table gi_index_rows will be empty
DESCRIBE TABLE gi_index_rows LINES l_lines.
IF l_lines = 0.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
textline1 = 'You must choose a line'.
EXIT.
ENDIF.
Read indexes of selected rows. In this example only one
row can be selected as we are using gs_layout-sel_mode = 'B',
so it is only ncessary to read the first entry in
table gi_index_rows
LOOP AT gi_index_rows INTO g_selected_row.
IF sy-tabix = 1.
READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
ENDIF.
ENDLOOP.
Transfer data from the selected row to screenm 200 and show
screen 200
CLEAR g_screen200.
MOVE-CORRESPONDING g_wa_sflight TO g_screen200.
LEAVE TO SCREEN '200'.
ENDFORM. " change_flight
*& Form save_changes
Changes made in screen 200 are written to the datbase table
zsflight, and to the grid table gi_sflight, and the grid is
updated with method refresh_table_display to display the changes
FORM save_changes.
DATA: l_traffic_light TYPE c.
Update traffic light field
Update database table
MODIFY zsflight FROM g_screen200.
Update grid table , traffic light field and color field.
Note that it is necessary to use structure g_wa_sflight
for the update, as the screen structure does not have a
traffic light field
MOVE-CORRESPONDING g_screen200 TO g_wa_sflight.
IF g_wa_sflight-paymentsum < 100000.
g_wa_sflight-traffic_light = '1'.
C = Color, 6=Color 1=Intesified on, 0: Inverse display off
g_wa_sflight-line_color = 'C610'.
ELSEIF g_wa_sflight-paymentsum => 100000 AND
g_wa_sflight-paymentsum < 1000000.
g_wa_sflight-traffic_light = '2'.
clear g_wa_sflight-line_color.
ELSE.
g_wa_sflight-traffic_light = '3'.
clear g_wa_sflight-line_color.
ENDIF.
MODIFY gi_sflight INDEX g_selected_row-index FROM g_wa_sflight.
Refresh grid
CALL METHOD go_grid->refresh_table_display.
CALL METHOD cl_gui_cfw=>flush.
LEAVE TO SCREEN '100'.
ENDFORM. " save_changes
chk this blog
/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid
with regards,
Hema SUndara. -
Help needed in writting Customer exit - ABAP Code
Hi Friends,
I have a scenario in one of the query and need to write a customer exit for the same. Here is the scenario:
I am using one input variable XXX to get input from user which feeds value to one of the charateristic lets say "CHAR1" in query. I have one more characteristic "CHAR2" which has to get the value from the same variable XXX. This is not allowed in BI7.0 as the variable is Hierarchy Node type. It gives error that "Variable XXX is used for two different characteristics."
So i need to create one more vaiable YYY which will get the value from XXX and then YYY will feed value to CHAR2. I would appreciate if some one could tell me step by step how to write customer exit and give me the piece of ABAP code i need to write in my case.
Your help will be appreciated in terms of points.
Thanks,
manmitHi Arun,
1. What should CHAR2 take - Hierarchy node variable or something else ?
--> CHAR2 is a simple charateristic
2. In your scenario - why have CHAR1 and CHAR2 ? why not have the user enter values against CHAR2 ??
--> We dont want user to enter two input as the input values for both Chars are same.
3. Did you try using a replacement path variable with the CHAR2 variable taking values from Variable on CHAR1 ?
--> In BI7.0 replacement path variable only take values from Query results. So not able to do the same.
Thanks -
Urgent: ABAP Code help reqd
Hi,
Can anyone please me provide me ABAP code for the following case:
Table1 JHAGA
Table2 JHAGVZ
Primary keys in JHAGA:
Order Item Number [POS_NR]
Billing Dataset [GRUPPABRNR]
Sales Document Number [AVM_NR]
This requirement is for an InfoSet. For each order ideally we can have multiple sales agent. Sales Agent is being pulled from JHAGVZ. For this InfoSet we are going to go with assumption that we wont have more then 10 sales agent for an order,
Consider 10 extra fields in InfoSet SA1 SA10 for 10 Sales Agent.
I need code which to populate this sales agent field. If an order exists in JHAGA then for that order in JHAGVZ populate the SA1-SA10 field.
JHAGA Order#10
JHAGVZ Order#10 SalesAgent11
SalesAgent12
SalesAgent13
Then SA1 should have SalesAgent11, SA2 should have SalesAgent12 and SA3 should have SalesAgent13 and so on
Thank you,
samHI ,
Are these two field a part of the table INFOROBJECT?
if they are, you can write a select statement like :
select 0CUSTOMER 0SALESORG YLEG_ENTITY
from INFOROBJECT
into Y_CUST_LE
where ( Yacc_SEQ <> ´ZROO´ and
0PRICE_LIST <> space).
Hope this helps.
If not, please explain problem clearly. -
How to specify the target name while deploying a code in OSB-- Plz Help
Hi all,
Am working in creating a cluster environment. For my testing i created a new managed server(OSB_Server) in 9001 port in the admin console itself and that server started running. The default managed server(Admin_Server) is in 7001 port. So when i deploy a code in 7001 sb console the WSDL gets exposed in 7001 because the default admin server port is 7001. While deploying a code in service bus admin console we are not specifying the target name. So how to specify the target name while deploying the code in service bus admin console. Plz help me.
Regards
PrabhuHi Prabhu,
There are three kind of server architecture possible for OSB -
1. Single server - Everything gets deployed on Admin server itself
2. Admin Server + Single Managed Server for OSB -- OSB configuration gets deployed on OSB managed server. OSB resources (proxy service, WSDL, Schema) will remain available on OSB managed server port only and NOT on admin server port
3. Admin Server + OSB cluster -- OSB configuration gets deployed on OSB cluster. OSB resources (proxy service, WSDL, Schema) will remain available on OSB Cluster port(s) only and NOT on admin server port
Converting one type of server architecture to any other type, requires a manual tedious process, so it is suggested that you create domain accordingly i.e. if you need clusters then while creating domain itself, create OSB cluster, so that all OSB applications gets deployed to OSB cluster. I will suggest you to create a clustered domain from scratch and import the configuration from your existing domian to this new clustered domain.
You may refer-
http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15022/toc.htm
Regards,
Anuj
Maybe you are looking for
-
Error while passing parameters to a smart form
Hi all, I have created a simple Smartform where i am trying to pass two import parameters MATNR(like MAKT-MATNR) and MAKTX(MAKT-MAKTX).tHOUGH THE APPLICATION SEEMS TO RUN FINE BUT IT IS GIVING A WARNING ' Field MAKTX has no defined value '. Please he
-
Limiting Inventory Display of Storage Types within LX02
Hello All, We are using SAP WM and have a situation where we are contracting with a 3rd party warehouse to hold some raw materials for us. We will have a captive user account that will only permit the employee at the 3rd party warehouse to perform c
-
Live stream video doesn't work on Stickam
I am usign Safari 5.0.6 on Leopard. Stickam live streams won't load. The rest of the page loads but not the live video. Other live streams on other web pages load fine but not on Stickam. Is it a problem with my setup or stickam? It works on my ipod
-
I want to run KDE as root?
It seems that I can't run KDE 3.2 as root. Anyone know how I can do this? I like being able to run KDE as root, because I like the GUI environment for setting up new users etc. I could do this in Gentoo. Also I don't run it as root all the time, and
-
Problem building GTK with jbuild on Mac OS X
Hi everyone, I don't know if this is the right place to ask my question... I cannot build GTK with jbuild on my Leopard 10.5.8 system. I have deleted the Leopard built-in Python 2.5 folder (At that time I didn't know that deleting the default system