Adding Explicit Enhancement to custom program
here i have develop explicit Enhancement repalce code as per the requirments here previou code not goging to execute your code get executed at time one active enhacments can we run enhacment
*-----------------------------------------------------------------------
* Report Zdev *
* *
*----------------------------------------------------------------------*
* *
* Author.............. : rohini kumar *
* Creation Date....... : *
* Requested by........ : *
* Reference document.. : *
* Project............. : *
* Description......... : *
*----------------------------------------------------------------------*
* Modification History : *
* *
* Author Date Correction # Purpose/Reason *
* -------- -------- ------------ --------------------------------*
* *
* -------- -------- ------------ --------------------------------*
REPORT zdev.
TABLES : vbak, vbap.
DATA : it_vbak TYPE STANDARD TABLE OF vbak INITIAL SIZE 0,
wa_vbak TYPE vbak,
it_vbap TYPE STANDARD TABLE OF vbap INITIAL SIZE 0,
wa_vbap TYPE vbap.
INITIALIZATION.
REFRESH : it_vbak,
it_vbap.
CLEAR : wa_vbak,
wa_vbap.
START-OF-SELECTION.
ENHANCEMENT-SECTION ZMM_ENHANCMENTS SPOTS ZMM_IMPLEMNETS_SPOT .
SELECT *
FROM vbap
INTO TABLE it_vbap[]
UP TO 15 ROWS.
WRITE: /02 'Sales Document',
20 'Date',
40 'Time',
65 'Name of Person'.
ULINE .
IF it_vbap[] IS NOT INITIAL.
LOOP AT it_vbap INTO wa_vbap.
WRITE: /02 wa_vbap-vbeln,
20 wa_vbap-posnr,
40 wa_vbap-matnr,
65 wa_vbap-matwa.
ENDLOOP.
ENDIF.
END-ENHANCEMENT-SECTION.
*$*$-Start: ZMM_ENHANCMENTS---------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZMM_ENHANCMENTS. "active version
SELECT *
FROM VBAP
INTO TABLE IT_VBAP[]
UP TO 5 ROWS.
WRITE: /02 'Sales Document',
20 'Date',
40 'Time',
65 'Name of Person'.
ULINE .
IF IT_VBAP[] IS NOT INITIAL.
LOOP AT IT_VBAP INTO WA_VBAP.
WRITE: /02 WA_VBAP-VBELN,
20 WA_VBAP-POSNR,
40 WA_VBAP-MATNR,
65 WA_VBAP-MATWA.
ENDLOOP.
ENDIF.
ENDENHANCEMENT.
*$*$-End: ZMM_ENHANCMENTS---------------------------------------------------------------------$*$*
*-----------------------------------------------------------------------
* Report Zdev *
* *
*----------------------------------------------------------------------*
* *
* Author.............. : rohini kumar *
* Creation Date....... : *
* Requested by........ : *
* Reference document.. : *
* Project............. : *
* Description......... : *
*----------------------------------------------------------------------*
* Modification History : *
* *
* Author Date Correction # Purpose/Reason *
* -------- -------- ------------ --------------------------------*
* *
* -------- -------- ------------ --------------------------------*
REPORT zdev.
TABLES : vbak, vbap.
DATA : it_vbak TYPE STANDARD TABLE OF vbak INITIAL SIZE 0,
wa_vbak TYPE vbak,
it_vbap TYPE STANDARD TABLE OF vbap INITIAL SIZE 0,
wa_vbap TYPE vbap.
INITIALIZATION.
REFRESH : it_vbak,
it_vbap.
CLEAR : wa_vbak,
wa_vbap.
START-OF-SELECTION.
ENHANCEMENT-SECTION ZMM_ENHANCMENTS SPOTS ZMM_IMPLEMNETS_SPOT .
SELECT *
FROM vbap
INTO TABLE it_vbap[]
UP TO 15 ROWS.
WRITE: /02 'Sales Document',
20 'Date',
40 'Time',
65 'Name of Person'.
ULINE .
IF it_vbap[] IS NOT INITIAL.
LOOP AT it_vbap INTO wa_vbap.
WRITE: /02 wa_vbap-vbeln,
20 wa_vbap-posnr,
40 wa_vbap-matnr,
65 wa_vbap-matwa.
ENDLOOP.
ENDIF.
END-ENHANCEMENT-SECTION.
*$*$-Start: ZMM_ENHANCMENTS---------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZMM_ENHANCMENTS. "active version
SELECT *
FROM VBAP
INTO TABLE IT_VBAP[]
UP TO 5 ROWS.
WRITE: /02 'Sales Document',
20 'Date',
40 'Time',
65 'Name of Person'.
ULINE .
IF IT_VBAP[] IS NOT INITIAL.
LOOP AT IT_VBAP INTO WA_VBAP.
WRITE: /02 WA_VBAP-VBELN,
20 WA_VBAP-POSNR,
40 WA_VBAP-MATNR,
65 WA_VBAP-MATWA.
ENDLOOP.
ENDIF.
ENDENHANCEMENT.
*$*$-End: ZMM_ENHANCMENTS---------------------------------------------------------------------$*$*
Comments
Post a Comment