Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI Implementation - ME_PROCESS_PO_CUST

Former Member
0 Likes
1,245

Hello All,

The requirement is PO will be created by the standard process. Users will manually go and amend PO with additional line items which needs to be updated in a bespoke table (in addition to EKPO standard table)

I have implemented BADI (ME_PROCESS_PO_CUST) but not clear which method can be used to get all the line item details.

Please assist

Thanks & Regards,

Paul

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
806

To update a customer z-table, better start point is method POST. In this method you receive im_header,  with method get_items( ) you will get a list of items, looping at it you can then for each item compare new values  of item->get_data( ) with old values currently in database item->get_persistent_data( ), managing the not-found of course, and prepare update of your customer table to be executed via a FM in update task (v2 suggested) or in background task (rfc enabled)

Regards,

Raymond

Hello All,

The requirement is PO will be created by the standard process. Users will manually go and amend PO with additional line items which needs to be updated in a bespoke table (in addition to EKPO standard table)

I have implemented BADI (ME_PROCESS_PO_CUST) but not clear which method can be used to get all the line item details.

Please assist

Thanks & Regards,

Paul

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
807

To update a customer z-table, better start point is method POST. In this method you receive im_header,  with method get_items( ) you will get a list of items, looping at it you can then for each item compare new values  of item->get_data( ) with old values currently in database item->get_persistent_data( ), managing the not-found of course, and prepare update of your customer table to be executed via a FM in update task (v2 suggested) or in background task (rfc enabled)

Regards,

Raymond

Read only

0 Likes
806

Thanks Raymond.

Working perfectly fine in the method POST

Cheers,

Paul