abap2docx icon indicating copy to clipboard operation
abap2docx copied to clipboard

ZDEMO_WORD1 compile error

Open oliviermuff opened this issue 10 years ago • 3 comments

Programme ZDEMO_WORD1 Le type "LV_FILE" n'est pas compatible avec le paramètre formel "CL_EXCEL".

EN: Local data type is not compatible with class parameter

*** Create output lcl_output=>output( lv_file ).

PS: How does one become a contributor here?

oliviermuff avatar Jun 03 '14 16:06 oliviermuff

This is related to your ABAP version... What is your SAP_BASIS version? In the old version you have always to explicit the input parameters.

To contribute just fork the project and submit your changes.

ivanfemia avatar Jun 03 '14 16:06 ivanfemia

SAP_BASIS 702 0015 SAPKB70215 Composante de base SAP

I think it is more related to the code. lv_file is type string and the calling method is looking for CL_EXCEL. I have copied the include ZDEMO_EXCEL_OUTPUTOPT_INCL to ZDEMO_WORD_OUTPUTOPT_INCL and made some modification so that the Create output line now reads:

lcl_output=>output( lo_word ).

and I was able to produce a word file but it seems to be corrupt or incomplete since WORD cannot open it. Was this demo program working at one time? Seems there is still a bit of work to be done.

oliviermuff avatar Jun 03 '14 16:06 oliviermuff

This project is not yet released... It is still a work in progress, your contribution is really appreciated...

ivanfemia avatar Jun 03 '14 18:06 ivanfemia