11.1.11

SAP Note 17615 - Processing status of requisition "N", although orde

Symptom:

An externally created purchase requisition (e.g. from a PM order) has processing status "N" (not processed", although it has already been (partially or completely) converted into a purchase order.
(Transactions in environment: ME52, ME53, IW31, IW32, VA01, VA02).
One further consequence is, for example, that the requisition appears
as still open in MD04.

Cause and prerequisites

When the order is changed (e.g. quantity change for a component), function module ME_REQUISITION_EXT is processed, and this module always (wrongly) sets the processing status to "N".

Solution
See correction numbers in this note.
Advance correction possible as follows:
Function module ME_REQUISITION_EXT in Program LEBNEU01:

*- Setzen Initialwerte ------------
EBAN-BSTYP = 'B'.
EBAN-MANDT = SY-MANDT.
EBAN-ERDAT = SY-DATUM.
EBAN-ERNAM = SY-UNAME.
IF EBAN-STATU IS INITIAL. "<---- new
EBAN-STATU = 'N'.
ENDIF. "<---- new


Existing requisitions can be repaired with the following report

REPORT TKMIST10 .

TABLES: EBAN.
DATA: COUNTER LIKE SY-TABIX.

WRITE: / 'The following requisitions are changed from',
/ 'not processed to processed'.

SELECT * FROM EBAN WHERE BSMNG GT 0
AND BSAKZ EQ SPACE
AND ( STATU EQ 'N' OR STATU EQ 'A' ).
WRITE: / EBAN-BANFN, EBAN-BNFPO, EBAN-ESTKZ.
UPDATE EBAN
SET STATU = 'B'
WHERE BANFN EQ EBAN-BANFN
AND BNFPO EQ EBAN-BNFPO.
ADD 1 TO COUNTER.
ENDSELECT.

WRITE: / 'Summary:', COUNTER, 'requisitions'.

No comments:

Post a Comment