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

Problem while posting the transaction me22n

Former Member
0 Likes
752

Hi All,

I run the t.code me22n, In that i am going to change the Material group field(MATKL) ( Initially the value is GV, after that i entered the field value TV), after that i checked the field in userexit, it shows GV ,again i changed the field value to CV, this time i checked in user exit, i wil get the field name TV.

My requirement is , In me22n.i entered the TV in MATKL field.i need the same value(TV) in User exit, then only i have to validate and through the error message.

Please give me ur feedback as soon as possible..

Thanks in advance

Rama

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
698

Which user exit you are using? Probably that user exit may have two structures one is old values and another with new values. Check it once.

Hi All,

I run the t.code me22n, In that i am going to change the Material group field(MATKL) ( Initially the value is GV, after that i entered the field value TV), after that i checked the field in userexit, it shows GV ,again i changed the field value to CV, this time i checked in user exit, i wil get the field name TV.

My requirement is , In me22n.i entered the TV in MATKL field.i need the same value(TV) in User exit, then only i have to validate and through the error message.

Please give me ur feedback as soon as possible..

Thanks in advance

Rama

4 REPLIES 4
Read only

Former Member
0 Likes
699

Which user exit you are using? Probably that user exit may have two structures one is old values and another with new values. Check it once.

Read only

0 Likes
698

I am using this User EXIT_SAPMM06E_006.

I used this exit for ME21N and ME22N. I have same problem in ME21N & 22N

Enhancement: MM06E005

FUNCTION EXIT_SAPMM06E_006.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(I_EKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_TRTYP)

*" VALUE(I_CI_EKKO) LIKE EKKO_CI STRUCTURE EKKO_CI

*" VALUE(I_BSTYP) LIKE EKKO-BSTYP

*" VALUE(I_NO_SCREEN)

*" VALUE(I_LFA1) LIKE LFA1 STRUCTURE LFA1

*" VALUE(I_LFM1) LIKE LFM1 STRUCTURE LFM1

*" VALUE(I_KEKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_AEKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_REKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_EKKO_OLD) LIKE EKKO STRUCTURE EKKO OPTIONAL

*" VALUE(I_VORGA) LIKE T160-VORGA

*" TABLES

*" TEKPO STRUCTURE BEKPO OPTIONAL

*" TEKET STRUCTURE BEKET OPTIONAL

*" TEKKN STRUCTURE EKKNU OPTIONAL

*" TKOMV STRUCTURE KOMV OPTIONAL

*"----


INCLUDE ZXM06U36 .

ENDFUNCTION.

Please give me the reply

Thanks in advance

Edited by: Rama P on Mar 6, 2009 3:58 PM

Read only

0 Likes
698

Hi Rama,

Try this user exit:

EXIT_SAPMM06E_017

*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(I_EKPO) LIKE  EKPO STRUCTURE  EKPO
*"     VALUE(I_AKTYP)
*"     VALUE(I_BSTYP) LIKE  EKKO-BSTYP
*"     VALUE(I_NO_SCREEN)
*"     VALUE(I_LFA1) LIKE  LFA1 STRUCTURE  LFA1
*"     VALUE(I_LFM1) LIKE  LFM1 STRUCTURE  LFM1
*"     VALUE(I_EKKO) LIKE  EKKO STRUCTURE  EKKO
*"     VALUE(I_REKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL " Check values here
*"     VALUE(I_KEKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL " Check values here
*"     VALUE(I_AEKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL " Check values here
*"     VALUE(I_REBAN) LIKE  EBAN STRUCTURE  EBAN OPTIONAL
*"     VALUE(I_MT06E) LIKE  MT06E STRUCTURE  MT06E OPTIONAL
*"     VALUE(I_EINA) LIKE  EINA STRUCTURE  EINA OPTIONAL
*"     VALUE(I_EINE) LIKE  EINE STRUCTURE  EINE OPTIONAL
*"     VALUE(I_EKPO_OLD) LIKE  EKPO STRUCTURE  EKPO OPTIONAL " Old Values
*"     VALUE(I_KOMP) LIKE  KOMP STRUCTURE  KOMP OPTIONAL
*"     VALUE(I_UCOMM) LIKE  SY-UCOMM OPTIONAL
*"     VALUE(I_ENJ_CALL) OPTIONAL
*"  TABLES
*"      TEKPO STRUCTURE  BEKPO OPTIONAL
*"      TEKET STRUCTURE  BEKET OPTIONAL
*"      TEKKN STRUCTURE  EKKNU OPTIONAL
*"      TKOMV STRUCTURE  KOMV OPTIONAL
*"----------------------------------------------------------------------

Regards,

Gilberto Li

Read only

nagarajan_ramudu
Active Participant
0 Likes
698

Please use the BADI ME_PROCESS_PO