09-10-2008 11:37 AM
I want to enhance a SAP ECC6 program - H99CWTR0 (Wage type reporter). I need to add some more master data objects from other HR tables.
I have succesfully applied implicit enhancements to this program to allow my users to select extra data objects and to retrieve the relevant data from the database. However, the program reads a subroutine pool called H99CWTR0_ALV_TEMPLATE and makes dynamic run time changes and generates a temporary subroutine pool. I have also had to apply implicit enhancements to the template but this is not read by H99CWTR0. So I am unable to to keep the shared data segment in line with the driver program H99CWTR0 which leads to an ABAP dump.
I would prefer to make all changes to SAP programs using the enhancement framework rather than having to clone SAP programs into the "Z" namespace.
-
Is there a way of making the "Read report" pick up the implicit enhancement code as well as all the other includes in the template?
09-11-2008 10:38 AM
Hi Smith ,
what kind of ABAP dump u are getting ? , it is bcos of Field catalog ?
regards
Prabhu
09-12-2008 9:05 AM
Hi Prabhu
The dump text said -
"The length of COMMON PART "DRIVER_DATA_EXCHANGE" in program "%_T0DYT0" is different from the corresponding area in the calling program "H99CWTR0".
Length of the COMMON PART in program %_T0DYT0: 1224 bytes
Length of the COMMON PART in program H99CWTR0: 1232 bytes
There is probably an error in the program "H99CWTR0"."
-
My enhancement to H99CWTR0 is being accessed, but the equivalent enhancement to H99CWTR0_ALV_TEMPLATE is not. Hence the discrepancy in the length of common shared data segment.
The ABAP line "read report iv_template into lt_code." in include H99CWTR0_FORMS is not reading the implicit ehancement code I added. So when the ABAP line "generate subroutine pool lt_code name ov_driver message mm line ll" is called to generate the temporary subroutine code my code is lost.
Regards
Phil Smith
09-27-2016 5:34 PM