mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-04 18:06:09 +08:00

Added new class/method to wrap obsolete function GUID_CREATE and use replacement class SAP provides. Old function call still found in wrapper class commented out for use in older releases, which don't have the new methods from SAP yet ( 7.01 does not have it for example ) Replaced calls to function by calls to wrapper-method Changed calculation of last date in month in ZDEMO_CALENDAR since it was calling an obsoleted function as well.
53 lines
3.6 KiB
XML
53 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<CLAS CLSNAME="ZCL_EXCEL_OBSOLETE_FUNC_WRAP" VERSION="1" LANGU="E" DESCRIPT="Wrap obsolete functioncalls" CATEGORY="00" EXPOSURE="2" STATE="1" RELEASE="0" CLSCCINCL="X" FIXPT="X" UNICODE="X" CLSBCCAT="00" DURATION_TYPE="0 " RISK_LEVEL="0 " ZSAPLINK_PLUGIN_MAJOR_VERSION="0 " ZSAPLINK_PLUGIN_MINOR_VERSION="1 " ZSAPLINK_PLUGIN_BUILD_VERSION="0 " ZSAPLINK_PLUGIN_INFO1="ZSAPLINK_CLASS is part of the main ZSAPLINK project --> This plugin found there instead of ZSAPLINK_PLUGINS projects" ZSAPLINK_PLUGIN_INFO2="SAPLINK homepage: https://www.assembla.com/spaces/saplink/wiki" ZSAPLINK_PLUGIN_INFO3="Download from https://www.assembla.com/code/saplink/subversion/nodes" ZSAPLINK_PLUGIN_INFO4="and navigate to: trunk -> core -> ZSAPLINK -> CLAS -> ZSAPLINK_CLASS.slnk">
|
|
<localImplementation>*"* use this source file for the definition and implementation of
|
|
*"* local helper classes, interface definitions and type
|
|
*"* declarations</localImplementation>
|
|
<localTypes>*"* use this source file for any type of declarations (class
|
|
*"* definitions, interfaces or type declarations) you need for
|
|
*"* components in the private section</localTypes>
|
|
<localMacros>*"* use this source file for any macro definitions you need
|
|
*"* in the implementation part of the class</localMacros>
|
|
<classDocumentation OBJECT="ZCL_EXCEL_OBSOLETE_FUNC_WRAP">
|
|
<language SPRAS="E">
|
|
<textLine TDFORMAT="U1" TDLINE="&FUNCTIONALITY&"/>
|
|
<textLine TDFORMAT="AS" TDLINE="Some function are becoming flagged as obsolete in later SAP releases."/>
|
|
<textLine TDLINE="This class will wrap all functions that we are using in ABAP2XLSX in a"/>
|
|
<textLine TDLINE="static method where we'll use the newer version that SAP suggests"/>
|
|
<textLine TDFORMAT="/" TDLINE="We'll keep the old function call as a comment in the method - that way"/>
|
|
<textLine TDLINE="anyone installing on an older system may remove the comments to activate"/>
|
|
<textLine TDLINE="the previous coding"/>
|
|
<textLine TDFORMAT="U1" TDLINE="&RELATIONS&"/>
|
|
<textLine TDFORMAT="AS"/>
|
|
<textLine TDFORMAT="U1" TDLINE="&EXAMPLE&"/>
|
|
<textLine TDFORMAT="AS"/>
|
|
<textLine TDFORMAT="U1" TDLINE="&HINTS&"/>
|
|
<textLine TDFORMAT="AS"/>
|
|
<textLine TDFORMAT="U1" TDLINE="&FURTHER_SOURCES_OF_INF&"/>
|
|
<textLine TDFORMAT="AS"/>
|
|
</language>
|
|
</classDocumentation>
|
|
<method CLSNAME="ZCL_EXCEL_OBSOLETE_FUNC_WRAP" CMPNAME="GUID_CREATE" VERSION="1" LANGU="E" DESCRIPT="Wrapper for obsolete function GUID_CREATE" EXPOSURE="2" STATE="1" EDITORDER="1 " DISPID="0 " MTDTYPE="0" MTDDECLTYP="1" BCMTDCAT="00" BCMTDSYN="0">
|
|
<parameter CLSNAME="ZCL_EXCEL_OBSOLETE_FUNC_WRAP" CMPNAME="GUID_CREATE" SCONAME="RV_GUID_16" VERSION="1" LANGU="E" DESCRIPT="GUID in 'CHAR' Format in Uppercase" CMPTYPE="1" MTDTYPE="0" EDITORDER="1 " DISPID="0 " PARDECLTYP="3" PARPASSTYP="0" TYPTYPE="1" TYPE="GUID_16"/>
|
|
<source>METHOD guid_create.
|
|
|
|
TRY.
|
|
rv_guid_16 = cl_system_uuid=>if_system_uuid_static~create_uuid_x16( ).
|
|
CATCH cx_uuid_error.
|
|
ENDTRY.
|
|
|
|
*--------------------------------------------------------------------*
|
|
* If you are on a release that does not yet have the class cl_system_uuid
|
|
* please use the following coding instead which is using the function
|
|
* call that was used before but which has been flagged as obsolete
|
|
* in newer SAP releases
|
|
*--------------------------------------------------------------------*
|
|
*
|
|
* CALL FUNCTION 'GUID_CREATE'
|
|
* IMPORTING
|
|
* ev_guid_16 = rv_guid_16.
|
|
|
|
ENDMETHOD.</source>
|
|
</method>
|
|
</CLAS>
|