cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom fields to contracts (ME31K & ME31L)

Former Member
0 Kudos

Hi,

My knowledge of MM is limited.

Is it possible to ad some custome fields the contracts (ME31K and ME31L)? Both at the header level and at the item level?

I need to add some custom fields to the contract header and to the contract item(s). Then user these fields later for some additional (custom) funcationality, ex. in reports)

Thanks in advance.

Naing Zaw-Tun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

It is not impossible to add the fields to this transations, But this is not recommended at all. Doing this needs extension of standard SAP tables and it would be very difficuilt to imagine and establish all the links due to such additiona. Hence it is strictly not recommended.

In fact we have several fields in Header as well as footer in standard SAP which allow you to enter the required information freely. check out the following -

In header details-

Quotation

Your reference

Our reference

Telephone

Sales person

Telephone

In Item details -

There are several fields available here as well. Check out

Item --> More funtions --> Foreign trade/Customes.

There are several fields available here where we can maintain the required information.

I hope it helps you....

Best Regards

Avinash

Former Member
0 Kudos

Hi,

What about appending field to the MM tables (ex. EKPO) and using User Exits

AMPL0001 User subscreen for additional data on AMPL

MM06E005 Customer fields in purchasing documents

Thanks,

Naing

Ramki
Active Contributor
0 Kudos

Hi Naing

You can use MM06E005 for additional fields in contract header/item.

Pl go through the exit documentation carefully.

I agree with Avinash on checking the usability of 'unused' fields in header/item before going for this exit (Ofcourse, I do not agree with him on 'Strictly not recommended' to create additional fields).

Best regards

Ramki

Former Member
0 Kudos

Hi,

I defien a custom field in INCLUDE CL_EKKODB (EKKO_myfield) and added one custom field (EKKO_myfield) to the header via CMOD.

The screen displays the filed and the lable. I am able to enter data intohte field. I go to the item detali screen and come back to the header screen, the data is still there.

Hoewver, when I exit (ME32K) and come back, the field is empty. I looked atehte EKKO table and the field on the table is empty.

What happened? What did not do?

Do I need to implement the following FM/

Header screens:

EXIT_SAPMM06E_006 Export data to customer subscreen for header (PBO)

EXIT_SAPMM06E_007 Export data to customer subscreen for header (PAI)

EXIT_SAPMM06E_008 Import data from customer subscreen for header

Item screens:

EXIT_SAPMM06E_016 Export data to customer subscreen for item (PBO)

EXIT_SAPMM06E_017 Export data to customer subscreen for item (PAI)

EXIT_SAPMM06E_018 Import data from customer subscreen for item

Thanks,

Naing

Former Member
0 Kudos

Hi Naing!

Did you finally found the answer? I need exactly the same like you... I am adding a custom field to 211-SAPLXM06 dynpro and the field appears me at the detail screen. But the data doesn't keep it at the EKPO table..

Thanks!

Message was edited by:

Miguelangel Julian

Message was edited by:

Miguelangel Julian

Answers (0)