2009 Mar 06 11:59 AM
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
2009 Mar 06 12:32 PM
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.
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.
2009 Mar 06 12:32 PM
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.
2009 Mar 06 2:54 PM
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
2009 Mar 06 4:39 PM
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
2009 Mar 06 10:22 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |