DESCRIPTION OF ITEM IN ALV

Hi,
i am making  a alv in which i am not able to display the description of item,even though i had declared it in the itab and when i am running single select and displaying it like dis:-
wa_fieldcat-col_pos = wa_col + 1.
  wa_fieldcat-seltext_l = 'DESCRIPTION'.
  wa_fieldcat-fieldname = 'DESC'.
  wa_fieldcat-tabname = ITAB.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
it is not displaying . so plzz provide me some guide as help will be deifnately rewarded.

Hi,
Check this code and declare in the simillar fashion.
Defining Macro
DEFINE m_fieldcat.
  add 1 to st_fieldcat-col_pos.
  st_fieldcat-fieldname   = &1.
  st_fieldcat-ref_tabname = &2.
  st_fieldcat-seltext_s   = &3.
  st_fieldcat-seltext_l   = &4.
  st_fieldcat-datatype    = &5.
  append st_fieldcat to i_fieldcat.
END-OF-DEFINITION.
Passing to fieldcat
FORM f_build_fieldcat .
  m_fieldcat 'VKORG'   'VBAK'   'Sales Organisation'(004)   'Sales Organisation'(004)                     ' '.
  m_fieldcat 'VTWEG'   'VBAK'   'Distribution Channel'(005) 'Distribution Channel'(005)                   ' '.
  m_fieldcat 'VKGRP'   'VBAK'   'Sales Group'(008)          'Sales Group'(008)                            ' '.
  m_fieldcat 'VBELN'   'VBAK'   'Sales Documnet'(009)       'Sales Documnet'(009)                         ' '.
  m_fieldcat 'KUNRSL'  'VBAK'   'Sold to Party'(010)        'Sold to Party'(010)                          ' '.
  m_fieldcat 'NAME1'   'KNA1'   'Name Sold to'(020)         'Name Sold to'(020)                           ' '.
  m_fieldcat 'KUNRSH'  'VBPA'   'Ship to Party'(011)        'Ship to Party'(011)                          ' '.
  m_fieldcat 'NAME2'   'KNA1'   'Name Ship to'(022)         'Name Ship to'(022)                           ' '.
  m_fieldcat 'KWMENG'  'VBAP'   'Order Quantity'(012)       'Order Quantity'(012)                 'QUAN '(014).
  m_fieldcat 'VRKME'   'VBAP'   'Order UOM'(017)            'Order UOM'(017)                               ' '.
  m_fieldcat 'ZMENGE'  'VBAP'   'Report Quantity'(013)      'Report Quantity'(013)                'QUAN '(014).
  m_fieldcat 'ZMEIN'   'VBAP'   'Report UOM'(018)           'Report UOM'(018)                              ' '.
  m_fieldcat 'MATKL'   'VBAP'   'Material Group Description'(023)    'Material Group Description'(023)     ' '.
  m_fieldcat 'WGBEZ'   'T023T'  'Material Group'(015)       'Material Group'(015)                          ' '.
  m_fieldcat 'MATNR'   'VBAP'   'Material Number'(016)      'Material Number'(016)                         ' '.
  m_fieldcat 'MAKTX'   'MAKT'   'Materia Description'(024)  'Material Description'(025)                    ' '.
ENDFORM.                    " f_build_fieldcat
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_buffer_active    = 'X'
      i_callback_program = w_repid
      is_layout          = st_layout
      it_fieldcat        = i_fieldcat[]
      i_save             = 'A'
      is_variant         = i_variant
      it_events          = w_events[]
    TABLES
      t_outtab           = i_final.
Regards,
Raj.

