cancel
Showing results for 
Search instead for 
Did you mean: 

From CO01 to purchase requisition

0 Kudos

Hello,

A Purchase Requisition is created automatically within the Tx CO01 while creating production order. I found the fm where bot documents are created, CO_ZV_ORDER_POST. I want to modify this fm in order to change the storage location in created purchase Requisition. Any suggestions for a suitable BADI, user Exit or enhancement spot?

Thanks in Advance,

Ali

Accepted Solutions (0)

Answers (5)

Answers (5)

raymond_giuseppi
Active Contributor

IMHO CO_ZV_ORDER_POST is executed too late.

Could you set a break-point at start of FM CO_ZF_FILL_EBAN_FROM_RESBD (at the end of this FM, EXIT_SAPLCOZF_002 of Enhancement COZF0002 should be called).

0 Kudos

Dear All,

As I said an enhancement in CO_ZV_ORDER_POST solved my problem. And grayed-out warehouse was caused by changing the Customizing. So my problem is solved.

Thanks

0 Kudos

I implemented the enhancement Point in fm CO_ZV_ORDER_POST. In order to update the PR I used BAPI_PR_CHANGE. Now I faced another Problem; the warehouse does not get updated and message ME664 is issued. The warehouse field is grayed out also in ME52/ME52N.

pataselano
Active Contributor
0 Kudos

For ME52N, you can use BAdI ME_PROCESS_REQ_CUST.

pataselano
Active Contributor
0 Kudos

You can use enhancement COZF0002 for change storage location in created PR.

0 Kudos

Hi Andy,

Thanks for your answer. I implemented a new Project from this enh. but unfortunately it is not called at all during CO01 or later in ME52N.

Regards

Ali