Closed ivanfemia closed 10 years ago
In addition to the function module also the type draw which is used in method LOAD_WORKSHEET_DRAWING of ZCL_EXCEL_READER_2007 does not exist on a plain NetWeaver ABAP stack.
Hi Let's create a method in COMMON and use it instead of the function. This is a simple function could be easy duplicated into a method. The draw reference can also easy be removed. Rene
(In [[r:338]]) Ready to test #208
common=>split_file does does not work properly for files w/o extension if "." is found in path.
Example: filename = "c:\temp\12.4.2012\init" should result in "c:\temp\12.4.2012" "" "."
but gives "c:\temp\12.4" "2012\init" ".2012\init"
The method is copy of the standard Function module... I will try to extend it in order to support also this case.
Thanks
Stefan method split file is supposed to split file name and extension while evaluating drawings and it is a copy of FM _CV120_SPLITFILE.
If you need to split filename as you proposed I suggest to use standard FM _TRINT_SPLIT_FILE_ANDPATH in the report.
In which case you need to split directory and filename? If your test case is solved please mark this issue as fixed
Hi Ivan, a method named "split_file" should do exactly that. Especially if found the the ...common-class. If it is used soleley for the purpose of splitting filenames for drawings in the zip-structure in the readerclass it should be named differently and moved to the readerclass as protected of private method. Or at least some comments/documentation should be added telling about the restrictions.
Stefan,
as for method description "File & Extension disconnect (clone of FM CV120_SPLIT_FILE)"
It is an utility for separating filename and extension, it have not to be used for directory splitting.
I would prefer to keep it simple and use standard FM for directory splitting replicating the SAP standard behavior.
The Function Module CV120_SPLIT_FILE (used in method load_worksheet_drawing of class ZCL_EXCEL_READER_2007) is not implemented in my system. I think that it is only available on ERP.
My system details:
SAP EHP 2 for SAP NetWeaver 7.0
Components installed:
SAP_BASISÂ Â Â Â Â Â Â Â 702Â Â Â Â Â Â Â Â 0010Â Â Â SAPKB70210Â Â Â SAP Basis Component\ SAP_ABAÂ Â Â Â Â Â Â Â Â Â Â 702Â Â Â Â Â Â Â Â 0010Â Â Â SAPKA70210Â Â Â Cross-Application Component\ PI_BASISÂ Â Â Â Â Â Â Â Â Â Â Â 702Â Â Â Â Â Â Â Â 0010Â Â Â SAPK-70210INPIBASISÂ Â Â Basis Plug-In\ GW_COREÂ Â Â Â Â Â Â Â Â Â 200Â Â Â Â Â Â Â Â 0003Â Â Â SAPK-20003INGWCOREÂ Â Â SAP GW CORE 200\ IW_BEPÂ Â Â Â Â Â Â Â Â Â Â Â Â Â 200Â Â Â Â Â Â Â Â Â 0003Â Â Â SAPK-20003INIWBEPÂ Â Â Backend Event Provider\ SAP_BWÂ Â Â Â Â Â Â Â Â Â Â Â 702Â Â Â Â Â Â Â Â Â 0010Â Â Â SAPKW70210Â Â Â SAP Business Warehouse\ IW_FNDÂ Â Â Â Â Â Â Â Â Â Â Â Â Â 250Â Â Â Â Â Â Â Â Â 0003Â Â Â SAPK-25003INIWFNDÂ Â Â SAP IW FND 250\ SAP_APÂ Â Â Â Â Â Â Â Â Â Â Â Â 700Â Â Â Â Â Â Â Â Â 0026Â Â Â SAPKNA7026Â Â Â SAP Application Platform 7.00 WEBCUIFÂ Â Â Â Â Â Â Â Â Â Â 701Â Â Â Â Â Â Â Â Â 0007Â Â Â SAPK-70107INWEBCUIFÂ Â Â SAP Web UI Framework\ IW_CBSÂ Â Â Â Â Â Â Â Â Â Â Â Â 200Â Â Â Â Â Â Â Â Â Â 0003Â Â Â SAPK-20003INIWCBSÂ Â Â SAP IW CBS 200\ IW_CNTÂ Â Â Â Â Â Â Â Â Â Â Â Â Â 200Â Â Â Â Â Â Â Â Â 0003Â Â Â SAPK-20003INIWCNTÂ Â Â SAP IW CNT 200\ IW_SCSÂ Â Â Â Â Â Â Â Â Â Â Â Â 200Â Â Â Â Â Â Â Â Â Â 0003Â Â Â SAPK-20003INIWSCSÂ Â Â Screen Scraping\ IW_TNGÂ Â Â Â Â Â Â Â Â Â Â Â Â 200Â Â Â Â Â Â Â Â Â Â 0002Â Â Â SAPK-20002INIWTNGÂ Â Â SAP IW TNG 200\ POASBCÂ Â Â Â Â Â Â Â Â Â Â 100_702Â Â Â 0008Â Â Â SAPK0008INPOASBCÂ Â Â POA Shared Business Components 1.0\ SLL-LEGÂ Â Â Â Â Â Â Â Â Â Â Â 900Â Â Â Â Â Â Â Â Â Â 0011Â Â Â SAPK-90011INSAPSLLÂ Â Â SLL-LEG 900 : Add-On Installation