Block sliding columns in a grid
Hi all,
can anyone please explain me how i can block the sliding columns in a grid.
For example, i have a grid with 20 columns and i need to block (when i use the horizontal scrollbar) the first 4 columns.
Thank a lot to everyone.
I use SAP Business One 9.0 pl 05
Rocco
hi.
have u checked this thread..
First read below thread.
What's New in SAP Business One 9.0 - Technical Functionalities
UI API
Pinning Columns in a Matrix/Grid : You can now pin columns in a matrix or a grid to keep these columns displayed on the screen when you drag the scrollbar.
- See more at: http://www.sap-b1.com/whats-new-in-sap-business-one-9-0-technical-functionalities/#sthash.uadkrz5D.dpuf
in above thread they mentioned pinning of columns from 9.0 onwords.
plz check below thread tooo
Pinning columns
Similar Messages
-
Hiding columns in ALV Grid output
Hi all,
Please find below my piece of code. I want to hide couple of columns in the grid output. Could you please tell me how to achieve it.
DATA: gr_alv TYPE REF TO cl_salv_table,
lr_display TYPE REF TO cl_salv_display_settings,
lr_columns TYPE REF TO cl_salv_columns_table,
lr_column TYPE REF TO cl_salv_column_table,
lr_functions TYPE REF TO cl_salv_functions_list,
lr_sorts TYPE REF TO cl_salv_sorts,
lr_print TYPE REF TO cl_salv_print,
lr_column_f TYPE REF TO cl_salv_columns,
gr_error TYPE REF TO cx_salv_not_found ,
lr_event TYPE REF TO cl_salv_events_table,
lr_handler TYPE REF TO znew_gc_event_handler,
lr_layout TYPE REF TO cl_salv_layout.
DATA: key TYPE salv_s_layout_key,
gr_msg TYPE string.
TRY.
* Create ALV instance - use CALL METHOD since this is a static method
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = gr_alv
CHANGING
t_table = lt_to_header.
lr_display = gr_alv->get_display_settings( ).
lr_display->set_list_header( text-ttl ).
* Get functions object and then set all the functions to be allowed
lr_functions = gr_alv->get_functions( ).
lr_functions->set_all( ).
DATA: lv_field TYPE lvc_fname.
* Get column settings object and then optimize the column widths to the
* data
lr_columns = gr_alv->get_columns( ).
lr_columns->set_optimize( ).
*--- set column header for custom field Todays Date
TRY.
lr_column ?= lr_columns->get_column( 'ZZDATE' ).
lr_column->set_output_length('12').
lr_column->set_long_text( 'Todays Date' ).
CATCH cx_salv_not_found INTO gr_error.
gr_msg = gr_error->get_text( ).
MESSAGE gr_msg TYPE 'I'.
ENDTRY.
*--- set column header for custom field Age of Open
TRY.
lr_column ?= lr_columns->get_column( 'ZZ_AGE_OF_OPEN' ).
lr_column->set_output_length('12').
lr_column->set_long_text( 'Age of Open' ).
CATCH cx_salv_not_found INTO gr_error.
gr_msg = gr_error->get_text( ).
MESSAGE gr_msg TYPE 'I'.
ENDTRY.
*--- set column header for custom field Age when Confirmed
TRY.
lr_column ?= lr_columns->get_column( 'ZZ_AGE_CONFIRMED' ).
lr_column->set_output_length('18').
lr_column->set_long_text( 'Age when Confirmed' ).
CATCH cx_salv_not_found INTO gr_error.
gr_msg = gr_error->get_text( ).
MESSAGE gr_msg TYPE 'I'.
ENDTRY.
lr_event = gr_alv->get_event( ).
CREATE OBJECT lr_handler.
SET HANDLER: lr_handler->on_double_click FOR lr_event.
*... Set Sort
lr_sorts = gr_alv->get_sorts( ).
* " Optimize the column widths for printing.
lr_print = gr_alv->get_print( ).
lr_print->set_print_parameters_enabled( value = 'X' ).
lr_print->set_column_optimization( value = 'X' ).
*--- This code is to get the layout,save the layout and display the
* layout
lr_layout = gr_alv->get_layout( ).
key-report = sy-repid.
lr_layout->set_key( key ).
lr_layout->set_save_restriction( cl_salv_layout=>restrict_none )
DATA: init_layout TYPE slis_vari.
init_layout = p_layout.
lr_layout->set_initial_layout( init_layout ).
*--- display report
gr_alv->display( ).
CATCH cx_salv_msg.
WRITE: 'Error displaying grid! - cx_salv_msg'.
CATCH cx_salv_not_found.
WRITE: 'Error displaying grid! - cx_salv_not_found'.
CATCH cx_salv_data_error.
WRITE: 'Error displaying grid! - cx_salv_data_error'.
CATCH cx_salv_existing.
WRITE: 'Error displaying grid! - cx_salv_existing'.
ENDTRY.
Thanks,
SalilHI
THIS IS THE LOGIC
SELECTION-SCREEN BEGIN OF BLOCK charly
WITH FRAME TITLE text-100.
PARAMETERS: rb_dis RADIOBUTTON GROUP rb DEFAULT 'X'
USER-COMMAND ucomm ,
rb_hid RADIOBUTTON GROUP rb .
P_DEL TYPE VBAK-VKGRP .
SELECTION-SCREEN END OF BLOCK charly.
*SELECTION sCREEN FOR PO TABLE
SELECTION-SCREEN BEGIN OF BLOCK b2
WITH FRAME TITLE v_text.
SELECT-OPTIONS : s_xblnr FOR zmshub-xblnr MODIF ID gr2,
s_bstkd FOR zmshub-bstkd MODIF ID gr2,
s_posex FOR zmshub-posex_e MODIF ID gr2,
s_kdmat FOR zmshub-kdmat MODIF ID gr2.
PARAMETERS : p_upload LIKE ibipparms-path LENGTH 90 MODIF ID gr3 ,
p_down LIKE ibipparms-path DEFAULT 'C:\output_log.txt'
MODIF ID gr3.
SELECTION-SCREEN END OF BLOCK b2.
*SELECTION sCREEN FOR DOWNLOADING
SELECTION-SCREEN BEGIN OF BLOCK b4
WITH FRAME TITLE text-105.
PARAMETERS :
rb_n_d_f RADIOBUTTON GROUP rb1 DEFAULT 'X' ,
rb_ftp RADIOBUTTON GROUP rb1 ,
p_f_n TYPE c LENGTH 25 DEFAULT 'FILE NAME .TXT',
rb_ws_d RADIOBUTTON GROUP rb1 ,
p_dw_f_n TYPE c LENGTH 25 DEFAULT 'C:
TEMP\FILE.TXT',
rb_op_ds RADIOBUTTON GROUP rb1 ,
p_log_p LIKE filename-pathintern DEFAULT 'ZHKWEB01',
p_pa_fn LIKE rlgrap-filename MODIF ID gr1
DEFAULT '//SOME-DIR/FILE.TXT',
rb_ob_dw RADIOBUTTON GROUP rb1,
p_file LIKE filename-pathintern "logical path
DEFAULT 'ZHKWEB01', "name
p_fname LIKE rlgrap-filename MODIF ID gr1 "path &
*filename
DEFAULT text-t02, "/some-dir/file.txt
p_f_name TYPE c LENGTH 25 DEFAULT
SOME-SERVERNAME\SOME-DIR\SOME-FILE.TXT'.
SELECTION-SCREEN END OF BLOCK b4.
AT SELECTION-SCREEN OUTPUT.
IF NOT rb_dis IS INITIAL.
LOOP AT SCREEN.
IF screen-group1 = 'GR3'.
screen-invisible = 1.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 = 'GR2'.
screen-invisible = 0.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF. -
Is there is way to hide a column in data grid column?
Is it possiblo to reorder the column like in excel . I know its not possible bcoz it <table> tag ...Select the column within the table and in the property window uncheck the visible. You can also include visible="false" in the jsp page within the column tag.
-
Maximum number of character we can print in a column uing ALV grid display
Hi frnds,
My requirment is to print 500 charcter data in a column using ALV grid display.
Could any body tell me is it possible and the maximum character it can i print in a column using ALV grid dispaly.
Regards,
SandipanHi Sandipan,
refer notes 857823, 910300 and 959775. All these say there is a limitation of 128 characters.
857823 - ALV grid: Strings with a maximum of 128 characters
Symptom
Entries in cells of the type CHAR or string are truncated after 128
characters in the SAP GUI.
also refer,
ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid
(Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
Cause and Prerequisites
The data table that is sent to the front end only allows character values
with the length 128.
Solution
This is the standard system behavior and cannot be changed. -
Hide a Column in ALV Grid Output
Hi,
I want to hide a column in ALV Grid Output through program.
I am using lwa_fieldcat-NO_OUT = 'X'. to hide the column in output but it is not working, column in not hided in the output.
Kindly suggest.It should work..
see the code :
d_fieldcat_wa-fieldname = 'MATNR'.
d_fieldcat_wa-seltext_l = 'material number'.
d_fieldcat_wa-no_out = 'X'. * hide particular field
append d_fieldcat_wa to d_fieldcat.
clear d_fieldcat_wa.
if not please paste your code here.
Thanks
Seshu -
Want to display more than 300 charcters in a column using ALV grid display
Hi Guru's,
I am trying to display more than 500 charcters in a column using alv grid display but it in the output it is showing only 128 characters. Can you help me to display all the characters in particular column Or is there any limitation in maximum of no of charcters for a column?
Thanks,
Radha.Hi Paurl,
Define a work area say
wa_layout type slis_layout_alv.
then fill this work area as
wa_layout-zebra = X
wa_layout-colwidth_optimize = X.
wa_layout-max_linesize = 300.
Then in FM 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = wa_layout
etc.
you provided this for the field which is displayed in alv grid will have more than 128 characters.
from this code i want,how it refers to particular field.
when i mentioned field catalog-OUTPUTLEN = '300'.
it is not displayed the field morethan 128 characters.
it only displays 128 characters.
please provide me clear and breif information with suitable code.
i am trying what your sending but it is not displayed more than 128 characters.
if you don't mind please spend for me some time for this and
give me clear and breif information with suitable code.
Thanks & Regards,
Radhakrishna. -
Display the Columns in the grid at run time
Hi,
My Query is returning fix number of columns in the output.I dont want to Explicitly set the columns i want to see in the display template(display columns field) rather i want to show the number of columns in the grid at run time selected by the user.
Any Suggestion.
Thankyou in Advance.
NikhilHere's is what i came up with:
YOu can run one query to get the list of all columns from a table using the following SQL code:
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Customers'
Once you do that you can run the query for your table with the selected columns with the following applet property code:
function MyFunc(){
document.MyApplet.getGridObject().setDisplayColumns('CompanyName,City');
document.MyApplet.updateGrid(true);
User the following to extract all selected rows:
selRows = parseInt(myGrid.getSelectedRowCount());
You then itterate through the iGrid to extract the value:
for (var i=1; i<=selRows; i++) {
selRowNum = myGrid.getSelectedRowAt(i);
selDate = myGrid.getCellValue(selRowNum,1); -
How to Display Sub-Columns using ALV Grid
Hi ,
Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
Thanks,
Abaper.
Message was edited by:
ABAP'eryou can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
check below
BCALV_DND_01 Drag ALV Row to Tree Folder
BCALV_DND_02 Drag Icons from Tree to Rows of the Grid
BCALV_GRID_DND_TREE ALV Grid: Drag and Drop with ALV Tree
BCALV_GRID_DND_TREE_SIMPLE ALV GRID: Drag and drop with ALV tree (simple)
BCALV_TEST_COLUMN_TREE Program BCALV_TEST_COLUMN_TREE
Rewards if useful............
Minal -
How to insert the checkbox as a separate column in alv grid display
Hi
How to insert the checkboxes as a separate column in alv grid display with using the reuse_alv_fieldcatlog_mege.
example
matnr maktx ersda checkbox
10 books 28/03/2009 checkbox
Thanks
chinnuHi,
Check the following code.
TYPE-POOLS: slis.
TYPES:
BEGIN OF ty_output,
chk TYPE c,
number TYPE i,
name(20) TYPE c,
END OF ty_output.
DATA: gt_output TYPE STANDARD TABLE OF ty_output,
gs_output TYPE ty_output.
DATA: wa_layout TYPE slis_layout_alv.
DATA: it_fieldcatalog TYPE slis_t_fieldcat_alv,
After you populate the data, build the field catlog like shown below.
wa_fieldcatalog TYPE slis_fieldcat_alv.
wa_fieldcatalog-fieldname = 'CHK'.
wa_fieldcatalog-outputlen = '3'.
wa_fieldcatalog-col_pos = '1'.
wa_fieldcatalog-seltext_m = 'CHK'.
wa_fieldcatalog-checkbox = 'X'.
wa_fieldcatalog-edit = 'X'.
APPEND wa_fieldcatalog TO it_fieldcatalog.
wa_fieldcatalog-fieldname = 'NUMBER'.
wa_fieldcatalog-outputlen = '10'.
wa_fieldcatalog-col_pos = '2'.
wa_fieldcatalog-seltext_m = 'NUMBER'.
APPEND wa_fieldcatalog TO it_fieldcatalog.
CLEAR wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'NAME'.
wa_fieldcatalog-outputlen = '10'.
wa_fieldcatalog-col_pos = '3'.
wa_fieldcatalog-seltext_m = 'NAME'.
APPEND wa_fieldcatalog TO it_fieldcatalog.
CLEAR wa_fieldcatalog.
wa_layout-box_fieldname = 'CHK' .
wa_layout-box_tabname = 'GT_OUTPUT' .
Now call the FM
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND_GRID'
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
is_layout = wa_layout
it_fieldcat = it_fieldcatalog
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_output
* 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. -
Showing Grid without column headers and Grid lines
Hi all
does anyone knows how can set a grid object to display without grid lines and without column headers?
appreciate the help
YoavHi Yechiel,
When you work with the grid you just have to drag it into your srf and bind it with some table by specifying the table name in its properties.
When the form launches the columns of the grid will be created automatically as per the number of columns in the table.The caption of the column in the grid will be the same as that of the name of the column in the table.The only condition for this is that the table should contain some records, if the table is empty no grid lines and the column header will be displayed .
I hope this meet your requirements.
Below I am sending you the code segments with the help of which you can control the grid progamatically...
//Declaring the grid object
Grid oGrid;
//Initializing the grid object
oGrid=(SAPbouiCOM.Grid)oForm.Items.Item("MBS_Grid").Specific;
//Adding a new data table to the form
oSboApplication.Forms.ActiveForm.DataSources.DataTables.Add("MBS_DataTable");
//Assigning the data table to the grid
oGrid.DataTable = oSboApplication.Forms.ActiveForm.DataSources.DataTables.Item( "MBS_DataTable" );
// This statement will clear the grid
oGrid.DataTable.Rows.Clear();
// In this way you can set the column properties
oGrid.Columns.Item(0).Editable=false;
oGrid.Columns.Item(1).Editable=false;
oGrid.Columns.Item(2).Editable=false;
oGrid.Columns.Item(3).Editable=false;
oGrid.Columns.Item(4).Editable=false;
oGrid.Columns.Item(5).Editable=false;
// In this way you can set the column width
oGrid.Columns.Item( 0 ).Width = 50;
oGrid.Columns.Item( 1 ).Width = 60;
oGrid.Columns.Item( 2 ).Width = 130;
//This is the way you can set a user defined caption on the column header.
query="select U_CTX_MOVCODE as 'Movie Code',U_CTX_MOVNAME as 'Movie Name',U_CTX_SHELF as 'Shelf Number',U_CTX_SPACE as 'Space Number',U_CTX_CARDCODE as 'Customer Code',U_CTX_RENTED as 'Rent Status' from [@CTX_VSTORE] order by Code";
Regards,
Prashant -
Hi Everyone,
I would like to know how to hide a column in alv grid. Is there any specific field to set in the field catalog.
Thanks in advance,
Prabs.Hello friends,
I am using the following lines of code, but invisible of my column ( message ) is not working, would be nice if some one can give me any tip.
Field-symbols: <lfs_fieldcat> TYPE lvc_s_fcat.
LOOP AT pt_fieldcat ASSIGNING <lfs_fieldcat>.
CASE <lfs_fieldcat>-fieldname.
WHEN 'DUMMY'.
<lfs_fieldcat>-coltext = 'Message'.
<lfs_fieldcat>-no_out = 'X'.
ENDCASE.
ENDLOOP.
I have also set the field catalog to no_out = 'X'.
PS: Do I need to append the field catalog to internal table ??
I am using the function
CALL METHOD lalv->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING I_STRUCTURE_NAME = 'abc'
IS_LAYOUT = ps_layout
CHANGING IT_OUTTAB = xyz.
Do I have to implicit set the field catalog in ps_layout ?? -
Rendering each child t:tree node in seperate column in panel grid
I have a tree component using tomahawk <t:tree>
Each child in the tree denotes a level in my application and I would like to display that inside different columns in Panel Grid or Data Table) it does not matter).
Say, the tree has a root node with 3 child nodes(immediate) , then there should be a total of 2 columns.
First column will have root node, and the next column will have 3 child nodes.
Similarly if the structure is as below
A -root node
B - child of A
C - child of B
D - child of C
then there should be 4 columns,
first column will have A,second B, third C and fourth D.
I tried to use binding in PanelGrid and then tried to add DefaultMutableTreeNode, but could not find a way of how to achieve this.
Any suggestion or link will be helpful.
Regards,
JoshuaYou might want to try the Tomahawk user's mailing (or the MyFaces user's mailing list if there is not one specifically for Tomahawk).
-
Disable re-order columns in ALV Grid
Hi,
I want to disable the option of move/re-order of columns in ALV grid.
Ex: My grid is displaying 5 fields in the order F1, F2, F3, F4 & F5. I can move the columns by dragging then on their header so I can change the fields order to F2, F3, F1, F4 & F5. I want to disable this option of re-arranging the columns in the ALV grid.
Its not related FIX_COLUMN in field catalog.
Thanks & Regards,
Adithya M.Hi Hima,
FIX_COLUMN is is used to fix the respective columns from moving when horizontal scroll bar is moved.
I want to disable re-arranging of columns, i.e, after displaying the grid the user should not be able to re-arrange/drag the column from one position to other.
Thanks & Regards,
Adithya M -
How to hide selection column from alv grid
hi
i want to hide selection columns form alv grid.. how can i do it.. Is there any fm for that?
regards
palakHi,
the ALV Grid Control allows you to directly hide key columns with NO_OUT (field KEY_SEL is not used).
Field name:NO_OUT
Comp. type:LVC_NOOUT
Dtype(length):Char(1)
SPACE, 'X'
If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.
Regards,
Neenu.
Edited by: Neenu Jose on Oct 21, 2008 10:46 AM -
How to group values in a column in ALV Grid
Hi ,
i have got a report layout like below.
1 4
1 5
1 6
2 7
2 8
2 8
now i want to group the 1st column like below
1 4
5
6
2 7
8
8
How can i get this in ALV grid display.....pls help me out if any of u have got a sample code.Hi,
Here is a sample program which shows how to do sorting.
report zsudheer
no standard page heading.
type-pools slis.
data: fieldcat type slis_t_fieldcat_alv.
<b>data: sort type slis_t_sortinfo_alv.</b>
data: begin of imara occurs 0,
matnr type mara-matnr,
matkl type mara-matkl,
labor type mara-labor,
brgew type mara-brgew,
maktx type makt-maktx,
end of imara.
* Selection Screen
selection-screen begin of block b1 with frame title text-001 .
select-options: s_matnr for imara-matnr .
selection-screen end of block b1.
start-of-selection.
perform get_data.
perform write_report.
* Get_Data
form get_data.
select mara~matnr mara~matkl mara~labor mara~brgew makt~maktx
into corresponding fields of table imara
from mara
inner join makt
on mara~matnr = makt~matnr
where mara~matnr in s_matnr
and makt~spras = sy-langu.
endform.
* WRITE_REPORT
form write_report.
perform build_field_catalog.
<b>perform build_sort.</b>
* CALL ABAP LIST VIEWER (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_sort = sort
it_fieldcat = fieldcat
tables
t_outtab = imara.
endform.
* BUILD_FIELD_CATALOG
form build_field_catalog.
data: fc_tmp type slis_t_fieldcat_alv with header line.
clear: fieldcat. refresh: fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Material Number'.
fc_tmp-fieldname = 'MATNR'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '18'.
fc_tmp-col_pos = 2.
append fc_tmp to fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Material Group'.
fc_tmp-fieldname = 'MATKL'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '12'.
fc_tmp-col_pos = 3.
append fc_tmp to fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Sort Group'.
fc_tmp-fieldname = 'LABOR'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '12'.
fc_tmp-col_pos = 3.
append fc_tmp to fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Gross Weight'.
fc_tmp-fieldname = 'BRGEW'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '12'.
fc_tmp-do_sum = 'X'.
fc_tmp-col_pos = 4.
append fc_tmp to fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Material Description'.
fc_tmp-fieldname = 'MAKTX'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '40'.
fc_tmp-col_pos = 5.
append fc_tmp to fieldcat.
endform.
* FORM build_sort *
form build_sort.
data: tmp_sort type line of slis_t_sortinfo_alv.
clear sort. refresh sort.
<b> clear tmp_sort.
tmp_sort-fieldname = 'MATKL'.
tmp_sort-tabname = 'IALV'.
tmp_sort-up = 'X'.
append tmp_sort to sort.
clear tmp_sort.
tmp_sort-fieldname = 'LABOR'.
tmp_sort-tabname = 'IALV'.
tmp_sort-up = 'X'.
tmp_sort-subtot = 'X'.
append tmp_sort to sort.</b>
endform.
Regards,
Sudheer
Maybe you are looking for
-
Getting index error while updating table
Hi All, I am getting error SQL> UPDATE bqcustomer 2 SET 3 namelegal = 'SME ' || SubStr(bqcustomer.namelegal,8), 4 nameshort = 'SME ' || SubStr(bqcustomer.nameshort,8), 5 nametrading='SME ' || SubStr(bqcustomer.nametrading,8) 6 WHERE 7 hassmeaccount =
-
Dear All I did all configure setting for PO FAX , for testing, I create PO , I am issuing the FAX by using "<b>services for object</b>" the icon which appears on the left side of screen . services for object-> send ->send object with note here
-
An error occurred installing iOS 6
While updating from iOS 5 to iOS 6 on my iPhone 4S, my friend interrupted the updating process by mistake, later, when I attempted to update again, I get the message "Unable to Install Update, An error occurred installing iOS 6", asks CLOSE and SETTI
-
HP 4625 - scanning using doc feeder - a bit misaligned
my problem is whenever i scan using the the doc feeder, the result is a bit misaligned, just a bit but it really annoys me, please please help, using the flatbed is ok can i adjust it myself?? any manual on how to do this?? my only conclusion is that
-
Sample Planning Application Doesn't Create Entity Dimension Members in Essb
Hello all, I created a SAMPLE application in planning and then did a "refresh database" so that it would create the outline in Essbase. When I goto Essbase and expand the outline I see seven dimensions: HSP_Rates(3), Account(1), Period(2), Year(4), S