Changing the ALV Label

hi gurus,
i hv to change the label of  field name EXNUM from AT1 to HECS in alv display... HOW I WILL DO THIS.. PLZ HELP ME
iam using the code.
PERFORM append_fldcat :
                          USING 'EXNUM' 'T_J_1IEXCDTL' 'J_1IEXCDTL'
key space no_hot CHANGING fld_cat.
FORM append_fldcat USING par_fldname par_tabname par_reftabname par_key
par_seltext p_hotspot CHANGING pit_fldcat
TYPE slis_t_fieldcat_alv.
  CLEAR ls_fieldcat.
  ls_fieldcat-tabname = par_tabname.
  ls_fieldcat-fieldname = par_fldname  .
  ls_fieldcat-ref_tabname = par_reftabname.
  ls_fieldcat-key = par_key .
  ls_fieldcat-seltext_m = par_seltext.
  ls_fieldcat-hotspot = p_hotspot.
    APPEND ls_fieldcat TO pit_fldcat.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
       EXPORTING
            i_callback_program       = repid
           I_CALLBACK_PF_STATUS_SET = 'STANDARD'
             i_callback_user_command  = 'LINE_SELECTED'
            is_layout                = gs_layout
           it_special_groups        = gt_sp_group
            it_fieldcat              = gt_fieldcat[]
            it_events                = gt_events[]
            i_tabname_header         = 'FLD_HEADER'
            i_tabname_item           = 'T_J_1IEXCDTL'
           IS_PRINT                 = GS_PRINT
            is_keyinfo               = gs_keyinfo
           IS_VARIANT               = GS_VARIANT
            i_default                = 'X'
            i_save                   = 'A'
       TABLES
            t_outtab_header          = fld_header
            t_outtab_item            = t_j_1iexcdtl
            EXCEPTIONS
            program_error            = 1
            OTHERS                   = 2.
ENDFORM.                    "alv_output

Hi Manish,
Since you have the fieldname, just search the fieldcatalog table (gt_fieldcat) for that field's entry. Then, change the description to HECS. Something like this:
loop at gt_fieldcat into wa_fieldcat where fieldname = 'EXNUM'.
or you can also say "loop at gt_fieldcat into wa_fieldcat where seltext_m = 'AT1'.
wa_fieldcat-seltext_m = 'HECS'.
modify gt_fieldcat from wa_fieldcat index sy-tabix.
endloop.
Hope this helps! Please revert if you need anything else!!
Cheers,
Shailesh
Always provide feedback for helpful answers!!

