F4 PROBLEM IN STANDARD TABLE

In ANLA transparent table, when we press F4 in ANLN1 field it shows limited record but while we press DISPLAY ALL it shows ALL RECORDS.
Can we sell all records when we press F4.
Thanks in advance.
LM

Hi,
Upon pressing F4 on field ANLN1 you see the values that exist in table ANLH (Main asset number), ie this is a check table,.Upon clicking on display all it displays records which exist in the ANLA table and on F4 you see records from the table ANLH. The field ANLN1 can hold only values that exist in table ANLH, as it is the check table of the ANLN1 field of the ANLA table.
For ANLN1 field there will be repeated values in the table ALNA, as ANLN1 is part of a composite primary key in the table.
Hope this solves your issue.
Regards,
Sachin

Similar Messages

  • How do I read this "standard" table in my Function Module?

    I have a remote-enable Function Module (RFC).  I am receiving two tables as part of the parameters.  Table "A" is header information, and Table "B" is detail information.  So for every 1 "A" header record, I may have 1 to many "B" detail records.  I have a field we'll call "vendor_number" that is the common link between the two tables.
    Here's what I want to do:  I want to loop through table "A", and for each record, I want to do a READ on table "B", using the "ref_doc_no" from "A" as my key, to get the position of the first matching record.  I hold onto the value of the table index and then start looping table "B", adding 1 to the saved table index each time to process all of the detail records.
    Here's the problem:  This worked great as an ABAP program.  I had my "B" table declared with "ref_doc_no" as a non-unique key.  But when I ported my code over to the RFC, it told me that the RFC could only deal with standard tables.  I had to remove the "ref_doc_no" key declaration.  So now when I try to activate, I get an error similar to this:
    The declaration for the key field "another_field" is incomplete; however, "another_field" is contained in the key of table "B" and must be filled.
    I don't understand that.  I've not declared any keys for table "B".  I don't understand why it's thinking I need to populate "another_field" (I don't even know what the value would be).  My code to read the table (i.e. the line getting the error) is this:
    Priming read on table (sets the initial sy-tabix index value)
        READ TABLE it_incoming_invoice_line_item "table 'B'
          WITH TABLE KEY ref_doc_no =
                         wa_incoming_invoice_header-ref_doc_no
                    INTO wa_incoming_invoice_line_item.
    Is it possible for me to do some sort of direct read on a table in an RFC?  The only alternative I can think of would be to have to loop through table "B" until I find the first occurrence of a match.  Is that what I need to do?
    Thanks everyone.  Points, as always, awarded for helpful answers.

    Dave,
    1. You can fire SELECTS in an RFC as well, but in your case the data exists in SYSTEM A and the RFC is in System B, so you can't do that. You can fire SELECTS on tables in the same system.
    2. Quick example of two table loops - EKKO (HEADER) EKPO (ITEM).
    LOOP AT EKKO.
    LOOP AT EKPO WHERE EBELN = EKKO-EBELN.
    ENDLOOP.
    ENDLOOP.
    I hope this is clear now.
    Regards,
    Ravi

  • Regarding creation of a standard table

    Hi,
    In my landscape, somebody deleted a standard table in one of my systems. when i am trying to access this table it is throwing an error message stating that table does not exist. check name.
    Now i want to know how to create this standard table and how to get the structure of that table.
    kindly help me regarding this issue.
    thanks & regards,
    eeswar

    Hi
    Well the solution you are thinking for this problem, doesn't seem to be a right way to me. Although recreation is no where possible for standard table, you can carry out transport.
    As the table is standdard one, and deleted you should rather think of restoring your backup. Because even if you transport it from one system to other, the data missing from your active server cannot be recovered and system can become inconsistent.
    So think about it once. Before applying transport.
    Regards
    Rahul

  • Problem in Assigning  table to access sequence

    Dear All,
    i am facing problem in assigning table to access sequence for billing output type.
    I have created 1 table B902 with the combination of Sales org,plant ,Division,Billing doc type.
    but if i am going to assign with access sequence system is taking for Billing type & division & for other its showing red marks & errorr.Access sequence->Aceessess->Field.if i am clicking on field in I/O column for plant its displaying negative.
    bcause of this i am not able to make condtion record.
    Message is Select a document field for WERKS
    Regards
    ajit
    Edited by: SAP SD AJIT on Mar 1, 2010 3:18 PM

    Hi SAP SD AJIT ,
         Go to IMG --> Sales and Distribution --> Basic Functions --> Output control --> Output Determination --> Output Determination using condition technique --> Mantain  output  Determination for billing document --> Mantain condition table,  in the pop-up choose the option "Field catalog: Messages for billing documents", there you can add standard field into the catalog, so you can add WERKS and the other one "document structure" I don't know what field it is, but if it is and standard field you can add it. If you have a Z field you need ABAP help to add the Z field to the structure "KOMKBZ5" and then you can add it to the catalog.
    Regards,
    Mariano.

  • Read a csv file, fill a dynamic table and insert into a standard table

    Hi everybody,
    I have a problem here and I need your help:
    I have to read a csv file and insert the data of it into a standard table.
    1 - On the parameter scrreen I have to indicate the standard table and the csv file.
    2 - I need to create a dynamic table. The same type of the one I choose at parameter screen.
    3 - Then I need to read the csv and put the data into this dynamic table.
    4 - Later I need to insert the data from the dynamic table into the standard table (the one on the parameter screen).
    How do I do this job? Do you have an example? Thanks.

    Here is an example table which shows how to upload a csv file from the frontend to a dynamic internal table.  You can of course modify this to update your database table.
    report zrich_0002.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: it_fldcat type lvc_t_fcat,
          wa_it_fldcat type lvc_s_fcat.
    type-pools : abap.
    data: new_table type ref to data,
          new_line  type ref to data.
    data: xcel type table of alsmex_tabline with header line.
    selection-screen begin of block b1 with frame title text .
    parameters: p_file type  rlgrap-filename default 'c:Test.csv'.
    parameters: p_flds type i.
    selection-screen end of block b1.
    start-of-selection.
    * Add X number of fields to the dynamic itab cataelog
      do p_flds times.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = sy-index.
        wa_it_fldcat-datatype = 'C'.
        wa_it_fldcat-inttype = 'C'.
        wa_it_fldcat-intlen = 10.
        append wa_it_fldcat to it_fldcat .
      enddo.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    * Upload the excel
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = p_file
                i_begin_col             = '1'
                i_begin_row             = '1'
                i_end_col               = '200'
                i_end_row               = '5000'
           tables
                intern                  = xcel
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
    * Reformt to dynamic internal table
      loop at xcel.
        assign component xcel-col of structure <dyn_wa> to <dyn_field>.
        if sy-subrc = 0.
         <dyn_field> = xcel-value.
        endif.
        at end of row.
          append <dyn_wa> to <dyn_table>.
          clear <dyn_wa>.
        endat.
      endloop.
    * Write out data from table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component  sy-index  of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <dyn_field>.
          else.
            write: <dyn_field>.
          endif.
        enddo.
      endloop.
    REgards,
    RIch Heilman

  • Short dumop in J2I5 (provide duplicate entry in Standard table)

    Hello Expert ,
                              We have a problem in  T.Code J2I5  ( Excise Register Extraction) input entry is lelect Excise group 20 . and a date   from 04.08.09 onwards. and select the register RG23D . it shows the run time error  ( Eg The ABAP/4 Open SQL array insert results in duplicate database record ) .  but in the standard Tcode is there possible to provide duplicate entry in Standard table
    Thaks & regards
    Aditya Kr Tripathi

    Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC
    Except.                CX_SY_OPEN_SQL_DB
    Date and Time          29.01.2010 10:57:09
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    problem occurs in this code :
       assign I_RG23D_TAB-I_RG23D_TYP to <x_rg23dtyp> casting.
       <x_extrctdata> = <x_rg23dtyp>.
        class CL_ABAP_CONTAINER_UTILITIES definition load.
        call method CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C
          EXPORTING
            IM_VALUE               = i_rg23d_tab-i_rg23d_typ
          IMPORTING
            EX_CONTAINER           = i_report_tab-extrctdata
          EXCEPTIONS
            ILLEGAL_PARAMETER_TYPE = 1
            others                 = 2.
       I_REPORT_TAB-EXTRCTDATA = I_RG23D_TAB-I_RG23D_TYP.
        COMPUTE I_REPORT_TAB-EXTRCTLNGT = STRLEN( I_REPORT_TAB-EXTRCTDATA ).
        APPEND I_REPORT_TAB.
      ENDLOOP.
      IF M_EXTRACTED = 'X'.
        LOOP AT I_RG23D_KEY.
          DELETE
          FROM  J_2IEXTRCT
          WHERE BUDAT    = I_RG23D_KEY-BUDAT
          AND   SERIALNO = I_RG23D_KEY-SERIALNO
          AND   REGISTER = I_RG23D_KEY-REGISTER
          AND   EXGRP    = I_RG23D_KEY-EXGRP.
        ENDLOOP.
      ENDIF.
    Control table check here for data Extraction
      INSERT J_2IEXTRCT FROM TABLE I_REPORT_TAB.
    If the insertion of the extract table is successfull then the table
    for Extraction is Inserted
      IF SY-SUBRC EQ 0.
        PERFORM FILL_EXTDT USING C_RG23D M_EXTRACTED.
      ENDIF.
    ENDFORM.                                                    " RG23D
    *&      Form  RG23CPART1
    Purpose : RG23C Part I extraction logic
    FORM RG23CPART1.
      DATA: $PART1      TYPE PART1_TYP,
            $LINCNT     LIKE SY-LINCT,
            M_EXTRACTED VALUE '',
            $RC         LIKE SY-SUBRC.
    *********************************************************************************************8

  • I am getting problem with internal table & work area declaration.

    I am working with 'makt' table ..with the table makt i need to work with styles attributes ..so i declared like this
    TYPES : BEGIN OF ty_makt,
             matnr TYPE makt-matnr,
             spras TYPE makt-spras,
             maktx TYPE makt-maktx,
             maktg TYPE makt-maktg,
             celltab TYPE lvc_t_styl,
           END OF ty_makt.
    DATA : i_makt TYPE TABLE OF ty_makt.
    DATA : wa_makt TYPE ty_makt .
        But end of program i need to update dbtable "makt"...i am getting problem with internal table & work area declaration.
    i think makt table fields mapping and internal table/work area mapping is not correct. so please help me to get out from this.

    Hi Nagasankar,
    TYPES : BEGIN OF TY_MATNR,
                  MATNR TYPE MAKT-MATNR,
                  SPRAS TYPE MAKT-SPRAS,
                  MAKTX TYPE MAKT-MAKTX,
                  MAKTX TYPE MAKT-MAKTG,
                  CELLTAB TYPE LVC_T_STYL,  " Its Working perfectly fine..
                 END OF TY_MAKT.
    DATA: IT_MAKT TYPE STANDARD TABLE OF TY_MAKT,
              WA_MAKT TYPE TY_MAKT.
    Its working perfectly fine. if still you are facing any issue post your complete code.
    Thanks,
    Sandeep

  • How can i use BAPI to insert a few records  into standard table

    Can anyone help me with how can i use BAPI to insert some records into a standard table from an internal table?

    Hi,
    First of All try to Explain your Question first.
    This is a general question without mentioning the Table you want to Update.
    Please give the details before posting a question  so it will help people to understand your Problem.
    Regards
    Sandipan

  • Problem passing a table in an RFC wrapper in ECC to a FM in SRM?

    I am creating a wrapper around FM 'TEXT_CONVERT_XLS_TO_SAP' in ECC, because I cant find a FM in SRM to convers an excel file into an itab. I pass an excel sheet from SRM to this wrapper to convert the values into an Itab and pass then back to SRM. The problem is the parameter "i_tab_converted_data = i_converted" from 'TEXT_CONVERT_XLS_TO_SAP' is of type STANDARD TABLE. So when I created the Itab = i_itab_converted_data in my program using a type I declared in my program, I can't use the type to create the exporting parameter in the FM to pass the itab back to SRM.

    >
    DEMVIL wrote:
    > What I was saying was tthe I_TAB_CONVERTED_DATA is of type "STANDARD TABLE" therefore if I create type and create a table of that type, in this case table I_CONVERTED, it works, but can't use the type to create an export parameter.
    >
    > CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    >     EXPORTING
    > *   I_FIELD_SEPERATOR      =
    > *      i_line_header       = 'X'
    >       i_tab_raw_data       = i_raw
    >       i_filename           = l_filename
    >     TABLES
    >       i_tab_converted_data = i_converted
    >  EXCEPTIONS
    >    conversion_failed       = 1
    >    OTHERS                  = 2.
    It should work. how have you defined i_converted? Below is what I have used and it works fine for me.
    TYPES: BEGIN OF ty_datatab,
      matnr          TYPE char18,  "Material Number
      short_text     TYPE char40,  "Short Text
      quantity       TYPE char13,  "Purchase Order Quantity
      unit           TYPE char3,   "Purchase Order Unit of Measure
      delivery_date  TYPE eeind,   "Delivery Date
      ekgrp          TYPE char3,   "Purchasing Group
      stge_loc       TYPE char4,   "Storage Location,
      matl_group     TYPE char9,   "Material Group
      agreement      TYPE char10,  "Agreement Number
      ag_item_num    TYPE char5,   "Agreement Item Number
      vendor_mat_no  TYPE char35,  "Vendor Material Number
      gl_account     TYPE char10,  "G/L Account Number
      costcenter     TYPE char10,  "Cost Center
      fund           TYPE char10,  "Fund
      func_area      TYPE char16,  "Functional Area
      item_txt       TYPE char70,  "Item Text
      created_by     TYPE char12,  "Created By
    END OF ty_datatab.
    it_record TYPE STANDARD TABLE OF ty_datatab INITIAL SIZE 0,
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_tab_raw_data       = it_raw
          i_filename           = p_pfile
        TABLES
          i_tab_converted_data = it_record
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.

  • Problem passing a table in an RFC wrapper?

    I am creating a wrapper around FM 'TEXT_CONVERT_XLS_TO_SAP' in ECC, because I cant find a FM in SRM to convers an excel file into an itab. I pass an excel sheet from SRM to this wrapper to convert the values into an Itab and pass then back to SRM. The problem is the parameter "i_tab_converted_data = i_converted" from 'TEXT_CONVERT_XLS_TO_SAP'  is of type STANDARD TABLE. So when I created the Itab = i_itab_converted_data in my program using a type I declared in my program, I can't use the type to create the exporting parameter in the FM to pass the itab back to SRM.

    Hi,
    Well if thats your requirement, then you will have to copy the FM to a Z FM & then tweak it as per your requirement.
    Thanks,
    Best regards,
    Prashant

  • Adding a field to Standard table through Structure

    Hi everybody,
    I need to add a field to standard table, I am using one append structure in that i am adding my field , But whenever I am activating the structure, I am not able to activate, It is getting as "PARTLY/ACTIVE" status for structure, so please help me in activating the structure.
    ThankZ
    siddivinesh.

    go to the standard table it ll also be partially active
    goto se14
    give the std table name
    adjust and activate...
    if the problem is not solved.......
    see if the field is repeating twice in that Std table.....
    if so delete the repeating fields....

  • Download problem from 'Z' table

    Hi
    I am facing very strange problem ,
    I have created a 'Z' table and now it has 2800 records but when i download from data base it only get the 1627 records
    What might me the problem ???
    Technical Settings  :
    Data class         APPL0   Master data, transparent tables
    Size category      3       Data records expected: 7.700 to 31.000
    then i tried other standard table to download from data base save as local file....which contains 5000 records so it get all the 5000 records
    so in thisw case wat can be done ?
    pls help me on this
    regards
    rajan

    DATA : IT_TAB TYPE STANDARD TABLE OF ZMM_OPENSEZ.
      SELECT * FROM ZMM_OPENSEZ INTO TABLE IT_TAB .
      DATA: LOC_FILENAME TYPE STRING.
      LOC_FILENAME = P_FILE.
    *  CONCATENATE P_FILE '.XLS' INTO LOC_FILENAME.
      CLEAR IT_FIELDNAMES.
      REFRESH IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Client'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Start Date of Period'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Last Date of Period'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Plant'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Project Definition'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Material Number'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Valuation Type'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Valution Type Description'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'SerialNo'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'ITEM GROUP LONG TEXT'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'ANNEXURE NO'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'POST1'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Number of Material Document'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Posting Date in the Document'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Movement Type (Inventory Management)'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Material Description (Short Text)'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Account Number of Vendor or Creditor'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'NAME'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Unit of Entry'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Purchasing Document Number'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Unit Rate'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Opening Proj Qty'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Opening Proj Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Opening CS01 Qty'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Opening CS01 Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'RECEIPT QTY'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'RECEIPT AMT'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'ISSUE QTY'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'ISSUE AMT'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'TRANSFER QTY'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'TRANSFER AMT'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Consumed Return Qty'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Consumed Return Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Contractor Return Qty'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Contractor Return Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'CS01 Consump. Qty'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'CS01 Consump. Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'CS01 Consump.  Ret Qty'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'CS01 Consump. Ret Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Work in Progress Qty'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Work in Progress Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Closing Stock with APL'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Total Closing Stock'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Total Closing Stock Amt'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'FINALUPDATE'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Modified By'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      IT_FIELDNAMES-STRING = 'Modified on'.
      APPEND IT_FIELDNAMES.CLEAR IT_FIELDNAMES.
      FILE_NAME = P_FILE.
      CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
    *     BIN_FILESIZE                    =
           FILENAME                       = FILE_NAME
           FILETYPE                       = 'ASC'
    *     APPEND                          = ' '
         WRITE_FIELD_SEPARATOR            = 'X'
    *     HEADER                          = '00'
    *     TRUNC_TRAILING_BLANKS           = ' '
    *     WRITE_LF                        = 'X'
    *     COL_SELECT                      = ' '
    *     COL_SELECT_MASK                 = ' '
    *     DAT_MODE                         = 'X'
    *     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                      = ' '
    *     WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *     SHOW_TRANSFER_STATUS            = ABAP_TRUE
    *   IMPORTING
    *     FILELENGTH                      =
         TABLES
           DATA_TAB                        = IT_TAB
           FIELDNAMES                      = IT_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 S229(ZMM).
      ELSE.
        MESSAGE S230(ZMM).
      ENDIF.
    it_tab contains 2800 records ..
    Regards

  • One more Standard table filter weird work

    In the same VO described in previous thread: Standard table filter weird work
    I have another filter trouble.
    The attribute is calculated, not bound to entity.
    SQL:to_char(case when ID_BASE_TYPES_MIME is null then substr(THE_VALUE, 0, 100)
                when ID_BASE_TYPES_MIME = 7 then
           dbms_lob.substr(
              regexp_replace(LargeTextData.DATA_TEXT, '<.*?>|&.*;')
              , 100)
                else LargeBinaryData.Filename
           end) as CONTENT_PREVIEW,VO attribute:<ViewAttribute
        Name="ContentPreview"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="255"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="CONTENT_PREVIEW"
        Expression="CONTENT_PREVIEW"
        SQLType="VARCHAR">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="ru.miit.cms.model.view.ContentComplexView.ContentPreview_LABEL"/>
            <DISPLAYWIDTH
              Value="90"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>With logging turned on I apply filter like P or \P\* - anything that contains letter P. ADF table with standard filter shows me no rows.
    I take the executed SQL and parameter value from AdminServer-diagnostic-1.log. It is like:SELECT * FROM ( main query ) QRSLT  WHERE ( ( (CONTENT_PREVIEW LIKE ( :vc_temp_1 || '%') ) ) )
    [SRC_CLASS: oracle.jbo.server.OracleSQLBuilderImpl] [APP: CMS] [SRC_METHOD: bindParamValue]  [850] Binding param "vc_temp_1": %РI execute this query in PL SQL Developer and it shows me 2 records - that is correct.
    While ADF shows me no records, executing the same VO with the same parameters - that is wrong.
    From this SQL query I also created a test VO with vc_temp_1 bind variable = %Р and run it in AppModule Tester. It shows me 2 rows.
    Any ideas?
    JDev 11.1.2.2

    Hello Derio,
    Thanks for your attention. This view object is a part of a composite application with lots of business components, running ~stable on 11.1.2.2. Sherman installed, of cause.
    There are several tables with filters and all of them work fine except this attribute in this VO.
    I believe the filter would work with no problems with such attribute if I create a clean new application, but in my specific case it doesn't.
    The trouble is I don't know where to look for the error source because generated SQL and app module tester seem fine.

  • How to transport standard table entries

    Hi All,
    I want to transport SAP standard tables records from one server to another server in append mode. It is actually required for upgradation purpose.
    Can anybody please guide me in this regards ?
    Thanks in advance!!

    Hi Reddy,
    Thanks for your suggestion! but one problem I don't have the Transport Entries submenu enabled for all the SAP standard tables. Is it table specific ?. Please let me know how to enable this sub menu or is there any other generic method to attach the records of any SAP standard table in a TR.
    Thanks!

  • Correct way to handle updates of XMLtype columns in standard tables.

    Hello to whoever may read this,
    I am currently studying the XML functionality of oracle DB for a uni project.
    We have been asked to compare/contrast solutions to publishing product and price data for data stored in standard relational tables, and data stored in XML type tables. For extra marks, i am looking at a table containing an XMLType column for multiple items of data relating to the primarykey.
    I have managed to get my head around publishing the data - pretty straight forward, but we have also been asked to show how we can update data, which isn't a problem within the standard tables/columns, but when it comes to the XMLType columns/tables, i dont have a clue.
    At the moment i am working on trying to update an XMLtype column. The table itself is a "product" table, and contains product information, as well as an XMLType column containing multiple changes to the prices. In the relational tables, this "product" table has a one-to-many link to another table called price_history which contains details about past prices (which is populated by a trigger on update/insert of a new price). But in this table all the product changes are stored in XML format in the XML type column "prices".
    Table columns: id number(4), name varchar2(25), prices xmltype;
    example data: 1781, CDW 20/48/E, <product_prices><price_change>
    <change_id>1</change_id>
    <date_changed>2009-10-13</date_changed>
    <details>price increased</details>
    <new_value>234</new_value>
    </price_change>
    <price_change>
    <change_id>2</change_id>
    <date_changed>2009-10-13</date_changed>
    <details>price increased</details>
    <new_value>235</new_value>
    </price_change></product_prices>
    We need to give examples of an update. I have been looking around the net, and these forums for a solution now for about 4 hours. My own thoughts are that to update this with a new price change i need to, SELECT the current data INTO a variable, then concatenate that variable with the new price change info e.g.
    <price_change>
    <change_id>3</change_id>
    <date_changed>2009-10-13</date_changed>
    <details>price decreased</details>
    <new_value>230</new_value>
    </price_change>
    then insert that whole chunk of data again to overwrite the old data.
    Now im fairly certain there is some function somewhere which will allow me to do this update/insert operation without going through this process... After i am done with this update of XMLType column data, i need to tackle updating data in an XMLType Table with XQuery(? apparently), so if you have any pointers for that please let me know.
    Could one of you experts point me in the right direction for this? Any advice at this stage is a great help and will stop me losing my mind.
    p.s. im sorry about the lengthy description of the problem/solution required. How to describle something i dont understand? I ask myself.

    Hi,
    You really need to take a look at the XMLDB Developers guide.
    For updating XML with SQL/XML see UPDATEXML and for XQuery see [Using XQuery with Oracle XMLDB|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb_xquery.htm#sthref1673]
    HTH,
    Chris

Maybe you are looking for