Professional Documents
Culture Documents
Enhanc Cmod PDF
Enhanc Cmod PDF
Applies to:
SAP ABAP developers with basic knowledge of Customer Exits and Basic ABAP syntaxes. For more
information, visit the ABAP homepage.
Summary:
In this article, we will learn how to enhance the standard report CJI3. We will add two fields in CJI3 as an
example.
Aim : To add Vendor No and Vendor Name in report CJI3.
In CJI3 report Vendor name will come for only invoices, when offsetting account type(GKONT) is K, but for
GRN documents system will not show the vendor no, so to get this we need to add two fields Vendor
No(LIFNR) and Name(NAME1) in CJI3 report where report should give Vendor details for GRN documents
also.
Author:
Faheem Ur Rahman
Author Bio
Faheem Ur Rahman, working as Asst.Manager SAP, leading the technical team in Sterling & Wilson Ltd,
Mumbai.
Table of Content
Enhancement Process will include the following steps: ..................................................................................... 3
Step 1: ...................................................................................................................................................... 3
Step 2: ......................................................................................................................................................... 4
Step 3:. ........................................................................................................................................................ 7
Related Content ................................................................................................................................................ 10
Disclaimer and Liability Notice .......................................................................................................................... 11
Step 1:
Go to CMOD and Create a Project.
Click on Components
Double click on include CI_RKPOS. Add the required fields, i.e., LIFNR & NAME1 as shown
below:
Step 2:
Now we need to add the above fields in the field catalog of CJI3.
For that we need to maintain View V_TKALV. Goto SM34, enter V_TKALV and Press Maintain button
Then select these entries and click on Selection dependencies as shown below :
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.
Execute. Now goto change catalog you will find the added columns as shown below.
Related Content
For more information, visit the ABAP homepage.