Problems with do_sum in ALV-GRID OO
Hi,
i want to sum in ALV-GRID OO, but the sum-line are not displayed.
Here my short extrac.
GS_FIELDCAT-REF_TABLE = 'COEP'.
GS_FIELDCAT-REF_FIELD = 'WKGBTR'.
GS_FIELDCAT-FIELDNAME = 'WKGBTR'.
GS_FIELDCAT-DO_SUM = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = GT_EXCLUDE
IS_LAYOUT = GS_LAYOUT
IS_VARIANT = GS_VARIANT
I_SAVE = 'X'
CHANGING
IT_FIELDCATALOG = GT_FIELDCAT
IT_OUTTAB = ITAB.
Any idea want i'm doing wrong??
Regards, Dieter
IF that don't work try this little program to find what is missing
report z_what.
TYPE-POOLS slis.
DATA: ct_fieldcat TYPE slis_t_fieldcat_alv,
zt_fieldcat LIKE LINE OF ct_fieldcat.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'COEP'
CHANGING
ct_fieldcat = ct_fieldcat.
READ TABLE ct_fieldcat INTO zt_fieldcat
WITH KEY fieldname = 'WKGBTR'.
BREAK-POINT.
Regards
Similar Messages
-
Problem with sub totals ALV Grid
Hi experts,
I got one requirement, I am using ALV GRID function modules technique. My requirement is, I want to display one value at subtotal line(i.e. like header value). How to display the table values in the subtotal line.
Please give any solution for this.
Thanks in advance.
Sandya.Hi Sandhya,
i will send a sample code for ur problem.And also i will send a entire program about subtotals.Check it once ok..Copy the below prog and execute it and debug it..
*SubTotal on the Field NETWR
wa_fieldcat-tabname = 'IT_SALESORDER'. "Internal
wa_fieldcat-fieldname = 'NETWR'. "Field Name
wa_fieldcat-do_sum = 'X'. "Sum
APPEND wa_fieldcat TO gt_fieldcat.
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 = ' '
I_CALLBACK_USER_COMMAND = ' '
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 =
it_fieldcat = gt_fieldcat
SAMPLE PROGRAM:
*& Report YSALESORDER_ALV_SUBTOTALS *
*& DEVELOPER : KIRAN KUMAR.G *
*& PURPOSE : DISPLAYING SUBTOTALS FOR A PARTICULAR SALES DOC NO *
*& CREATION DT: 26/11/2007 *
*& REQUEST : ERPK900035 *
REPORT ysalesorder_alv_subtotals.
Type Pools
TYPE-POOLS:slis.
Tables
TABLES: vbak, "Sales Document: Header Data
vbap. "Sales Document: Item Data
Global Structures
DATA:gt_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv,
gt_sortcat TYPE slis_t_sortinfo_alv,
wa_sortcat LIKE LINE OF gt_sortcat.
Internal Table
DATA: BEGIN OF gt_salesorder OCCURS 0,
vbeln LIKE vbak-vbeln, " Sales Document Number
posnr LIKE vbap-posnr, " Sales Doc Item
netwr LIKE vbap-netwr, " Net Value
END OF gt_salesorder.
SELECT OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln. " Sales Document Number.
SELECTION-SCREEN END OF BLOCK b1.
Initialization
INITIALIZATION.
PERFORM initialization.
Start Of Selection
START-OF-SELECTION.
PERFORM field_catalog. "For Structure Creation
PERFORM fetch_data. "Get the Data From DB Table
PERFORM sorting USING gt_sortcat.
End Of Selection
END-OF-SELECTION.
PERFORM display_data.
*& Form initialization
text
--> p1 text
<-- p2 text
FORM initialization .
s_vbeln-sign = 'I'.
s_vbeln-option = 'BT'.
s_vbeln-low = '4969'.
s_vbeln-high = '5000'.
APPEND s_vbeln.
ENDFORM. " initialization
*& Form field_catalog
text
--> p1 text
<-- p2 text
FORM field_catalog .
REFRESH : gt_fieldcat.
CLEAR : wa_fieldcat.
wa_fieldcat-col_pos = '1'. "Column Position
wa_fieldcat-tabname = 'IT_SALESORDER'. "Internal Table
wa_fieldcat-fieldname = 'VBELN'. "Field Name
wa_fieldcat-key = 'X'. "Blue Color
wa_fieldcat-seltext_m = 'Sales Doc No'. "Display Text In Screen
APPEND wa_fieldcat TO gt_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = '2'. "Column Position
wa_fieldcat-tabname = 'IT_SALESORDER'. "Internal Table Name
wa_fieldcat-fieldname = 'POSNR'. "Field Name
wa_fieldcat-seltext_m = 'Sales Doc Item'."Display Text In Screen
APPEND wa_fieldcat TO gt_fieldcat.
CLEAR wa_fieldcat.
*SubTotal on the Field NETWR
wa_fieldcat-col_pos = '3'. "Column Position
wa_fieldcat-tabname = 'IT_SALESORDER'. "Internal Table
wa_fieldcat-fieldname = 'NETWR'. "Field Name
wa_fieldcat-do_sum = 'X'. "Sum
wa_fieldcat-seltext_m = 'Net Value'. "Display Text In Screen
APPEND wa_fieldcat TO gt_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " field_catalog
*& Form sorting
text
-->P_IT_SORTCAT text
FORM sorting USING p_it_sortcat TYPE slis_t_sortinfo_alv.
CLEAR wa_sortcat.
wa_sortcat-fieldname = 'VBELN'.
wa_sortcat-up ='X'.
wa_sortcat-subtot = 'X'.
APPEND wa_sortcat TO p_it_sortcat.
ENDFORM. " sorting
*& Form display_data
text
--> p1 text
<-- p2 text
FORM display_data .
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 = ' '
I_CALLBACK_USER_COMMAND = ' '
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 =
it_fieldcat = gt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sortcat
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_salesorder
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.
ENDFORM. " display_data
*& Form fetch_data
text
--> p1 text
<-- p2 text
FORM fetch_data .
REFRESH : gt_salesorder.
CLEAR : gt_salesorder.
SELECT a~vbeln
posnr
b~netwr
FROM vbak AS a
INNER JOIN vbap AS b ON avbeln = bvbeln
INTO TABLE gt_salesorder
WHERE a~vbeln IN s_vbeln.
ENDFORM. " fetch_data
Reward points if helpful.
Kiran Kumar.G.A
Have a Nice Day.. -
Problems with checkbox in ALV-GRID OO
Hi,
i have Problems by listing an editable checkbox
in ALV GRID OO and handle the itab with
the marked fields.
Here my Code extract. Has anybody an idea or a short example.
TYPES: BEGIN OF ALV_TAB,
SGTXT LIKE RK23B-SGTXT,
CHECK(1),
END OF ALV_TAB.
DATA: ITAB TYPE TABLE OF ALV_TAB.
Is this Declaration correct??
<b> GS_FIELDCAT-FIELDNAME = 'CHECK'.
GS_FIELDCAT-CHECKBOX = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
GS_LAYOUT-EDIT = 'X'.
GS_LAYOUT-BOX_FNAME = 'CHECK'.</b>
CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = PT_EXCLUDE
IS_LAYOUT = GS_LAYOUT
CHANGING
IT_FIELDCATALOG = GT_FIELDCAT
IT_OUTTAB = ITAB.
FORM HANDLE_USER_COMMAND USING E_UCOMM.
CASE E_UCOMM.
WHEN 'REFR'.
<b> Here i will have the itab with the marked checkbox.
how can i refresh?</b>*
WHEN 'EXCEL'.
MESSAGE I010 WITH E_UCOMM.
ENDCASE.
ENDFORM. "HANDLE_USER_COMMAND
Regards, DieterHi, in reference to....
ASE E_UCOMM.
WHEN 'REFR'.
Here i will have the itab with the marked checkbox.
how can i refresh?*
Do you want to get rid of the checks in any checkbox?
If so, just loop at modify.
ASE E_UCOMM.
WHEN 'REFR'.
<b> Loop at itab where check = 'X'.
itab-check = space.
modify itab.
endloop.</b>
Regards,
Rich Heilman -
Excel File Format Problem while downloading in ALV Grid
Hi All,
My program gives an ALV Grid Output which contains the file download button , when I choose spread sheet as the file format , the actual data starts only from 4th line and the lines above it contain date, heading etc and the rest are blank. Is it possible that I can download only the records in the grid output with the column names and not the unnecessary log?
Also the format is not proper excel format, this same file will be used for upload into another program using the Function Module 'TEXT_CONVERT_XLS_TO_SAP'. When I load the file saved in the above format, this Function Module always fails.
Please let me know any solution for this problem
Thanks in Advance.Hi
try this code----
*& Form DOWNLOAD_EXCEL_TEMPLATE
text
--> p1 text
<-- p2 text
FORM download_excel_template .
TYPES: BEGIN OF lt_data,
field1(20),
field2(30),
field3(20),
field4(20),
field5(20),
field6(30),
field7(15),
field8(10),
field9(10),
field10(20),
field11(20),
field12(10),
field13(20),
field14(20),
END OF lt_data.
DATA: lv_file TYPE rlgrap-filename,
li_data TYPE STANDARD TABLE OF lt_data,
wa_data TYPE lt_data,
lv_pathcheck type c,
lv_file1 type string.
wa_data-field1 = ''.
APPEND wa_data TO li_data.
REFRESH gi_header.
wa_header-name = 'Company Code'.
APPEND wa_header TO gi_header.
wa_header-name = 'Main Asset Number'.
APPEND wa_header TO gi_header.
wa_header-name = 'Asset Sub Number'.
APPEND wa_header TO gi_header.
wa_header-name = 'Document Date'.
APPEND wa_header TO gi_header.
wa_header-name = 'Posting Date'.
APPEND wa_header TO gi_header.
wa_header-name = 'Asset Value Date'.
APPEND wa_header TO gi_header.
wa_header-name = 'Item Text'.
APPEND wa_header TO gi_header.
wa_header-name = 'Reference'.
APPEND wa_header TO gi_header.
wa_header-name = 'Allocation'.
APPEND wa_header TO gi_header.
wa_header-name = 'Amount Posted'.
APPEND wa_header TO gi_header.
wa_header-name = 'Percentage Rate'.
APPEND wa_header TO gi_header.
wa_header-name = 'Quantity'.
APPEND wa_header TO gi_header.
wa_header-name = 'Prior-Yr Quantity'.
APPEND wa_header TO gi_header.
wa_header-name = 'Curr-Yr Quantity'.
APPEND wa_header TO gi_header.
lv_file = gv_file.
lv_file1 = gv_file.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = lv_file1
RECEIVING
result = lv_pathcheck
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
FIND '.xls' IN lv_file IGNORING CASE.
IF sy-subrc = 0.
REPLACE '.XLS' IN lv_file WITH ' ' IGNORING CASE.
ENDIF.
FIND '.TXT' IN lv_file IGNORING CASE.
IF sy-subrc = 0.
REPLACE '.TXT' IN lv_file WITH ' ' IGNORING CASE.
ENDIF.
CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
EXPORTING
file_name = lv_file
data_sheet_name = 'DATA'
TABLES
data_tab = li_data
fieldnames = gi_header
EXCEPTIONS
file_not_exist = 1
filename_expected = 2
communication_error = 3
ole_object_method_error = 4
ole_object_property_error = 5
invalid_pivot_fields = 6
download_problem = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID gv_msgid TYPE 'E' NUMBER 002.
ENDIF.
ENDFORM. " DOWNLOAD_EXCEL_TEMPLATE
regards,
Prashant -
Problem refreshing fieldcatalog in ALV grid classic
Hi gurus,
I´m really having problems with the column titles that are display in my ALV report and I cannot figure out why. I want to be able to print the text either in Spanish or in English, depending on the company code in the selection criteria screen. I refresh and populate the fieldcatalog with EN texts and I can see that changes are taken and pass to FM REUSE_ALV_GRID_DISPLAY but when I execute it they still show the Spanish text.
Please help me with things. Points will be rewarded.
I show here part of the code.
FORM make_field_catalog.
DATA: l_repid LIKE sy-repid.
DATA: ls_fieldcat TYPE slis_fieldcat_alv.
DATA: pos TYPE i VALUE 1.
l_repid = sy-repid.
CLEAR ls_fieldcat.
REFRESH i_fieldcat.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = l_repid
i_internal_tabname = 'GT_OUTPUT'
i_inclname = l_repid
i_bypassing_buffer = 'X'
CHANGING
ct_fieldcat = i_fieldcat.
Fields to output in the ALV.
Show different languages, depending on the company code.
IF is_es EQ 'X'.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'CUSTOMER'.
ls_fieldcat-seltext_l = text-002.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 10.
ls_fieldcat-key = 'X'.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'DOC_NO'.
ls_fieldcat-seltext_l = text-003.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 10.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'DOC_DATE'.
ls_fieldcat-seltext_l = text-004.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 10.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'NET_AMOUNT'.
ls_fieldcat-seltext_l = text-005.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 15.
ls_fieldcat-do_sum = 'X'.
ls_fieldcat-datatype = 'QUAN'.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ELSE.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'CUSTOMER'.
ls_fieldcat-seltext_l = text-012.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 10.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'DOC_NO'.
ls_fieldcat-seltext_l = text-013.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 10.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'DOC_DATE'.
ls_fieldcat-seltext_l = text-014.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 10.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'NET_AMOUNT'.
ls_fieldcat-seltext_l = text-015.
ls_fieldcat-ddictxt = 'L'.
ls_fieldcat-outputlen = 15.
ls_fieldcat-do_sum = 'X'.
ls_fieldcat-datatype = 'QUAN'.
APPEND ls_fieldcat TO i_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ENDIF.
ENDFORM.
And later i make the call like follows:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = g_alv_buffer
i_callback_program = l_repid
i_callback_top_of_page = 'TOP_OF_PAGE'
i_callback_html_top_of_page = 'TOP_OF_PAGE'
is_layout = g_layout
it_fieldcat = i_fieldcat
it_special_groups = g_fieldgroups_tab[]
it_sort = g_sortfields_tab[]
i_default = c_n
i_save = c_a
is_variant = g_variant
it_events = g_events_tab[]
it_event_exit = g_event_exit_tab[]
is_print = g_print
i_screen_start_column = g_screen_start_column
i_screen_start_line = g_screen_start_line
i_screen_end_column = g_screen_end_column
i_screen_end_line = g_screen_end_line
TABLES
t_outtab = gt_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
Does anybody knows what am I missing?
Thanks! Elenahi ..
Ensure Field catalog is Refreshed every time before it is buid.
Code:
<b>REFRESH i_fieldcat.</b>
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = l_repid
i_internal_tabname = 'GT_OUTPUT'
i_inclname = l_repid
i_bypassing_buffer = 'X'
CHANGING
ct_fieldcat = i_fieldcat.
<b>Reward if Helpful.</b> -
Hello,
I wondering if windows 8 + IE10 is a supported client configuration for PWA (Project Server 2010). I am unable to export PWA views to Excel 2010. No problems with Windows 7 + IE8/9
Any ideas?
thanks,
Daniel
Daniel VillacisHi,
We followed the below steps in the local machine and check the behavior.
a. Open the Windows registry editor (regedit.exe)
b. Go the location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\excel.exe
c. Here, you’ll see a string value named “useURL”
d. Rename this value to something else. For example “useURLx”
Note: You might have to restart the machine to apply the registry change to take effect. -
Problem with PF_STATUS in ALV
Hi
I have the following code written in my report to set PF_STATUS in ALV.But its not working
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
I_CALLBACK_USER_COMMAND = ''
i_structure_name = 'I_BOLACT'
i_grid_title = 'BOL Action Report'(031)
is_layout = gs_layout
i_save = 'A'
it_fieldcat = gt_fieldcat[]
FORM PF_STATUS_SET USING rt_extab TYPE slis_t_extab.
set PF-STATUS 'ZPF_STAT'.
ENDFORM.
Please help where am I going wrong.
Regards
IshitaIf any of the above solution in not working, you can use EVENTS to handle it.
using
* TO Get all the ALV Events
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = it_events
exceptions
list_type_wrong = 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.
* FOR THE PF-STATUS EVENT
read table it_events into wa_event with key name = slis_ev_pf_status_set.
if sy-subrc eq 0.
wa_event-form = 'PF_STATUS_SET'.
modify it_events from wa_event
transporting form
where name = wa_event-name.
endif.
and then set your PF Status in Form 'PF_STATUS_SET'
hope this solves your problem.
Jinson. -
Download excel with formula from alv grid
I developed a alv report and I have one percentage field(say PER) in the grid.When I sum on that field PER then it comes in my formula basis.Suppose If I have 5 line items and all PER field have a value 2 then when I sum in PER column then it come 7 inseted of 10 becoze of my formula basis and it comes perfect.But my query is when I download to excel then it comes real value 10 insted of 7. here my formula basis sum which is 7 for all 5 line items is not comming. Can any body help me how will it come?
Thanks,
RakeshHi,
I dont think its possible because... it uses its internal functionality in displaying the alv with the formula you have given.... but while downloading it only considers the internal table that will be downloaded so whatever is there in the internal table that only would be downloaded... you can do one thing..... instead of using a sort standard button include your own sort button and write its code for gui_download and in the internal table append a line which contains the formula you wanted that will work....
Regards,
Siddarth -
Hello!
I try install Oracle Grid Infrastructure 11.2.0.1. OS - OEL 6.4 x86_64
But running script "/u01/app/oracle/product/11.2.0/grid/root.sh" failed:
[root@localhost grid]# /u01/app/oracle/product/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/oracle/product/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2013-07-03 01:27:08: Checking for super user privileges
2013-07-03 01:27:08: User has super user privileges
2013-07-03 01:27:08: Parsing the host name
Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
Adding daemon to inittab
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: Inappropriate ioctl for device
ohasd failed to start: Inappropriate ioctl for device at /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl line 296.
/u01/app/oracle/product/11.2.0/grid/cfgtoollogs/crsconfig/roothas.log:
2013-07-03 01:27:08: The configuration parameter file /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params is valid
2013-07-03 01:27:08: Checking for super user privileges
2013-07-03 01:27:08: User has super user privileges
2013-07-03 01:27:08: ### Printing the configuration values from files:
2013-07-03 01:27:08: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params
2013-07-03 01:27:08: /u01/app/oracle/product/11.2.0/grid/crs/install/s_crsconfig_defs
2013-07-03 01:27:08: ASM_DISCOVERY_STRING=
2013-07-03 01:27:08: ASM_DISKS=ORCL:ASMDATA01,ORCL:ASMDATA02,ORCL:ASMDATA03,ORCL:ASMDATA04
2013-07-03 01:27:08: ASM_DISK_GROUP=DATA
2013-07-03 01:27:08: ASM_REDUNDANCY=NORMAL
2013-07-03 01:27:08: ASM_SPFILE=
2013-07-03 01:27:08: ASM_UPGRADE=false
2013-07-03 01:27:08: CLSCFG_MISSCOUNT=
2013-07-03 01:27:08: CLUSTER_GUID=
2013-07-03 01:27:08: CLUSTER_NAME=
2013-07-03 01:27:08: CRS_NODEVIPS=
2013-07-03 01:27:08: CRS_STORAGE_OPTION=0
2013-07-03 01:27:08: CSS_LEASEDURATION=400
2013-07-03 01:27:08: DIRPREFIX=
2013-07-03 01:27:08: DISABLE_OPROCD=0
2013-07-03 01:27:08: EMBASEJAR_NAME=oemlt.jar
2013-07-03 01:27:08: EWTJAR_NAME=ewt3.jar
2013-07-03 01:27:08: EXTERNAL_ORACLE_BIN=/opt/oracle/bin
2013-07-03 01:27:08: GNS_ADDR_LIST=
2013-07-03 01:27:08: GNS_ALLOW_NET_LIST=
2013-07-03 01:27:08: GNS_CONF=false
2013-07-03 01:27:08: GNS_DENY_ITF_LIST=
2013-07-03 01:27:08: GNS_DENY_NET_LIST=
2013-07-03 01:27:08: GNS_DOMAIN_LIST=
2013-07-03 01:27:08: GPNPCONFIGDIR=/u01/app/oracle/product/11.2.0/grid
2013-07-03 01:27:08: GPNPGCONFIGDIR=/u01/app/oracle/product/11.2.0/grid
2013-07-03 01:27:08: GPNP_PA=
2013-07-03 01:27:08: HELPJAR_NAME=help4.jar
2013-07-03 01:27:08: HOST_NAME_LIST=
2013-07-03 01:27:08: ID=/etc/init.d
2013-07-03 01:27:08: INIT=/sbin/init
2013-07-03 01:27:08: IT=/etc/inittab
2013-07-03 01:27:08: JEWTJAR_NAME=jewt4.jar
2013-07-03 01:27:08: JLIBDIR=/u01/app/oracle/product/11.2.0/grid/jlib
2013-07-03 01:27:08: JREDIR=/u01/app/oracle/product/11.2.0/grid/jdk/jre/
2013-07-03 01:27:08: LANGUAGE_ID=AMERICAN_AMERICA.AL32UTF8
2013-07-03 01:27:08: MSGFILE=/var/adm/messages
2013-07-03 01:27:08: NETCFGJAR_NAME=netcfg.jar
2013-07-03 01:27:08: NETWORKS=
2013-07-03 01:27:08: NEW_HOST_NAME_LIST=
2013-07-03 01:27:08: NEW_NODEVIPS=
2013-07-03 01:27:08: NEW_NODE_NAME_LIST=
2013-07-03 01:27:08: NEW_PRIVATE_NAME_LIST=
2013-07-03 01:27:08: NODELIST=
2013-07-03 01:27:08: NODE_NAME_LIST=
2013-07-03 01:27:08: OCFS_CONFIG=
2013-07-03 01:27:08: OCRCONFIG=/etc/oracle/ocr.loc
2013-07-03 01:27:08: OCRCONFIGDIR=/etc/oracle
2013-07-03 01:27:08: OCRID=
2013-07-03 01:27:08: OCRLOC=ocr.loc
2013-07-03 01:27:08: OCR_LOCATIONS=
2013-07-03 01:27:08: OLASTGASPDIR=/etc/oracle/lastgasp
2013-07-03 01:27:08: OLRCONFIG=/etc/oracle/olr.loc
2013-07-03 01:27:08: OLRCONFIGDIR=/etc/oracle
2013-07-03 01:27:08: OLRLOC=olr.loc
2013-07-03 01:27:08: OPROCDCHECKDIR=/etc/oracle/oprocd/check
2013-07-03 01:27:08: OPROCDDIR=/etc/oracle/oprocd
2013-07-03 01:27:08: OPROCDFATALDIR=/etc/oracle/oprocd/fatal
2013-07-03 01:27:08: OPROCDSTOPDIR=/etc/oracle/oprocd/stop
2013-07-03 01:27:08: ORACLE_BASE=/u01/app/oracle
2013-07-03 01:27:08: ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid
2013-07-03 01:27:08: ORACLE_OWNER=grid
2013-07-03 01:27:08: ORA_ASM_GROUP=asmadmin
2013-07-03 01:27:08: ORA_DBA_GROUP=oinstall
2013-07-03 01:27:08: PRIVATE_NAME_LIST=
2013-07-03 01:27:08: RCALLDIR=/etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc2.d /etc/rc.d/rc3.d /etc/rc.d/rc4.d /etc/rc.d/rc5.d /etc/rc.d/rc6.d
2013-07-03 01:27:08: RCKDIR=/etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc2.d /etc/rc.d/rc4.d /etc/rc.d/rc6.d
2013-07-03 01:27:08: RCSDIR=/etc/rc.d/rc3.d /etc/rc.d/rc5.d
2013-07-03 01:27:08: RC_KILL=K19
2013-07-03 01:27:08: RC_KILL_OLD=K96
2013-07-03 01:27:08: RC_START=S96
2013-07-03 01:27:08: SCAN_NAME=
2013-07-03 01:27:08: SCAN_PORT=0
2013-07-03 01:27:08: SCRBASE=/etc/oracle/scls_scr
2013-07-03 01:27:08: SHAREJAR_NAME=share.jar
2013-07-03 01:27:08: SILENT=false
2013-07-03 01:27:08: SO_EXT=so
2013-07-03 01:27:08: SRVCFGLOC=srvConfig.loc
2013-07-03 01:27:08: SRVCONFIG=/var/opt/oracle/srvConfig.loc
2013-07-03 01:27:08: SRVCONFIGDIR=/var/opt/oracle
2013-07-03 01:27:08: VNDR_CLUSTER=false
2013-07-03 01:27:08: VOTING_DISKS=
2013-07-03 01:27:08: ### Printing other configuration values ###
2013-07-03 01:27:08: CLSCFG_EXTRA_PARMS=
2013-07-03 01:27:08: CRSDelete=0
2013-07-03 01:27:08: HAPatch=0
2013-07-03 01:27:08: HAS_GROUP=oinstall
2013-07-03 01:27:08: HAS_USER=grid
2013-07-03 01:27:08: HOST=localhost
2013-07-03 01:27:08: IS_SIHA=1
2013-07-03 01:27:08: OLR_DIRECTORY=/u01/app/oracle/product/11.2.0/grid/cdata/localhost
2013-07-03 01:27:08: OLR_LOCATION=/u01/app/oracle/product/11.2.0/grid/cdata/localhost/localhost.olr
2013-07-03 01:27:08: ORA_CRS_HOME=/u01/app/oracle/product/11.2.0/grid
2013-07-03 01:27:08: SUPERUSER=root
2013-07-03 01:27:08: UPGRADE=
2013-07-03 01:27:08: crscfg_trace=1
2013-07-03 01:27:08: crscfg_trace_file=/u01/app/oracle/product/11.2.0/grid/cfgtoollogs/crsconfig/roothas.log
2013-07-03 01:27:08: hahome=
2013-07-03 01:27:08: hosts=
2013-07-03 01:27:08: osdfile=/u01/app/oracle/product/11.2.0/grid/crs/install/s_crsconfig_defs
2013-07-03 01:27:08: parameters_valid=1
2013-07-03 01:27:08: paramfile=/u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params
2013-07-03 01:27:08: platform_family=unix
2013-07-03 01:27:08: srvctl_trc_suff=0
2013-07-03 01:27:08: user_is_superuser=1
2013-07-03 01:27:08: ### Printing of configuration values complete ###
2013-07-03 01:27:08: Oracle CRS stack is not configured yet
2013-07-03 01:27:08: CRS is not yet configured. Hence, will proceed to configure CRS
2013-07-03 01:27:10: OLR location = /u01/app/oracle/product/11.2.0/grid/cdata/localhost/localhost.olr
2013-07-03 01:27:10: Oracle CRS Home = /u01/app/oracle/product/11.2.0/grid
2013-07-03 01:27:10: Validating /etc/oracle/olr.loc file for OLR location /u01/app/oracle/product/11.2.0/grid/cdata/localhost/localhost.olr
2013-07-03 01:27:10: /etc/oracle/olr.loc already exists. Backing up /etc/oracle/olr.loc to /etc/oracle/olr.loc.orig
2013-07-03 01:27:10: Opening file OCRCONFIG
2013-07-03 01:27:10: Opening file OCRCONFIG
2013-07-03 01:27:10: create Local Only OCR...
2013-07-03 01:27:10: create Local Only OCR on Linux...
2013-07-03 01:27:10: OCR locations = /u01/app/oracle/product/11.2.0/grid/cdata/localhost/local.ocr
2013-07-03 01:27:10: Validating OCR locations in /etc/oracle/ocr.loc
2013-07-03 01:27:10: Checking for existence of /etc/oracle/ocr.loc
2013-07-03 01:27:10: Backing up /etc/oracle/ocr.loc to /etc/oracle/ocr.loc.orig
2013-07-03 01:27:10: Setting ocr location /u01/app/oracle/product/11.2.0/grid/cdata/localhost/local.ocr
2013-07-03 01:27:10: Creating or upgrading Oracle Local Registry (OLR)
2013-07-03 01:27:10: Running as user grid: /u01/app/oracle/product/11.2.0/grid/bin/ocrconfig -local -upgrade
2013-07-03 01:27:10: Invoking "/u01/app/oracle/product/11.2.0/grid/bin/ocrconfig -local -upgrade" as user "grid"
2013-07-03 01:27:11: OLR successfully created or upgraded
2013-07-03 01:27:11: /u01/app/oracle/product/11.2.0/grid/bin/clscfg -localadd
2013-07-03 01:27:11: Running as user grid: /u01/app/oracle/product/11.2.0/grid/bin/clscfg -localadd
2013-07-03 01:27:11: Invoking "/u01/app/oracle/product/11.2.0/grid/bin/clscfg -localadd" as user "grid"
2013-07-03 01:27:11: Keys created in the OLR successfully
2013-07-03 01:27:12: Creating local-only OCR (/u01/app/oracle/product/11.2.0/grid/bin/crsctl pin css -n localhost) ... succeeded
2013-07-03 01:27:12: Registering ohasd
2013-07-03 01:27:12: init file = /u01/app/oracle/product/11.2.0/grid/crs/init/init.ohasd
2013-07-03 01:27:12: Copying file /u01/app/oracle/product/11.2.0/grid/crs/init/init.ohasd to /etc/init.d directory
2013-07-03 01:27:12: Setting init.ohasd permission in /etc/init.d directory
2013-07-03 01:27:12: init file = /u01/app/oracle/product/11.2.0/grid/crs/init/ohasd
2013-07-03 01:27:12: Copying file /u01/app/oracle/product/11.2.0/grid/crs/init/ohasd to /etc/init.d directory
2013-07-03 01:27:12: Setting ohasd permission in /etc/init.d directory
2013-07-03 01:27:12: Removing "/etc/rc.d/rc3.d/S96ohasd"
2013-07-03 01:27:12: Removing file /etc/rc.d/rc3.d/S96ohasd
2013-07-03 01:27:12: Failure with return code 1 from command rm /etc/rc.d/rc3.d/S96ohasd
2013-07-03 01:27:12: Failed to remove file:
2013-07-03 01:27:12: Creating a link "/etc/rc.d/rc3.d/S96ohasd" pointing to /etc/init.d/ohasd
2013-07-03 01:27:12: Removing "/etc/rc.d/rc5.d/S96ohasd"
2013-07-03 01:27:12: Removing file /etc/rc.d/rc5.d/S96ohasd
2013-07-03 01:27:12: Failure with return code 1 from command rm /etc/rc.d/rc5.d/S96ohasd
2013-07-03 01:27:12: Failed to remove file:
2013-07-03 01:27:12: Creating a link "/etc/rc.d/rc5.d/S96ohasd" pointing to /etc/init.d/ohasd
2013-07-03 01:27:12: Removing "/etc/rc.d/rc0.d/K19ohasd"
2013-07-03 01:27:12: Removing file /etc/rc.d/rc0.d/K19ohasd
2013-07-03 01:27:12: Failure with return code 1 from command rm /etc/rc.d/rc0.d/K19ohasd
2013-07-03 01:27:12: Failed to remove file:
2013-07-03 01:27:12: Creating a link "/etc/rc.d/rc0.d/K19ohasd" pointing to /etc/init.d/ohasd
2013-07-03 01:27:12: Removing "/etc/rc.d/rc1.d/K19ohasd"
2013-07-03 01:27:12: Removing file /etc/rc.d/rc1.d/K19ohasd
2013-07-03 01:27:12: Failure with return code 1 from command rm /etc/rc.d/rc1.d/K19ohasd
2013-07-03 01:27:12: Failed to remove file:
2013-07-03 01:27:12: Creating a link "/etc/rc.d/rc1.d/K19ohasd" pointing to /etc/init.d/ohasd
2013-07-03 01:27:12: Removing "/etc/rc.d/rc2.d/K19ohasd"
2013-07-03 01:27:12: Removing file /etc/rc.d/rc2.d/K19ohasd
2013-07-03 01:27:12: Failure with return code 1 from command rm /etc/rc.d/rc2.d/K19ohasd
2013-07-03 01:27:12: Failed to remove file:
2013-07-03 01:27:12: Creating a link "/etc/rc.d/rc2.d/K19ohasd" pointing to /etc/init.d/ohasd
2013-07-03 01:27:12: Removing "/etc/rc.d/rc4.d/K19ohasd"
2013-07-03 01:27:12: Removing file /etc/rc.d/rc4.d/K19ohasd
2013-07-03 01:27:12: Failure with return code 1 from command rm /etc/rc.d/rc4.d/K19ohasd
2013-07-03 01:27:12: Failed to remove file:
2013-07-03 01:27:12: Creating a link "/etc/rc.d/rc4.d/K19ohasd" pointing to /etc/init.d/ohasd
2013-07-03 01:27:12: Removing "/etc/rc.d/rc6.d/K19ohasd"
2013-07-03 01:27:12: Removing file /etc/rc.d/rc6.d/K19ohasd
2013-07-03 01:27:12: Failure with return code 1 from command rm /etc/rc.d/rc6.d/K19ohasd
2013-07-03 01:27:12: Failed to remove file:
2013-07-03 01:27:12: Creating a link "/etc/rc.d/rc6.d/K19ohasd" pointing to /etc/init.d/ohasd
2013-07-03 01:27:12: The file ohasd has been successfully linked to the RC directories
2013-07-03 01:27:12: Starting ohasd
2013-07-03 01:27:12: itab entries=
2013-07-03 01:27:18: Created backup /etc/inittab.no_crs
2013-07-03 01:27:18: Appending to /etc/inittab.tmp:
2013-07-03 01:27:18: h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
2013-07-03 01:27:18: Done updating /etc/inittab.tmp
2013-07-03 01:27:18: Saved /etc/inittab.crs
2013-07-03 01:27:18: Installed new /etc/inittab
2013-07-03 01:29:18: ohasd failed to start: Inappropriate ioctl for device
2013-07-03 01:29:18: ###### Begin DIE Stack Trace ######
2013-07-03 01:29:18: Package File Line Calling
2013-07-03 01:29:18: --------------- -------------------- ---- ----------
2013-07-03 01:29:18: 1: main roothas.pl 166 crsconfig_lib::dietrap
2013-07-03 01:29:18: 2: main roothas.pl 296 main::__ANON__
2013-07-03 01:29:18: ####### End DIE Stack Trace #######
selinux and firewall is disabled.Hi,
Refer the below metalink note :- OHASD Failed to Start: Inappropriate ioctl for device [ID 1069182.1]
Thanks -
Problem with Footer in ALV Report
Hi Experts,
What is coding for Footer In my ALV Report how can I resolve it.
for example will come in footer like this....
'This Report is created by '
Date is ',
'Time is '
Page No ' *
Please find below the piece of codes
REPORT ZALV2 .
TABLES : MAKT. " Material Description
TYPE-POOLS : SLIS.
TYPES : BEGIN OF TY_MAKT,
MATNR TYPE MATNR, " Material No
SPRAS TYPE SPRAS, " Language Key
MAKTX TYPE MAKTX, " Material Description
MAKTG TYPE MAKTG, " Material des in upper case
END OF TY_MAKT.
DATA : T_MAKT TYPE STANDARD TABLE OF TY_MAKT INITIAL SIZE 0,
T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
T_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA : W_MAKT TYPE TY_MAKT,
W_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
W_LISTHEADER TYPE SLIS_LISTHEADER,
W_LAYOUT TYPE SLIS_LAYOUT_ALV.
CONSTANTS : C_MATNR TYPE SLIS_FIELDNAME VALUE 'MATNR',
C_SPRAS TYPE SLIS_FIELDNAME VALUE 'SPRAS',
C_MAKTX TYPE SLIS_FIELDNAME VALUE 'MAKTX',
C_MAKTG TYPE SLIS_FIELDNAME VALUE 'MAKTG'.
SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-000.
SELECT-OPTIONS : S_MATNR FOR MAKT-MATNR.
SELECTION-SCREEN END OF BLOCK BLK.
INITIALIZATION.
PERFORM SUB_CLEAR_OBJ.
AT SELECTION-SCREEN. " it is used for validation
PERFORM SUB_VALIDATE_DATA.
START-OF-SELECTION.
PERFORM SUB_FETCH_DATA.
PERFORM SUB_FIELDCAT USING :
C_MATNR TEXT-001 'X',
C_SPRAS TEXT-002 ' ',
C_MAKTX TEXT-003 ' ',
C_MAKTG TEXT-004 ' '.
PERFORM SUB_LAYOUT.
PERFORM SUB_DISPLAY.
END-OF-SELECTION.
TOP-OF-PAGE.
PERFORM SUB_TOP_OF_PAGE.
PERFORM SUB_WRITE_HEADER.
END-OF-PAGE.
PERFORM SUB_SET_PF_STATUS.
*& Form SUB_CLEAR_OBJ
text
--> p1 text
<-- p2 text
FORM SUB_CLEAR_OBJ .
REFRESH : T_MAKT,
T_FIELDCAT,
T_LISTHEADER.
CLEAR : W_MAKT,
W_FIELDCAT,
W_LISTHEADER.
ENDFORM. " SUB_CLEAR_OBJ
*& Form SUB_VALIDATE_DATA
text
--> p1 text
<-- p2 text
FORM SUB_VALIDATE_DATA .
DATA : L_MATNR TYPE MATNR.
SELECT MATNR UP TO 1 ROWS FROM MAKT INTO L_MATNR. " IN S_MATNR.
ENDSELECT.
IF SY-SUBRC <> 0.
MESSAGE E000(15) WITH 'IT IS AN INVALID NUMBER'.
ENDIF.
ENDFORM. " SUB_VALIDATE_DATA
*& Form SUB_FETCH_DATA
text
--> p1 text
<-- p2 text
FORM SUB_FETCH_DATA .
SELECT MATNR SPRAS MAKTX MAKTG FROM MAKT INTO TABLE T_MAKT WHERE MATNR
IN S_MATNR.
ENDFORM. " SUB_FETCH_DATA
*& Form SUB_FIELDCAT
text
-->P_C_MATNR text
-->P_TEXT_001 text
-->P_0122 text
-->P_0123 text
FORM SUB_FIELDCAT USING :
FLD TYPE SLIS_FIELDNAME
TXT TYPE SCRTEXT_L
COL TYPE SLIS_FIELDCAT_ALV-OPTIMIZE
HPOT TYPE C.
W_FIELDCAT-TABNAME = 'ZSHEREE2'.
W_FIELDCAT-FIELDNAME = FLD.
W_FIELDCAT-SELTEXT_M = TXT.
*W_FIELDCAT-EMPHASIZE = COL.
W_FIELDCAT-HOTSPOT = HPOT.
APPEND W_FIELDCAT TO T_FIELDCAT.
ENDFORM. " SUB_FIELDCAT
*& Form SUB_LAYOUT
text
--> p1 text
<-- p2 text
FORM SUB_LAYOUT .
W_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
W_LAYOUT-ZEBRA = 'X'.
W_LAYOUT-F2CODE = '&ETA'.
ENDFORM. " SUB_LAYOUT
*& Form SUB_DISPLAY
text
--> p1 text
<-- p2 text
FORM SUB_DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = 'ZSHEREE2 '
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = 'SUB_TOP_OF_PAGE '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = 'ALV_BACKGROUND '
I_GRID_TITLE = 'Header Item / Data'
I_GRID_SETTINGS = 5
IS_LAYOUT = W_LAYOUT
IT_FIELDCAT = T_FIELDCAT
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 =
I_SCREEN_START_LINE =
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 = T_MAKT
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.
ENDFORM. " SUB_DISPLAY
*& Form SUB_TOP_OF_PAGE
text
--> p1 text
<-- p2 text
FORM SUB_TOP_OF_PAGE .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = T_LISTHEADER
I_LOGO =
I_END_OF_LIST_GRID =
REFRESH T_LISTHEADER.
ENDFORM. " SUB_TOP_OF_PAGE
*& Form SUB_WRITE_HEADER
text
--> p1 text
<-- p2 text
FORM SUB_WRITE_HEADER .
W_LISTHEADER-TYP = 'H'.
W_LISTHEADER-INFO = 'PLANT WISE DATA DISPLAYED'.
APPEND W_LISTHEADER TO T_LISTHEADER.
ENDFORM. " SUB_WRITE_HEADER
*& Form SUB_SET_PF_STATUS
text
--> p1 text
<-- p2 text
FORM PF_STATUS_SET USING
RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'ZSTATUS1'.
ENDFORM. " SUB_SET_PF_STATUS
If any mistake where i am wrong sorry for that.You create one subroutine for END-OF-PAGE. Call this in the FM,
REUSE_ALV_EVENTS_GET.
Example:
Data: i_event TYPE slis_t_event.
*& Form f_build_eventtab
text
FORM f_build_eventtab USING ps_event TYPE slis_t_event.
DATA: wa_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = ps_event.
READ TABLE ps_event WITH KEY name = slis_ev_end_of_page INTO wa_event.
IF sy-subrc EQ c_0.
MOVE slis_ev_end_of_page TO wa_event-form.
APPEND wa_event TO ps_event.
ENDIF.
ENDFORM. " f_build_eventtab
*& Form END OF PAGE *
*& To display the footer details *
FORM end_of_page .
Write the footer details
ENDFORM. "END_OF_PAGE
I hope this will be useful for you.
Regards,
Joan -
Problem with matchcode in alv for specific field
Hi,
I have created a customer specific data element ZE_CONFTYPE, with a customer specific domain, and in this domain I have defined a value range with 3 possible single values (partial, final, automatic).
Later, I have defined a field: CTYPE type ZE_CONFTYPE, and I'm showing this field in an ALV.
it_fieldcatalog-fieldname = 'CTYPE'.
it_fieldcatalog-seltext_m = 'Confirmation Type'.
it_fieldcatalog-col_pos = 4.
it_fieldcatalog-edit = 'X'.
APPEND it_fieldcatalog.
CLEAR it_fieldcatalog.
Now I was hoping that a matchcode was going to show up in the ALV with the 3 possible values for this field, but apparently I was wrong. What should I do for this matchcode to show up?
THX!Then you may need to use
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = repid
i_callback_user_command = 'CALLBACK_FOR_DETAIL'
is_layout = is_layout
it_fieldcat = ct_fieldcat
tables
t_outtab = g_itab.
You need to write code in "callback_for_detail" with fm F4IF_INT_TABLE_VALUE_REQUEST
or
Create a structure with the field you mentioned and give structure name as ref_table and field name as ref_fieldname
a® -
Hi experts,
I am using 'REUSE_ALV_GRID_DISPLAY' in my report. I adding an Icon to my grid and another column for error message.But my client want to add error text along with the icon in one column.
For example; Icon field is 'STATUS' and Message field 'MESSAGE'
Display STATUS-MESSAGE in one field(LIGHT-Error Item)
How to achieve this...
Thanks.Hi Stars,
Define a column of type C in your internal table for Grid data.
concatenate the two values in a character string and use WRITE stmt to write the data into the string type column.
for example,
Data: begin of IT_DATA occurs 0,
icon(4) type c, "for icon key
text(10) type c, " text message to be displayed along with icon
icontext(15) type c, " Icon + message
end of it_data.
data: lv_char(15) type c.
loop at it_data.
clear lv_char.
concatenate it_data-icon it_data-text into lv_char separated by space.
write lv_char to it_data-icontext.
modify it_data index sy-tabix.
endloop. -
Problem in conversion from alv grid to excel
Hi all,
I have alv report output, when i am converting it to excel format sometimes it shows each column names twice and sometimes column names are not arranged in proper order....
any solution to this type of problem???
thnx.there are different options to export to excel which all behave differently, if you go for the menu ->export it differs from the export button from the alv buttonbar.
try the different export to excel options perhaps there is one that behaves the way you want
kind regards
arthur de smidt -
Problem with formatted search in grid
Hi all,
I have a Grid with 3 columns in my user defind form. In that Grid,I used one one formatted search on column 2 based on the value of column 1.
I mean when i was press 'SHFT+F2' on second column, it will execute the query based on value of what we entered in the first column of the grid. How can i do this?? How can i fetch the value of first column in the formatted search??. Please help me.
Thanx in Advance
Oram.Hi
write a query like this and assign formatted search on column2
SELECT ITEMNAME FROM OITM T0 WHERE T0.ITEMCODE = $[/$GRIDUID.COL1 UID.ROWNUM])
regards
Vishnu -
Alv Grid ctrl + y problem
hi all, I have a problem with an editable alv grid, if I copy multiple lines with ctrl + y and paste them in the last line the program creates new rows...but i don't want the creation of new rows.
Any suggestion?
Many thanks,
LucaSo how do you see it? You want to fit couple rows in one empty line? It's not too logical, is it? Ensure you have enough number of rows below the line you are trying to paste your copied lines. So if you copy 3 lines, you will have to start pasting from 3rd line from the bottom at most (not below that one).
Regards
Marcin
Maybe you are looking for
-
My galaxy tab 2 10.1 took over 19hrs. to charge and was off the entire time..come on verizon..long term customer finally having enough. Edited to start new discussion. Message was edited by: Admin Moderator
-
What is the minimum payment threshold?
There is reference in the Payments and Financial Reports Guide to a "minimum payment threshold" but it seems nowhere to be defined precisely. I've received a payment of under $10.00 directly into my bank account, which is fine. Can I expect these o
-
Help me on building Custom DataSource
Hi, I tried to build a Custom DataSource, but I am not very clear about the process. Do I have to follow the convention like <package-prefix>javax.media.<protocol>.DataSource ? It seems for me that JpegImagesToMovie ( http://java.sun.com/products/jav
-
Lost password for encrypted disk image
i created a encrypted disk image to store some personal files and now i can not remember my password and its not in my key chain is there a way to reset the password or at least recover the files.
-
Cannot Install Vista Version of Power Manager - T60
I recently changed my Windows to Vista from XP and have gotten into a situation where I can't install the Power Manager utility. I followed the directions for upgrading to Vista and uninstalled the XP version before installing Vista. When I try to i