Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV REPORT

Former Member
0 Likes
626

In ALV report i want to change my column heading

how will you change give me some sample program

what is uses of binary search while using read statement

Rajasekar

In ALV report i want to change my column heading

how will you change give me some sample program

what is uses of binary search while using read statement

Rajasekar

4 REPLIES 4
Read only

bpawanchand
Active Contributor
Read only

Former Member
0 Likes
603

hi,

Change the

fieldcatalog-seltext_m = New Heading

of the field Catalog

http://www.sap-img.com/abap/sample-alv-heading-in-alv.htm

The usage of BINARY SEARCH is it will reduce the Search time and hits.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
603
In ALV report i want to change my column heading

just to confirm is it standard one? if no than from field cat you can change lke below:

wa_fieldcat-fieldname  = 'BUKRS'.
    wa_fieldcat-seltext_m  = 'Company Code'."it is the heading
    wa_fieldcat-just       = 'L'.
    wa_fieldcat-tabname    = 'IT_FINAL'.
    wa_fieldcat-outputlen  = 15.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.

what is uses of binary search while using read statement

for this you can take a SAP help by just press F1 on binary search.

Amit.

Read only

Former Member
0 Likes
603

hi rajseker c ,

if u r using reference field name and reference tab nam in ur report then u have to do this in ur code

wa_fieldcat-fieldname = 'BUKRS'.

wa_fieldcat-seltext_l = 'Company Code'."it is the heading

wa_fieldcat-seltext_m = 'Company Code'

wa_fieldcat-seltext_s = 'Company Code'

wa_fieldcat-just = 'L'.

wa_fieldcat-tabname = 'IT_FINAL'.

wa_fieldcat-outputlen = 15.

APPEND wa_fieldcat TO it_fieldcat.

CLEAR wa_fieldcat.

either u can simply use seltext_m only in case of when u r not using the reffieldname and reftabname

binary search will reduce your search time but before using the binary u will have to sort your table.