Similar Messages

  • Vendor open items wise ALV Grid Display (FBL1N) report to Excel Sheet

    Hi All,
    I need vendor wise open items and cleared items in ALV Grid format in excel sheet.
    I'm Trying that in T Code FBL1N, After the execution. I had select ALV Grid format like this From the menu bar->Settings-> Switch list.
    After that i get ALV  Grid format, Then i'm doing export the data to excel sheet. like this From the Menu bar->List->Export->Spread sheet.
    That time i'm getting Error Message no. 0K064, Filter criteria, sorting, totals and subtotals are not taken into account.
    I want vendor wise sorting totals and subtotals,
    How can i over come this Error please let me now.
    Thanks,
    Amar

    Hi Amar,
    Please check the KBA 2083705.
    https://websmp230.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3230383337303526
    Regards,
    Monika

  • How can we assign different colours to different records(line items) in alv

    how can we assign different colours to different records(line items) in alv reporting?

    Hi Friend,
    Please see this SDN Wiki  for setting the color in ALV :[http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP-DevelopingInteractiveALVReportusing+OOABAP]
    There are so many SDN Wiki's on this  just try with search  Alv Color display in SDN,
    Regards,

  • How to find the selected item in alv grid or table control

    can any one tell me please
    how to find the selected item in alv grid or table control

    In table control, If you goto screen painter and goto table control properties ( f2 ), there is one check-box w/selColumn check that and give column name. Then add that column to your internal table.
    IN PAI
      LOOP AT it_tkhdr.
        FIELD it_tkhdr-sel_row
          MODULE tab_tkhdr_mark ON REQUEST.
      ENDLOOP.
    MODULE tab_tkhdr_mark INPUT.
      MODIFY it_tkhdr INDEX tc_tkhdr-current_line.
    ENDMODULE.                 " tab_tkhdr_mark  INPUT
    here it_TKHDR is internal table sel_row is field for selection
    After that, you can loop at it_tkhdr where sel_row is 'X' to get selected rows.
    regards,
    Gagan

  • How to find top items in alv similar to MC.5

    hi abapers
    can u plz tell me how to find top items in alv grid program as we find similarly in MC.5 top material...etc as top items.
    Thanks in advance

    Nagrenda -> http://sap.ittoolbox.com/groups/technical-functional/sap-abap/how-to-display-an-alv-grid-using-abap-oo-2016165
    I suggest you read the rules of this forum.

  • Field Description and Total in ALV

    Hi Guys,
    I have a certain field in my itab that I declared like field dmbtr, I want that field to be summed up in alv so I had to put dmbtr as its reference field when I defined the field catalog for it. However, it now displays the description of dmbtr rather than my own description.
    How do I go about this?
    Thanks.
    Kenny

    Hello Kenny
    The following fields in the fieldcatalog (LVC_S_FCAT) can be used to modify descriptive texts of the column:
    REPTEXT
    COLTEXT
    SCRTEXT_L
    SCRTEXT_M
    SCRTEXT_S
    COLDDICTXT
    SELDDICTXT
    TIPDDICTXT
    Try to change these field values for your column and see if it has the appropriate effect when the field is summed up.
    Regards
      Uwe

  • Printing only one line record with total of all items through alv

    hi experts,
    i am facing a problem while printing a list through alv.
    requirement is, suppose i have 3 line items under one document no.
    i have to print only one record with total amount of all items.more clearly...
    1001  10  1000/-
    1001  20    234/-
    1001  30   540/- these records in internal table then i am passing it to reuse_alv_grid_display.
    i need to display only 1001  1774/-(means sum of all the items)
    please tell me how to do this.
    thanks in advance,
    manasi

    hi ansari,
    contains in itab
         3000000004     02.11.2000     5550     27.95     27.95     0
         3000000004     02.11.2000     5550     10.95     10.95     0
         3000000005     02.11.2000     5550     27.95     27.95     0
         3000000005     02.11.2000     5550     10.95     10.95     0
         3000000006     02.11.2000     3020     52.99     52.99     0
         3000000006     02.11.2000     3020     64.99     64.99     0
         3000000006     02.11.2000     3020     49.5     49.5     0
         3000000007     02.11.2000     3730     2,228.00     2,228.00     0
         3000000007     02.11.2000     3730     1,698.00     1,698.00     0
         3000000007     02.11.2000     3730     532     532     0
    now please tell me how to print the data
    output will be
    3000000004     02.11.2000     5550     38.90     38.90       0
    3000000005     02.11.2000     5550     38.90     38.90       0
    3000000006     02.11.2000     3020     117.19     117.19     0
    like that
    please help me out
    manasi

  • Problem in displaying the description of item

    Hi,
    I am working on a report of production order and i want to display the description of the Item but the problem the matnr is stored in ITPO1 AND i am displaying the values of ITPO5 which contains the difference value of qty of Item . To display the quantities i am using the table AUFM and i want to display the description of the production order Item which is stored in the ITPO1 .
    I am declaring the value of item in the ITPO5 and writing this select single query but it is not displaying the data.
    LOOP AT ITPO5.
          SELECT SINGLE MAKTG FROM MAKT INTO ITPO5-ITEMDESC WHERE MATNR = ITPO1-MATNR.
          WRITE: / ITPO5-AUFNR,ITPO5-ITEMDESC,ITPO5-I_QTY.
          TOT_QTY = TOT_QTY + ITPO5-I_QTY.
        ENDLOOP.
    Plzz provide me guidelines how to solve this problem.

    HI,
    Check this way..
    LOOP AT ITPO5.
    LOOP AT ITPO1 WHERE AUFNR = ITPO5-AUFNR.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        input              = ITPO1-MATNR
    IMPORTING
       OUTPUT             = ITPO1-MATNR
    EXCEPTIONS
       LENGTH_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.
    SELECT SINGLE MAKTG FROM MAKT INTO ITPO5-ITEMDESC WHERE MATNR = ITPO1-MATNR.
    IF SY_SUBRC EQ 0.
    WRITE: / ITPO5-AUFNR,ITPO5-ITEMDESC,ITPO5-I_QTY.
    TOT_QTY = TOT_QTY + ITPO5-I_QTY.
    ENDIF.
    ENDLOOP.

  • Quantity field to be shown on 1ST line only for purchase order items in ALV

    Dear All,
    I am fetching data from purchase order history table (EKBE) where PO line items contains multiple times. User does not want to view  fields that are repeating multiple times in all lines, but in the top line. By sorting the same in ALV , I can do the same with character type fields, but how to do the same with quantity fields. One way out is converting the same into character fields. Is there any other way. Please give me some solution. Also while sorting , the number which gets repeated (i.e Items in PO for different PO's ) does not gets displayed. I want my program to display them.
    Thanks,
    Debopriyo Mallick

    Try this
    loop at ist_mseg into wa_mseg.
      ON CHANGE OF wa_mseg-con.
        move '111' to wa_mseg-con1.
        modify ist_mseg from wa_mseg.
      ENDON.
    endloop.
    loop at ist_mseg into wa_mseg.
      if wa_mseg-con1 ne '111'.
        move 0 to wa_mseg-menge.
        move 0 to wa_mseg-netpr.
      endif.
      modify ist_mseg from wa_mseg.
    endloop.
    mseg-con is the concatenation of ebeln and ebelp values.
    pk

  • In PM order, can we change the material description for item category N?

    Hi,
    In Plant Maintenance work order, is there a way to change the material description while purchasing material (item category N) using a material master number? In config. the material description field is open for input. However on the work order components screen it becomes grey as soon as one enters a material master number.
    Background: We want to maintain generic material master records in the system and use them for purchasing materials (item category N) on work orders so that the purchasing data defaults from the material master. But we need to be able to change the description per the specific requirement.
    Similar functionality works on sales orders. Are we missing anything?

    Hi there,
    One solution would be to have some generic materials created and used them during work order processing. These generic materials needs to be extended to all the required plants.
    Hope this works,
    Cheers !!!

  • Data element description not changing in ALV output

    Hi Friends
      I changed the description of the data element from xx to yy,but this is not reflecting in the alv output,
    It is still showing xx,After activating everything and running the report I get the same problem,
    Can any one help?

    Hi,
    Write your code in following manner.
    ATA:ist_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: wa_fieldcat LIKE LINE OF ist_fieldcat.
    DATA : l_pos TYPE i VALUE 1.
      ist_fieldcat-fieldname = 'POSID'.
      ist_fieldcat-tabname   = 'IT_FINAL'.
      ist_fieldcat-outputlen = 24.
      ist_fieldcat-col_pos   = l_pos.
    *  ist_fieldcat-ddictxt = 'L'.
      ist_fieldcat-key = 'X'.
      ist_fieldcat-seltext_l = 'Appropriation Request Number'.
      APPEND ist_fieldcat.
      CLEAR ist_fieldcat.
      l_pos = l_pos + 1.
      ist_fieldcat-fieldname = 'TXT04'.
      ist_fieldcat-tabname   = 'IT_FINAL'.
      ist_fieldcat-outputlen = 4.
      ist_fieldcat-col_pos   = l_pos.
      ist_fieldcat-ddictxt = 'L'.
    *  ist_fieldcat-key = 'X'.
      ist_fieldcat-seltext_l = 'Status'.
      ist_fieldcat-EMPHASIZE = 'C400'.
      APPEND ist_fieldcat.
      CLEAR ist_fieldcat.
      l_pos = l_pos + 1.
      ist_fieldcat-fieldname = 'UDATE'.
      ist_fieldcat-tabname   = 'IT_FINAL'.
      ist_fieldcat-outputlen = 8.
      ist_fieldcat-col_pos   = l_pos.
      ist_fieldcat-ddictxt = 'L'.
      ist_fieldcat-key = 'X'.
      ist_fieldcat-seltext_l = 'Status Date'.
    *  IST_FIELDCAT-EMPHASIZE = 'C600'.
      APPEND ist_fieldcat.
      CLEAR ist_fieldcat.
      l_pos = l_pos + 1.
      ist_fieldcat-fieldname = 'CRTD'.
      ist_fieldcat-tabname   = 'IT_FINAL'.
      ist_fieldcat-outputlen = 4.
      ist_fieldcat-col_pos   = l_pos.
      ist_fieldcat-ddictxt = 'L'.
    *  ist_fieldcat-key = 'X'.
        IST_FIELDCAT-EMPHASIZE = 'C700'.
      ist_fieldcat-seltext_l = 'Status CRTD'.
      APPEND ist_fieldcat.
      CLEAR ist_fieldcat.
    <i>Rewards point if helpful</i>
    <b>Debjani</b>

  • On ebay, i can't see the descriptions of items. i can using iexpl on my laptop.

    I called ebay b/c I could no longer see item descriptions on all the items I was interested in. All that comes up is the items for sale and the ship price. She said it must be my browser, and sure enough, I also logged on to my laptop which utilized internet explorer and lo and behold the descriptions were there. We went through the cookie settings and everythings seems to be set correctly. Is there something I need to change which will allow the descriptions to display?

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank then power ON again in the normal way.] It is 'appsolutely' safe!

  • User query that will populate item description from items checked in prop.

    Hi everyone I have a question about a user query that needs to be created.
    In the item master data form under the properties tab I need what ever is checked in that table to be populated in the Description field. I dont know if this is possible or not but can please someone help me with this. Thanks

    I am not sure if it can be done while in Add Mode as the values of Properties checked might not be available till the Item is added to the database.
    Through Stored procedure you can do this once you add the Item Code.
    The Code for the same is as below.  You need to Pass 3 parameters
    The SQL to call the SP from the Item Description field would be
    EXEC     [dbo\].[ITEMDESC\] $\[$5.0.0], $\[$39.0.0], $\[$114.0.0]
    CREATE PROCEDURE [dbo\].[ITEMDESC\](@ITEM NVARCHAR(20), @ITMSGRPCODE NVARCHAR(3), @FIRMCODE NVARCHAR(3))
    AS
    BEGIN
         DECLARE @GrpName AS NVARCHAR(20), @FirmName AS NVARCHAR(30)
         DECLARE @SQLString nvarchar(500), @I AS INT, @N AS NVARCHAR(2), @OUTPUT AS NVARCHAR(100), @PNAME AS NVARCHAR(100)
         DECLARE @ParmDefinition nvarchar(500)
         SET @ParmDefinition = '@ITEM NVARCHAR(20), @OUTPUT NVARCHAR(100) OUTPUT'
         SET @PNAME = ''
         SET @I = 1
         WHILE @I <= 64
         BEGIN
              SET @N = CAST(@I AS VARCHAR(2))
              SET @SQLString = 'SELECT @OUTPUT = CASE WHEN T0.QryGroup' + @N + '= ''Y'' THEN T1.ItmsGrpNam ELSE '''' END FROM [dbo\].[OITM\] T0, [dbo\].[OITG\] T1
                             WHERE T0.ITEMCODE = @ITEM AND T0.QryGroup'+@N + '= ''Y'' AND ItmsTypCod = '+@N
              EXECUTE sp_executesql @SQLString, @ParmDefinition,@ITEM, @OUTPUT OUTPUT
              SET @I = @I + 1
              IF @OUTPUT <> ''
              BEGIN
                   SET @PNAME = @PNAME + (@OUTPUT + ', ')
                   SET @OUTPUT = ''
              END
         END
         SELECT @GrpName = ItmsGrpNam FROM OITB WHERE ItmsGrpCod = @ITMSGRPCODE
        SELECT @FirmName = FirmName FROM OMRC WHERE FirmCode = @FIRMCODE
         SELECT @GrpName + ', ' + @PNAME + @FirmName
    END

  • JComboBox - descripts with items

    Hello,
    I'd like my users to be able to click a combo box, and see instead of a list of values, a list of values with descriptions. When the select one, the value is entered.
    I extended JComboBox and DefaultComboBoxModel. Instead of an array of Strings, I pass it an array of DropdownItem (which is my own object containing a value and a description, it has a toString() method).
    All interaction with the component is with the value (no description), so the toString() needs to return it to the renderer. But how do I tell the renderer used in the popup list of items to also show the description?
    Thanks in advance!
    --- Eric

    I extended JComboBox and DefaultComboBoxModel. No need to do this. You just need to create a class that contains the value and description properties and methods to acces these properties. Check out this [url http://forum.java.sun.com/thread.jsp?forum=57&thread=547602&start=3&range=1]post.
    All interaction with the component is with the value (no description)This doesn't make sense to me. Your program make interact with the value (in order to update a database or something), but the user probably doesn't care about the value and only cares about the description.
    However, if this is what you want then you will need to customize the renderer from the above example to render the "selected item text" differently from the "dropdown items text". Something like:
    if (index == -1)
        setText( item.getId() );
    else
        setText( item.getId() + " : " + item.getDescription() );

  • Count of items in ALV report

    Hi I have created an ALV report  on which i need  a count of number of lines after the sorting  and a grand total count .
    I dont need a total value of the fields but instead a count of number of lines .
    I have sorted by state ALV and then by the facility.I need a count of the number of lines for each facility and then for each region and then a grand count .
    I am using the function  REUSE_ALV_GRID_DISPLAY to display the ALV I am using the is_sort paramater to sort the ALV by the State and facility .
    What parameter do i use to give a count and a grabd count of all items

    Hi Anjali,
    Use this code, while defining the field catalog to hide the individual entries:-
    wa_field-no_out = 'X'.
    append wa_field to it_field.
    And pass this it_field in the FM for ALV Display.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

Maybe you are looking for

  • Report query

    hi i have one matrix report which displays the information about gl je lines amount for the consolidation setofbooks. Report is having 2 parameters. 1: set of books name 2: run date i have derived chart of accounts id from given sob name in formula c

  • Import from database an internal table with generic Type : Web Dynpro ABAP

    Hi everyone, i have a requirement in which i'm asked to transfer data flow between two frameworks, from WD Component to another. The problem is that i have to transfer internal tables with generic types. i used the import/ export from database approa

  • BPC 7.5 : Error in deleting member from dimension

    Hi All In BPC 7.5, I have created earlier one member "F_P/L"in Flow Dimension and tested some data. Now I want to delete the member "F_P/L" from the Flow Dimension and while processing it, I am getting following error :                    " Dimension

  • No driver for canon MP610 os x 10.10

    I've just purchased a macbook Pro and am trying to get my printer at home to work as i need it for uni, i have searched the internet and cannot find the appropriate driver for my computer, does anyone know where i can get this or how i can get my pri

  • HT1414 Can't get into settings because of an icloud message

    I have a message on my ipad from icloud backup stating This ipad hasn't been backed up in 3 weeks. Backups happen when this ipad is plugged in locked, and connected to Wi-Fi. I have had it plugged in for a few days, all the support states to go into