cancel
Showing results for 
Search instead for 
Did you mean: 

Using ME21N/ME22N with own Fields from MARA

Former Member
0 Kudos

Hallo,

i need help to insert some fields from MARA in

the Tcode ME21/2N. For example MARA-GROES or MARA-ZEINR

in the Item-List.

Can i use the exit MM06E005, and has anybody a

Codeexample?

Thanks for help

Dieter

We have a new Problem. We have to store the new Fields

in the EKPO. I use EXIT_SAPMM06E_013 with xekpo-ZZEINR

but it doesn't work correct.

Has anyone an idea?

Thanks

Regards Dieter

Message was edited by: Dieter Gröhn

Accepted Solutions (1)

Accepted Solutions (1)

ferry_lianto
Active Contributor
0 Kudos

Hi Dieter,

1. Insert new field ZZ_ZEINR with component type<b> DZEINR</b> in structure CI_EKPODB via SE11. Save and activated once done.

2. Go to <b>SE51</b> (Screen Painter), enter program <b>SAPLXM06</b> and screen number <b>0111</b> and click on change and select maintain in original language.

3. Click on <b>Layout</b> button and create text field and input/output field for EKPO_CI-ZZ_ZEINR. Save and activated.

4. Go to SE37 and enter function module <b> EXIT_SAPMM06E_016</b> and click on include <b>ZXM06U41</b>. In here you can code something like this. Save and activated once done.


CLEAR: EKPO_CI-ZZ_ZEINR.

SELECT SINGLE *
FROM MARA
WHERE MATNR = I_EKPO-MATNR.

IF SY-SUBRC = 0.
  EKPO_CI-ZZ_ZEINR = MARA-ZEINR.
ENDIF.

Hope this will help.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Ferry,

this Field EKPO_CI-ZZ_ZEINR was the Solution.

Now it works correct.

Thanks for your very good help.

Regards,

Dieter

Answers (2)

Answers (2)

ferry_lianto
Active Contributor
0 Kudos

Hi Dieter,

You can also use BADI <b>ME_PROCESS_PO_CUST</b> - Enhancements for Processing Enjoy Purchase Order.

Hope this will help.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Dieter,

Yes i you should be able to use the Enhancement mentioned below.

Create New Project in Transaction CMOD.

Assign enhancement MM06E005 .

Create program ZXM06U43( EXIT_SAPMM06E_012 ) by navigation.

For PO Screen Exit.

Add field From Mara ( Say for example Data element MTART ) to customizing include

CI_EKPODB .

Create Subscreen SAPLXM06 – 111 and assign to SAPMM06E-111 using screen

Add field MARA-MTART to the subscreen.

Implement User exit ZXM06U41 ( EXIT_SAPMM06E_016 ) to pass data to

customer subscreen.

Implement User exit ZXM06U40 ( EXIT_SAPMM06E_018 ) to import data from

customer subscreen.

Implement User exit ZXM06U42 ( EXIT_SAPMM06E_017 ) to pass data to

customer subscreen.

Hope this gets you started. Cheers and All the best

VJ

Former Member
0 Kudos

Hi Vj,

i try it, but i have Problem with ZXM06U41.

I insert CI_EKPODB, create Subscreen SAPLXM06 – 111

and define in Subscreen for example EKPO-ZZEINR.

In ME21N i see the Subscreen but without Data.

What Fields shell i fill in ZXM06U41. I will show

MARA-ZEINR.

thanks for Help

Dieter