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

how to commit data on method ME_PROCESS_PO_CUST~POST?

Former Member
0 Likes
691

Hi Guys

I want to update the PO header field EKKO-SPRAS according to my own logic. I was trying to do that by using BAPI ME_PROCESS_PO_CUST - method POST.

This is the instruction to read the Header Data:

ls_header = IM_HEADER->get_data( ).

I will then change the content of the field ls_header-SPRAS to a new value

How can I commit this new value to the database?

What else is missing?

Thanks for your help.

NN

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
572

Hi

U can do it by method SET_DATA, but I suppose it should be done in method like PROCESS_HEADER

Max

2 REPLIES 2
Read only

Former Member
0 Likes
573

Hi

U can do it by method SET_DATA, but I suppose it should be done in method like PROCESS_HEADER

Max

Read only

nirajgadre
Active Contributor
0 Likes
572

Hi,

try to update the header details in the method PROCESS_HEADER

Use GET_DATA to read the header details and based on the logic change the header data with new value. then use the method SET_DATA i9n this to update the new value in the PO.

i guess in this case new value will get updated in the PO.