Skip to Content

Populating Vendor based on Custom Header Field in PO

Apr 23, 2017 at 07:35 PM


avatar image
Former Member


I created a custom header field in a PO, whenever I enter data in it, the vendor should get populated based on it. Please suggest a solution. I created screen-exit to create custom screen and fields.



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

1 Answer

Raymond Giuseppi
Apr 24, 2017 at 08:11 AM

Did you look at method PROCESS_HEADER of BAdI ME_PROCESS_PO_CUST, methods GET_DATA and SET_DATA of parameter IM_HEADER should fulfill your requirement,

  • GET_DATA returned parameter RE_DATA contains stucture CI_EKKODB, so your customer appended fields.
  • SET_DATA allows change of vendor, but don't call this method if you don't actually change some value (preventing infinite loop)

Perform some search, there are multiple discussions and document on this BAdI.

10 |10000 characters needed characters left characters exceeded