Skip to Content
0
Jun 19, 2012 at 12:01 PM

User Exit in system(ME51N) that until WBS is released, PR should not be created

169 Views

Hi Experts,

I am a functional Consultant.I need to put a User exit in the screen of ME51N (Manual PR) to check that if WBS or Network is not released system should not allow to create PR.

The logic which I have thought of is given below:

{ IF ‘EBAN-KNTTP” = P or Q or N

CHECK Field “PS_POSID” (IF EBAN-KNTTP=Q)

CHECK Field “NPLNR” (IF EBAN-KNTTP=N)

CHECK Field “NPLNR” & “PS_POSID” (IF EBAN-KNTTP=P)

GET “OBJNR” (from “PROJ” or “PRPS” or “AFVC”)

AND CHECK

{IF “ISTAT”= I00002 (from “JCDS”)

ALLOW PR Creation

(The above loop is to be checked if field ‘EBAN-KNTTP’ is either P or Q)

ELSE

“Error Message” “WBS or Project is not Released”

AND

{IF “ISTAT”=I0002 (Check from “JEST”)

ALLOW PR Creation

(The above loop is to be checked if field ‘EBAN-KNTTP’ is N)

ELSE “Error Message” “Network is not Released”

END IF

END IF

END IF

}}}

Please suggest what other things do I need to discuss with our developer or how can I put this logic in the system, if I goes forward?

Please help.

Thanks & Regards

Ankur