2025 May 11 1:22 PM
Hi,
I added two new fields for "Header" and "Lines" in the contract,
I need that when someone enters a value in the header level fields - the item will be updated automatically,
Do you have a badi/user exit to recommend me ME321K/ME32K Thanks!
When I put a breakpoint in ME_PROCESS_PO_CUST, it does not stop.
Thanks for your help.
2025 May 11 1:43 PM
2025 May 11 2:21 PM
Thanks for wanting to help,
but when I try to implement ME_PROCESS_PO I get a message "BAdI definition ME_PROCESS_PO is only provided for SAP internal use"
Do you have another idea for me?
2025 May 11 2:04 PM
This question has been asked already so first check all the answers already given, for instance BADI for ME31K - SAP Community.
2025 May 11 2:26 PM
Thank you,
but I didn't find an answer that helps me.
I need to intervene where when entering a value in a field in the header,
a field at the line level will change and will be filled with the same value.
2025 May 11 2:30 PM
Why doesn't this expert answer help? Re: BADI for ME31K - SAP Community
2025 May 11 8:32 PM
If I'm not mistaken, this can change at the header level
I'm looking for - that when you enter a value at the header level
the same value will also be filled in the line item
That is, I'm looking for a place when filling in the field in the title to also edit the item
Thanks for the help
2025 May 12 7:15 AM
I guess you have used the enhancement MM06E005 to add the customer fields. Why can't you copy the header custom field to the custom field at item level? I guess it must be done at save time too, via the function module EXIT_SAPMM06E_013.
2025 May 12 7:35 AM
I think that in the function module you mentioned,
you can only read information and use it and not change it at the item level, am I wrong?
2025 May 12 9:06 PM
You're right. The function module EXIT_SAPMM06E_013 is to be used only to save data in custom tables (probably via CALL FUNCTION 'Z...' IN UPDATE TASK), all TABLES parameters are used as read-only. NB: I could verify it by searching CALL CUSTOMER-FUNCTION or CALL FUNCTION 'EXIT_SAPMM06E in the program SAPMM06E, I see that the function module is called inside the include MM06EF0C_CUSTOMER_DATA_POST, the function module arguments are duplicated and are not processed after the call, so any change by the user exit is clearly ignored.
The function module EXIT_SAPMM06E_012 may change the custom fields in the header, not those in the items.
The Function Module EXIT_SAPMM06E_018 may change the custom fields in the items.
Did you try this FM?
2025 May 12 9:22 PM
Thank you for your efforts to help.
As I mentioned earlier, I added fields to the header and item using CUSTOM FIELD.
In the USER EXIT - EXIT_SAPMM06E_018, the fields are not present in the structure received by the function, but they do exist in EKPO and EKKO.
2025 May 13 9:05 AM
I know that the custom header fields are not present in the parameter E_CI_EKPO of EXIT_SAPMM06E_018.
E_CI_EKPO corresponds to the custom item fields.
Use the other exits called before EXIT_SAPMM06E_018 to keep the values of the header fields in memory (global variables).
2025 May 13 9:38 AM
The problem is that I need to update the fields that I added( Custom item fields)
and not read their content
This is what I am looking for, a UE/BADI where I can change the value of the fields at the row level (UPDATE)
2025 May 13 12:24 PM
EXIT_SAPMM06E_018 is used to update the custom item fields.
2025 May 13 7:51 PM
I added the fields through S/4HANA via the CUSTOM FIELD,
so the fields are not in the user exit.
2025 May 13 9:43 PM
Oh okay, I understand now. You have used the Custom Fields and Logic Fiori app to add the fields. I can't help on that.