Totals for the internal table field in alv

Hi Gurus,
I have an issue in displaying the totals in alv.
I have an internal table with the three fields like below.
scrap_code_001 like afru-xmnga, " Scrap Reason Qty.
scrap_code_002 like afru-xmnga, " Scrap Reason Qty.
scrap_code_003 like afru-xmnga, " Scrap Reason Qty.
In the output table which i am passing to the fieldcatlog is having the three above fields with values 10,3,4 respectively.
I am looping at the internal table
loop at gt_grund.
gv_tabix = sy-tabix.
i_fieldcat-no_zero = gc_x.
i_fieldcat-do_sum = gc_x.
perform assign_alv_qty_format.
if gt_grund-grund is initial.
gt_grund = 'NONE'.
gv_text = gt_grund.
else.
gv_text = gt_grund-grdtx.
endif.
gv_tabixn = gv_tabix.
gv_scrap_code+11(03) = gv_tabixn.
gv_fieldname = gv_scrap_code.
translate gv_fieldname to upper case.
perform bild_fieldcat using
gv_fieldname 'GT_REPORT' 'AFRU' gv_text 'QUAN' '12' ' ' .
endif.
endloop.
But in the output I am getting the totals but it displays totals for all the three columns as 17,17,17 (summing 10,3,4).
How do I display total as 10,3,4 for each column separately.
I appreciate you help and award points for the answer

Hi,
Please check if value fields i_fieldcat-ref_fieldname and i_fieldcat-ref_tabname regard to numc or curr type.
EX: i_fieldcat-ref_fieldname = 'WRBTR'
       I_fieldcat-ref_tabname = 'BSEG'.
Regards,
Fernando

