Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

create_dynamic_table - error "Load program not found"

Former Member
0 Likes
610

Hi experts,

i have receive error "Load program not found" at CALL METHOD cl_alv_table_create=>create_dynamic_table

Runtime Error          LOAD_PROGRAM_NOT_FOUND 
Exception              CX_SY_PROGRAM_NOT_FOUND

Error analysis                                                                                
An exception occurred. This exception is dealt with in more detail below      
. The exception, which is assigned to the class 'CX_SY_PROGRAM_NOT_FOUND', was
 neither                                                                      
caught nor passed along using a RAISING clause, in the procedure              
 "FB_TABLE_CREATE_STRING" "(FORM)"                                            
.                                                                             
Since the caller of the procedure could not have expected this exception      
 to occur, the running program was terminated.                                
The reason for the exception is:                                              
On account of a branch in the program                                         
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)                              
or a transaction call, another ABAP/4 program                                 
is to be loaded, namely " ".                                                                                
However, program " " does not exist in the library.                           

I'm stuck in this annoying problem,,,can anyone help me?

3 REPLIES 3
Read only

Former Member
0 Likes
519

Hello

Before call this method you need to create and fill the field catalogue:

1. manually

2. using FM LVC_FIELDCATALOG_MERGE

Also check this:

Read only

0 Likes
519

Hi Maroz,

I know this is not best practise to post my question in some others, but i have posted it separately earlier

I have created a dynamic ITAB from 1 Row of Excel Sheet

LOOP AT ist_excel INTO w_excel WHERE row = 2. " Contains the Values provided in 2nd row of Excel
    APPEND w_excel TO row1.
  ENDLOOP.
  LOOP AT ist_excel INTO w_excel WHERE row = 3. " Contains the Values provided in 3rd row of Excel
    APPEND w_excel TO row2.
  ENDLOOP.
  LOOP AT ist_excel INTO w_excel WHERE row = 4." Contains the Values provided in 4th row of Excel Etc
    APPEND w_excel TO row3.
  ENDLOOP.

  LOOP AT row1 INTO w_excel.
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = w_excel-value .
    wa_it_fldcat-datatype = 'C'.
    wa_it_fldcat-inttype = wa_details-type_kind.
    wa_it_fldcat-intlen = 40.
*  wa_it_fldcat-decimals = wa_details-decimals.
    APPEND wa_it_fldcat TO it_fldcat .
  ENDLOOP.

* 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>.

I followed the Link provided by to create a Dynamic ITAB
Please guide me how to pass these Value from excel to Dynamic Internal Table

Warm Regards

Ramchander

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
519

Hi,

Refer the below code snippet:-


DATA: v_ref_table    TYPE REF TO data,  "To create the DYN TAB
      v_ref_new_line TYPE REF TO data.  "To Create the Dyn Workarea.

DATA: it_fld_cat  TYPE  lvc_t_fcat.          " Field Catalog for Dyn Tab
DATA: WA_FLDCAT   TYPE  lvc_s_fcat.

FIELD-SYMBOLS: <fs_itab> TYPE STANDARD TABLE,
               <fs_wa>   TYPE ANY.

"Populate the field catalog details as:
  WA_FLDCAT-col_pos   = <col_pos>.
  WA_FLDCAT-fieldname = <fieldname>.
  WA_FLDCAT-datatype  = <datatype>.
  WA_FLDCAT-inttype   = 'C'.
  WA_FLDCAT-intlen    = '50'.
  APPEND WA_FLDCAT TO it_fld_cat.

*--Create dynamic internal table and assign to FS
  CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
      it_fieldcatalog = it_fld_cat
    IMPORTING
      ep_table        = v_ref_table.

*--Create dynamic work area and assign to FS
  ASSIGN v_ref_table->* TO <fs_itab>.

*--Create dynamic work area and assign to FS
  CREATE DATA v_ref_new_line LIKE LINE OF <fs_itab>.
  ASSIGN v_ref_new_line->* TO <fs_wa>.

Hope this helps you.

Regards,

Tarun