Dump regarding  'Error in module RSQL 'in dynamic internal table

Here  is a Dump regarding  'Error in module RSQL of the database interface'.My program runs fine if 100 rows is getting selected from SAP Table.But  for mass selection  program is giving Dump. The program has dynamic selection of  any SAP Table with dynamic selection ranges.I have attached below snippet code for your understanding and analysis.
Looking forward your kind support.
*  Select Data from table using field symbol which points to dynamic table with packet size
  SELECT *
    INTO CORRESPONDING FIELDS OF TABLE <fs_table_tmp>
    FROM (p_table) PACKAGE SIZE p_packet.
    INSERT LINES OF  <fs_table_tmp> INTO TABLE <fs_table> .
    UNASSIGN <fs_table_tmp> .
  ENDSELECT.

Hello Salmali,
Are you checking in the debugger mode?
Error CX_SY_OPEN_SQL_DB comes when there is any pause between select and endselect.
one more thing use INTO in place of APPENDING.
SELECT (i_field_select)
    FROM (p_table)
    into CORRESPONDING FIELDS OF TABLE <fs_table_tmp>
    PACKAGE SIZE p_packet.
    append LINES OF  <fs_table_tmp> INTO TABLE <fs_table> .
    Refresh <fs_table_tmp> .
  ENDSELECT.
Please let me know what is the value of p_packet.
also have you created the table <fs_table_tmp> and <fs_table> of same type . Please check
Thanks,
Gaurav

