Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from desperado20032003 on Feb 20 at 5:22 AM Thanks. I will try it. BTW, is it possible for you to provide a snippet of table control using bdc and search help exit?
| | | ---------------Original Message--------------- From: john.louk Sent: Tuesday, February 19, 2013 12:52 PM Subject: Changing ALV Header During Display 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. | | Reply to this email to post your response. __.____._ | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |