Skip to Content
0
Jan 20, 2009 at 02:16 PM

BADI / UserExit for FB50

56 Views

Hi frnds,

My requirement is In FB50 tcode after entering Personnel No, Costcenter should come automatically.

For that I am using BADI FAGL_DERIVE_SEGMENT.

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.