ALV Help plz urgent
Hi,
Can anyone help me with ALV that how to display ALV Column Heading in Multiple Line.
Means Multiple line Coulmn heading of ALV.
Please fell free to contact me at
[email protected]
Regards,
Muhammad Usman Malik
SAP ABAP Consultant
Siemens Pakistan
+92-333-2700972
Welcome to SDN.
Copy Paste below code and execute the same. The output contains mutiple lines in header but I dont know how to do it in ALV. May be of some help to you.
REPORT ztestvib MESSAGE-ID zz LINE-SIZE 50.
TYPE-POOLS: slis.
DATA: x_fieldcat TYPE slis_fieldcat_alv,
it_fieldcat TYPE slis_t_fieldcat_alv,
l_layout TYPE slis_layout_alv,
x_events TYPE slis_alv_event,
it_events TYPE slis_t_event.
DATA: BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln,
posnr LIKE vbap-posnr,
male TYPE i,
female TYPE i,
END OF itab.
SELECT vbeln
posnr
FROM vbap
UP TO 20 ROWS
INTO TABLE itab.
x_fieldcat-fieldname = 'VBELN'.
x_fieldcat-seltext_l = 'VBELN'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-seltext_l = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'MALE'.
x_fieldcat-seltext_l = 'MALE'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'FEMALE'.
x_fieldcat-seltext_l = 'FEMALE'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_events-name = slis_ev_top_of_page.
x_events-form = 'TOP_OF_PAGE'.
APPEND x_events TO it_events.
CLEAR x_events .
l_layout-no_colhead = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = l_layout
it_fieldcat = it_fieldcat
it_events = it_events
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*& Form top_of_page
text
FORM top_of_page.
*-To display the headers for main list
FORMAT COLOR COL_HEADING.
WRITE: / sy-uline(103).
WRITE: / sy-vline,
(8) ' ' ,
sy-vline,
(8) ' ' ,
sy-vline,
(19) '***'(015) CENTERED,
sy-vline.
WRITE: / sy-vline,
(8) 'VBELN'(013) ,
sy-vline,
(8) 'POSNR'(014) ,
sy-vline,
(8) 'MALE'(016) ,
sy-vline,
(8) 'FMALE'(017) ,
sy-vline.
FORMAT COLOR OFF.
ENDFORM. "top_of_page
Similar Messages
-
Unable to get Rmi program working. Help plz - urgent.
Any help to get this problem resolved would be of help.
I get the error as below:
D:\test\nt>java Client
Server
Client exception: Error marshaling transport header; nested exception is:
javax.net.ssl.SSLException: untrusted server cert chain
java.rmi.MarshalException: Error marshaling transport header; nested exception is:
javax.net.ssl.SSLException: untrusted server cert chain
javax.net.ssl.SSLException: untrusted server cert chain
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.Handshaker.process_record([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
at java.io.DataOutputStream.flush(DataOutputStream.java:108)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:207)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:178)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:87)
at Server_Stub.passArgs(Unknown Source)
at Client.main(Client.java, Compiled Code)
the server was invokde as:
D:\test\nt>java -Djava.rmi.server.codebase="file:/d:/test" -Djava.policy=d:/test/policy Server a b c
Server bound in registry
where policy had allpermission
The server program is given as below:
import java.net.InetAddress;
import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.RemoteException;
import java.rmi.RMISecurityManager;
import java.rmi.server.UnicastRemoteObject;
public class Server extends UnicastRemoteObject implements Message
private static String[] args;
public Server() throws RemoteException
// super();
super(0, new RMISSLClientSocketFactory(),
new RMISSLServerSocketFactory());
public String[] passArgs() {
System.out.println(args[0]);
System.out.println(args[1]);
System.out.println(args[2]);
System.out.println(args.length);
System.out.println();
return args;
public static void main(String a[])
// Create and install a security manager
if (System.getSecurityManager() == null)
System.setSecurityManager(new RMISecurityManager());
args=a;
try
Server obj = new Server();
// Bind this object instance to the name "Server"
Registry r = LocateRegistry.createRegistry(4646);
r.rebind("Server", obj);
System.out.println("Server bound in registry");
} catch (Exception e) {
System.out.println("Server err: " + e.getMessage());
e.printStackTrace();
The RMISSLServerSocketFactory class is as below:
import java.io.*;
import java.net.*;
import java.rmi.server.*;
import javax.net.ssl.*;
import java.security.KeyStore;
import javax.net.*;
import javax.net.ssl.*;
import javax.security.cert.X509Certificate;
import com.sun.net.ssl.*;
public class RMISSLServerSocketFactory implements RMIServerSocketFactory, Serializable
public ServerSocket createServerSocket(int port)
throws IOException
SSLServerSocketFactory ssf = null;
try {
// set up key manager to do server authentication
SSLContext ctx;
KeyManagerFactory kmf;
KeyStore ks;
char[] passphrase = "passphrase".toCharArray();
ctx = SSLContext.getInstance("TLS");
kmf = KeyManagerFactory.getInstance("SunX509");
ks = KeyStore.getInstance("JKS");
ks.load(new FileInputStream("testkeys"), passphrase);
kmf.init(ks, passphrase);
ctx.init(kmf.getKeyManagers(), null, null);
ssf = ctx.getServerSocketFactory();
} catch (Exception e)
e.printStackTrace();
return ssf.createServerSocket(port);
The RMIClientSocketFactory is as below:
import java.io.*;
import java.net.*;
import java.rmi.server.*;
import javax.net.ssl.*;
public class RMISSLClientSocketFactory implements RMIClientSocketFactory, Serializable
public Socket createSocket(String host, int port)
throws IOException
SSLSocketFactory factory =(SSLSocketFactory)SSLSocketFactory.getDefault();
SSLSocket socket = (SSLSocket)factory.createSocket(host, port);
return socket;
And finally the client program is :
import java.net.InetAddress;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.RemoteException;
public class Client
public static void main(String args[])
try
// "obj" is the identifier that we'll use to refer
// to the remote object that implements the "Hello"
// interface
Message obj = null;
Registry r = LocateRegistry.getRegistry(InetAddress.getLocalHost().getHostName(),4646);
obj = (Message)r.lookup("Server");
String[] s = r.list();
for(int i = 0; i < s.length; i++)
System.out.println(s);
String[] arg = null;
System.out.println(obj.passArgs());
arg = obj.passArgs();
System.out.println(arg[0]+"\n"+arg[1]+"\n"+arg[2]+"\n");
} catch (Exception e) {
System.out.println("Client exception: " + e.getMessage());
e.printStackTrace();
The Message interface has the code:
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Message extends Remote
String[] passArgs() throws RemoteException;
Plz. help. Urgent.
Regards,
LioneLhi Lionel,
have u got the problem solved ?
actually i need ur help regarding RMI - SSL
do u have RMI - SSL prototype or sample codings,
i want to know how to implement SSL in RMI
looking for ur reply
-shafeeq -
Hi,
I want to see Purchase order wise report. The report should show PO wise payment in FI.
PO field is EBLEN and i am unable to find its link to BSIK or BSAK. The reason is that they are not maintaining EBELN in both these table. I tried on LIFNR but LIFNR is for Vendor only and the requirement is for EBELN means in PO.
Please anyone help me out in this regard and also plz tell me any detail tables hierarchy of all modules.
Thanks
Usman Malikhi,
to get payment details w.r.t. PO, you can use the table BSEG, field ZUONR.
this field contains PO number concatenated by item no. Eg: 450001728600020
here 00020 is item no. you can mention BUKRS, GJAHR and SHKZG as 'S' in selection criteria for BSEG. Get the accounting document ' BSEG-BELNR' and BSEG -GJAHR. Concantenate this and input in BSIK-ZUONR to get the required data.
hope it helps. -
Boolean Array-- Help Plz Urgent
Can i create and initialize an array of booleans like this ?
Boolean[51] Position = true;
Thanks... Plz helpThis works:Boolean[] bools = {
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true),
new Boolean(true), new Boolean(true), new Boolean(true)
};... and, fortunately, so does this:Boolean[] bools = new Boolean[51];
java.util.Arrays.fill(bools, new Boolean(true));I hope you find this of some help. -
Hello, my alv contains a lot of fields .So when i scroll to the right ,i lose the first few fields and i do not know which one it is.
1)How can i make the first 2 fields in my alv static(they do not move) , so that when i scroll to the right ,they are still there?
2)I want the line colour(in my ALV) to change when i change lines (primary key is the first field)Hello,
Use this link.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm
Cheers,
Vasanth -
"Very Serious threat for N70" Help Plz.Urgent
My Nokia N70 M trinig to call to a unknown no. without my permission.
When I kept my phone idle, after some time phone lights will turn on and it says "In ur account there is no enough balance to call" and 3 beep sound of disconnecting the call.(The message is in my local language) It is just like a message from my network provider.
But I have enough balance and I can call to my local numbers.
Can anyone help??????
It is a virus?????
Give me one answer
Solved!
Go to Solution.Well, it could be a virus, although i never heard of it. Only viruses i know are CommWarrior and Caribe. One of them sends MMS's during night, usually around 4 am and sends the virus via bluetooth during the day.
Anyway, that really seems you have some type of client installed on your phone. i would recommend to save only your important information, format the phone (typing *#7370#) and format your memory card. I'm positive that will be enough.
Regards,
Rodolfo Rangel -
Help plz~ URGENT: Display image icon with specific coordinates
I want to view an ImageIcon with specific cooridnate (ie, I know the coordinate of the top left hand corner, and i know the height and the width of the "want to display part")
how can i make it such that it will onli view the part i want?
for example
i want to display say from (40, 40) (left hand corner) to (90,90) (right hand corner)
ImageIcon thePic= new ImageIcon("theimage.jpg");
ImageIcon newPic= new ImageIcon( XXXXXXXXX);
what should i put at the XXXXXXXXXX part?
Thanks in advance!Use getSubImage method of BufferedImage. Something like:
Image originalImage = ImageIO.read(imageFile) ;// see ImageIO API
Image scaledImage = originalImage.getScaledInstance(40.40,90,90);
ImageIcon imageIcon = new ImageIcon(scaledImage);ImageIO.read is overloaded for files, inputStreams and URL's so you can choose how to load it.
I'll leave the rest to you
DB -
Help plz urgent!!!!!
I am using SAXParser:
How to overload startElement, endElement and charcaters method in MyClass. Is that possible because I need three different implementations for all these methods based on the command line options.
thanx in advance!I guees this is a little too late..but a better way is to have a
main class that use three different ContentHandler. this way..you can add more handler with little modification to the code.
eg
public class Example{
int handler; // type of contentHandler to use
public static void main(String args[]){
try{ handler = Integer.parseInt(args[0]) }
catch (NumberFormatException e) { System.err.println(e); }
public void parse(String xmldoc){
ContentHandler chandler;
switch (handler){
case 0: chandler = new myHandler1(currQuery); break;
case 1: chandler = new myHandler2(currQuery); break;
case 2: chandler = new myHandler3(citationList); break;
default: chandler = new myHandler1(currQuery); break;
XMLReader saxReader = XMLReaderFactory.createXMLReader(vendor);
saxReader.setContentHandler(chandler);
InputSource inputSource = new InputSource(new StringReader(xmldoc));
saxReader.parse(inputSource);
public class myHandler1 extends DefaultHandler{
public void startElement(String ns, String name, String qName,
Attributes atts) throws SAXException {
// do something
public void characters(char[] ch, int start, int length) throws
SAXException {
// do something
public void endElement(String ns, String name, String qName) throws
SAXException {
// do something
public class myHandler2 extends DefaultHandler{
public void startElement(String ns, String name, String qName,
Attributes atts) throws SAXException {
// do something
public void characters(char[] ch, int start, int length) throws
SAXException {
// do something
public void endElement(String ns, String name, String qName) throws
SAXException {
// do something
public class myHandler3 extends DefaultHandler{
public void startElement(String ns, String name, String qName,
Attributes atts) throws SAXException {
// do something
public void characters(char[] ch, int start, int length) throws
SAXException {
// do something
public void endElement(String ns, String name, String qName) throws
SAXException {
// do something -
Lsmw issue plz help its urgent
Hi Experts ,
i need to create a LSMW using batch input .
but the requirement is on the basis of conditions my recording need to be changed .
dat means
3127POL09 3127POL09-1 CTR 3127-1003E 100 FUL
3127POL09 3127POL09-2 WBS 3127POL01 60 FUL
for ctr i ill have to post data in screen number 200
and for wbs i ill have to post data in screen number 400 .
can we put some conditions in recording in lsmw ?
i no we can create multiple recording but how can we use them to fullfill my requirement .
plz help its urgent
thanx in advanceHi,
Within LSMW, there is an option to write our own code wherein this code can be incorporated.
This is in the Field Mapping Option...
Just go to the Menu Extras->Layout
and click on the check box Form Routines
Global Data.
Here you can define Global Variables and also perform your ABAP Coding.
Regards,
Balaji. -
Migration to an asm instance. plz help me urgent
RMAN> BACKUP AS COPY DATABASE FORMAT '+DGROUP1';
Starting backup at 20-AUG-07
Starting implicit crosscheck backup at 20-AUG-07
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=328 devtype=DISK
ORA-19501: read error on file "+DGROUP1/sravan/backupset/2007_08_03/nnsnf0_ora_asm_migration_0.260.1", blockno 1 (blocksize=512)
ORA-17507: I/O request size is not a multiple of logical block size
Crosschecked 7 objects
Finished implicit crosscheck backup at 20-AUG-07
Starting implicit crosscheck copy at 20-AUG-07
using channel ORA_DISK_1
ORA-19587: error occurred reading 8192 bytes at block number 1
ORA-17507: I/O request size 8192 is not a multiple of logical block size
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/20/2007 16:53:21
ORA-19587: error occurred reading 8192 bytes at block number 1
ORA-17507: I/O request size 8192 is not a multiple of logical block size> plz help me urgent
Adjective
* S: (adj) pressing, urgent (compelling immediate action) "too pressing to permit of longer delay";So you are saying that your problem is a lot more important than any other person's problem on this forum?
And you're demanding a quick response from professionals that give you and others assistance here in their free time without getting a single cent compensation?
Don't you think that this "it is urgent!" statement severely lacks manners? -
LASERJET M1217 nfw MFP urgent help plz
HAY GUYS, NEED URGENT HELP!!!!!!!!!
My printer M1217 nfw MFP had a problem with the scanner and it was fixed bu updating the firmware and the scanner works fine and offcourse i printed the config. report befor updating the firmware , the problem is that i lost the report and i cant config. the fax or the wirless connection . any help plz guyskelsaeed wrote:
HAY GUYS, NEED URGENT HELP!!!!!!!!!
My printer M1217 nfw MFP had a problem with the scanner and it was fixed bu updating the firmware and the scanner works fine and offcourse i printed the config. report befor updating the firmware , the problem is that i lost the report and i cant config. the fax or the wirless connection . any help plz guys -
Help Plz.......!!!!its urgent
hi nokia users
flash lite on my 5530 only plays youtube videos,and when tried to play videos on other sites then it says flash player is required............do ui use any software that supports web videos...???
help plz.....
thanks in advanceFalshplayer vedio cant acces in your device?
-
Routine--- help its urgent.
hai gurus,
Here is the scenario.
I am extracting the data from r/3.There is one field called "ITM_DESCRIPTION" in this i am gettting an # char only for single record and due to this delta loads are getting failed.
we had already wriiten the code for eliminating # for that field but dont know its not working. So i am planning out to skip that particular record for a particular Purchase order number.
Is there any such code to eliminate the particular record.
Many thanks in advance.
any one has the code plz send the code.
Help its urgent.
full points assured
regards
KPhai Oscar,
I had already done this one.
still geting the same problem.
can u send me any code that i can add in SR of TR.
regards
Kp -
Im new to the 5g ipod help plz
will the ipod turn off if i leave it on pause? i know i have a really stupid question but help plz thx
Yes.
-
My Apple TV is not working. On tv display, I'm getting a message 'unsupported signal. Check your device output. ' Can anyone help plz.
connect it to a tv which support full hd and go into the settings and lower the resolution as much as possible and then connect it with your tv once more
Maybe you are looking for
-
Can't play songs due to old Apple ID / Can't authorize music
I have this really ANNOYING problem where, since I went and got a .mac account and have a new Apple ID, I can't access some songs I bought a couple years ago with my former Apple ID. ITunes keeps asking me to authorize the content, brings up a window
-
Can't seem to get this problem resolved with Verizon in VA
Moved from VA in December of 2012; disconnected my residential service the last day of November. Despite several calls with Verizon; my house lines (2) are still forwarding to my cell phone. Worse yet, for the 2 years I lived there I was receiving
-
Can i use Apple 2005 20-inche cinema display on Mac pro ?
can i use Apple 2005 20-inche cinema display on Mac pro ?
-
10.5.3 update breaks output to Sony LCD TV
After updating to 10.5.3 on my Mac Mini Core Duo, I can no longer get the Mini to display properly. I've been using my 32" Sony Bravia using the DVI-VGA adapter that came with the Mini and connecting to the TV's VGA port. I can see a small portion of
-
Pls Help a newbie - editing photos in PS8 - iPhoto
Hi I've got a brand new mac - never had a mac before so bear with me. I am trying to learn this iPhoto etc. Just installed Photoshop Elements 8. But I am at a loss as how to use it all. I manage to set PSE as the editor from iPhoto. I learned that I