Displaying Dollar sign in ALV

How to add the dollar sign infront of field with data type currency (CURR) ?
Need to display the amount field in the ALV report.
Please suggest any solution.
Thanks,
Khush
Edited by: khush123 on Sep 22, 2011 11:49 AM

Hi ,
Take  another  character field  .
Concatenate  currency field value  and  '$' and move to character field  and display  .
This is Simple  way  .
regards
Deepak.

Similar Messages

  • How to display -ve sign before amount in ALV grid

    Hi,
    I want to display -ve numbers in an ALV grid. But the sign always appear at the end of the number. Is there any option with which I can display -ve sign before the number.
    Regards,
    Deepti

    Hi,
    <b>You can refer to below threads:</b>
    ALV - negative sign in the front
    Prefix Negative sign in type P field in an ALV report
    Or
    USe Function Module <b>CLOI_PUT_SIGN_IN_FRONT</b>, may be this works in your case.
    <b>Reward if helpful</b>
    Rgds

  • Display totals with currency sign in ALV

    Hi,
    I have to display totals with currency sign in ALV.
    column1      colums2
    10               USD
    20               USD
    30               USD
    40               USD
    100            USD
    Can anybody help on this.
    Regsrds,
    Zak.

    Hi,
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'. "
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    Thanks
    Vikranth

  • How to change the sign in ALV

    Hi in my ALV output the negative numbers are displayed with sign on the right side of the numbers.
    Need your help to get this sign on the left side.

    Hi,
    This is from SDN thread.
    When you define the fieldcatalog..
    Give the rollname..
    Example..
    DATA: S_FIELDCATALOG TYPE slis_fieldcat_alv.
    s_fieldcatalog-col_pos = '2'.
    s_fieldcatalog-fieldname = 'NETPR'.
    s_fieldcatalog-tabname = 'ITAB1'.
    <b>s_fieldcatalog-rollname = 'WERTV6'.</b>
    APPEND s_fieldcatalog to t_fieldcatalog.

  • Dollar sign in report column

    Hi
    I am displaying a report using an sql query. I want to display a numeric field (which is an amount) with a dollar sign. How can i do that
    Appreciate your help
    Thanks

    Hi user585397,
    go to the column properties of your report and there you will find a property called "Number / Date Format". Use the lov to choose a predefined format mask or just enter.
    FML999G999G999G999G990D00The L is the placeholder for the current currency symbol. For more format mask example have a look at the Oracle documentation at http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements004.htm#i34570
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Display of minus in ALV

    Hi  ..
    How can I avoid displaying sign in ALV . For example    - 12.00 must be displayed 12.00 but as a quantity it is already -12.00

    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MAIN_100'.
      g_repid = sy-repid.
      IF custom_container1 IS INITIAL.
        CREATE OBJECT custom_container1
            EXPORTING
                container_name = container.
        CREATE OBJECT grid1
               EXPORTING i_parent = custom_container1.
        gs_layout-sel_mode = 'A'.
        gs_variant-report   = sy-repid.
        gs_variant-username = sy-uname.
        PERFORM fill_field_cat  CHANGING gt_fieldcat  .
        CALL METHOD grid1->set_table_for_first_display
          EXPORTING
            i_save          = 'A'
            is_variant      = gs_variant
            is_layout       = gs_layout
          CHANGING
            it_fieldcatalog = gt_fieldcat
            it_outtab       = gt_itab_t[].
        SET HANDLER lcl_event_receiver=>handle_double_click FOR grid1.
        CALL METHOD grid1->set_toolbar_interactive.
      ENDIF.
    ENDMODULE .
    FORM fill_field_cat CHANGING gt_fieldcat TYPE lvc_t_fcat .
      DATA gs_fieldcat TYPE lvc_s_fcat .
      DATA : fname(10) TYPE c .
      DATA : fname2(10) TYPE c .
      CLEAR   gs_fieldcat .
      gs_fieldcat-key = 'X' .
      gs_fieldcat-no_sign = 'X' .
      add-fieldcat 'BUKRS' 'GT_ITAB_T' 'BUKRS'  'Sirket Kodu'    .
      add-fieldcat 'KUNNR'  'GT_ITAB_T'       'KUNNR'          'Musteri' .
      add-fieldcat 'NAME1'  'GT_ITAB_T'       'NAME1'          'Musteri Unvani' .
      add-fieldcat 'PROJEKOD'  'GT_ITAB_T'       'PROJEKOD'          'Proje Numaras&#305;' .
      add-fieldcat 'PROJE_TUTARI'   'GT_ITAB_T'       'PROJE_TUTARI'          'Proje Tutar&#305;' .
      add-fieldcat 'PROJE_BAK'   'GT_ITAB_T'       'PROJE_BAK'          'Proje Bakiyesi' .
    ENDFORM.
    Message was edited by:
            yusuf tunay çilesiz

  • -VE Sign in ALV

    Hi Abaper,
    I have a currency field in ALV I want to display -Ve Sign of that field in starting of the value..how to do that..??
    Thanks,
    Rajesh

    The example I gave is only for integers of course.
    Depending on the type and size of your variable, you need to adjust the edit mask, in your case in to would be something like
    V________.___
    Every "_" means a digit, so check the lenght of the variable to adjust the edit mask

  • Display header along with  ALV

    Hi,
    i need to display a report using ALV in the following manner. im using reuse_alv_listdisplay and the display is fine . however, i need to add a header to the list and i need to display total for the currency fields. how can i do that. your help would be appreciated.
    Thanks,
    kranthi.
    ________some company header----
    alv report----
    display total for currency fields------
    i appreciate all of you for your quick response.
    i need to call a function module which uses couple of 'write' statements to create the header. is it possible to use that in this context.
    Thanks,
    Kranthi.
    Message was edited by: kranthi kumar

    *& Report  ZVENU_ALV                                                   *
    Program: ZZ_ALV_REPORT_STUB
    Author :
    Date   :
    Purpose: Report using ALV function
    Notes:
    1) Logos & wallpapers can be found in table BDS_CONN05
       with class = PICTURES
    2) Transaction OAER can be used to create PICTURES.
       Run transaction OAER with class name = PICTURES, Class type = OT,
       and Object key with whatever name you want to create.  In the
       next screen, right clicking on screen and import
                                 Revisions
    Name    :
    Date    :
    Comments:
    report zz_alv_report_stub
           no standard page heading
           line-size 200
           line-count 65
           message-id zz.
    Tables
    tables:
      ekpo,
      trdir.
    Global Types
    type-pools: slis.
    Global Internal Tables
    data:
      i_fieldcat_alv  type slis_t_fieldcat_alv,
      i_events        type slis_t_event,
      i_event_exit    type slis_t_event_exit,
      i_list_comments type slis_t_listheader,
      i_excluding     type slis_t_extab.
    Display data
    data: begin of i_data occurs 0,
            name    like trdir-name,
            clas    like trdir-clas,
            subc    like trdir-subc,
            cnam    like trdir-cnam,
            cdat    like trdir-cdat,
            myfield(1) type c,
          end of i_data.
    Global Variables
    data:
      w_variant          like disvariant,
      wx_variant         like disvariant,
      w_variant_save(1)  type c,
      w_exit(1)          type c,
      w_repid            like sy-repid,
      w_user_specific(1) type c,
      w_callback_ucomm   type slis_formname,
      w_print            type slis_print_alv,
      w_layout           type slis_layout_alv,
      w_html_top_of_page type  slis_formname,
      w_fieldcat_alv     like line of i_fieldcat_alv,
      w_excluding        like line of i_excluding,
      w_events           like line of i_events,
      w_event_exit       like line of i_event_exit,
      w_list_comments    like line of i_list_comments.
    Global Constants
    *constants:
    Selection Screen
    selection-screen begin of block blk_criteria with frame title text-f01.
    select-options:
      s_name for trdir-name.
    selection-screen end of block blk_criteria.
    selection-screen begin of block blk_params with frame title text-f02.
    parameters:
      p_vari like disvariant-variant.
    selection-screen skip 1.
    parameters:
      p_grid radiobutton group rb01 default 'X',
      p_html as checkbox.
    selection-screen skip 1.
    parameters:
      p_list radiobutton group rb01.
    selection-screen end of block blk_params.
    Initialization
    initialization.
      perform init_variant.
      perform variant_default using p_vari.
      clear: s_name[].
      s_name-sign   = 'I'.
      s_name-option = 'CP'.
      s_name-low    = 'Z*'.
      append s_name.
    At Selection Screen PBO
    at selection-screen output.
    At Selection Screen Value Request
    at selection-screen on value-request for p_vari.
      perform variant_f4 using p_vari.
    At Selection Screen
    at selection-screen.
      perform variant_fill.
    Start of Selection
    start-of-selection.
      perform get_data.
    end-of-selection.
      perform fieldcat_build.
      perform event_build.
      perform event_exit_build.
      perform exclude_build.
      perform print_build.
      perform layout_build.
      perform display_data.
    Top of Page
    top-of-page.
    Top of Page During Line Sel
    top-of-page during line-selection.
    At User Command
    at user-command.
    At Line Selection
    at line-selection.
    Macros
      define skip_1.
        write: /001 sy-vline,
                    at sy-linsz sy-vline.
      end-of-definition.
                                    Forms
    *&      Form  variant_f4
    form variant_f4 using p_variant.
      call function 'LVC_VARIANT_F4'
           exporting
                is_variant    = w_variant
                i_save        = w_variant_save
           importing
                e_exit        = w_exit
                es_variant    = wx_variant
           exceptions
                not_found     = 1
                program_error = 2
                others        = 3.
      if sy-subrc <> 0.
        message i000(zz) with text-g01.
      endif.
      if w_exit is initial.
        w_variant-variant = wx_variant-variant.
        p_variant         = wx_variant-variant.
      endif.
    endform.
    *&      Form  init_variant
    form init_variant.
      clear: w_variant.
      w_repid              = sy-repid.
      w_variant-report     = w_repid.
      w_variant-username   = sy-uname.
      w_variant_save       = 'A'. "All types
    endform.
    *&      Form  variant_default
    form variant_default using p_variant.
      wx_variant = w_variant.
      if not p_variant is initial.
        wx_variant-variant = p_variant.
      endif.
      call function 'LVC_VARIANT_DEFAULT_GET'
           exporting
                i_save        = w_variant_save
           changing
                cs_variant    = wx_variant
           exceptions
                wrong_input   = 1
                not_found     = 2
                program_error = 3
                others        = 4.
      case sy-subrc.
        when 0.
          p_variant = wx_variant-variant.
        when 2.
          clear: p_variant.
      endcase.
    endform.
    *&      Form  variant_fill
    form variant_fill.
      clear: w_variant.
      if p_vari is initial.
        w_variant-variant = 'STANDARD'.
        w_variant-report  = w_repid.
      else.
        w_variant-variant = p_vari.
        w_variant-report  = w_repid.
        call function 'LVC_VARIANT_EXISTENCE_CHECK'
             exporting
                  i_save     = w_variant_save
             changing
                  cs_variant = w_variant
             exceptions
                  others     = 01.
        if sy-subrc ne 0.
          message i000(zz) with text-g02.
        endif.
      endif.
    endform.
    *&      Form  fieldcat_build
    form fieldcat_build.
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
           exporting
                i_program_name     = w_repid
              i_structure_name   = 'TRDIR'
                i_internal_tabname = 'I_DATA'
                i_inclname         = w_repid
           changing
                ct_fieldcat        = i_fieldcat_alv.
    Modify displayed fields
      loop at i_fieldcat_alv into w_fieldcat_alv.
        case w_fieldcat_alv-fieldname.
          when 'NAME'.
            w_fieldcat_alv-hotspot   = 'X'.
          when 'MYFIELD'.
            w_fieldcat_alv-checkbox  = 'X'.
            w_fieldcat_alv-seltext_s = 'MyChkBox'.
          when others.
        endcase.
        modify i_fieldcat_alv from w_fieldcat_alv.
      endloop.
    endform.
    *&      Form  display_data
    form display_data.
      w_callback_ucomm   = 'CALLBACK_UCOMM'.
      case 'X'.
        when p_grid.
          if p_html = 'X'.
            w_html_top_of_page = 'HTML_TOP_OF_PAGE'.
          endif.
          call function 'REUSE_ALV_GRID_DISPLAY'
               exporting
                  i_background_id             = 'SIWB_WALLPAPER'
                    i_background_id             = 'SIWB_WALLPAPER'
                    i_callback_program          = w_repid
                    i_callback_html_top_of_page = w_html_top_of_page
                  i_structure_name            = 'TRDIR'
                    i_default                   = 'X'
                    i_save                      = 'A'
                    is_variant                  = w_variant
                    is_layout                   = w_layout
                    i_callback_user_command     = w_callback_ucomm
                    it_fieldcat                 = i_fieldcat_alv
                    it_events                   = i_events
                    it_event_exit               = i_event_exit
                    it_excluding                = i_excluding
                    is_print                    = w_print
                  i_screen_start_column       = 1
                  i_screen_start_line         = 1
                  i_screen_end_column         = 70
                  i_screen_end_line           = 30
               tables
                    t_outtab                    = i_data.
        when p_list.
          call function 'REUSE_ALV_LIST_DISPLAY'
               exporting
                   i_background_id         = 'ALV_BACKGROUND'
                    i_callback_program      = w_repid
                    i_default               = 'X'
                    i_save                  = 'A'
                    is_variant              = w_variant
                    is_layout               = w_layout
                    i_callback_user_command = w_callback_ucomm
                    it_fieldcat             = i_fieldcat_alv
                    it_events               = i_events
                    it_event_exit           = i_event_exit
                    is_print                = w_print
               tables
                    t_outtab                = i_data.
      endcase.
    endform.
          FORM user_command                                             *
    form callback_ucomm  using r_ucomm like sy-ucomm
                               rs_selfield type slis_selfield.
      message i000(zz) with r_ucomm.
      case r_ucomm.
        when '&IC1'.
          set parameter id 'RID' field rs_selfield-value.
          call transaction 'SE38'.
        when others.
      endcase.
    endform.
    *&      Form  get_data
    form get_data.
      select * up to 15 rows from trdir
             into corresponding fields of table i_data
             where name in s_name.
    endform.
          FORM ALV_TOP_OF_PAGE                                          *
    form alv_top_of_page.
      clear: i_list_comments[].
      w_list_comments-typ  = 'H'. "H=Header, S=Selection, A=Action
      w_list_comments-key  = ''.
      w_list_comments-info = 'Info 1'.
      append w_list_comments to i_list_comments.
      w_list_comments-typ  = 'A'. " H = Header, S = Selection, A = Action
      w_list_comments-key  = ''.
      w_list_comments-info = 'Begin of list'.
      append w_list_comments to i_list_comments.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                i_logo             = 'ENJOYSAP_LOGO'
                it_list_commentary = i_list_comments.
    endform.
    *&      Form  event_build
    form event_build.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = i_events.
      read table i_events
           with key name = slis_ev_top_of_page
           into w_events.
      if sy-subrc = 0.
        move 'ALV_TOP_OF_PAGE' to w_events-form.
        modify i_events from w_events index sy-tabix.
      endif.
      read table i_events
           with key name = slis_ev_end_of_list
           into w_events.
      if sy-subrc = 0.
        move 'ALV_END_OF_LIST' to w_events-form.
        modify i_events from w_events index sy-tabix.
      endif.
      read table i_events
           with key name = slis_ev_end_of_page
           into w_events.
      if sy-subrc = 0.
        move 'ALV_END_OF_PAGE' to w_events-form.
        modify i_events from w_events index sy-tabix.
      endif.
    endform.
          FORM alv_end_of_list                                          *
    form alv_end_of_list.
      clear: i_list_comments[].
      w_list_comments-typ = 'A'. "H = Header, S = Selection, A = Action
      w_list_comments-key = ''.
      w_list_comments-info = 'End of list'.
      append w_list_comments to i_list_comments.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = i_list_comments
                i_logo             = 'ZMYOBJECTKEY'
                i_end_of_list_grid = 'X'.
    endform.
          FORM alv_end_of_page                                          *
    form alv_end_of_page.
    endform.
    *&      Form  print_build
    form print_build.
      w_print-no_print_listinfos = 'X'.
    endform.
    *&      Form  layout_build
    form layout_build.
      w_layout-zebra                = 'X'.
      w_layout-no_vline             = 'X'.
      w_layout-colwidth_optimize    = 'X'.
      w_layout-detail_popup         = 'X'.
      w_layout-detail_initial_lines = 'X'.
      w_layout-detail_titlebar      = 'Detail Title Bar'.
    endform.
    *&      Form  event_exit_build
    form event_exit_build.
      clear: i_event_exit[].
    Pick
      w_event_exit-ucomm  = '&ETA'.
      w_event_exit-before = ' '.
      w_event_exit-after  = 'X'.
      append w_event_exit to i_event_exit.
    endform.
          FORM HTML_TOP_OF_PAGE                                         *
    form html_top_of_page using r_top type ref to cl_dd_document.
      data:
        text     type sdydo_text_element,
        s_table  type ref to cl_dd_table_element,
        col_key  type ref to cl_dd_area,
        col_info type ref to cl_dd_area,
        a_logo   type ref to cl_dd_area.
    Split TOP-Document
      call method r_top->vertical_split
                exporting split_area  = r_top
                          split_width = '30%'
                importing right_area  = a_logo.
    Fill TOP-Document
      call method r_top->add_text
                exporting text  = 'Example of a Heading'
                sap_style       = 'HEADING'.
      call method r_top->new_line.
      call method r_top->new_line.
      call method r_top->add_table
                exporting no_of_columns = 2
                          with_heading  = ' '
                          border        = '1'
                importing table         = s_table.
      call method s_table->add_column importing column = col_key.
      call method s_table->add_column importing column = col_info.
      text = 'A key value marked'.
      call method col_key->add_text
                exporting text         = text
                          sap_emphasis = 'Strong'.
      call method col_info->add_gap exporting width = 6.
      text = '600' .
      call method col_info->add_text
                exporting text      = text
                          sap_style = 'Key'.
      call method col_info->add_gap  exporting width = 3.
      text = 'Block brick units'.
      call method col_info->add_text exporting text  = text.
      call method s_table->new_row.
      text = 'Storage Bin'.
      call method col_key->add_text
                exporting text         = text
                          sap_emphasis = 'Strong'.
      call method col_info->add_gap exporting width = 7.
      text = 'C-A-004'.
      call method col_info->add_text exporting text = text.
      call method s_table->new_row.
      text = 'Warehouse number' .
      call method col_key->add_text
                exporting text         = text
                          sap_emphasis = 'Strong'.
      call method col_info->add_gap  exporting width = 6.
      text = '200' .
      call method col_info->add_text
                exporting text      = text
                          sap_style = 'Success'.
      call method col_info->add_gap  exporting width = 3.
      text = 'marked success'.
      call method col_info->add_text exporting text = text.
      call method s_table->new_row.
      call method r_top->new_line.
      text = 'This last line is a comment in italics.'.
      call method r_top->add_text
                exporting text         = text
                          sap_emphasis = 'EMPHASIS'.
      call method r_top->new_line.
      call method a_logo->add_picture
              exporting picture_id = 'ZZTESTBMP'.
                exporting picture_id = 'ENJOYSAP_LOGO'.
    endform.
    *&      Form  exclude_build
    form exclude_build.
      w_excluding = '&GRAPH'. "Graphic
      append w_excluding to i_excluding.
    endform.                    " exclude_build

  • I bought my 'air' in Australia the keyboard has a dollar sign, is there a way to change the setting so that a pound or a euro sign appears? I am from the UK and currently live in Spain!

    I bought my 'air' in Australia the keyboard has a dollar sign, is there a way to change the setting so that a pound or a euro sign appears? I am from the UK and currently live in Spain!

    Hi colin the card,
    Welcome to Apple Support Communities.
    It sounds like you purchased your device in a different country than the one you reside in and want to change the currency symbol typed from the keyboard. The article linked below will provide details about changing your MacBook Airs region and currency format.
    OS X Mavericks: Customize formats to display dates, times, and more
    http://support.apple.com/kb/PH14227
    I hope this helps.
    -Jason

  • Removing dollar sign in the Query

    Hi gurus,
    Can you please help me to remove dollar sign in the query when an amount is displayed...
    Thank you.

    Hi Bob
    "Display scaling factors" only worked for my 1-structure queries.  I have finance queries where the row is hardcoded with selections and formulas and the column are key figures and calculated key figures.  The "Display scaling factor" option doesn't remove the $ signs away from all cells.  Do you have any idea how I can get rid of them?
    Thanks,

  • Is it possible to display LOGO in simple ALV list?

    Hi Guys,
    Is it possible to display LOGO in simple ALV list. If yes plz explain in details.
    Thanks
    Sharat

    Yes it is possible to display logo at the top of the page.
    TYPE-POOLS: slis.
    *     Data Decalaration
    DATA: it_vbak TYPE TABLE OF vbak.
    DATA: g_repid TYPE sy-repid.
    DATA: it_listheader TYPE slis_t_listheader,
           wa_listheader TYPE slis_listheader.
    *     START-OF-SELECTION
    START-OF-SELECTION.
       g_repid = sy-repid.
       SELECT * FROM vbak INTO TABLE it_vbak.
       PERFORM build_alv_header.
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           i_callback_program     = g_repid
           i_callback_top_of_page = 'TOP_OF_PAGE'
           i_structure_name       = 'vbak'
         TABLES
           t_outtab               = it_vbak.
    *&      Form  BUILD_ALV_HEADER
    FORM build_alv_header .
    *  Type H is used to display headers i.e. big font
       wa_listheader-typ  = 'H'.
       wa_listheader-info ='Flight Details'.
       APPEND wa_listheader TO it_listheader.
       CLEAR wa_listheader.
    *  Type S is used to display key and value pairs
       wa_listheader-typ = 'S'.
       APPEND wa_listheader TO it_listheader.
       CLEAR wa_listheader.
    *  Type A is used to display italic font
       wa_listheader-typ = 'A'.
       wa_listheader-key = 'Date    :' .
       wa_listheader-info ='SAP ALV Report'.
       APPEND wa_listheader TO it_listheader.
       CLEAR wa_listheader.
    ENDFORM.                    " BUILD_ALV_HEADER
    *&      Form  top_of_page
    FORM top_of_page.
       CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
         EXPORTING
           it_list_commentary = it_listheader
           i_logo         = 'PARI'.
    ENDFORM.                    "top_of_page

  • Displaying special characters in ALV report.

    Hi Experts,
    Can we display special characters in ALV reports? Special characters such as tick mark.(Like in character map(Font Bookshelf  Symbol 7) of windows ).
    I tried with icons in ALV report, I was able to display tick icon in the ALV report, but when we export the report in to a excel, the icons comes in as Hexadecimal code.
    Can any we display special characters like tick in ALV report or display the icons in excel aswell?
    I will be gratefull for the <urgency reduced by moderator> response.
    Regards,
    Sharath.
    Edited by: Thomas Zloch on May 10, 2011 10:26 AM

    Sharath,
    I think it is possible to do so.
    Please check this link.
    http://www.sapfans.com/forums/viewtopic.php?f=13&t=322569
    Thanks,
    Guru.

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • Problem in display of text in ALV report

    Dear experts,
    I am working on a MM Report in which I need to display Material Basic data text maintained in MM01,02 Tcodes through ALV report.
    I have declared a string type variable for the Basic data text in the Final Internal Table.
    For reading the Standard text I am using Read_Text FM, from which I am looping the Text internal table and concatenating it into
    String variable.
    What I notice is all the content beyond 255 chars is not getting displayed, Even when the ALV report is downloaded to Excel file.
    Can you suggest some approach to over come this issue.
    Regards,
    Murthy

    Hi,
    Use the below code
    Data : lt_content  TYPE TABLE OF tline,
              lw_content   TYPE tline.
    Data : lt_text Type Table of solisti1,
              lw_text TYPE solisti1.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                        = lv_id
          language            = tdspras
          name                  = lv_name
          object                 = lv_object
          archive_handle  = 0
          local_cat            = ' '
        TABLES
          lines                   = lt_content
        EXCEPTIONS
          id                      = 1
          language          = 2
          name                = 3
          not_found        = 4
          object               = 5
          reference_check = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
    loop at lt_content into lw_content.
      lw_text-line = lw_content-tdline.
      APPEND lw_text TO lt_text.
      CLEAR: lw_content, lw_text.
    endloop.
    Now your whole text is in "lt_text".
    Regards,
    Avish Mittal

  • How to display NEGATIVE sign on the left side of a number in SMARTFORMS

    Hi,
         In smartforms I'm trying to print some negative values, but the negative sign is displayed on the right hand side of the number.
    How can I display the '-' sign on the left hand side of a number. I tried the logic &value(<), it works well in sap scripts. Why is it not working in smartforms ?
    Eg :   I'm getting  the output  as  126.75 -
             I want :  - 126.75

    see this wiki which gives details for restrictions of formatting options (I guess you didn't declare the variable correctly, i.e. with the right data element): http://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript#SAPscript-WhatarethevarioustextformattingoptionsinSAPscript%3F

Maybe you are looking for

  • New chat groups not showing up in client

    i have skype installed on my mac and, apparently, I was added to a few new converstations. I am not seeing any of the messages in my client though. No new group popped up in the left hand bar. Individual conversations are still working and old chat g

  • How to display on the graph three or more waveforms where time scale is not an index of array but a real time

    How to display on the graph three or more waveforms where time scale is not an index of array but a real time: I measure three voltages Va, Vb, and Vc on my Test stands every 3sec. So I'm building four arrays (Va, Vb, Vc, Time) and combine all in one

  • Loss of Window "Views"

    Upgraded an App and when I restarted, all of my Folder settings (Icon size, Text size) all changed and the files within the folders were all jumbled up. I went through all the folders (!!!!!), reset/re-organized everything (open/close folders and the

  • Date field - no date entered - conversion error

    Hi, i've a input text field with a datepattern attached in my jsp, whose requrired attribute is set to false. If i submit the page and no date is entered, JSF returns "Conversion error occured" for the date field. For testing purposes i made a simple

  • Help Request: ORA-01950: no privileges on tablespace

    I am a fairly new Oracle DBA. I have a developer who has his own tablespace, and he is getting the error message above when he tries to execute the following script to create a table: CREATE TABLE SOA_FWK_VALUE_TRANSLATION CONTEXT_ID VARCHAR2(10) NOT