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

Dynamic internal table err in diff client

vallamuthu_madheswaran2
Active Contributor
0 Likes
546

Hi Friends,

I'm using the below method.

SELECT SINGLE *
           FROM dd03l
           INTO gw_data_ele
          WHERE rollname      =  'FILELEN' AND
                fieldname     =  'FILELEN'.
  IF sy-subrc IS INITIAL.
    MOVE-CORRESPONDING gw_data_ele TO gw_fieldcat.
    APPEND gw_fieldcat TO gt_fieldcat.
    CLEAR gw_fieldcat.
  ENDIF.

  gw_fcat-bukrs = pbukrs.
  gw_fcat-zfieldname = 'FILELEN'.
  gw_fcat-znumsep = 15.
*ZCOMMENT
*ZTAB_STRU
  APPEND gw_fcat TO gt_fcat.


* Create a new Table
  CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
      it_fieldcatalog = gt_fieldcat
    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>.

In the "new_table" given, the fileld lengths are different for two different clients.

For example.

In DEV client, the field length is N(10).

In QA, the field length is N(20).

Thanks in Advance.

Vallamuthu M

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
513

If Dev and QA systems are in same landscape then the repository should be same, if there are no modifications.

3 REPLIES 3
Read only

custodio_deoliveira
Active Contributor
0 Likes
513

Hi Vallamuthu,

I think you should try to read from table DD04L instead, with only ROLLNAME = 'FILELEN'.

Cheers,

Custodio

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
514

If Dev and QA systems are in same landscape then the repository should be same, if there are no modifications.

Read only

Former Member
0 Likes
513

Check the data element  FILELEN( allowed size of file for saving to SAP database) in DEV and QAS.

Usually it should be with Numeric data type with a length of 10. output length also with 10.

If it varies then check with the SAP for solution if it is not, then your coding works fine.

Best regards,

Dhanamjaya