We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE: [sap-dev] Changing ALV Header During Display

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from john.louk on Feb 19 at 12:51 PM
I have not had to code anything for it. I generally (nearly always) define my field catalog my self and use as few variables as I am aware of.

If you do seltext_l you will only get that value as the hover over display. If you use seltext_s, you can get the seltext_l as the hover over display. I usually do not use the seltext fields if I do not have to. The values in the column heading and hover over are fromt he data dictionary in most cases.

I also still use the function module version of the ALV grid. But, I believe the Object Oriented version can do this as well.

Below is a snippet of building the field catalog. This one may have more than I would usually use or is required. but, I also use it in a test program that I occasionally play with to see what I can make the ALV do. The one that shows using the seltext_s gets the seltext_l in the hover over. I force the seltext_s with the ddictxt = 'S'. For the others, the data dictionary fills it in (from the Field Label's on the data element) and the with that gets determined for the column. I have not had a need to try something different (at least not yet).

Cheers
John



i_fieldcat-ref_tabname = 'LIKP'.

i_fieldcat-fieldname = 'KUNAG'.

i_fieldcat-hotspot = 'X'.

i_fieldcat-key = 'X'.

APPEND i_fieldcat.

CLEAR i_fieldcat.



i_fieldcat-ref_tabname = 'KNA1'.

i_fieldcat-ref_fieldname = 'NAME1'.

i_fieldcat-fieldname = 'NAME1_AG'.

i_fieldcat-seltext_l = 'Sold To Customer Name'(003).

i_fieldcat-seltext_m = 'Sold To Name'(004).

i_fieldcat-seltext_s = 'Name (AG)'(005).

i_fieldcat-ddictxt = 'S'. " (S) short, (M) medium, (L) long

APPEND i_fieldcat.

CLEAR i_fieldcat.



i_fieldcat-ref_tabname = 'LIKP'.

i_fieldcat-fieldname = 'VBELN'.

i_fieldcat-hotspot = 'X'.

APPEND i_fieldcat.

CLEAR i_fieldcat.



i_fieldcat-ref_tabname = 'LIKP'.

i_fieldcat-fieldname = 'NETWR'.

i_fieldcat-cfieldname = 'WAERK'.

i_fieldcat-do_sum = 'X'.

APPEND i_fieldcat.

CLEAR i_fieldcat.



i_fieldcat-ref_tabname = 'LIKP'.

i_fieldcat-fieldname = 'WAERK'.

APPEND i_fieldcat.

CLEAR i_fieldcat.

---------------Original Message---------------
From: desperado20032003
Sent: Tuesday, February 19, 2013 12:14 PM
Subject: Changing ALV Header During Display

Hi,
Quite correct. It is the hover over functionality. I always use fieldcategory to define the headers and I use the name of the fields (like Sales order, Material number)?under seltext_l. I never keep them as VBELN, MATNR etc.?I found this question in one of the sites and it intrigued me. As I have never tried this before, I want to know how this is done .

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2013 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
john.louk  

Workflow Designer
12 achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language