Adding an extra field in the transaction KSB1 (Cost Centers: Actual Line items)

By Shailaja Reddy, YASH Technologies

Initially create the structure CI_RKPOS and include the fields which are required to be displayed in Actual cost Line Items for Cost Center report. 

Use the user exit COOMEP01 (CO-OM: Information system -> line item reports)

Function module EXIT_SAPLKAEP_001 for updating the added fields . 

Here I have added the material group field . 

*------------structure for material group --------------------------*
DATA : BEGIN OF S_MARA,
MATKL LIKE MARA-MATKL,
END OF S_MARA.
*-------structure for afpo(forgetting matnr from pro order)--------*
DATA : S_AUFK LIKE AFPO.

SELECT SINGLE *
FROM AFPO
INTO S_AUFK
WHERE AUFNR = CS_RECORD-PRTAU. "fetching the record from afpo

IF SY-SUBRC = 0.

SELECT SINGLE MATKL
FROM MARA
INTO S_MARA
WHERE MATNR = S_AUFK-MATNR. "fetching the record for material group

*----------updating the export parameter --------------*
CS_RECORD-MATKL = S_MARA-MATKL. 

After getting the required values update the structure CS_RECORD where the included fields of CI_RKPOS are visible. 

Now run the TCode KSB1, where the updated fields are displayed. 


 

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