07-13-2012 11:55 AM
Dear Friends ,
My requirement is that I Have to add the vendor code and the vendor name in the
report displayed in CJI3 .
give tcode CJI3
then enter controlling area
then give db profile
give project description in project filed
execute
then an ALV grid is displayed , Here I have to take the vendor code and vendor name of
the Corresponding Purchase order as a filed .
Hope you have got my query.
Regards,
Rihan
07-13-2012 12:18 PM
Hi Rihan,
Enhancement on CJI3 report.
Implement enhancement COOMEP01 (enhancment componment EXIT_SAPLKAEP_001).
You need to extend your CO structure COEP (CI_COBL) or RKPOS (CI_RKPOS) to add vendor field in this structure. Then implement the above enhancement with a simple code to fill the vendor field.
Hope this helps
Check the below given link
Cheers
~Niranjan
07-13-2012 12:18 PM
Hi Rihan,
Enhancement on CJI3 report.
Implement enhancement COOMEP01 (enhancment componment EXIT_SAPLKAEP_001).
You need to extend your CO structure COEP (CI_COBL) or RKPOS (CI_RKPOS) to add vendor field in this structure. Then implement the above enhancement with a simple code to fill the vendor field.
Hope this helps
Check the below given link
Cheers
~Niranjan
07-16-2012 10:25 AM
Dear Mr Niranjan,
I have done your process till to put the code in include ZXKAEPU01
but there after putting the code
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 am getting a syntax error , How can I solve this error please suggest.
filed I_REP_OBJECT is unknown. it is neither in one of the specified tables
nor defined by a "Data" statement.
Please solve my query.
Regards,
Rihan
07-16-2012 10:33 AM
Hi Rihan,
Please check whether project and user exit was activated.
I can see the field I_REP_OBJECT in the import structure of the exit EXIT_SAPLKAEP_001(
ZXKAEPU01). So the field I_REP_OBJECT will be visible inside the incldue also.
Cheers
~Niranjan
07-16-2012 10:47 AM
Dear Niranjan ,
when I am activating the Function module then an error occurs :
endfunction has no open structure .and this is occring becuse
the FM name has become invisible and system is not allowing me to
give the name of FM .
Function EXIT_SAPLKAEP_001 this name has been disabled .
but when I click on edit and sorce code then it is displayed
and when I click on activate then this message occurs :
that fucntion is not opened in include LXKAEPU01.
Pls help .
what to do now ?.
Regard
rihan
07-17-2012 7:55 AM
Dear Mr Niranjan,
as per your code I have not going proceed because customer exit , is not activated ,
EXIT_SAPLKAEP_001 and I am trying to activate then error occurs , no open structure
is for end function .and the name of the FM is disabled in source code , so when
I click on change mode then still i can not write anything it is not in editable mode ,
So before going to include I have to activate the FM,
how can I resolve this error and I can further proceed.
Hope you have got to me .
Please help me.
Rihan
07-17-2012 11:16 AM
Dear Mr Niranjan,
I have done the same procedure as per you suggested and the PDF provided by you.
there is no error occurs , but I? could not get the vendor code and name
even I am not able to go to the break-point, I have applied break point
here,
IF I_REP_OBJECT = 'PD' .
IF CS_RECORD-GKONT IS NOT INITIAL AND CS_RECORD-GKOAR = 'K'.
BREAK-POINT.
CS_RECORD-ZZZLIFNR = CS_RECORD-GKONT.
CS_RECORD-ZZZNAME1 = CS_RECORD-GKONT_KTXT.
ELSEIF CS_RECORD-EBELN IS NOT INITIAL .
SELECT SINGLE LIFNR FROM EKKO INTO CS_RECORD-ZZZLIFNR WHERE EBELN = CS_RECORD-EBELN.
IF SY-SUBRC EQ 0.
SELECT SINGLE NAME1 FROM LFA1 INTO CS_RECORD-ZZZNAME1 WHERE LIFNR = CS_RECORD-ZZZLIFNR.
ENDIF.
ENDIF.
I am not going in debugging mode , Now where I am wrong .
Please help me.
thanks
Rihan
07-18-2012 12:34 PM
dear all,
the problem has been solved , The functional module was not
activated , so once it has been activated I followed the document
provided by Mr Niranjan , and my problem has been solved,
thank a lot .
07-13-2012 5:03 PM