26.2.11

SAP Note 23735 - WBS proposal from header, no profit center

Symptom:

If a WBS element is entered in the order header in account assignment, this is taken into account during the account assignment of items entered afterwards. However, the profit center is not extended. The profit center is only updated if you "access" the WBS number in the individual items.

Cause and prerequisites

Missing proposal

Solution
The following advance correction can be made as of 2.2B:
Program fv45pfap, form vbap_fuellen:

...
* Bedarfsdaten ermitteln
PERFORM VBAP_FUELLEN_T459K.
* Daten aus der Hauptposition, auch Kontierung
PERFORM VBAP_FUELLEN_HVBAP.

>>>> Begin of correction, insert the following lines:
* Bei Projektkontierung wird das Profitcenter aus dem PSP vorgeschlagen
if vbap-kzvbr = kzvbr_p and
not vbap-ps_psp_pnr is initial.

call function 'CJPN_PROJECT_ACCOUNT'
exporting
int_num = vbap-ps_psp_pnr
importing
e_prctr = vbap-prctr
exceptions
others = 1.
endif.
>>>> not changed: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

* Bei Bedarfserfassung kommt die Mengeneinheit aus MT61D(MAEPV),
* weil MAAPV nicht genutzt wird.
PERFORM VBAP-UMZIZ_ERMITTELN.
PERFORM VBAP-UMVKZ_ERMITTELN.
...
...

No comments:

Post a Comment