Internal table field name problem

Dear All,
          I am declaring one internal table & fetching data using inner join. Following is my structure of internal table but it is not fetching data into MATNR1, the data is there in the table.
Kindly suggest why this is happening?
Regards,
Dilip Gupchup
internal table
data : begin of sales_to_purchase_link_itab occurs 10,
*******FOR P O RELATED INFORMATION
         EBELN LIKE EKKN-EBELN,"DOCUMENT NO
         AEDAT LIKE EKPO-AEDAT,"P O DATE
         EBELP LIKE EKKN-EBELP," ITEM
         MATNR LIKE EKPO-MATNR,"MATERIAL
         MENGE LIKE EKKN-MENGE,"QUANTITY
         SAKTO LIKE EKKN-SAKTO,"G/L Account Number
         NETWR LIKE EKKN-NETWR,"Net order value in PO
*******END FOR P O RELATED INFORMATION
*******FOR SALES ORDER RELATED INFORMATION
         VBELN LIKE EKKN-VBELN,"SALES DOC NO
         VBELP LIKE EKKN-VBELP,"SALES DOC ITEM
         MATNR1 LIKE VBAP-MATNR,"SALES MATERIAL
         ERDAT LIKE VBAP-ERDAT,"SALES DOC DATE
         ARKTX LIKE VBAP-ARKTX,"MATERIAL DESCRIPTION
         ZMENG LIKE VBAP-ZMENG,"QUANTITY
         NETPR LIKE VBAP-NETPR,"SALE VALUE
*******FOR SALES ORDER RELATED INFORMATION
   end of sales_to_purchase_link_itab.
select query
select
ekkn~ebeln
EKKN~EBELP
EKKN~SAKTO
EKKO~AEDAT
ekko~bukrs
EKPO~MATNR
EKPO~MENGE
EKPO~NETWR
vbap~vbeln
ekkn~vbelp
vbap~arktx
VBAP~MATNR
into corresponding fields of table
sales_to_purchase_link_itab from ekkn
inner join ekko on ekknebeln eq ekkoebeln "UP TO 10 ROWS.
INNER JOIN EKPO ON EKKOEBELN EQ EKPOEBELN
inner join vbap on ekknvbeln eq vbapvbeln
WHERE
EKPO~AEDAT IN S_ERDAT1.

Hi,
or change your coding like that:
DATA rep LIKE sy-repid.
TYPE-POOLS : slis.
DATA : fcat TYPE slis_t_fieldcat_alv.
DATA wa TYPE  slis_fieldcat_alv.
DATA : BEGIN OF fld OCCURS 0,
name(50),
END OF fld.
rep = sy-repid.
*only possible if fields of itab are defined with LIKE !
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
     EXPORTING
          i_program_name         = rep
          i_internal_tabname     = 'SALES_TO_PURCHASE_LINK_ITAB'
          i_client_never_display = 'X'
          i_inclname             = rep
     CHANGING
          ct_fieldcat            = fcat.
LOOP AT fcat INTO wa.
  CONCATENATE wa-ref_tabname '~' wa-fieldname INTO fld-name.
  APPEND fld.
ENDLOOP.
SELECT (fld)
INTO TABLE sales_to_purchase_link_itab
FROM ekkn
INNER JOIN ekko ON ekkn~ebeln EQ ekko~ebeln "UP TO 10 ROWS.
INNER JOIN ekpo ON ekko~ebeln EQ ekpo~ebeln
INNER JOIN vbap ON ekkn~vbeln EQ vbap~vbeln
WHERE
ekpo~aedat IN s_erdat1.
Andreas

