on 02-27-2010 6:45 PM
Hi Everyone,
The MRP group in ECC is configured to pick a custom document type. when purchase reqs are created in ECC the document type is picked according to the MRP group, but when planning is done in APO and purchase reqs are created in APO, the custom document type is not picked, insted it shows the document type 'NB'. Is this a standard functionality and is there any way to make the purchase reqs in APO pick the document type assigned to the MRP group. I would greatly appreciate if you could provide some info on this. Thanks
Regards
Akshay
Hi,
in standard the document type given to PREQs is defined in the ECC customizing as default document type for transaction ME51where you only can differentiate between standard and subcontracting.
If you want to have it as in R/3 and select the PREQ document type by the MRP group you have to use user exit CIFPUR02 exit EXIT_SAPLMEPI_007.
Regards.
Hubert
*--- process PREQs
IF pi_pr = 'X'.
READ TABLE t_marc INTO s_marc
WITH KEY matnr = pi_matnr werks = pi_werks.
IF sy-subrc <> 0.
SELECT SINGLE * FROM marc INTO s_marc
WHERE werks = pi_werks
AND matnr = pi_matnr.
APPEND s_marc TO t_marc.
ENDIF.
CLEAR cp_bsart.
*--- if there is a MRP group, try this first
IF NOT s_marc-disgr IS INITIAL.
SELECT SINGLE * FROM t438m INTO s_t438m
WHERE werks = s_marc-werks
AND mtart = s_marc-disgr.
IF NOT pi_sto IS INITIAL.
cp_bsart = s_t438m-bartu.
ENDIF.
IF NOT pi_normal IS INITIAL.
cp_bsart = s_t438m-bsart.
ENDIF.
IF pi_normal IS INITIAL
AND pi_sto IS INITIAL.
cp_bsart = s_t438m-bartl.
ENDIF.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.