05-28-2015 10:31 AM
Hi frds,
Depot to Factory concept
Substitution Rule program name is ZRGGBS000.
I want to change the profit center for particular posting key as 50..
By default system is picking the material master profit center . I want to change the profit center at the time of PGI.
Below my codes.
IF bseg-ebeln IS NOT INITIAL.
SELECT SINGLE bsart INTO v_bsart
FROM ekko
WHERE ebeln = bseg-ebeln .
IF v_bsart EQ 'DF'.
IF bseg-bschl EQ '50' AND bseg-ktosl = 'ZSL'.
bseg-prctr = '4076'.
bseg-gsber = bseg-pargb.
ENDIF.
ENDIF.
Getting error message try to do PGI
05-28-2015 10:39 AM
Hi
You need to insert the leading 0:
bseg-prctr = '0000004076'.
Max
05-28-2015 10:39 AM
Hi
You need to insert the leading 0:
bseg-prctr = '0000004076'.
Max
05-28-2015 10:41 AM