Please use a meanginful subject in future
My requirement is In FB50 tcode after entering Personnel No, Costcenter should come automatically.
For that I am using BADI FAGL_DERIVE_SEGMENT and user exit on FI validation side as well:
My code is
DATA: GT_PA0001 type PA0001.
SELECT SINGLE * FROM PA0001 INTO GT_PA0001
WHERE PERNR = I_COBL-PERNR
AND KOSTL NE ''.
I_COBL-KOSTL = GT_PA0001-KOSTL.
But it is not picking cost Center value. In debug I can see the value in I_COBL-KOSTL.
Is thare any alternative option are thare.
Edited by: Matt on Jun 1, 2009 2:48 PM