abap2docx
abap2docx copied to clipboard
ZDEMO_WORD1 compile error
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?
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.
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.
This project is not yet released... It is still a work in progress, your contribution is really appreciated...