Similar Messages

  • How to specify for a internal table field so that number of digits = 9

    In if condition how can i specify that
    if country = 'US'
    then the account number should be equal to 9 digits only.
    <removed_by_moderator>
    Edited by: Julius Bussche on Aug 6, 2008 1:41 PM

    You can set the internal table field to the biggest length possible, according to your requirements, and then work on something like the following. If the condition is met and you have to shorten the account number... try something similar to this:
    DATA e TYPE string VALUE 'Test string'.
    * I'm using 2 as an example here.
    SHIFT e BY 2 PLACES RIGHT CIRCULAR.
    SHIFT e BY 2 PLACES LEFT.
    WRITE :/, e.
    Avraham

  • Creating the spool request for the internal table data

    Hi..
    I am little confused with the function module used for creating the spool request.
    well...I am practicing the ALV report and sending the that report to the spool.
    I  ve used the FM SLVC_TABLE_PS_TO_SPOOL.
    this is the way i defined the internal table.
    Data:
    begin of imat occurs 0,
    matnr like marav-matnr,
    maktx like marav-maktx,
    matkl like marav-matkl,                     
    ntgew like marav-ntgew,
    gewei like marav-gewei,
    end of imat.
    data i_lines type sy-tfill
    and i declared..
    describe table imat lines i_lines.
    then i given the value for i_file_length as i_lines in the export paramet of the FM SLVC_TABLE_PS_TO_SPOOL.
    CALL FUNCTION 'SLVC_TABLE_PS_TO_SPOOL'
        EXPORTING
          i_file_length            = i_lines
       IMPORTING
         E_SPOOLID                = spoolid
        tables
          it_textdata              = imat
    when i executed it shows the list and wen going back it shows the runtime error as
    CALL_FUNCTION_CONFLICT_LENG  - Type conflict when calling a function module (field length).
    please provide me some solutions.
    thanks in advance.
    etienne.

    Hi satyajit,
    Thanks for your response....but the fields in my internal table "IMAT" is not compatible with the structure LVC_S_1022 as it has it componenrt - LINE.
    so how can i define my internal table IMAT as type lvc_s_1022 as you suggested.
    thanks in advance.
    etienne.

  • No extended memory for the internal table

    Hi all,  I created one filed in the selection screen with f4 help, this is the code i writtenAT SELECTION-SCREEN ON VALUE-REQUEST FOR PA_BKTXT.
    SELECT  BKTXT  INTO TABLE T_BKTXT from mkpf.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               =  'BKTXT'
      PVALKEY                = ' '
       DYNPPROG               = SY-CPROG
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'PA_BKTXT'
      STEPL                  = 0
    WINDOW_TITLE           = ' '
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      TABLES
        VALUE_TAB              = T_BKTXT
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
       OTHERS                 = 3.
    IF SY-SUBRC <> 0.
    REFRESH T_BKTXT.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>and the internal table i declared is</b>  DATA: BEGIN OF T_BKTXT OCCURS 0,
      PA_BKTXT type MKPF-BKTXT,
      END OF T_BKTXT. please let me know how to solve this issue.

    Hi  friend  ... please see this 
    Here is the example program for the F4 impelemting to the Selection Parameter ..
    REPORT demo_dynpro_f4_help_module .
    TYPES: BEGIN OF values,
             carrid TYPE spfli-carrid,
             connid TYPE spfli-connid,
           END OF values.
    DATA: carrier(3) TYPE c,
          connection(4) TYPE c.
    DATA: progname TYPE sy-repid,
          dynnum   TYPE sy-dynnr,
          dynpro_values TYPE TABLE OF dynpread,
          field_value LIKE LINE OF dynpro_values,
          values_tab TYPE TABLE OF values.
    CALL SCREEN 100.
    MODULE init OUTPUT.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      CLEAR: field_value, dynpro_values.
      field_value-fieldname = 'CARRIER'.
      APPEND field_value TO dynpro_values.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE value_carrier INPUT.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname     = 'DEMOF4HELP'
                fieldname   = 'CARRIER1'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'CARRIER'.
    ENDMODULE.
    MODULE value_connection INPUT.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = progname
                dynumb             = dynnum
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dynpro_values.
      READ TABLE dynpro_values INDEX 1 INTO field_value.
      SELECT  carrid connid
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF TABLE values_tab
        WHERE carrid = field_value-fieldvalue.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'CONNID'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'CONNECTION'
                value_org   = 'S'
           TABLES
                value_tab   = values_tab.
    ENDMODULE.
    reward points if it is usefull ...
    Girish

  • Conversion of a string output and store them into the internal table fields

    Hi,
    I'm writing a program in which I'm populating the values generated in TCODE- 'AL11' I'm able to retrieve the data in string format but I've to break the string and put the values in an internal table. The internal table has fields of various lengths and no specific position where I can use a delimiter and use the Split command.
    Kindly provide me suggestions how I can break the string and assign the values in the fields of the internal table.
    Regards,
    Sreedhar.

    Hi,
    Take the screen fields length and create an internal table.
    loop the internal table and first split the string at delimeter( use  cl_abap_char_utilities)
    CONSTANTS:
      c_delimiter        TYPE c VALUE
                              cl_abap_char_utilities=>horizontal_tab,
      c_delimiter_enter  TYPE c VALUE
                              cl_abap_char_utilities=>cr_lf.
    loop at itab into fs.
        SPLIT w_str  AT c_delimiter_enter INTO w_str w_dummy .
                                          " SPLITTING AT 'ENTER KEY'
          SPLIT w_str  AT c_delimiter INTO
                                          " SPLITTING AT 'TAB'
      fs-f1,
    fs-f2.
    append fs to itab.
    clear fs.
    endloop.

  • How to create New columns for the Internal Table Dynamically?

    HI Guys,
                          In my logic i have to create new columns depending on the logic which i am executing.
    My requirement is .I have to display o/p like this
    Material || Year || Period  ||  Mix ratio || Vendor ||Mix Ratio || Vendor || Mix Ratio Vendor || Mix ratio || Vendor || Mix ratio.............................from table's CKMLMV003 and CKMLMV001.Her i have to display the o/p in the above format and i have to display Vendor and Mix Ratio for 5 columns irrespective of data .If i have more than 5 columns for any record then i have to create a New columns dynamically for Vendor and Mix ratio.If anybody want my code i can Submit But plz tell with example how to do?
                    <b>The O/P must be finally shown in ALV Grid</b>
    Thanks,
    Gopi

    You must create the entire internal table dynamically, you can not add columns to a statically define internal table.  Here is an example of creating a dynamic internal table.
    Creation of internal table dynamically based on the Date Range entered
    Regards,
    Rich Heilman

  • Regarding spliting of the data in the internal table fields

    TYPES :BEGIN OF X_flat_file,
           banks LIKE lfbk-banks,
           bankl LIKE lfbk-bankl,
           bankn LIKE lfbk-bankn,
           koinh LIKE lfbk-koinh,
           bkont LIKE lfbk-bkont,
           END OF X_flat_file.
    DATA: t_itab TYPE STANDARD TABLE OF X_flat_file INITIAL SIZE 0,
          wa_itab TYPE X_flat_file,
    Now data in internal table is as follows:
    t_itab-banks is AD,DE, AB
    t_itab-bankl is 123456578,123456588,123456579
    t_itab-bankn is 12345666,12345677,12345688
    t_itab-koinh is vinod1,vinod2,vinod3
    t_itab-bkont is 01,01,01
    TYPES :BEGIN OF X_banks1,
           banks LIKE lfbk-banks,
           bankl LIKE lfbk-bankl,
           bankn LIKE lfbk-bankn,
           koinh LIKE lfbk-koinh,
           bkont LIKE lfbk-bkont,
           END OF X_banks1.
    DATA: T_BANKS1 TYPE STANDARD TABLE OF X_BANKS1 INITIAL SIZE 0,
          WA_BANKS1 TYPE X_BANKS1,
    Now i want internal table t_itab data should split at commas and transfered to internal table t_banks1.
    ex : t_itab-banks is AD,DE, AB should transfered to
    t_banks:   AD  ( 1 record)
                   DE  (2 record)
                   AB ( 3 record).
    I used following coding ......
       SPLIT wa_itab-BANKS AT ',' INTO  T_BANKS1-BANKS.
         SPLIT wa_itab-BANKL AT ',' INTO TABLE T_BANKS1-BANKL.
         SPLIT wa_itab-BANKN AT ',' INTO TABLE T_BANKS1-BANKN.
         SPLIT wa_itab-KOINH AT ',' INTO TABLE T_banks1-KOINH.
         SPLIT wa_itab-BKONT AT ',' INTO TABLE T_BANKS1-BKONT.
         SPLIT wa_itab-BANKA AT ',' INTO TABLE T_BANKA1-BANKA.
    But its not working.

    Dear Sarvesh,
    I have closed all the previous threads and only this one is open.
    My coding is like this.
    DATA:X(2),N(2) TYPE N.
    N = 0.
    LOOP AT T_BANKS INTO WA_BANKS.
    N = N + 1.
    ENDLOOP.
    X = 1.
    perform bdc_dynpro using 'SAPMF02K' '0130' 'X'.
    CNT = 1.
    DO N TIMES.
    IF CNT > 5.
    perform bdc_field using 'BDC_OKCODE' '=P+'. "*LOGIC FOR EXTENDING TABLE CONTROL
    perform bdc_field using 'BDC_OKCODE' '/00'.
    perform bdc_field using 'BDC_CURSOR' 'BANKNAM(01)'.
    CNT = 1.
    ENDIF.
    LOOP AT T_BANKS INTO WA_BANKS FROM X TO X.
    CONCATENATE 'LFBK-BANKS(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKS-BANKS.
    ENDLOOP.
    LOOP AT T_BANKL INTO WA_BANKL FROM X TO X.
    CONCATENATE 'LFBK-BANKL(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKL-BANKL.
    ENDLOOP.
    LOOP AT T_BANKN INTO WA_BANKN FROM X TO X.
    CONCATENATE 'LFBK-BANKN(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKN-BANKN.
    ENDLOOP.
    LOOP AT T_KOINH INTO WA_KOINH FROM X TO X.
    CONCATENATE 'LFBK-KOINH(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_KOINH-KOINH.
    ENDLOOP.
    LOOP AT T_BKONT INTO WA_BKONT FROM X TO X.
    CONCATENATE 'LFBK-BKONT(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BKONT-BKONT.
    ENDLOOP.
    perform bdc_field using 'BDC_CURSOR' 'LFBK-bkont'.
    perform bdc_field using 'BDC_OKCODE' '=BANK'.
    perform bdc_dynpro using 'SAPLBANK' '0100' 'X'.
    LOOP AT T_BANKA INTO WA_BANKA FROM X TO X.
    CONCATENATE 'BNKA-BANKA(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKA-BANKA.
    ENDLOOP.
    perform bdc_field using 'BDC_CURSOR' 'BNKA-BANKA'.
    perform bdc_field using 'BDC_OKCODE' '=ENTR'.
    CNT = CNT + 1.
    X = X + 1.
    ENDDO.
    My problem is that first table control data is getting loaded in the table fields BANKS, BANKL, BANKN, KOINH, BKONT . But next screen ('SAPLBANK' '0100' 'X'.) is not getting called and BANKA data is not getting filled..
    Pls help.
    As per the recording, first BANKS, BANKL, BANKN, KOINH, BKONT table control data should be filled and next screen should be called and then BANKA  data should be filled and again cursor should come back to screen ('SAPMF02K' '0130' 'X'.).
    similarly second table control data.

  • Regarding Internal Table Field Validation [Modification]

    Hi All,
    I have a small issue with formatting of a field.
    The Field is POTX1 - it would get the value as 'New MT-EPPE0097-COMP02',
    Means i have one internal table field as i_error-POTX1 in that some times we get value as 'New MT-EPPE0097-COMP02'.
    Whenever i get 'New' literal in that internal table field i have to remove that literal from that internal table field. And Left Justify the remaining part of the field.
    Ex:  'New MT-EPPE0097-COMP02'
         should become 'MT-EPPE0097-COMP02'.
    For this first i have to find wether 'New' Literal exists in the Internal table field or not then i have to remove it.
    Can anybody tell me how can i solve this issue.
    Thanks in advance.
    Thanks & Regards,
    Rayeezuddin.

    Hi,
    Take a look :
    loop at i_error.
      if i_error-potx1(3) = 'New'
        w_potx1 = i_error-potx1.
        i_error-potx1 = w_potx1+3(37).
        MODIFY i_error.
      endif.
    ENDLOOP.
    Regards,
    Erwan.
    Message was edited by: Erwan LE BRUN

  • How to get the Data type of the Internal Table.

    How can i get the data types used to create an internal table
    TYPES : BEGIN OF t_makt,
              matnr    TYPE    matnr,
              maktx    TYPE    maktx,
            END OF t_makt.
    Like this some function will give me which data types i have used for the internal table at run time.

    Use the FM ..
    data : int_fcat type SLIS_T_FIELDCAT_ALV.
    REUSE_ALV_FIELDCATALOG_MERGE ..
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME         = sy-repid
                I_INTERNAL_TABNAME     = 'IMAT'   <-- this is your internal table
                 I_INCLNAME             = sy-repid
           CHANGING
                CT_FIELDCAT            = int_fcat <--- this contains all the fields along with their characteristics ...
           EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.

  • Need Help in Field Symbol for Dynamically passing  table field value

    Hi All,
    In my internal table I am having data.
    I am dynamically forming table field name and substitute for the another table field name to pass DATA.
    but I am getting the Variable name insted of Value ie Data.
    I am using Field Symbol for this.
    data:
    Field-symbols <TS> type any.
    field1 type string.
    LOOP AT TABLEFIELDS INTO WA_TABLEFIELDS.
                READ TABLE  TEST  WITH KEY NAME = WA_TABLEFIELDS-FIELDNAME.
                IF SY-SUBRC = 0.
                  CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO  Field1.
                  Assign Field1 to <TS>.
                    ALL_VAL-VALUE = <TS>
    "After substituting the <TS>  into ALL_VAL-VALUE  field I need a DATA to be passed but the variable name is appending"*    
             APPEND ALL_VAL.
                ENDIF.
              ENDLOOP.
    kindly how to pass the value into the table.
    Thanks in advance.
    San

    Hi,
    pls assign a break point in
    CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO Field1.
    Assign Field1 to <TS>.
    ALL_VAL-VALUE = <TS>
       " Put a break point here and check for the value in <TS>.
    if <TS> contains value then create a work area for ALL_VAL AND PASS the Field-Symbol to that and then  append thw wa into the table...
    Hope this works out!!
    thanks

  • Confused with the internal table

    Hello,
    I am getting confused again by the usage of work space for an internal table.
    Say for example I have a internal table itab that is defined as:
    DATA:ITAB TYPE STANDARD TABLE OF Txxx.
    Then I define a work space for the internal table.
    DATA:WS_ITAB LIKE ITAB.
    Now say for example, I would like to fill in some data to this internal table, can I do:
    WS_ITAB-FIELD1 = 3.
    APPEND WS_ITAB INTO ITAB INDEX 1.
    where FIELD1 is a valid field in Txxx?
    If not, how should I accomplish my goal? Thanks a lot!

    Yes, you have the right idea.  When working with work areas it is a good idea to define them like line of itab. This way, anytime itab changes, the wa will also be updated.
    DATA: ITAB TYPE STANDARD TABLE OF Txxx.
    <b>data: wa like line of itab</b>.
    You can add a line to your internal table by filling the work area and appending to the internal table.
    wa-fld1 = 'A'.
    wa-fld2 = 'B'.
    wa-fld3 = 'C'.
    append wa to itab.
    You can insert into a specific index by using INSERT.
    Insert wa into itab index 1.
    Regards,
    Rich heilman

  • Header to internal table fields

    Hi All,
    How can I add header description to the internal table fields and download this internal table to desktop as EXCEL form.
    I want to show heading in the first line of the excel and then 2 - 3 blank lines and then next line should be populated with DATE and Exec. Time, then 2-3 blank lines , then the data with the header description to be displayed.
    My sample internal table data is as below,
    John         M         12          2344
    Thomas    M         17          8960
    Lin            F          10         8467
    Jan           M          12        4323
    I need to add, description as NAME above  John, Thomas, Lin etc.
                                             as GENDER above M,M,F etc.
                                             as CODE     above 12, 17,10 etc. and
                                             as EXTENTION above 2344, 8960,8467 etc
    final execl sheet should be as below,
    COMPANY DATA
    DATE   28 - 08 - 2009                   TIME      12:32
    NAME    GENDER   CODE   EXTENTION
    John           M             12         2344
    Thomas      M             17          8960
    Lin              F              10         8467
    Jan             M             12        4323
    Please let me know, how to do this.
    Thanks in advance ,
    Sabu

    Hi,
    Kindly go through this sample code below:
    "Create T_Head internal table with the required structure for the header
    *func mod to download header and contents to the given path
    call function 'GUI_DOWNLOAD'
    exporting
    write_field_separator = 'X'
    filename              = v_pathname      "path entered by the user
    tables
    data_tab              = t_head.             "Header Internal table
    refresh t_head.
    clear t_head.
    call function 'GUI_DOWNLOAD'
    exporting
    *   BIN_FILESIZE                    =
        filename                        = v_pathname
        filetype                        = 'ASC'
        append                          = 'X'                     "Here by giving 'X', header will be appended in the download int table
        write_field_separator           = 'X'
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
        tables
        data_tab                        = itab
    *   FIELDNAMES                      =
      exceptions
    file_write_error                = 1
    no_batch                        = 2
    gui_refuse_filetransfer         = 3
    invalid_type                    = 4
    no_authority                    = 5
    unknown_error                   = 6
    header_not_allowed              = 7
    separator_not_allowed           = 8
    filesize_not_allowed            = 9
    header_too_long                 = 10
    dp_error_create                 = 11
    dp_error_send                   = 12
    dp_error_write                  = 13
    unknown_dp_error                = 14
    access_denied                   = 15
    dp_out_of_memory                = 16
    disk_full                       = 17
    dp_timeout                      = 18
    file_not_found                  = 19
    dataprovider_exception          = 20
    control_flush_error             = 21
    others                          = 22
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    endif.
    Hope it helps
    Regards
    Mansi

  • What are internal table fields?

    hi sdn,
    Somebody asked me what are the internal table fields?

    hi,
    data or varaibles that u declare inside the internal table are internal table fields
    eg
    BEGIN OF itab_final       ,                         "OCCURS 0 ,
            mtart   LIKE  mara-mtart  ,
            wwghb1  LIKE  t023d-wwghb ,  " DIVISION DESCRIPTION
            wwgha   LIKE  t023d-wwgha ,   " MAJOR CATEGORY
            wwghb   LIKE  t023d-wwghb ,   " MAJOR CATEGORY DESCRIPTION
            wwgpa   LIKE  t023d-wwgpa ,   " CATEGORY
            matkl   LIKE  mara-matkl  ,   " MERCHANDISE CATEGORY
            ean11   LIKE  mara-ean11  ,   " International Article Number (EAN/UPC)
            numtp   LIKE  mara-numtp  , 
      END OF itab_final .
        mtart  wwghb1    wwgha     wwghb    wwgpa   matkl        ean11     numtp  .  these are internal table fields
    Regards,
    pankaj

  • Number of entries in the internal table for perticular field value

    hi All,
    Is this possible to get the count of records from the internal table for a perticular field value.
    currently my requirement is to get the entries from the internal table which does not have two records for perticular field value (say a = 123) whose status is active (say b = 'X').
    also suggets should use LOOP or DELETE or DESCRIBE for a internal table to ful fill this requirement.
    Thanks in advance.
    Pradeep

    Try like this..
    Create another table itab2 with same structure as itab1 & move the contents of itab1 to itab2
    ITAB2[] = ITAB1[].
    Then delete entries from itab2
    Delete itab2 whete a = '123' and b = 'X'
    Then use Describe statement to get the no of entries
    Describe table itab2 lines v_lines.
    Hope this helps...

  • How to pass the internal table defined in program to ALV

    Hi Friends,
    I have a doubt regaring the ALV's,
    How can we pass the internal table defined in the program to ALV by not filling the attribute (I_STRUCTURE_NAME) in the REUSE_ALV_LIST_DISPLAY.
    I have tried many ways but unable to pass the structure of the internal table. I am getting the error message "Field Catalog Not Specified......" and its terminating and when i am giving the I_STRUCTURE_NAME = 'INTERNAL-TABLE-NAME' then its displaying a blank screen with all the tool-bars and icons...(No output of internal table data is seen on the screen) .
    and when i am passing the DDIC table or structure ( for eg. LFA1) to I_STRUCTURE_NAME then its displaying with any error.
    Plaese help in resolving this problem....
    Regards
    Pradeep Goli

    Hi,
    Check this thread which gives example of ALV. This will give you an idea.
    Interactive ALV
    ashish