Similar Messages

  • Is it possible to use internal table field name as variable?

    data : temp_string(10) type c.
    data : result type string.
    temp_string = 'field1'.
    loop at itab1 into str1.
      result =  str1-temp_string. "error here"
    endloop.
    HI.
    think this code not executable and actually fail to compile.
    is it possible to put structure field name with variable?
    anyone can help me ? please
    thank you.
    Regards
    Bae

    You may use of COMPONENT of your structure.
    FIELD-SYMBOLS: <F>.
    ASSIGN COMPONENT I OF STRUCTURE F TO <F>.
    To find index of component you may use
    DESCRIBE FIELD f INTO td.
    (But SAP beware us)
    Regards

  • Table & Field Name Problem

    Hi Mentors,
    I am creating a z report in that one perticular field i want new value, old value details.
    Field is in MMR - Foreigh trade import - CAS numner (pharma) this field we are using for material status.( ex. A,B,C)
    Table Name - MARA Fiels name - CASNR
    This status we will change every three months. so when i am taking the report i need old value and new value status.
    For new value i will get from MARA-CASNR But, where i will find the old value table.
    Ex. if i edit master record MM02 and go to top - environment-dispay changes- in that i am finding the chage details, if i choose the details option i am getting old value and new value details.
    pls help me any one to find the old value details.
    Highly appreciated any solution
    award points if use ful answer
    Regards
    Laxman

    Hi Laxman,
    I have found one program Please check the same.
    *& Report  ZAK_MM_CHANGE_HISTORY                                       *
    REPORT  ZAK_MM_CHANGE_HISTORY                   .
    TABLES:
            CDHDR, CDPOS, MARA, MAKT, MARD.
    FIELD-GROUPS: HEADER.
    DATA: BEGIN OF CHGDOC OCCURS 50.
            INCLUDE STRUCTURE CDRED.
    DATA: END OF CHGDOC.
    DATA:
          CHGTYPE(1),
          PLANT(4),
          MATNR1 LIKE CHGDOC-OBJECTID.
    SELECT-OPTIONS:
        XMATNR  FOR CDHDR-OBJECTID,    "Material
        XUDATE  FOR CDHDR-UDATE,       "Change Date
        XUNAME  FOR CDHDR-USERNAME,    "User Name
        XTCODE  FOR CDHDR-TCODE,       "Transaction Code
        XWERKS  FOR MARD-WERKS.        "Plants
    SELECTION-SCREEN SKIP.
    *Filter change type
    SELECTION-SCREEN BEGIN OF BLOCK CHG0 WITH FRAME TITLE TEXT-001.
       PARAMETERS : XCHG1 AS CHECKBOX DEFAULT 'X',
                    XCHG2 AS CHECKBOX DEFAULT 'X',
                    XCHG3 AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK CHG0.
    START-OF-SELECTION.
    INSERT:
            CHGDOC-OBJECTID        "Material
            CHGTYPE                "Change type
            PLANT
            CHGDOC-CHANGENR
            CHGDOC-USERNAME
            CHGDOC-UDATE
            CHGDOC-TCODE
            CHGDOC-TABNAME
            CHGDOC-TABKEY
            CHGDOC-CHNGIND
            CHGDOC-FNAME
            CHGDOC-FTEXT
            CHGDOC-TEXTART
            CHGDOC-OUTLEN
            CHGDOC-F_OLD
            CHGDOC-F_NEW
    INTO HEADER.
    SELECT * FROM MARA WHERE MATNR IN XMATNR.
       MATNR1 = MARA-MATNR.
       CALL FUNCTION 'CHANGEDOCUMENT_READ'
         EXPORTING
            ARCHIVE_HANDLE             = 0
            CHANGENUMBER               = ' '
            DATE_OF_CHANGE             = '00000000'
              OBJECTCLASS                = 'MATERIAL'
              OBJECTID                   = MATNR1
            TABLEKEY                   = ' '
            TABLENAME                  = ' '
            TIME_OF_CHANGE             = '000000'
            USERNAME                   = ' '
            LOCAL_TIME                 = ' '
         TABLES
              EDITPOS                    = CHGDOC
         EXCEPTIONS
              NO_POSITION_FOUND          = 1
              WRONG_ACCESS_TO_ARCHIVE    = 2
              TIME_ZONE_CONVERSION_ERROR = 3
              OTHERS                     = 4.
       LOOP AT CHGDOC.
          CHECK:  CHGDOC-UDATE    IN XUDATE,
                  CHGDOC-USERNAME IN XUNAME,
                  CHGDOC-TCODE    IN XTCODE.
        Chg type: 1. Part revision, 2. Price change, 3. Others
          CASE CHGDOC-TCODE.
             WHEN 'MM01' OR 'MM02' OR 'MM03'.  CHGTYPE = '1'.
             WHEN 'MR21'.  CHGTYPE = '2'.
             WHEN OTHERS.  CHGTYPE = '3'.
          ENDCASE.
        Filter chg type
          IF ( CHGTYPE = '1' AND XCHG1 <> 'X' ) OR
             ( CHGTYPE = '2' AND XCHG2 <> 'X' ) OR
             ( CHGTYPE = '3' AND XCHG3 <> 'X' ).
             CONTINUE.
          ENDIF.
        Plant is a substring of tabkey
          PLANT = CHGDOC-TABKEY+21(4).
          IF NOT ( XWERKS IS INITIAL ) AND NOT ( PLANT IS INITIAL ).
             CHECK PLANT IN XWERKS.
          ENDIF.
          EXTRACT HEADER.
       ENDLOOP.
    ENDSELECT.
    END-OF-SELECTION.
    SORT.
    LOOP.
    Material
       AT NEW CHGDOC-OBJECTID.
          SELECT SINGLE * FROM MAKT  WHERE MATNR = CHGDOC-OBJECTID.
          FORMAT INTENSIFIED ON.
          SKIP.  SKIP.
          WRITE:/' *** Material:', (18) CHGDOC-OBJECTID, MAKT-MAKTX.
       ENDAT.
    Change type
       AT NEW CHGTYPE.
          FORMAT INTENSIFIED ON.
          SKIP.
          CASE CHGTYPE.
             WHEN '1'.   WRITE:/ '  **  Change type:  PARTS REVISION'.
             WHEN '2'.   WRITE:/ '  **  Change type:  PRICE CHANGE'.
             WHEN '3'.   WRITE:/ '  **  Change type:  OTHERS'.
          ENDCASE.
          SKIP.
       ENDAT.
       SHIFT CHGDOC-F_OLD LEFT DELETING LEADING SPACE.
       SHIFT CHGDOC-F_NEW LEFT DELETING LEADING SPACE.
       FORMAT INTENSIFIED OFF.
       WRITE:
         /     PLANT          UNDER 'Plant',
          (50) CHGDOC-FTEXT   UNDER 'Field',
          (45) CHGDOC-F_OLD   UNDER 'Old value',
          (45) CHGDOC-F_NEW   UNDER 'New value'.
       AT NEW CHGDOC-CHANGENR.
          FORMAT INTENSIFIED OFF.
          WRITE:
               CHGDOC-CHANGENR   UNDER 'Change doc',
               CHGDOC-TCODE      UNDER 'Tcod',
               CHGDOC-USERNAME   UNDER 'User name   ',
               CHGDOC-UDATE      UNDER 'Date    ' DD/MM/YY.
       ENDAT.
       AT END OF CHGDOC-OBJECTID.
          SKIP.
          ULINE.
          SKIP.
       ENDAT.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE: / SY-DATUM, SY-UZEIT,
        50 'ABC PTE LTD',
       100 'page', SY-PAGNO,
           / SY-REPID,
        48 'Change Documents Report',
       100 SY-UNAME.
    SKIP.
    ULINE.
    WRITE:/3
            'Change doc',
            'Tcod',
            'User name   ',
            'Date    ',
            'Plant',
       (50) 'Field',
       (45) 'Old value',
       (45) 'New value'.
    ULINE.
    Go to SE38 Create one Z report and paste the program without disturbing anything and execute. If it doesnot show any values in this report use Leading zeros formulae ieGive material no like 000000000000100222 etc. Try this i have tried in my system and its working.
    Reg,
    Ashok
    Assign points if useful.

  • How to find internal table column names

    Hi Friends,
    I have declared one internal table with 45 fields.
    Here is my situation.
    I need to create dynamic table with all above 45 fields and some more fields (approx 10 fields).
    I got the solution for creating dynamic table. Only thing is
    I have to assign all the above 75 columns to  other internal table.
    is there any way we can read internal table field names in the program.
    we can acheive this by hard coding the all 75 field names.
    since it is 75 columns, i want to pass one by one field dynamically to the other table.
    Pls give me a solution.
    thanks in advance.

    HI,
    Find the code for dynamical internal table., which helps to increase the fields in the internal table dynamically.
    REPORT ZTEST_R3.
    FIELD-SYMBOLS: <L_TABLE> TYPE TABLE,
    <L_LINE> TYPE ANY,
    <L_FIELD> TYPE ANY.
    DATA: IS_LVC_CAT TYPE LVC_S_FCAT,
    IT_LVC_CAT TYPE LVC_T_FCAT.
    DATA: NEW_TABLE TYPE REF TO DATA,
    NEW_LINE TYPE REF TO DATA.
    START-OF-SELECTION.
    IS_LVC_CAT-FIELDNAME = 'KUNNR'.
    APPEND IS_LVC_CAT TO IT_LVC_CAT.
    IS_LVC_CAT-FIELDNAME = 'NAME1'.
    APPEND IS_LVC_CAT TO IT_LVC_CAT.
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    EXPORTING
    IT_FIELDCATALOG = IT_LVC_CAT
    IMPORTING
    EP_TABLE = NEW_TABLE.
    *Create a new Line with the same structure of the table.
    ASSIGN NEW_TABLE->* TO <L_TABLE>.
    CREATE DATA NEW_LINE LIKE LINE OF <L_TABLE>.
    ASSIGN NEW_LINE->* TO <L_LINE>.
    DO 2 TIMES.
    ASSIGN COMPONENT 'KUNNR' OF STRUCTURE <L_LINE> TO <L_FIELD>.
    <L_FIELD> = SY-INDEX.
    ASSIGN COMPONENT 'NAME1' OF STRUCTURE <L_LINE> TO <L_FIELD>.
    <L_FIELD> = 'A'.
    INSERT <L_LINE> INTO TABLE <L_TABLE>.
    ENDDO.
    LOOP AT <L_TABLE> INTO <L_LINE>.
    WRITE:/ <L_LINE>.
    ENDLOOP.
    READ TABLE <L_TABLE> INTO <L_LINE> INDEX 2.
    <L_LINE>+10(2) = 'B'.
    MODIFY <L_TABLE> FROM <L_LINE> INDEX 2.
    LOOP AT <L_TABLE> INTO <L_LINE>.
    WRITE:/ <L_LINE>.
    ENDLOOP.

  • Assigning value to Field - Symbol ( which is type of internal table field )

    Hi All,
      I am facing problem to assign the value to a field symbol. My requirement is creating a dynamic internal table and populate values into that internal table, so that i can display the values .
      I am having a structure with fields like status , Plant1 name , Plant2 name.....Plant n .
      So i declared an internal table it_tab with this structure.
      I am having one more table which having number of records for Plant1 ,Plant 2 ,....Plant n based on some condition.
      I need to count the number of records for Plant1 and i need to put in the internal table it_tab.
      For this i created field-symbol .
    Here, t_deployment table will have the plants 1,2,3...and
         t_devobject will have some records for these plants.
    LOOP AT T_DEPLOYMENT. 
    clear w_count.
    LOOP AT T_DEVOBJECT WHERE ZDEPLOYMENT = T_DEPLOYMENT-DOMVALUE_L AND
                              ZADSTATUS = '10'.
    w_count = w_count + 1.
    ENDLOOP.
    concatenate 'it_tab-' t_deployment-domvalue_l into var_bet_name.
    assign var_bet_name to <bet_var_name>.
    now my internal table field i.e. it_tab-plant1 came into <bet_var_name> . But i want to assign a value for it.
    at last what i need is it_tab-plant1 = w_count.
    whaterver the w_count has value that needs to assign to it_tab-plant1. But i don't want to assign directly it it_tab-plant1. I want to assign dynamically. Because tommorrow some more plants added to t_deployments , i don't want to make changes to my program. It should take care....w/o changing the program.
    I tried the following statement.
    (<bet_var_name>) = w_count. But its not working.
    Please let me know how i can get this.
    Thanks in Advance.
    Pavan.

    Hi pavan,
    As ur requirement is creating a dynamic internal table,
    try the following way,
    remember the fieldcat should be of type LVC not SLIS.
    BUILD LT_LVCFIELDCAT in a way that, the value from the internal table becomes the fieldname
    ex:-
    loop at it_models INTO WA_MODELS.
        LS_LVCFIELDCAT-FIELDNAME = WA_models-MODEL.
        LS_LVCFIELDCAT-SELTEXT = WA_models-MODEL.
    append ls_lvcfieldcat to lt_lvcfieldcat.
    endloop.
    DATA: DREF TYPE REF TO DATA,WA_REF TYPE REF TO DATA.
    FIELD-SYMBOLS: <TEMP_TAB> TYPE TABLE, <TEMP_WA> TYPE ANY.
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = LT_LVCFIELDCAT
        IMPORTING
          EP_TABLE        = DREF.
      ASSIGN dref->*  TO <TEMP_TAB>.
    now basing on the fieldcatalog <temp_tab> is build.
    NOW FILL <TEMP_TAB>.
    WHILE FILLING, ASSIGN COMPONENT IDX/NAME.....
    this statement will be very usefull.
    i hope this will be help full.
    pls reward the points if it helps u.
    regards
    Hyma

  • GUI_DOWNLOAD with Internal table column names

    Hi!
    I am using FM 'GUI_DOWNLOAD' to download internal table to excel sheet. But, I am finding internal tables values only into excel sheet. I want Internal Table's column name as well. Please help me. and guide me.
    Thanks in advance.
    -Rupesh kayasth.

    Hi Rupesh,
        You have two tables in the Tables parameter. One is DATA_TAB where you have to provide the internal table name which data you want to download. Second one is Field Names where you can provide the column names for the internal table fields. Concatenate the column names in a string and pass it to Fields names table.
    Regards,
      Jayaram...
    Message was edited by:
            Jayarama Sarma Mudda

  • An internal table field has been defined too small

    Hi,
    We are getting a dump when trying to get the Financial Statements.
    The error in the dump is u201CAn internal table field has been defined too smallu201D.
    The field with the problem is u201CYou should define the field "HSL03" larger in program "SAPLFAGL_GLT0".The maximum size allowed for fields of type P is 16 (31 digits).
    Itu2019s caused by a list of documents where the exchange rate must to be u201D/699,94001u201D  but it was entered without the forward slash and it caused very big numbers
    The biggest number in one document is 99,401,074,527.31  USD
    The sum of all them is 13,008,701,915,208.50
    Any ideas to fix this?
    Thanks in advance
    Jorge

    have you reversed those documents with fb08  and post it with the correct exchange rate???
    have you searched in SMP for similar problems - I think you've to correct the DB-values- but only in agreement with your audit firm / revision
    A.
    Edited by: Andreas Mann on Apr 6, 2010 3:13 PM
    Edited by: Andreas Mann on Apr 6, 2010 3:16 PM

  • Read from a internal table whose name is decided in runtime

    Dear ABAPers
    I've an internal table's name in a variable, the name is populated in runtime (user_command->ls_selfield-tabname). Now that using the name (in the variable) i need to read a row from that particular internal table (which is populated into the variable). How can i do that.
    Regards
    Prabumanoharan

    hi see the coding and do the changes accordingly...
    report ztests .
    DATA:
      o_ref TYPE REF TO data.
    FIELD-SYMBOLS:
      <lt_table> TYPE STANDARD TABLE,
      <fs>       TYPE ANY,
      <field>    TYPE ANY,
      <field1>   TYPE ANY.
    PARAMETERS:
      p_tab       TYPE tabname default 'MARA', " Table name (eg: MARA)
      p_field(20) TYPE c default 'MATNR'.      " Field name (eg: MATNR)
    START-OF-SELECTION.
      CREATE DATA o_ref TYPE TABLE OF (p_tab).
      ASSIGN p_field TO <field1>.
      ASSIGN o_ref->* TO <lt_table>.
      SELECT *
        INTO TABLE <lt_table>
        FROM (p_tab).
      LOOP AT <lt_table> ASSIGNING <fs>.
        ASSIGN COMPONENT <field1> OF STRUCTURE <fs>
                      TO <field>.
        IF sy-subrc = 0.
          WRITE:/ <field>.
        ENDIF.
      ENDLOOP.

  • 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

  • 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 populate dynamic internal table fields with data??

    Hi Folks,
    How to assign a particular internal table field to a dynamically assigned internal table?
    I have an excel sheet, and i upload the excel sheet data into an internal IT_EXLOAD table using FM ALSM_EXCEL_TO_INTERNAL_TABLE
    Now i created a dynamic internal table which has the same column as in my DB table.
    I have to fill the dynamically created Internal table with the IT_EXLOAD data dynamically.
    Suppose in future if i add some field in DB table and for that field if i add some column in excel sheet there is no need to change in the program.
    Looking for reply...
    Best Regards,
    Sayak

    hi,
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = p_path
                i_begin_col             = '1'
                i_begin_row             = '2'
                i_end_col               = '2'
                i_end_row               = '1000'
           TABLES
                intern                  = intern
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
    *declare intern_tmp as internal table tb_data in wich you want the data
    *and declare a field symbol <fs_123>
    LOOP AT intern.
        ASSIGN COMPONENT intern-col OF STRUCTURE
        intern_tmp TO <fs_123>.
        IF NOT <fs_123> IS ASSIGNED.
          CLEAR intern.
          CLEAR intern_tmp.
          CONTINUE.
        ENDIF.
        <fs_123> = intern-value.
        AT END OF row.
          CLEAR tb_data.
          MOVE-CORRESPONDING: intern_tmp TO tb_data.
          APPEND tb_data.
          CLEAR intern_tmp.
        ENDAT.
        CLEAR intern.
      ENDLOOP.
    **paste this code and you can see the data in ur tables dynamically.
    Thanks
    Nitin Sachdeva

  • Authorization object to display table field names in english text in SE17

    Hi,
    One of users have issues with the filed name getting displayed in technical format instead of english text while browsing table information in SE17. Normally we can set this in through Settings->User Parameters. But here for this user, user parameter option is greyed out and he doesn't have access to SE16.
    Is there any other way to change user specific parameters, instead of granting him accesss to SE16 or enabling user parameters in SE17?
    Thanks,
    Mano

    Hi,
    I made him run SU53 on SE17 transaction the log is showing that authorization check failed for S_ALV_LAYO with value 23.
    Actually i have access SE16 and for me also, user parameter option is greyed out in SE17. I ran SU53 on SE17 in my session i also got same log.
    One more observation is, the user's colleague also doesn't have access to SE16 and user parameter option is greyed out in SE17 but he can view the table field names in english. So we are wondering if some authorization object is missing here.
    We do not want user to make any changes through GUI.
    Thanks,
    Mano.

  • Accessing Dynamic Internal table fields

    Hello All,
    I have one internal table ep_tabx having 138 columns whose data is getting displayed
    by using function module reuse_alv_grid_display.
    Now my query is, i have created one custom button on the appl toolbar to download ep_tabx data.
    IF the user changes the the layout of the output at runtime and then presses that custom button
    then i have created one dynamic internal table using call method cl_alv_table_create=>create_dynamic_table suppose <dyn_table> whose struc will be that of
    dynamic fieldcatalog returned by using FM REUSE_ALV_GRID_LAYOUT_INFO_GET.
    And then I have put a loop on the int table ep_tabx and move corresponding to the int table
    <dyn_table>. But when i download the <dyn_table> data through GUI_DOWNLOAD the
    date fields data is not getting downloaded correctly. I have 4 date fields in my ep_tabx.
    In the alv grid output the date is getting displayed like 08/30/2004(ie mon/date/yr) but in download
    file it comes like 20040830(ie yr/mon/date and that too without /).How to access the dynamic
    internal tables fields separately so asto convert them in the pgm before the download.
    Kindly Help.
    Thanks in advance.
    Mansi

    Hi,
    Search in SDN you would get loads of info on accessing dynamic itab's .
    in order to convert your date format use WRITE stmt to convert the value in your itab before passing it to download FM.
    Regards,
    Raghavendra

  • Table & Field Name for Plan Data in CO

    Hi All,
    Can anyone tell me the table & field name where we can get the planned data in Cost Center Accounting and Profit Center Accounting.
    I checked out the COSP(which is Totals) and COEP tables for CCA but i could find the fields only for actual data and not planned data.
    Same for PCA...i checked out the GLPCT & GLPCA tables but in vain.
    Regards & Thanks
    Piyush Kothari.

    Hi,
    Thanks for the reply but COKL is only for Activity Type which contains Allocation Cost Elements.
    I would like to have the Table & Field name for Plan data of Primary Cost Element.
    Piyush

  • Table field name

    Hi
    Good afternoon to all ,
    can any one tell me the table fields name for
    1. bill amount : ?
    2. tds : ?
    3>passed amount : ?
    transaction use is mir7 .
    Regards
    Rakesh kumar singh

    Use transaction ST05 and run an SQL trace when running this transaction.
    It is what I would do if I needed to know this information, instead of coming on here and getting someone else to tell me.

Maybe you are looking for

  • Cannot Delete .trash file of an external hard drive

    I am having issues deleteing a .trash file from my Western Digital external hard drive. I moved 500GB of my photos from that hard drive to a desktop hard drive, they copied to that hard drive and then went to delete the files off my WD. Half way thro

  • 1394 net adapter not working in device manager

    I,m running the KT4 Ultra  with fire wire on board with XP prof. Every thing is working fine except in device manager I have two listings for the 1394 net adapter.The first has the yellow explantion mark, Code ten."this device won't start. And the se

  • Splitting Contents of a Column

    I need to break (split) the content of a column into four individual elements. The content on this column is made up of four (4) parts, each part is separated by an underscore character (_). Each part contains a variable value, so the underscore char

  • Strange card reader behaviour

    Pls help! I have notebook with vista business. In normal situation once I plug my card reader the lamp on it is lit for 5-6 seconds, after the lamp is turned off I can work without problems. but with this vista once i plug my card reader the lamp is

  • Lightroom 5.0 renders SD card unusable till formating is done in camera

    I remove an SD card from the Camera (canon 60d) Load it into my card reader and have it read by lightroom 5.0 and load the pictures into the catalog. I remove the card from lightroom and place it back into the camera. The camera indicates the card is