ALV List - Field Catalog - Change Column width
Hi Friends,
I am using Alv list to display the output of a report program. I have generated the field catalog using REUSE_ALV_FIELDCATALOG_MERGE function and to display the alv REUSE_ALV_LIST_DISPLAY.
My Internal table has few fields like "text1 type string". So after generating the Fieldcatalog from internal table i have changed the field description, but i don't know how to change the column output display width. I have tried by changing OUTPUTLEN parameter to 50 but in the output it is taking only 10 characters instead of 50 characters.
How can i change the field length(FOR STRING TYPE) for output display ??
Which parameter do i need to change in field catalog for String type fields..
Regards,
Raju.
Message was edited by: Narayana Raju Sampathirao
Hi narayana,
1. the STRING type is causing the problem.
2. what u can do is,
(i suppose u are modifying the alv field catalogue)
One workaround is :
and it works fantastic !
3. BOLD is important.
(this will take care of the length)
LOOP AT alvfc INTO alvwa.
IF alvwa-fieldname = 'A'.
alvwa-outputlen = '100'.
<b> alvwa-inttype = 'CHAR'.</b>
MODIFY alvfc FROM alvwa.
ENDIF.
ENDLOOP.
4. To get a TASTE of what i m saying,
just copy paste in new program :
REPORT abc.
TYPE-POOLS : slis.
Data
DATA : BEGIN OF itab OCCURS 0,
a TYPE string.
INCLUDE STRUCTURE t001.
DATA : END OF itab.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : alvwa TYPE slis_fieldcat_alv.
Select
SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE itab.
LOOP AT itab.
itab-a = 'pppppppppppppppppppppp'.
MODIFY itab.
ENDLOOP.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
LOOP AT alvfc INTO alvwa.
IF alvwa-fieldname = 'A'.
alvwa-outputlen = '100'.
alvwa-inttype = 'CHAR'.
MODIFY alvfc FROM alvwa.
ENDIF.
ENDLOOP.
Display
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = alvfc
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
regards,
amit m.
Similar Messages
-
Hierarchical alv list field catalog
hi, i am diplaying a hierarchical list through ooalv.
i am using the cl_salv_hierseq_table=>factory method.
CALL METHOD cl_salv_hierseq_table=>factory
EXPORTING
t_binding_level1_level2 = lt_binding
IMPORTING
r_hierseq = gr_table
CHANGING
t_table_level1 = T_HEADER
t_table_level2 = T_ITEM.
Could anyone please tell me how do i pass a FIELD CATALOG in the above function.
I checked the parameters of the above function and it has only 4 parameters
as used above.When you create the ALV using the SALV OM, system creates the Field Catalog and some default setting based on the table columns. So, change any of the column properties, you have to get the Column object and process the column.
Check the program SALV_DEMO_HIERSEQ_COLUMN.
Regards,
Naimesh Patel -
The finder window for an external USB hard disk suddenly started separating files by time (today, yesterday, etc.) and stopped allowing me to change column width, order, etc. Also the header bar shifted to flat white from gray.
All was normal until the icon for the disk stopped showing up on the desktop when I would plug it in. I rebooted the computer, and the disk icon now shows up but this new look to the finder window started as a result. The hard disk does not have this problem when I use it on another Mac running Snow leopard. Also, two other external hard disks that I use on this computer running lion 7.4 still have the normal header bars with columns that can be reordered, etc.
I have tried looking in preferences and other places but have not seen this discussed.Well duh - I finally figured out that somehow in the View options for the hard drive, the "arrange by" option had been changed to "by date" from "none". Not sure how that happened, I had never used the "view options" menu tem before. Changing "arrange by" back to "none" gets the gray column headers and the collapsible folder icons back.
-
ALV List in the same Column for the row CELL i need button or value
Hi,
In my ALV list for the same column I need Button or Value for the different rows (CELL) depending upon my condition.
as well as I have to make read only of 3 rd column CELL based on my first column dropdown value CELL for this Row Only.
Depends upon the value in column 1 / row 2 I have to read only the CELL of column 5 / row 2 ie for the same row.
Depends upon the value in Column 1/ row 3 I have to EDITABLE or Button the CELL of column 5 / row 3 ie for the same row
How to do the logic for this.
I tried and got it for the entire column only.
But my requirement is for the sepecific cell in the column.
Kindly help to proceed further.
Thanks in advance.
DavHere is how you can make a particular cell in the row read-only based on certain conditions.
In my example I am displaying the flight details in an ALV. Here I am checking the airline id and if it is "AA' I am making the cell in the column airline id as readonly. In my example I am putting a check and readonly on the same column. However you can do this for different columns as well.
In order to achieve this you need to add a new context attribute 'READONLY' of type abap_bool to the context node which is bound to data node of ALV.
The method where I populate the node has the following code to populate the data.
data: lr_input_node type ref to if_wd_context_node,
lr_flight_node type ref to if_wd_context_node,
lv_cityfrom type s_from_cit,
lv_cityto type s_to_city,
ls_from type bapisfldst,
ls_to type bapisfldst,
lt_flights type table of bapisfldat,
ls_flights type bapisfldat.
data: lt_final type if_mainview=>elements_node_flighttab,
ls_final type if_mainview=>element_node_flighttab.
* Instantiate the variable lr_input_note to the node NODE_FLIGHT
lr_input_node = wd_context->get_child_node( name = 'NODE_FLIGHT' ).
* Instantiate the variable lr_flight_note to the node NODE_FLIGHTTAB
lr_flight_node = wd_context->get_child_node( name = 'NODE_FLIGHTTAB' )
* Get the attributes CityFrom und CityTo
lr_input_node->get_attribute( exporting name = 'CITYFROM'
importing value = lv_cityfrom ).
lr_input_node->get_attribute( exporting name = 'CITYTO'
importing value = lv_cityto ).
* Fill the stuctures ls_from and ls_to
ls_from-city = lv_cityfrom.
ls_to-city = lv_cityto.
* Call the function BAPI_FLIGHT_GETLIST
call function 'BAPI_FLIGHT_GETLIST'
exporting
destination_from = ls_from
destination_to = ls_to
tables
flight_list = lt_flights.
Now I am going to check if the airline id is 'AA' and based on that I will fill the readonly context attribute.
loop at lt_flights into ls_flights.
MOVE-CORRESPONDING ls_flights to ls_final.
if ls_flights-airlineid = 'AA'.
ls_final-readonly = abap_true.
else.
ls_final-readonly = abap_false.
endif.
append ls_final to lt_final.
endloop.
Finally bind the data to the context node.
* Bind the data to the node NODE_FLIGHTTAB
lr_flight_node->bind_elements( lt_final ).
Now you need to do the ALV configuration settings.
* create an instance of ALV component
DATA:
lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage.
lr_salv_wd_table_usage = wd_this->wd_cpuse_alv( ).
IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
lr_salv_wd_table_usage->create_component( ).
ENDIF.
* get ALV component
DATA:
lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
lr_salv_wd_table = wd_this->wd_cpifc_alv( ).
wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
CALL METHOD wd_this->alv_config_table->if_salv_wd_table_settings~set_read_only
EXPORTING
VALUE = ABAP_FALSE
* set visible row count
DATA:
lr_table_settings TYPE REF TO if_salv_wd_table_settings.
lr_table_settings ?= wd_this->alv_config_table.
lr_table_settings->set_visible_row_count( '10' ).
DATA:
lr_column_settings TYPE REF TO if_salv_wd_column_settings,
lr_column TYPE REF TO cl_salv_wd_column.
lr_column_settings ?= wd_this->alv_config_table.
DATA: lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.
lr_column = lr_column_settings->get_column( 'AIRLINEID' ).
CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'AIRLINEID'.
lr_column->set_cell_editor( lr_input_field ).
lr_input_field->set_read_only_fieldname( value = 'READONLY' ).
CALL METHOD lr_column_settings->delete_column
EXPORTING
id = 'READONLY' -
How do you change column width in Numbers on an iPad?
In numbers, open the sheet you want to work on. Tap the grey bar across the top., over the column you want to make bigger. The colum should now be surrounded by a blue box. At the top,right of the blue box you will see ". Touch it and slide to make the column wider or narrower.
-
[kde - Homerun kicker] How change columns width
I found a new Kde launcher a few months ago, I find great (of course this is only my opinion).
It is the smaller version (not full screen) Homerun , which is available in Aur at the following address : https://aur.archlinux.org/packages/kdep … s-homerun/ , which can be seen in the following link : http://blogs.kde.org/2014/01/29/homerun-120 , although the current version is slightly advanced.
This launcher version not full screen, works like Lancelot , but is more simply and more faster.
Moreover, it displays the recently used applications and the recently used documents .
However, I have a slight regret about this launcher : the column width is fixed and can not be changed.
Does anyone know how to change the columns width ?
Thank you in advance for your help.
Last edited by Pafrapé (2014-05-02 21:37:58)@Julie – you can change column width by alt + shift + dragging left or right cell sides without changing the overall size of the table.
For other table goodies see:
http://indesignsecrets.com/18-handy-table-shortcuts.php
Hope that helps!
Uwe -
ALV Cannot change Column Width in Field Catalog
Hi,
I have an ALV report where I want to specifically set the field widths of the columns because some of the standard domain lengths are very large (e.g. 255 chars).
I am building the field catalog like this:
CLEAR gs_fieldcat.
gs_fieldcat-col_pos = 1.
gs_fieldcat-fieldname = 'NAME_ORG1'.
gs_fieldcat-scrtext_m = 'Employer Name'.
gs_fieldcat-dd_outlen = 40.
APPEND gs_fieldcat TO gt_fieldcat.
then calling the ALV like this:
CALL METHOD go_alv->set_table_for_first_display
CHANGING
it_outtab = gt_evm_pm_data
it_fieldcatalog = gt_fieldcat .
gt_fieldcat is based on structure LVC_S_FCAT.
However, this has no effect on the column widths.
What am I doing wrong?
Regards
DavidHi,
please try with that.
It will surely work.
gs_fieldcat-outputlen = '25'.
In quotation u can use any length whateveer u wish to display
Thanks
JAyati -
Hi
In webdynpro application the ALV list display the field name which is in table description i want to put my preferable field name. Do u all have any idea how is it possibleHello,
U could bult the fildcatalog like this:
* Sales Order Number
CLEAR L_FIELDCAT.
L_FIELDCAT-TABNAME = 'G_T_OUTTAB'.
L_FIELDCAT-FIELDNAME = 'VBELN'.
L_FIELDCAT-SELTEXT_M = TEXT-002. " Ur own text
L_FIELDCAT-COL_POS = 1.
L_FIELDCAT-KEY = 'X'.
APPEND L_FIELDCAT TO IT_FIELDCAT.
CLEAR L_FIELDCAT.
If useful reward.
Vasanth -
Hi,
I am trying to display data from two different tables, say 3 fields from one table and 3 fields from other table. in alv grid format using classes and using method CALL METHOD go_grid->set_table_for_first_display
how can we build the field catalog for the internal table which consists of 6 fields from two different tables
thanks in advanceHello,
Please check,it is similar case.
FORM set_grid.
IF g_r_grid IS INITIAL.
CREATE OBJECT g_r_cont
EXPORTING container_name = 'CUST1'.
CREATE OBJECT g_r_grid
EXPORTING i_parent = g_r_cont.
g_r_variant = sy-repid.
Build Field Catalog
PERFORM build_field_catalog.
Exclude process options from ALV
PERFORM alv_excl.
setting ALV Grid layout
PERFORM alv_layo.
CALL METHOD g_r_grid->set_table_for_first_display
EXPORTING
is_layout = g_r_layo
is_variant = g_r_variant
it_toolbar_excluding = g_r_excl
i_save = 'X'
CHANGING
it_outtab = g_t_alv[]
it_fieldcatalog = g_t_fieldcat.
ENDIF.
ENDFORM. " set_grid
*Form Routine ID : build_field_catalog
*Form Routine Name : TO Build Field Catalog
*Outline : Subroutine for building the field catalog
*Argument : None
*Return Value : None
FORM build_field_catalog.
DATA : l_f_n TYPE i.
REFRESH g_t_fieldcat.
l_f_n = 0.
Add properties values to ALV Catalog
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'MATNR' 'CHAR' l_f_n
text-001 'X' space ' ' 18 ' ' .
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'TXZ01' 'CHAR' l_f_n
text-002 'X' space 'X' 40 ' ' .
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'MFRPN' 'CHAR' l_f_n
text-003 ' ' space ' ' 40 ' ' .
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'EBELN' 'CHAR' l_f_n
text-004 space space ' ' 10 ' ' .
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'EBELP' 'NUMC' l_f_n
text-005 space space ' ' 5 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'EINDT' 'DATS' l_f_n
text-006 space space ' ' 10 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'MENGE' 'QUAN' l_f_n
text-007 space space ' ' 13 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'MEINS' 'UNIT' l_f_n
text-008 space space ' ' 3 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'MENGE1' 'QUAN' l_f_n
text-009 space space ' ' 13 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'MEINS1' 'UNIT' l_f_n
text-010 space space ' ' 3 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'LIFNR' 'CHAR' l_f_n
text-011 space space ' ' 10 'ALPHA'.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'NAME1' 'CHAR' l_f_n
text-012 space space 'X' 35 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'BSART' 'CHAR' l_f_n
text-013 space space ' ' 4 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'BEDAT' 'DATS' l_f_n
text-014 space space ' ' 10 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'AEDAT' 'DATS' l_f_n
text-015 space space ' ' 10 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'INSMK' 'CHAR' l_f_n
text-016 space space ' ' 1 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'WERKS' 'CHAR' l_f_n
text-017 space space ' ' 4 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'LGORT' 'CHAR' l_f_n
text-018 space space ' ' 4 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'EKGRP' 'CHAR' l_f_n
text-019 space space ' ' 3 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'PSTYP' 'CHAR' l_f_n
text-020 space space ' ' 1 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'LOEKZ' 'CHAR' l_f_n
text-021 space space ' ' 1 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'DISPO' 'CHAR' l_f_n
text-022 space space ' ' 3 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'PO_TEXT' 'CHAR' l_f_n
text-023 space space 'X' 10 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'BSGRU' 'CHAR' l_f_n
text-024 space space ' ' 3 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'PRDHA1' 'CHAR' l_f_n
text-025 space space ' ' 18 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'VTEXT1' 'CHAR' l_f_n
text-026 space space 'X' 40 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'PRDHA2' 'CHAR' l_f_n
text-027 space space ' ' 18 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'VTEXT2' 'CHAR' l_f_n
text-028 space space 'X' 40 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'PRDHA3' 'CHAR' l_f_n
text-029 space space ' ' 18 ' '.
l_f_n = l_f_n + 1.
PERFORM add_catalog USING 'VTEXT3' 'CHAR' l_f_n
text-030 space space 'X' 40 ' '.
ENDFORM. " build_field_catalog
*Form Routine ID : add_catalog
*Form Routine Name : To Add the Catalog for the ALV
*Outline : Subroutine to add properties values to ALV Catalog
*Argument : p_fname "Field Name
p_inttype "Intenal Type
p_col_pos "Column Position
p_coltext "Column Text
p_key "Key Field
p_hotspot "Hotspot Enabled
p_outlen "Internal Length
p_convexit "conversion exit name
*Return Value : g_t_fieldcat "Field Catalog Table
FORM add_catalog USING p_fname
p_inttype
p_col_pos
p_col_text
p_key
p_hotspot
p_lowercase
p_outlen
p_convexit.
CLEAR g_r_fieldcat.
g_r_fieldcat-fieldname = p_fname.
g_r_fieldcat-inttype = p_inttype.
g_r_fieldcat-col_pos = p_col_pos.
g_r_fieldcat-coltext = p_col_text.
g_r_fieldcat-hotspot = p_hotspot.
g_r_fieldcat-lowercase = p_lowercase.
g_r_fieldcat-outputlen = p_outlen.
g_r_fieldcat-key = p_key.
g_r_fieldcat-convexit = p_convexit.
APPEND g_r_fieldcat TO g_t_fieldcat.
ENDFORM. " add_catalog
*Form Routine ID : alv_excl
*Form Routine Name : ALV Exclude List
*Outline : Subroutine to exclude process options from ALV
*Argument : None
*Return Value : None
FORM alv_excl.
APPEND cl_gui_alv_grid=>mc_mb_sum TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_mb_subtot TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_fc_graph TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_fc_info TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_fc_print_back TO g_r_excl.
ENDFORM. " alv_excl
*Form Routine ID : alv_layo
*Form Routine Name : alv_layo
*Outline : Subroutine to set alv layout
*Argument : None
*Return Value : None
FORM alv_layo.
g_r_layo-grid_title = text-100.
g_r_layo-cwidth_opt = g_c_mark.
g_r_layo-zebra = g_c_mark.
g_r_layo-no_rowmark = space.
g_r_layo-sel_mode = g_c_selmode.
ENDFORM.
Regards -
Hi
I'm working on an existing site (and learning as I go). I was
just trying to get some boxes to line up in the navigation bar and
pulled it too wide to see if my adjustements were appearing in the
browser. Now I can't change it back to the proper size. I've tried
changing it in the HTML, the properties, the CSS, by manually
pulling on the box handle (it lets me go wider, but not narrower)
and it always reverts back to the wide size.
You can see from the screen shot that the proper width is
showing, but the actual column width is in parenthesis. This is the
width that I can't seem to get rid of. OK, never mind about the
screen shot - I can't post one here, crap.
This is what the column width looks like 147 (196). I cannot
get rid of the 196 and when I pull the image narrower, all my code
bounces back to 196 even though I've changed it to 147.
I've attached the code, but I don't see what anyone can do -
code says 147 - column width remains 196. Please help me change it!
Also, I just saw the posting that appeared right before me on
the same topic. My site is not live yet so I'm sorry that you can't
look directly at the source - the old site is www.breadandlife.org
if that helps - at least it's showing the correct navbar width.
And padding is not the problem, already looked at that.
Just looked at the existing site in Dreamweaver and the
navbar is also stretching out to 196! Did I do something to change
defaults in the navbar that is applying to all files I open? I'm
going to close it and make sure I don't save it...
I hope this will be a quick and easy answer for someone...can you try edit view--> view properties --> Text and Align tab--> select field you want to change --> check width and give number of pixels.
HTH,
Suma -
Hi all,
Is it possible to change cell widths with varying values in CAT2 screen?
For eg: Project/Task Name column width should be 25 while the cell width for weekdays should be 8 to 10.
Regards,
VivekYou can Change the Fields as required Hide them etc not change the Length
This means you wann to change Tabble : CATSDB WAHICH IS STANDARD
REWARD POINTS -
After creating a report using table 'dept', I have updated that dept table and increased the width of the column dname from 14 to 20. I would like to know how to change the width of the dname column in the report that I created earlier so that it can now show 20 characters. Thanks.
fsidrak wrote:
I am working on report builder 6i reports. I want to increase the width of a column X in a report in runtime depends on the
value of a certain column Y in the same report.Hi fady,
Try to accomplish this by setting Horizontal Elasticity properties.
Hope this helps
Hamid
If someone's response is helpful or correct, please mark it accordingly.* -
Hi, when my 3rd gen nano is connected and iTunes is open and I am in my nano library, I cannot change the column width.
When I try to change the column width in the iTunes library it's no problem, but once in the nano library I cannot.
What gives ?
Mike.Uncheck *Manually manage music*, click Apply then again check *Manually manage music*.
I don't like auto sync.
Any reason in particular?
You can create specific playlists and autosync only those.
Add/delete form these playist to add/remove form theiPod.
Using autosync is the only way all the info (ratings, playcounts, date played, etc) will get transferred back to iunes. -
AlV! Field Catalog Merge!
Hi!
What is Field catalog merge in ALVHi,
YOU HAVE TWO WAYS TO BUILD A FIELD CATALOG
1) FIRST METHOD
data w_fieldcat type slis_fieldcat_alv.
type-pools : slis.
tables : sflight.
data : i_fieldcat type slis_T_fieldcat_alv.
data v_repid like sy-repid.
data : begin of i_sflight occurs 0,
carrid like sflight-carrid,
connid like sflight-connid,
fldate like sflight-fldate,
end of i_sflight.
w_fieldcat-tabname = 'I_SFLIGHT'.
w_fieldcat-fieldname = 'CARRID'.
w_fieldcat-outputlen = '10'.
w_fieldcat-col_pos = '1'.
w_fieldcat-row_pos = '1'.
w_fieldcat-seltext_l = 'Carrie ID'.
w_fieldcat-seltext_M = 'Carrie ID'.
w_fieldcat-seltext_S = 'Carrie ID'.
w_fieldcat-HOTSPOT = 'X'.
append w_fieldcat to i_fieldcat.
clear w_fieldcat.
w_fieldcat-tabname = 'I_SFLIGHT'.
w_fieldcat-fieldname = 'CONNID'.
w_fieldcat-outputlen = '10'.
w_fieldcat-col_pos = '1'.
w_fieldcat-row_pos = '1'.
w_fieldcat-seltext_l = 'CONNI ID'.
w_fieldcat-seltext_M = 'CONNI ID'.
w_fieldcat-seltext_S = 'CONNIID'.
w_fieldcat-HOTSPOT = 'X'.
append w_fieldcat to i_fieldcat.
clear w_fieldcat.
w_fieldcat-tabname = 'I_SFLIGHT'.
w_fieldcat-fieldname = 'FLDATE'.
w_fieldcat-outputlen = '10'.
w_fieldcat-col_pos = '1'.
w_fieldcat-row_pos = '1'.
w_fieldcat-seltext_l = 'FLDATE.
w_fieldcat-seltext_M = 'FLDATE'.
w_fieldcat-seltext_S = 'FLDATE'.
w_fieldcat-HOTSPOT = 'X'.
append w_fieldcat to i_fieldcat.
clear w_fieldcat.
2) SECOND METHOD
data w_fieldcat type slis_fieldcat_alv.
type-pools : slis.
tables : sflight.
data : i_fieldcat type slis_T_fieldcat_alv.
data v_repid like sy-repid.
data : begin of i_sflight occurs 0,
carrid like sflight-carrid,
connid like sflight-connid,
fldate like sflight-fldate,
end of i_sflight.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = v_repid
i_internal_tabname = 'I_SFLIGHT'
i_inclname = v_repid
changing
ct_fieldcat = I_fieldcatalog_TYPE.
Reward points if helpful
THANKS
Venki -
Unable to change column width dynamically in cross tab report.
Hi,
We have developed cross tab layout using template builder v.10.1.3.2.1 in EBS.I am trying to increase column width dynamically and the width is coming xml.
i looked at document and found one command <?split-column-width:name?> for the same.i tried but it is not increasing the size of one column.
Output
column1 column2 column3 .......
Row text1 10 20 30
Row text2 40 50 60
I want to inrease the size of column for row text1 and row text2.
Need help in this.
Thanks,
MaheshIs the field that holds your width value called "name"?
Can you send me the xml and RTF template to [email protected] and I can take a look.
Thanks,
Bipuser
Maybe you are looking for
-
Event handler eats up memory. Bad programing and/or bug.
Hello I've been programming a GUI for a project. The basics of the program is a sample routine that updates a array once a second. Once the array is updated I use a event handler to plot the new array in a graph. When I wrote this gui I think I've st
-
I cannot get remote ftp access to my NMH405. I have remote access through https://ciscomediahub.com/ and can browse through my files this way, but I need to have remote access through ftp as well. I have set ut ftp access and it is working locally on
-
Deleting photos/formatting SD card after use in Canon T1i
So once my Canon Rebel T1i formats my SD card in it's default state with two directories (DCIM/Canon) I have no permissions on the card other than "read only." This came up out of no where and now I can't delete images off of it in iPhoto (or the com
-
How to create Proxy CLIENT USING .WSDL ?
I apologize if i have posted this question in the wrong forum.My question is concerned with WSDL. Recently i came across a question in as : Write a command to Create proxy client by using .WSDL and set of XSD file. Can anyone provide me some pointers
-
I was just trying to play some music that I had in my iTunes library when the error message saying the file or directory was corrupt. I had to delete the entire CD from the library because the same message appeared if I tried to play any of the track