Maybe you are looking for

  • FBL5N, query regading the SO n PO field in the report

    HI experts, #1 In the Transaction FBL5N, the report I have selected the Sales order and Purchase order in the lay out. When the report is run for any customer these both fields are empty. Infact all the order are created with reference to PO n then S

  • I can't register Photoshop Elements 9 as it states the serial number is invalid.

    I bought Adobe Photo shop Elements 9 over a year ago and have never used it.  Just the trial.  Now I am trying to register it with the serial number on the back of my dvd holder and it says my number is invalid.  It IS bought and paid for and I do no

  • Can't deploy to Oracle 8i

    I was trying to deploy an ApplicationModule (remoteable) as EJB to JServer using JDeveloper's wizards. During deployment I receive the following error message : Generating EJBHome and EJBObject on the server...done Publishing EJBHome...::: org.omg.CO

  • 1099 Misc Report RFW1099M - Form for 2010

    Hello, We are on 4.6 and are using Program : RFW1099M and Transaction Code: S_P9C_18000158. How to find an appropriate Form for 2010 - 1099 Mics Printing. Do we have to create a new form every year? Do we have to download SAP Note every year? Do we h

  • Casting error ABAP dump...

    Hello, I am getting issue when casting is done. I get a ABAP dump. In the constructor of call following code is there. I get dump during "refCX_SubRC  ?= Imp_ExcObj_Ref. "" object casting"   IF EXC_CLASS_NAME CS 'ZCX_AL_SUBRC'.         refCX_SubRC  ?