Similar Messages

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • Is it possible to change the ALV report layout settings in spool request

    Hi All,
    Please let me know is it possible to change the ALV layout settings in background as we can change the layout settings in foreground to get correct format when download to excel.
    Regards,
    Jyothi CH.

    Hello,
    Add a parameter for layout on selection-screen (p_varmm LIKE disvariant-variant).
    As you are in backgroud mode, ALV will be printed with this layout (assuming you call correctly the MF ALV_LIST or REUSE_ALV_GRID)
    Regards,
    Christophe

  • How to change the field label text in standard WD application

    Hello All,
    I have a requirement to change the filed label text in standard WebDynpro  application.
    Application Name: /SAPSRM/WDC_UI_DO_BIDDER
    View: V_DO_BIDDER_SEARCH_C
    I want to change the label text from "Last Name" to "Vendor Name".
    Can anyone please provide me the possible options to change label text?
    Thanks in Advance.
    Regards,
    Shyam

    Thread closed...Found the solution ... 

  • Why can't I change the frame label type?

    In a movie clip, I have several frame labels applied. The type of label is set to Name, which is the default. I want to change some of them to Anchor (to use as named anchors with fscommand), but the Type drop-down list is grayed out. Anyone know why? I can't find any info on named anchors, not even in the Help. Yes I know that anchors don't work everywhere, but this is for a specific client.

    Well, that's strange.
    In all the named frames of Video MC, I wanted to change the frame label type from Name to Anchor. The drop-down list was grayed-out, and clicking it didn't do anything. That is.......until I exited Flash and restarted it. Now, I can click the drop down list and select anything I want. I suppose I should have thought of that earlier.
    Thanks, and I hope I didn't take too much of your time!

  • Unsuccessful to change the properties label

    Hi expert,
    i am doing to change the properties label. i used existing project that i download from sap note 817876. below is my steps:
    1. i create my bundle file (fgckbLabel.properties)
    2. in bundle file, i defined my properties as
              HRProgram=Program
              HRDate=Date
    3. i change KEY in IRFServiceWrapper.java
        it become com.fgckbLabel.km.resource.bundle
    4. i deploy to portal
    5. i restart servlet engine
    6. i create metadata extension in system administration > system configuration > knowledge management > content management > global services > metadata extension.
      name : fgckbLabel_metadata_extension
      bundle file : com.fgckbLabel.km.resource.bundle.fgckbLabel
    7. i assign the metadata extension to all properties that need to change the label.
    i do the above  steps in many times but i cant see any changes on my properties. it's still display the property ID. did i missing some step?
    please help me..
    Thank in advance,
    Faeza

    Hi Faeza,
    The steps you have followed seems to be correct. This issue used to happen in our environment also, but second j2ee restarts used to fix the issue.
    Few cross checks which you can perform
    Please download the par file from the server and check whether the changes are present in the par file.
    make sure that you have keyed in the right bundle file name.
    Help link,am sure you would have seen this.
    http://help.sap.com/saphelp_nw04/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm
    Regards,
    Vinod

  • Change the period labelling in the planning book

    Hi I want to change the period labelling in the planning book. currently it is showing default I want to customize it to January, february, etc. I know there is a user exit APODM006. but I want to know the process to do it. thank you

    Hi friends
    Is there a way to achieve this? What can be the approach to solve the requirement?
    Hi Pratik,
    How to go with the requirement? Can this be achieved?
    Regards,
    Raju.
    Message was edited by:
            Narayana Raju Sampathirao

  • Can I change the Controls labels & messages into a different language in user interface.

    Hi,
    I am working on China based project and they want to switch the UI controls and indicator’s labels, 
    menu or selection control and messages into two different language i.e. English or *****.
    Please let me know is this possible using labview programming. This will be very helpfull for me if we can do using labview.
    Regards,
    Srikant

    Check it in your PC, whether you can display ***** Characters for the Captions/Labels.
    For control text we can’t change Language directly so, we need to create two Language Texts for each Controller/Indicator. Based on user request we need to update Caption Language.
    As per below snippet,
    Just I wrote, ***** & English (because I can't write ***** characters on my FP). In your case you need pass ***** & English text separately.
    Munna

  • Dynamic change the ALV layout

    Alle experts:
    In ALV layout report, how to dynamic change the layout int ABAP porgram?
    e.g. I have save 5 layout, I need to change them base the my selection in ABAP program? How to do this?
    Thanks in advance!

    Try to call fieldcatlog dymnamically. Refer tofollowing code. Reward if helpful.
    REPORT  zfir0001 MESSAGE-ID ztax.
                               Tables
    TABLES : glt0, t001, skat.
                          Internal Tables
    DATA: BEGIN OF itab OCCURS 0,
            racct               LIKE   glt0-racct,    "Account number
            txt20               LIKE   skat-txt20,    "G/L account short text
            co_1000          LIKE     glt0-hslvt,     "Balance carried forward for company code 1000
            co_1100          LIKE     glt0-hslvt,     "Balance carried forward for company code 1100
            co_1200          LIKE     glt0-hslvt,     "Balance carried forward for company code 1200
    DATA : BEGIN OF itab1 OCCURS 0,
             bukrs LIKE glt0-bukrs,
             waers LIKE t001-waers,
           END OF itab1.
    DATA : BEGIN OF it_itab1 OCCURS 0.
            INCLUDE STRUCTURE glt0.
    DATA : END OF it_itab1.
                          Data Declarations
    DATA : w_total   LIKE glt0-hslvt,
           w_count   LIKE glt0-bukrs,
           w_flg     TYPE c,
           lv_count  TYPE i.
          w_slash   TYPE c VALUE ' '.
                          Selection screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE tit1.
    SELECT-OPTIONS : s_bukrs FOR glt0-bukrs OBLIGATORY,
                     s_racct FOR glt0-racct OBLIGATORY,
                     s_ryear FOR glt0-ryear OBLIGATORY,
                     s_rldnr FOR glt0-rldnr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      tit1 = 'Please select:'(004).
      TYPE-POOLS: slis.                                 "ALV Declarations
      DATA: i_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
            gd_tab_group TYPE slis_t_sp_group_alv,
            gd_layout    TYPE slis_layout_alv,
            gd_repid     LIKE sy-repid.
    ********Geting the selected company code in table itab1****
    START-OF-SELECTION.
      IF NOT s_bukrs-high IS INITIAL.
        itab1-bukrs = s_bukrs-low.
        APPEND itab1.
        w_count = s_bukrs-low.
        DO.
          IF s_bukrs-high = w_count.
            EXIT.
          ELSE.
            w_count =  w_count + 1.
          ENDIF.
          SELECT SINGLE * FROM t001
              WHERE bukrs = w_count.
          IF sy-subrc = 0.
            itab1-bukrs = w_count.
            APPEND itab1.
            CLEAR itab1.
          ENDIF.
        ENDDO.
      ELSE.
        itab1-bukrs = s_bukrs-low.
        APPEND itab1.
      ENDIF.
      SELECT * FROM glt0 INTO CORRESPONDING FIELDS OF TABLE it_itab1
              WHERE rldnr   IN s_rldnr
              AND   bukrs   IN s_bukrs
              AND   ryear   IN s_ryear
              AND   racct   IN s_racct.
      SORT it_itab1 BY bukrs.
      LOOP AT it_itab1.
        AT END OF racct.
          w_flg = 'X'.
        ENDAT.
        SELECT SINGLE txt20 INTO (itab-txt20) FROM skat
                  WHERE spras = sy-langu
                  AND   saknr = it_itab1-racct.
        PACK it_itab1-racct TO it_itab1-racct.
        itab-racct = it_itab1-racct.
        w_total = it_itab1-hsl01 + it_itab1-hsl02 + it_itab1-hsl03 + it_itab1-hsl04 +
                  it_itab1-hsl05 + it_itab1-hsl06 + it_itab1-hsl07 + it_itab1-hsl08 +
                  it_itab1-hsl09 + it_itab1-hsl10 + it_itab1-hsl11 + it_itab1-hsl12 +
                  w_total        + it_itab1-hslvt.
        IF w_flg = 'X'.
          READ TABLE itab1 WITH KEY bukrs = it_itab1-bukrs.
          IF sy-subrc = 0.
            SELECT SINGLE * FROM t001
                WHERE bukrs = itab1-bukrs.
            IF t001-waers = 'JPY' OR
               t001-waers = 'HUF'.
              w_total =  w_total * 100.
            ENDIF.
            CASE it_itab1-bukrs.
              WHEN '1000'.
                itab-co_1000 = w_total.
              WHEN '1100'.
                itab-co_1100 = w_total.
              WHEN '1200'.
                itab-co_1200 = w_total.
            ENDCASE.
            COLLECT itab.
            CLEAR: itab, w_flg, w_total.
          ENDIF.
        ENDIF.
      ENDLOOP.
      SORT itab BY racct.
      IF NOT itab[] IS INITIAL.
        PERFORM field_cat1.
        lv_count = 1.
        LOOP AT itab1.
          PERFORM field_cat USING itab1-bukrs.
        ENDLOOP.
        PERFORM display_alv_report .
      ELSE.
        MESSAGE s000 WITH 'No records Found'(003).
      ENDIF.
    *&      Form  display_alv_report
          text
    FORM display_alv_report .
      gd_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = gd_repid
          is_layout          = gd_layout
          it_fieldcat        = i_fieldcat[]
          i_save             = 'X'
        TABLES
          t_outtab           = itab
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    ENDFORM.                    "display_alv_report
    *&      Form  field_cat1
          text
    FORM field_cat1 .
      i_fieldcat-col_pos     =  0.
      i_fieldcat-fieldname   = 'RACCT'.
      i_fieldcat-seltext_m    = 'Account'(001).
      i_fieldcat-fix_column = 'X'.
    i_fieldcat-emphasize   = 'X'.
      APPEND  i_fieldcat TO i_fieldcat.
      CLEAR  i_fieldcat.
      i_fieldcat-col_pos     =  1.
      i_fieldcat-fieldname   = 'TXT20'.
      i_fieldcat-seltext_m    = 'Description'(002).
      APPEND  i_fieldcat TO i_fieldcat.
      CLEAR  i_fieldcat.
    ENDFORM.                                                    "field_cat1
    *&      Form  field_cat
          text
         -->XV_BURKS   text
    FORM field_cat USING xv_burks TYPE char4.
      lv_count = lv_count + 1.
      i_fieldcat-col_pos     = lv_count.
      CONCATENATE 'CO_' xv_burks INTO i_fieldcat-fieldname.
      i_fieldcat-seltext_m    = xv_burks.
    i_fieldcat-just = 'C'.
    i_fieldcat-no_zero = 'X'.
    i_fieldcat-do_sum = 'X'.
      APPEND  i_fieldcat TO i_fieldcat.
      CLEAR  i_fieldcat.
    ENDFORM.   "field_cat
    Edited by: dhanashree wadkar on Apr 30, 2008 6:00 AM

  • Edit or change the email label in contacts

    I have an Ipad 2 up to date.
    I notice that in some contacts I can change the label for emails or add a custom label where as others that field cannot be changed or edited.
    Can anyone help
    thanks
    Chris

    IMO - and this is only my opinion - what you are experiencing is another annoying little"quirk" that some of us are experiencing since updating to iOS 5. I have the same issue. I thought I actually had it narrowed down to when the feature works but I gave up caring long ago. I think - that the contacts that I created on my Mac still let me edit the title for the email addresses but I really can't remember now.
    Others have discussed this issue with contacts on this site but it's been I while since I've seen someone less post about it. Maybe when Apple releases the next update, they will address this little "quirk".

  • Since Lion upgrade, can not change the colored label of my HD in the Finder

    ... the "Macintosh HD" icon has the Label section grayed out when I select 'Get Info'.
    I can only change the color of the USB attached disks.
    Also, before the upgrade to Lion, I was able to assign colored labels to the attached network shares, in Snow Leopard; now I can see the label colors I've assigned when using Snow L. by I can not modify then anymore...
    Any ideas?
    Thank you in advance.

    Thank you for the reply.
    Lock was closed. It open after authentication, but the word "Label" is still gray and can not select a color label.
    On the "Sharing and Permissions" have the folowing:
      "You can only read"
      "system - Read & Write"
      "wheel - Read only"
      "everyone - Read only"

  • Why did Apple change the color labels of folders in 10.9.2?

    What's the purpose of a dot when I can't even see them?
    THE IDEA is to highlight a folder so you can easily find it.
    I'm all for aesthetics but this is a change of practical design. It's annoying.

    Also for the bug that iTunes doesn't minimize when I double-click the top edge of the window.
    It isn't a bug, it's a feature.
    Actually, I kinda like the improvements to the "miniplayer" thing, even though it isn't the same thing as minimizing the app. The only thing I don't like about the miniplayer is the tiny, hard to hit icon used to toggle it on & off, but if I can just remember the Cmd-Option-M shortcut for that I'm OK with that too.
    I wouldn't mind filling out a survey before they (Apple) curtained features.
    After hanging around ASC for a few years, I have realized that almost everybody has very different ideas about the usefulness of just about every feature Apple has ever implemented. If Apple listened to users, I suspect we would end up with an OS so bloated it wouldn't even be able to crawl, much less run, on most Macs, & the user preferences alone would have so many options nobody could find the ones they wanted without help.
    Actually, I think that may already be happening ... but I'm sure everybody has a different opinion about that, too!

  • How do I change the value labels in a line graph without changing the data in the source table?

    Where the graph values show 1  I want them to change to text (different each time). Is there a way to make this happen?
    Also, is there a way to connect the series markers - circles - with solid lines even if there is no data in the table. E.g from 1.5 to 2.5 a solid line even if there is no data under 2.0?
    Is there perhaps a better way altogether to achieve this graph?
    Thanks.

    HI Mick,
    Sounds like something that could be achieved with no "graph" at all.
    This is a combination of a table and an inserted shape (line). Enter the dates as the goals are achieved. Here's a second image of the same 'chart,' taken before the table grid was whited out:
    Regards,
    Barry

  • Change the Axis Labels of a Chart

    The Chart-Series are generate through AS (Multiple PlotSeries and 1 LineSeries). I managed to Update the Visuell Areas (in this example to manipulate Vertical Axis (minimum/maximum values to be shown).
    No I have 3 Questions about to manipulate this Chart with AS3:
    I would like to remove nearly all "Ticks" and "Labels" from the Axis. At the End only the min/max and 0-Label-Value on the vertical Axis should be displayed. And on the vertical Axis, I would like only to have the min/max-Label and 100-Value.
    The Chart-Lines (in the Screen above) only 2 Lines should be visible. v-Axis = 100 and x-Axis=0 (just as a Cross over the Chart)
    The Linear Serie (just a Value of a Funktion like x=y*2) should have no Tooltip if you go MouseOver-it. And the Legend of this Serie should not be displayed in the Legend. How can I delete the Legend, and how can I preserve a DataTip over this LineSerie?
    Hopefully you did understand my bad english.
    Thanks for any Tips
    Pawel

    Hi,
    1. IAxis interface have labelFunction (see docs for details and parameters for it). You can check the value to be labeled and return empty string if you don't want to show this value in axis. Axis you get from chart.getAxis(name). But there is not any warranty that always 0 will be shown. You showl implement your own IAxis to show only specific values. (Or search it in internet)
    2. You should remove all these grid lines and create CartasianDataCanvas this lines at 0 and 100 and put it to annotationElements of the chart.
    3. If you don't want to see all data from chart in Legend you should create an array with legend data only from serieses you want to see. Chart has a property legendData from all serieses. You can filter this array or create new array with legendData from serieses you want to see. And set this array as a dataProvider to Legend.
    Hope, this helpful.

  • How to change the field labels from English to German language.

    Hi Experts,
    I have added 2 more fields for the output of the standard transaction ME2L.
    I have added in English Language. Now i want to display those field labels in German Language.
    How can i get this.Please help.
    Thanks in Advance.
    Jyothi.

    Jyothi,
    The problem was solved?
    If so, can you close the message?
    Best regards,
    Rafael Sá

Maybe you are looking for

  • How to get multiple values from the db using select

    hi all, i am using oracle 9i database i created a procedure create or replace procedure sample_proce as to_i varchar2(50) begin select to_id into to_i from sample where flag in('y'); dbms_output.put_line('hai'|| to_i); end; when i executed this proce

  • Filter items are not set via Redirect to a javascript function

    Hi, i have a page with a few filter items and a button which redirects to a javascript function. The problem is that the filter items are NULL in the called javascript function. If i do a submit via another button before then it works. Here the detai

  • How to get second maximum salary

    Hi, Can you let me know a query to get the second maximum salary. I'm using 9i Database and I'm not supposed to write any co-related sub querries. Suppose the sal's i've are EMP - Sal 100 - 10000 101 - 20000 102 - 30000 103 - 25000 104 - 15000 I want

  • ORA-15018: diskgroup cannot be created

    Dear All, I am trying to create ASM Disk group using SQL but geting blow error not able to create asm diskgroup. SQL> CREATE DISKGROUP dg1 normal redundancy   2  failgroup dg1_fg01 disk   3  '/dev/sdf1' name raw_disk1,   4  '/dev/sdg1' name raw_disk2

  • Problems With User Account? Try Resolving Font Conflicts!

    After installing SL as an upgrade, one of my user accounts could not install software, switch to the other account, or do anything where the system would ask for the account password. I tried resolving this by doing several things like remove all oth