Application Development 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: 

problem with this FM MS_EXCEL_OLE_STANDARD_DAT when doing the upgrade

Former Member
0 Kudos

hi

i have this code that i m upgrading in from 4.5b to ECC6



CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
         EXPORTING
              FILE_NAME                 = P_FILE
              CREATE_PIVOT              = '0'
              DATA_SHEET_NAME           = 'Export'
              PIVOT_SHEET_NAME          = 'Export'
         TABLES
              DATA_TAB                  = T_EXCEL_DATA
              FIELDNAMES                = T_EXCEL_FIELDNAME

The T_EXCEL_FIELDNAME is of type


DATA: BEGIN OF T_EXCEL_FIELD OCCURS 0,
         TEXT(30),
      END OF T_EXCEL_FIELD. 

And the T_EXCEL_DATA is an internal table of type field as example shown below


        LANDX        LIKE T005T-LANDX,
        NAME1        LIKE KNA1-NAME1, 
        STREET       LIKE ADRC-STREET,
        GMAXW        LIKE EMBK-GMAXW,  
        WAERS        LIKE EMBK-WAERS, 
        GMAXQ        LIKE EMBK-GMAXQ,  
        MEINS        LIKE EMBK-MEINS,  
        GEART        LIKE VBEX-GEART,  
        KUNNR        LIKE VBPA-KUNNR,

I know the dump is because in the FM it is trying to put a test in a field curr or qty.

can anyone advise how it can be corrected. Is there another way instead of redefining all the field T_EXCEL_DATA to character???

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

When did you get the ABAP dump?

Try search OSS note.

Cheers.

...Reward if useful.

3 REPLIES 3

Former Member
0 Kudos

Hi,

When did you get the ABAP dump?

Try search OSS note.

Cheers.

...Reward if useful.

0 Kudos

i'm executing the program that have been taken from 4.5B transfer to ECC6

0 Kudos

Hi

Is this problem is solve by someone ?

Even i am facing the same problem.