Similar Messages

  • Error in module RSQL of the database interface.

    Hi Expert,
    I get this error "Error in module RSQL of the database interface." when the below ABAP statement executed,  do you know the root cuase? Thanks.
    ABAP Code:
      data lt_fact type TABLE OF /BIC/FZRT_C002.
      data ls_Fact type /BIC/FZRT_C002.
      *SELECT * INTO table lt_fact FROM /BIC/FZRT_C002 WHERE KEY_ZRT_C0021 in lt_RSDIMID and KEY_ZRT_C0022 in lt_caRSDIMID*.
    Information in ST22.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLZZ_FG" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
         in
        procedure "ZCA_GET_CUBE_STOCK" "(FUNCTION)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        The SQL statement generated from the SAP Open SQL statement violates a
        restriction imposed by the underlying database system of the ABAP
        system.
        Possible error causes:
         o The maximum size of an SQL statement was exceeded.
         o The statement contains too many input variables.
         o The input data requires more space than is available.
         o ...
        You can generally find details in the system log (SM21) and in the
        developer trace of the relevant work process (ST11).
        In the case of an error, current restrictions are frequently displayed
        in the developer trace.
    Best Regards,
    Andrew

    i have the same error but my first select is
    SELECT QMNUM QMTXT QMDAT AUFNR OBJNR QMNAM QMART BTPLN IWERK BEBER INGRP  EQUNR SERIALNR MATNR
            INTO TABLE GT_VIQMEL
            FROM VIQMEL
            WHERE QMNUM IN S_QMNUM .
    please tell me how to solve this error when i run 24000 raw this select dump.
    ASAP
    thanks
    Eman elgammal.

  • Error in module RSQL of the datasource inter face

    Hi All,
    We have installed a fresh BIW server on MSSQL database 2005. We have selected components like as ABAP.JAVA,EP,EP Core ,BI Java. While replicating the datasource using tcode RSA1 from R/3 Retail Server we are getting an error Error in module RSQL of the datasource inter face .
    Details of Support package level-:
    SAP_ABA 700 0016 SAPKA70016 Cross-Application Component
    SAP_BASIS 700 0016 SAPKB70016 SAP Basis Component
    PI_BASIS 2006_1_700 0007 SAPKIPYM07 Basis Plug-In (PI_BASIS) 2006_1_700
    SAP_BW 700 0018 SAPKW70018 SAP NetWeaver BI 7.0
    BI_CONT 703 0008 SAPKIBIIP8 Business Intelligence Content
    Please suggest us the solution.
    Note: we are not getting any dump in st22. we have already checked the note 1162821
    Regards,
    Dushyant

    Check this threads,
    Re: PSA have not data
    Re: Unable to Activate Source System after Upgrade
    That might help
    Regards
    Juan

  • Error in module RSQL of the datasource inter face + RSA1

    Hi All,
    We have installed a fresh BIW server on MSSQL database 2005. We have selected components like as ABAP.JAVA,EP,EP Core ,BI Java. While replicating the datasource  using tcode RSA1 from R/3 Retail Server we are getting an error Error in module RSQL of the datasource inter face .
    Details of Support package level-:
    SAP_ABA     700     0016     SAPKA70016     Cross-Application Component
    SAP_BASIS     700     0016     SAPKB70016     SAP Basis Component
    PI_BASIS     2006_1_700     0007     SAPKIPYM07     Basis Plug-In (PI_BASIS) 2006_1_700
    SAP_BW     700     0018     SAPKW70018     SAP NetWeaver BI 7.0
    BI_CONT     703     0008     SAPKIBIIP8     Business Intelligence Content
    Please suggest us the solution.
    Note: we are not getting any dump in st22. we have already checked the note 1162821
    Regards,
    Dushyant

    Thanks a lot ,we got the solution.
    Regards,
    Dushyant

  • RFC_ERROR_SYSTEM_FAILURE: Error in module RSQL of the database interface

    HI All,
    I am trying to execute an RFC through JCO connection and getting the error "RFC_ERROR_SYSTEM_FAILURE: Error in module RSQL of the database interface".
    While debugging I have found that the actual cause of dump is a SQL command written in this RFC. The SQL command is
    SELECT DISTINCT *
        INTO CORRESPONDING FIELDS OF TABLE lt_calcrule_hol
        FROM itc_calcrule_hol                              
        FOR ALL ENTRIES IN calc_rule
        WHERE rule_id = calc_rule-rule_id
        AND start_date <= sy-datum
        AND end_date >= sy-datum
        AND (lv_ident)
        AND ( (lv_orgs)
        OR location_type = '' ).
    Here the value of lv_ident is ======>>  ident IN ('US','B2'.........................)
    and value of lv_orgs is =========>>  location_type IN ('S1','S2',..............................)
    location_type and ident are columns in table itc_calcrule_hol .
    I have analysed that if I pass around 700 enteries in the lv_ident and lv_ogs then it is working fine.
    But if I have more than 900 enteries in these variables then it dumps.
    Can anybody let me know what is the issue with the query here.And what could be the solution.
    Thanks and Regards,
    Reena

    I'd recommend talking to an experienced basis admin or ABAP developer. First of all it would help to look at the short dump in SAP, to see if that gives any useful information. In case of a generic error like DBIF_RSQL_INVALID_RSQL, the developer trace of the work process (dev_w<n>) should contain further information (to get the number of the work process that handled your RFC call check the system log, which contains the reference along with a comment about the dump). So I'd check those first to see what actually caused the problem.
    Information on maximum SQL statement length can either be retrieved from the database vendor's documentation or alternatively by searching SAP [OSS notes|https://service.sap.com/notes]. For the latter you need a valid user ID for the SAP service market place.

  • ERROR in Module RSQL &include &P9

    Hi Experts,
    I have an issue with Solman 7.1, when accessing the transaction solman_workcenter the Gui displays :
    “ 500 Sap Internal ERROR
    ERROR: Error in module RSQL of the Database interface &INCLUDE &P9 (termination RABAX_STATE).”
    In the ST22 trans. Displays
    Category               ABAP Programming Error
    Runtime Errors         DBIF_RSQL_INVALID_RSQL
    Except.                CX_SY_OPEN_SQL_DB
    ABAP Program CL_POWL_QUERY_ACCESSOR========CP
    Application Component  CA-GTF-SGF-POW
    Date and Time          25.10.2013 12:04:05
    Short text
        Error in module RSQL of the database interface
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_POWL_QUERY_ACCESSOR========CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
         in
        procedure "GET_VISIBLE_QUERIES" "(METHOD)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        The SQL statement generated from the SAP Open SQL statement violates a
        restriction imposed by the underlying database system of the ABAP
    system.
    On the ST11
    Viewing the dev_w# log, I have this:
    A  ABAP Program CL_POWL_QUERY_ACCESSOR========CP        .
    A  Source CL_POWL_QUERY_ACCESSOR========CM003      Line 92.
    A  Error Code DBIF_RSQL_INVALID_RSQL.
    A  Module $Id: //bas/720_REL/src/krn/runt/absapsql.c#18 $ SAP.
    A  Function ab_HandleRsqlErrors Line 702.
    And on the SM21 trans for the system logs I have this
    Details Page 2 Line 26 System Log: Local Analysis of grp-dcs                  1
    Time Type Nr  Clt User         TCode Grp N Text
    12:04:05 DIA 001 400 SOLMAN_ADMIN       AB  0 Run-time error "DBIF_RSQL_INVALID_RSQL" occurred
    Run-time error "DBIF_RSQL_INVALID_RSQL" occurred
    Details
    Recording at local and central time........................ 25.10.2013 12:04:05
    Task...... Process                     User......   Terminal Session TCode Program  Cl Problem cl          Package 11328      Dialog work process No. 001 SOLMAN_ADMIN 10.1.25.       1       SAPMHTTP T  Transaction Problem SABP
    I need help with this error, right now I can´t access to my work center, I appreciate it your help and knowledge about this, I’ve looking on service sap without lucky .
    Regards.

    Hi Roman
    Thanks for your reply,
    There are attached the log files, in the other hand, I’ve trying implementing Sap notes for powl error without no results, the solman is already configured at system preparation, basic configuration, managed system configuration, technical monitoring, and data volume management.
    Here is the sp levels
    SAP_BASIS         702         0009      SAPKB70209      SAP Basis Component
    SAP_ABA            702         0009      SAPKA70209      Cross-Application Component
    CTS_PLUG          200         0001      SAPK-20001INCTSPLUG               SAP CTS Plugin
    PI_BASIS             702         0009      SAPK-70209INPIBASIS   Basis Plug-In
    ST-PI     2008_1_700       0008      SAPKITLRD8       SAP Solution Tools Plug-In
    GW_CORE          200         0000 -         SAP GW CORE 200
    SAP_BS_FND    702         0007      SAPK-70207INSAPBSFND            SAP Business Suite Foundation
    SAP_BW              702         0009      SAPKW70209     SAP Business Warehouse
    SAP_AP               700         0026      SAPKNA7026
    WEBCUIF            701         0006      SAPK-70106INWEBCUIF               SAP Web UI Framework
    BBPCRM              701         0006      SAPKU70106      BBPCRM
    BI_CONT             706         0002      SAPK-70602INBICONT   Business Intelligence Content
    CPRXRPM           500_702               0005      SAPK-50005INCPRXRPM              SAP Portfolio and Project Management 5.0 (ABAP)
    IW_BEP               200         0000           -         Backend Event Provider
    IW_FND              250         0000           -         SAP IW FND 250
    ST           710         0004      SAPKITL704        SAP Solution Manager Tool
    ST-BCO 710         0002      SAPK-71002INSTBCO     ST-BCO 710: Add-On Installation
    SOCO    101         0001      SAPK-10101INSOCO       SAP Solution Composer Server
    ST-A/PI 01Q_700              0001      SAPKITAB7K      Servicetools for other App./Netweaver 04
    ST-ICO  150_700               0031      SAPK-1507VINSTPL
    ST-SER  701_2010_1       0018      SAPKITLOSI        SAP Solution Manager Service Tools
    I checked all parameters for the ICM, ran again the SPRO options, in fact I configured again the technical system for the solman landscape with no successful

  • Error in module RSQL of the database interface! Please Help.

    I am getting the error "Error in module RSQL of the database interface" in my program. Below is the code snippet in which the above error is:
    =================================
    FORM UPLOAD_PA_PB USING NB_LINE ID.
      DATA: TOT_LINES TYPE I.
    IF ID <> 'PA' and ID <> 'PB'.           "UPG060507 - RY
      only PA and PB tables
        CHECK ID CP 'PA*'
           OR ID CP 'PB*'.
        DO NB_LINE TIMES.
          READ DATASET DSN INTO IPREL_DB.
          IF IPREL_DB+0(3) = P_FROM.
            IPREL_DB+0(3) = P_TO.
          ENDIF.
          RP-CHECK-VALID-PAPB IPREL_DB S_BEGDA-LOW S_BEGDA-HIGH.
          IF FLAG = 0. CONTINUE. ENDIF.
          APPEND IPREL_DB.
        ENDDO.
    Begin of change - UPG060507 - RY
        DELETE ADJACENT DUPLICATES FROM IPREL_DB.
    End of change - UPG060507 - RY
        IF TEST = SPACE.
          IF ID = 'PA2010' or ID = 'PA0014' or ID = 'PA0015'.
            PERFORM CLEAR_COST_ASSIGNMENT.                  "PUNM0002
          ENDIF.
          delete previous values
          DELETE FROM (ID) WHERE PERNR IN PERS
                             AND BEGDA <= S_BEGDA-HIGH
                             AND ENDDA => S_BEGDA-LOW.
        WRITE: / SY-DBCNT LEFT-JUSTIFIED, 'entrie(s) deleted from', ID.
          insert the new ones
          INSERT (ID) FROM TABLE IPREL_DB.
          WRITE: / SY-DBCNT LEFT-JUSTIFIED, 'entrie(s) imported in', ID.
          CALL FUNCTION 'DB_COMMIT'.
          SKIP.
        ELSE.
          DESCRIBE TABLE IPREL_DB LINES TOT_LINES.
          WRITE:/ TOT_LINES LEFT-JUSTIFIED, 'Entries Will Be Imported in',ID.
        ENDIF.
        REFRESH IPREL_DB.
    ENDIF.                                          "UPG060507 - RY
    ENDFORM.
    ===============
    Your help will be greatly appreciated and all the answers will be rewarded.
    Thanks.
    Mithun

    Hi Mithun,
    Can you please tell at which line the error is shown.
    Regards,
    Atish

  • Error while creating dynamic internal table.

    Hello Expert,
    While creating a dynamic internal table, it throw an run time error as :
    " LOAD PROGRAM NOT FOUND
      CX_SY_PROGRAM_NOT_FOUND"
    i tried to debug the program, it found this error comes while calling
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    please anyone help me out to resolve this problem.
    what could be the reason of error? and how to avoid it?
    <REMOVED BY MODERATOR>
    thanks in advance.
    ~ shweta.
    Edited by: Alvaro Tejada Galindo on Feb 28, 2008 2:41 PM

    Hi,
    Go through this program.
    Report z_dynamic.
    type-pools : abap.
    field-symbols: <dyn_table> type standard table,
    <dyn_wa>,
    <dyn_field>.
    data: dy_table type ref to data,
    dy_line type ref to data,
    xfc type lvc_s_fcat,
    ifc type lvc_t_fcat.
    selection-screen begin of block b1 with frame.
    parameters: p_table(30) type c default 'T001'.
    selection-screen end of block b1.
    start-of-selection.
    perform get_structure.
    perform create_dynamic_itab.
    perform get_data.
    perform write_out.
    form create_dynamic_itab.
    Create dynamic internal table and assign to FS
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = ifc
    importing
    ep_table = dy_table.
    assign dy_table->* to <dyn_table>.
    Create dynamic work area and assign to FS
    create data dy_line like line of <dyn_table>.
    assign dy_line->* to <dyn_wa>.
    endform.
    Regards,

  • Declare dynamic internal table during runtime error

    Hi Gurus,
    I have encounter a problem here. I would like to have several block of alv list output; for each customer open items details. Thus, i need to create dynamic internal table duirng runtime as i do not know how many customers that should be output before user enter from the selection screen field for customer code.
    I tried to search in the forums and found this website [Runtime Declaration of Internal Table;.
    But when i tried to execute it, i have an error. The field symbols that i passed into the call function REUSE_ALV_BLOCK_LIST_APPEND for parameter t_outtab does not match. May i know how do i go about it?
    Or are there any other solutions to display this kind of reports? I ever think of using hierarchy list alv. But it does not match the requirement. I would like to display the total amount for each customer. Can hierarchy list able to do so? Or it can only display as the grand total at the end of the report? I think it would be best to display as alv block output.
    Your help will be much appreciated. <offer removed by moderator>
    Thanks
    Edited by: Thomas Zloch on Oct 22, 2010 11:23 AM

    the problem comes up, when there are fields in the table which represent numbers with decimals (type p). Best is to reference the field directly what comes from SAP. Replace the LOOP At idetails ... ENDLOOP with:
    LOOP AT idetails INTO xdetails.
        CLEAR xfc.
        xfc-fieldname = xfc-ref_field = xdetails-name .
        xfc-ref_table   = p_table.
    *    xfc-datatype = xdetails-type_kind.
    *    xfc-inttype = xdetails-type_kind.
    *    xfc-intlen = xdetails-length.
    *    xfc-decimals = xdetails-decimals.
        APPEND xfc TO ifc.
      ENDLOOP.

  • Regarding dynamic internal table

    Hi ,
    I have a requirement where in my date is present in an internal table which is created dynamically . now based on some inputs i need to narrow down the records ,presently I'am deleting the records in  a loop which causes performance problem, Please let me know if there is any other way to do this.
    I have also tried declaring another field sybol of the same type that of the dynamic internal table and tried moving all the successful records to this table but these records were getting updated in the initial table also.
    Any pointers to this would be of a great help
    thanks in advance.
    Reagards,
    Chaitanya

    Hi Andrew ,
    Here is my code.
    LOOP AT <int_dyn>
           ASSIGNING <wa_dyn>.
    check for date.
        ASSIGN COMPONENT 'DATAB' OF STRUCTURE <wa_dyn> TO <fs>.
        IF sy-subrc = 0.
          IF <fs> > p_valid. ( selection screen parameter)
            DELETE <int_dyn> FROM <wa_dyn>.
            UNASSIGN <fs>.
          ENDIF.
        ENDIF.
    ENDLOOP.
    Regards,
    Chaitanya

  • Error while creating a dynamic internal table refers to custom field

    Hi all,
    I am getting the exception TYPE_NOT_FOUND when I try to create a dynamic internal table using:-
    DATA: gr_desc TYPE REF TO cl_abap_typedescr.
    gr_desc = cl_abap_typedescr=>describe_by_name( p_field ).
    The field p_field is a Z-field inside a DB table, (e.g. a user added field in MARA). The statement fails at that point and gives a runtime exception. Any suggestions to how I may solve this problem? Or any alternatives for the same? I guess we face this issue for all custom fields..has SAP released a note for this??
    Thanks..

    that's just the wrong method, you should use DESCRIBE_BY_DATA
    gr_desc = cl_abap_typedescr=>describe_by_data( p_field ).
    Note: DESCRIBE_BY_NAME is to be used for referencing a DDIC type by its name. Example:
    gr_desc = cl_abap_typedescr=>describe_by_name( 'MARA-ZZFIELD' ).

  • Dump In Dynamic Internal Table

    REPORT  ZDYNAMIC_INTERNAL_TABLE.
    TYPE-POOLS : abap.
    FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE,
                   <fs_wa>,
                   <fs_field>.
    DATA: it_table TYPE REF TO data,
          it_line  TYPE REF TO data,
          xfc TYPE LVC_S_FCAT,
          ifc TYPE  lvc_t_fcat.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_table(30) TYPE c DEFAULT 'T001'.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      PERFORM get_structure.
      PERFORM create_dynamic_itab.
      PERFORM get_data.
      PERFORM write_out.
    *&      Form  get_structure
          text
    FORM get_structure.
      DATA : idetails TYPE abap_compdescr_tab,
             xdetails TYPE abap_compdescr.
      DATA : ref_table_des TYPE REF TO cl_abap_structdescr.
    Get the structure of the table.
      ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( p_table ).
      idetails[] = ref_table_des->components[].
      LOOP AT idetails INTO xdetails.
        CLEAR xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        APPEND xfc TO ifc.
       WA_XFC-FIELDNAME = P_NAME.
       WA_XFC-DATATYPE = 'C'.
       WA_XFC-INTTYPE = 'C'.
       WA_XFC-INTLEN = P_LEN.
       WA_XFC-DECIMALS = 0.
       APPEND WA_XFC TO IST_IFC.
    ENDLOOP.
    ENDFORM.                    "get_structure
    *&      Form  create_dynamic_itab
          text
    FORM create_dynamic_itab.
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = ifc
        IMPORTING
          ep_table        = it_table.
      ASSIGN it_table->* TO <fs_table>.
    Create dynamic work area and assign to FS
      CREATE DATA it_line LIKE LINE OF <fs_table>.
      ASSIGN it_line->* TO <fs_wa>.
    ENDFORM.                    "create_dynamic_itab
    *&      Form  get_data
          text
    FORM get_data.
    Select Data from table.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE <fs_table>
                 FROM (p_table).
    ENDFORM.                    "get_data
    *&      Form  write_out
          text
    FORM write_out.
    Print data from table.
    *call function 'reuse_alv_grid_display'.
    *pass <fs_table> as internal table to the function **
    BREAK-POINT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            I_CALLBACK_PROGRAM       = SY-REPID
            IT_FIELDCAT              = ifc[]
           IT_SORT                  = IST_SORT_SUBTOTAL[]
           IT_EVENTS                = IST_EVENT[]
           IS_LAYOUT                = WA_LAYOUT
            I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
            I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
            I_SAVE                   = 'X'
          TABLES
            T_OUTTAB                 = <fs_table>.
    ENDFORM.                    "write_out
    It was tried to transfer the internal table "IFC" to the formal parameter
    "IT_FIELDCAT". In doing so, a type conflict occurred between the formal.
    here how can i resolve it.
    thanks ,
    rajan.

    Try like following
    TYPE-POOLS : abap,SLIS.
    FIELD-SYMBOLS: <TABLE> TYPE STANDARD TABLE.
    DATA: it_table TYPE REF TO data,
          it_line  TYPE REF TO data,
          xfc      TYPE LVC_S_FCAT,
          ifc      TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_table(30) TYPE c DEFAULT 'T001'.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
    PERFORM get_structure.
    PERFORM create_dynamic_itab.
    PERFORM get_data.
    PERFORM write_out.
    FORM get_structure.
    DATA : idetails TYPE abap_compdescr_tab,
                xdetails TYPE abap_compdescr.
    DATA : ref_table_des TYPE REF TO cl_abap_structdescr.
    * Get the structure of the table.
      ref_table_des ?= cl_abap_typedescr=>describe_by_name( p_table ).
      idetails[]     = ref_table_des->components[].
      LOOP AT idetails INTO xdetails.
       CLEAR xfc.
       xfc-fieldname = xdetails-name .
       xfc-datatype  = xdetails-type_kind.
       xfc-inttype   = xdetails-type_kind.
       xfc-intlen    = xdetails-length.
       xfc-decimals  = xdetails-decimals.
       APPEND xfc TO ifc.
      ENDLOOP.
    ENDFORM. "get_structure
    FORM create_dynamic_itab.
    * Create dynamic internal table and assign to FS
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = ifc
        IMPORTING
          ep_table = it_table.
    ASSIGN it_table->* TO <TABLE>.
    * Create dynamic work area and assign to FS
    * CREATE DATA it_line LIKE LINE OF .
    * ASSIGN it_line->* TO .
    ENDFORM. "create_dynamic_itab
    FORM get_data.
    * Select Data from table.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE <TABLE> FROM (p_table).
    ENDFORM.
    "get_data
    FORM write_out.
    *REPLACE FM REUSE_ALV_GRID_DISPLAY WITH REUSE_ALV_GRID_DISPLAY_LVC
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
       EXPORTING
         I_CALLBACK_PROGRAM = SY-REPID
         IT_FIELDCAT_LVC        = ifc[]
         I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
         I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
         I_SAVE = 'X'
      TABLES
         T_OUTTAB = <TABLE>.
    ENDFORM.

  • How to delete data from dynamic internal table

    Hi,
    I have dynamic internal table and I have some slection screen fields , using these selection screen fields
    (select -options), I have to filter the data? assigning will work with READ , but I have select options not the parametre,
    and also delete will not work for dynamic table..
    as we cannot use assigning with delete..
    So how to do this?
    and one more thing is , I cannot filter the data while selection( in select, I cannot filter the data-> as it's not coming directly from table, it's coming from buffer),
    so now after selection of data, I need to filter the data from dynamic table.
    Is there any way to do this?
    Regards,
    Mrunal

    Hi matt,
    I tried with below code as  you said. But I am getting dump. can you help?
    here is my piece of code.
    FIELD-SYMBOLS: <LS_DATA> type any,
                               <LT_DATA> TYPE table,
                                <L_FIELD> type any.
        ASSIGN <l_buffer_entry>-dataptr->* TO <LS_DATA>.
        ASSIGN <l_buffer_entry>-dataptr->* TO <LT_DATA>.
    LOOP AT <LT_DATA> ASSIGNING <LS_DATA>.
    ASSIGN COMPONENT 'BUKRS' OF STRUCTURE <LS_DATA> TO <L_FIELD>.
    IF <L_FIELD> NOT IN SO_BUKRS.
    DELETE <LT_DATA>.
    ENDIF.
    UNASSIGN <L_FIELD>.
    ASSIGN COMPONENT 'BELNR' OF STRUCTURE <LS_DATA> TO <L_FIELD>.
    IF <L_FIELD> NOT IN SO_BELNR.
    DELETE <LT_DATA>.
    ENDIF.
    UNASSIGN <L_FIELD>.
    ENDLOOP.
    and here is the description of my dump:->>>
    You attempted to access an unassigned field symbol
    (data segment 32772).
    This error may occur for any of the following reasons:
    - You address a typed field symbol before it is set using ASSIGN
    - You address a field symbol that points to a line in an internal table
      that has been deleted
    - You address a field symbol that had previously been reset using
      UNASSIGN, or that pointed to a local field that no longer exists
    - You address a global function interface parameter, even
      though the relevant function module is not active,
      that is it is not in the list of active calls. You can get the list
      of active calls from the this short dump.

  • Defining Dynamic Internal Table

    Hi everybody,
    I would like to create a dynamic internal table without knowing its structure. I have stored the DDIC field elements that have to be used in a customizing table. I would like to create the internal table depending on the field elements order. The goal is to be able to pass this internal table to an Adobe Forms.
    For example, in some cases I might have to print fieldu2019s content 1, 2, 3, and 4 but in other cases I might have to print fields 3, 1, 4 and 2. I do not know in which order the fields have to be printed.
    I am struggling with the techniques I should use to create my internal table. I do not know if I should use Field Symbols or else.
    Could you provide any coding examples?
    Thanks in advance for your help.
    Best regards,
    Sylvain

    Hi Sylvain
    I have the same requirement to pass the internal table with varying number of columns in the adobe form and the same should be display in the form.,
    i have passed the dynamic internal table from the abap code to the adobe interface and checked teh same value are passed.
    Tried the below solution:
    1)Defined the field symbol of the type Standard table(beacuse the structure for table is not fixed) in the adobe Interface.
    2)Assign the values of the internal table into the field symbol by:
       READ TABLE im_t_output INTO ls_output INDEX 1.
      ASSIGN ls_output-ZALVTAB->* TO <GT_T_OUTPUT>.
    Already checked , the values are coming into the <GT_T_OUTPUT> field symbols.
    3) Drag the field symbol <GT_T_OUTPUT> from the adobe interface to the data context of the form.
    when i am running the program its giving dump with the following error.
    "You attempted to move one data object to another.
      This is not possible here because the conversion of a data object
      of type "h" to type "g" is not supported."
    I think that is beacuse in the form it ia taking the field symbol as the text value not the internal table .
    As you have already solved the problem to pass the internal table of varying number of columns in the adobe for.
    Request you to provide me the code or some guidelines so that i can achieve the same and also request to share hoe you have read the values of the internal table in the adobe form through the adove form language.
    Thanks in advance.
    Regards,
    Sourabh Makhija

  • How to do parallel processing with dynamic internal table

    Hi All,
    I need to implement parallel processing that involves dynamically created internal tables. I tried doing so using RFC function modules (using starting new task and other such methods) but didn't get success this requires RFC enabled function modules and at the same time RFC enabled function modules do not allow generic data type (STANDARD TABLE) which is needed for passing dynamic internal tables. My exact requirement is as follows:
    1. I've large chunk of data in two internal tables, one of them is formed dynamically and hence it's structure is not known at the time of coding.
    2. This data has to be processed together to generate another internal table, whose structure is pre-defined. But this data processing is taking very long time as the number of records are close to a million.
    3. I need to divide the dynamic internal table into (say) 1000 records each and pass to a function module and submit it to run in another task. Many such tasks will be executed in parallel.
    4. The function module running in parallel can insert the processed data into a database table and the main program can access it from there.
    Unfortunately, due to the limitation of not allowing generic data types in RFC, I'm unable to do this. Does anyone has any idea how to implement parallel processing using dynamic internal tables in these type of conditions.
    Any help will be highly appreciated.
    Thanks and regards,
    Ashin

    try the below code...
      DATA: w_subrc TYPE sy-subrc.
      DATA: w_infty(5) TYPE  c.
      data: w_string type string.
      FIELD-SYMBOLS: <f1> TYPE table.
      FIELD-SYMBOLS: <f1_wa> TYPE ANY.
      DATA: ref_tab TYPE REF TO data.
      CONCATENATE 'P' infty INTO w_infty.
      CREATE DATA ref_tab TYPE STANDARD TABLE OF (w_infty).
      ASSIGN ref_tab->* TO <f1>.
    * Create dynamic work area
      CREATE DATA ref_tab TYPE (w_infty).
      ASSIGN ref_tab->* TO <f1_wa>.
      IF begda IS INITIAL.
        begda = '18000101'.
      ENDIF.
      IF endda IS INITIAL.
        endda = '99991231'.
      ENDIF.
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = pernr
          infty           = infty
          begda           = '18000101'
          endda           = '99991231'
        IMPORTING
          subrc           = w_subrc
        TABLES
          infty_tab       = <f1>
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        subrc = w_subrc.
      ELSE.
      ENDIF.

Maybe you are looking for

  • SRM BI Content Installation

    Hi Experts, I need data flow of Objects from SRM(R/3) to BI SRM data target. If any body involved in this. Please share the SRM BI Content Installation procedure apart from help.sap.com. Advance Thanks, BBC

  • 1560 series prints only error message?

    Wireless printing was working fine, then all of a sudden, if I attempt to print the printer prints a page with the following: PCL XL Error Subsystem: KERNEL Error: IllegalTag File Name: Kernel.c Line Number: 1921 The "Error" line is not always the sa

  • Using Weblogic MDB to consume message using a XA transaction with third party JMS Provider

              I understood from the WebLogic documentation that we can invoke a third party JMS           using its XA interface from within a MDB where transaction-type is Container and           trans-attribute is Required. Also we will need to specify

  • CS6 is crashing in the middle of editing

    My new CS6 has never crashed on me before and now its crashing frequently.  Ive noticed after I installed the noiseware professional plugin its been crashing on me.  Please help!

  • Accessing Disabled Accounts via ssh

    We have user accounts on our OS X Tiger Server where the user has installed a public key into their ~/.ssh/authorized_keys file. The problem: If I uncheck "access account" in Workgroup Manager for one of those users, they can still login to the serve