Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

change in CJI3 (account standard report)project actual cost line item

former_member226520
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/400fbf3d-4be0-2d10-2d85-bbaf27f72...

Cheers

~Niranjan

8 REPLIES 8

Former Member
0 Kudos

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

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/400fbf3d-4be0-2d10-2d85-bbaf27f72...

Cheers

~Niranjan

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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 .

Former Member
0 Kudos

Are you looking at modifying the standard transaction or use the report in a custom wrapper. I would recommend the latter. To do this you need to call program RKPEP003 using submit. Then use the below document to get the list into your internal table.

Regards,

Shravan