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

ME32K/ME31K - Badi/ User exit

Noa_dev
Explorer
0 Kudos
1,098

 

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.

15 REPLIES 15
Read only

Lakshmipathi
SAP Champion
SAP Champion
0 Kudos
1,077

Try with method PROCESS_HEADER of BADI ME_PROCESS_PO

Read only

0 Kudos
1,060

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?

Read only

Sandra_Rossi
Active Contributor
0 Kudos
1,069

This question has been asked already so first check all the answers already given, for instance BADI for ME31K - SAP Community.

Read only

0 Kudos
1,056

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.

Read only

1,052

Why doesn't this expert answer help? Re: BADI for ME31K - SAP Community

Read only

0 Kudos
973

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

Read only

0 Kudos
910

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.

Read only

0 Kudos
905

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?

Read only

0 Kudos
839

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?

Read only

0 Kudos
830

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.

Read only

0 Kudos
781

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).

Read only

0 Kudos
773

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)

Read only

0 Kudos
754

EXIT_SAPMM06E_018 is used to update the custom item fields.

Read only

0 Kudos
734

I added the fields through S/4HANA via the CUSTOM FIELD,

so the fields are not in the user exit.

Read only

0 Kudos
720

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.