Skip to Content

Copy field from PR to PO header EKKO-IHREZ

Feb 22 at 09:23 PM


avatar image


I have a requirement to copy a reference field from a PR - table EBAN to the PO field EKKO-IHREZ.

Is there a field on EBAN that will transfer to EKKO-IHREZ when the PO is generated?

If not, is there ABAP code that can be used to accomplish this task?

Help is much appreciated.


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jürgen L
Feb 22 at 09:30 PM

the purchase requisition has no header table, the purchase requisition is so to say just items.

Standard functionality allows to combine x requisitions in a single PO.

If you do not restrict this standard functionality from which PR do you then want the value to flow in the PO header?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Jürgen,

In this case we are going to restrict the combination of requisitions into a single PO. It will be one PR to one PO.

Thank you.

Raymond Giuseppi
Feb 23 at 01:00 PM

AFAIK, EKKO-IHREZ is information provided by the vendor in their acknowledgment of your purchase order...

Why do you want to fill this field from purchase requisition, hopefully not to prevent an abapper from reading the purchase requisition when printing the order?

Nevertheless from an Abap point of view, look at BAdI ME_PROCESS_PO_CUST (executed in ME21N, ME22N and ME59N) use item methods to update header...

  • Handled Method : PROCESS_ITEM
  • Called Methods : on im_item->get_data to get PR refrence, get_header to read header reference and on returned ref to header methods get_data and set_data on header to update it.
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Raymond,

My apologies for the late response. We have a supplier sending us info on a text file to create a PR and from there we need to carry their reference ID to the PO EKKO-IHREZ.

I will try your ABAP suggestion and will let you know the results.

thank you,