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

Update eban's custom fields

Former Member
0 Likes
2,885

HI Gurus ,

I have a request about change all PR item's custom fields before PR save ,

so I tried enhancement MEREQ001 and BADI ME_PROCESS_REQ_CUST,

but in those spot , it only provide 1 line item can change (current screen),

some spot , like ZXM02U12, I can find eban temp table ,

but when i update the value , it will show error with message "field XXXX can be changed"

is there any way to change PR all item's custom field value after click save buttom before data save ? 

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,064

Did you try method ME_PROCESS_REQ_CUST -> CHECK (*)  from IM_HEADER you can get list of items with GET_ITEMS and then for each item use the GET or SET_DATA[X] methods.

In the customer exit (ZXM02U12 is EXIT_SAPLMEREQ_010, did you notice the parameters were imported, only error messages can be exported.

Regards,

Raymond

(*) SAVE is executed too late and as stated in documentation doesn't allow change of fields

HI Gurus ,

I have a request about change all PR item's custom fields before PR save ,

so I tried enhancement MEREQ001 and BADI ME_PROCESS_REQ_CUST,

but in those spot , it only provide 1 line item can change (current screen),

some spot , like ZXM02U12, I can find eban temp table ,

but when i update the value , it will show error with message "field XXXX can be changed"

is there any way to change PR all item's custom field value after click save buttom before data save ? 

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,065

Did you try method ME_PROCESS_REQ_CUST -> CHECK (*)  from IM_HEADER you can get list of items with GET_ITEMS and then for each item use the GET or SET_DATA[X] methods.

In the customer exit (ZXM02U12 is EXIT_SAPLMEREQ_010, did you notice the parameters were imported, only error messages can be exported.

Regards,

Raymond

(*) SAVE is executed too late and as stated in documentation doesn't allow change of fields

Read only

0 Likes
2,064

Hello,

I am also unable to update custom fields added in EBAN. Both ME_PROCESS_REQ_CUST -> CHECK and POST methods did not work for me. Please share the details how you have resolved the issue.

Thanks,

Chandra