cancel
Showing results for 
Search instead for 
Did you mean: 

APO Purchase reqs

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

hubert_spohn
Active Participant
0 Kudos

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.

Former Member
0 Kudos

Thanks Hubert,

It was helpful.

Regards

Akshay

Answers (1)

Answers (1)

former_member183819
Active Contributor
0 Kudos

Hi Akhsay

I believe ECC system is a master syatem to determine a number ranges for APO system.,

Ironically, In SRM system I, SRM determines the Purchase request number .

very funny. I want your functionality but you want my functionality. aha. have a fun. you have to ask SAP.

Thanks

Muthu