Adding Fields to CJI3 Report

...Previous

Step 3.

Add required code in “EXIT_SAPLKAEP_001”.

*&---------------------------------------------------------------------*
*&  Include           ZXKAEPU01
*&---------------------------------------------------------------------*
IF I_REP_OBJECT = 'PD'.

  
IF CS_RECORD-GKONT IS NOT INITIAL AND CS_RECORD-GKOAR = 'K'.

    CS_RECORD-ZZLIFNR = CS_RECORD-GKONT.
    CS_RECORD-ZZNAME1 = CS_RECORD-GKONT_KTXT.

  
ELSEIF CS_RECORD-EBELN IS NOT INITIAL.

    
SELECT SINGLE LIFNR FROM EKKO INTO CS_RECORD-ZZLIFNR
                                  
WHERE EBELN = CS_RECORD-EBELN.

    
IF SY-SUBRC = 0.

      
SELECT SINGLE NAME1 INTO CS_RECORD-ZZNAME1 FROM LFA1
                          
WHERE LIFNR = CS_RECORD-ZZLIFNR.

    
ENDIF.

  
ENDIF.

ENDIF.

I_REP_OBJECT specifies which report you are using, so as to avoid unnecessary selection we need to keep the required value only. For CJI3 report the value for I_REP_OBJECT is ‘PD’.

And activate the enhancement as shown below.

Now we will check CJI3 Report.

Execute. Now go to change catalog you will find the added columns as shown below.

Now the O/P will be as shown below:

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image