Application Development 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: 

user exit in transaction ME21N and ME22N

Former Member
0 Kudos

Hi,

I need to do user exit in transaction ME21N and ME22N in which I need to

validate "user field1" in the tab "Services" as soon as

the user presses enter (internally validate for bill doc. no. for this plant)

urgent, pls help.

Thanks

SS

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

for me21n/me22n these are exits,

LMEDR001 Enhancements to print program

LMELA002 Adopt batch no. from shipping notification when posting a GR

LMELA010 Inbound shipping notification: Transfer item data from IDOC

LMEQR001 User exit for source determination

LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt

LWSUS001 Customer-Specific Source Determination in Retail

M06B0001 Role determination for purchase requisition release

M06B0002 Changes to comm. structure for purchase requisition release

M06B0003 Number range and document number

M06B0004 Number range and document number

M06B0005 Changes to comm. structure for overall release of requisn.

M06E0004 Changes to communication structure for release purch. doc.

M06E0005 Role determination for release of purchasing documents

ME590001 Grouping of requsitions for PO split in ME59

MEETA001 Define schedule line type (backlog, immed. req., preview)

MEFLD004 Determine earliest delivery date f. check w. GR (only PO)

MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.

MEQUERY1 Enhancement to Document Overview ME21N/ME51N

MEVME001 WE default quantity calc. and over/ underdelivery tolerance

MM06E001 User exits for EDI inbound and outbound purchasing documents

MM06E003 Number range and document number

MM06E004 Control import data screens in purchase order

MM06E005 Customer fields in purchasing document

MM06E007 Change document for requisitions upon conversion into PO

MM06E008 Monitoring of contr. target value in case of release orders

MM06E009 Relevant texts for "Texts exist" indicator

MM06E010 Field selection for vendor address

MMAL0001 ALE source list distribution: Outbound processing

MMAL0002 ALE source list distribution: Inbound processing

MMAL0003 ALE purcasing info record distribution: Outbound processing

MMAL0004 ALE purchasing info record distribution: Inbound processing

MMDA0001 Default delivery addresses

MMFAB001 User exit for generation of release order

MRFLB001 Control Items for Contract Release Order

AMPL0001 User subscreen for additional data on AMPL

reward if useful,

Gaurav

7 REPLIES 7

Former Member
0 Kudos

hi

for me21n/me22n these are exits,

LMEDR001 Enhancements to print program

LMELA002 Adopt batch no. from shipping notification when posting a GR

LMELA010 Inbound shipping notification: Transfer item data from IDOC

LMEQR001 User exit for source determination

LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt

LWSUS001 Customer-Specific Source Determination in Retail

M06B0001 Role determination for purchase requisition release

M06B0002 Changes to comm. structure for purchase requisition release

M06B0003 Number range and document number

M06B0004 Number range and document number

M06B0005 Changes to comm. structure for overall release of requisn.

M06E0004 Changes to communication structure for release purch. doc.

M06E0005 Role determination for release of purchasing documents

ME590001 Grouping of requsitions for PO split in ME59

MEETA001 Define schedule line type (backlog, immed. req., preview)

MEFLD004 Determine earliest delivery date f. check w. GR (only PO)

MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.

MEQUERY1 Enhancement to Document Overview ME21N/ME51N

MEVME001 WE default quantity calc. and over/ underdelivery tolerance

MM06E001 User exits for EDI inbound and outbound purchasing documents

MM06E003 Number range and document number

MM06E004 Control import data screens in purchase order

MM06E005 Customer fields in purchasing document

MM06E007 Change document for requisitions upon conversion into PO

MM06E008 Monitoring of contr. target value in case of release orders

MM06E009 Relevant texts for "Texts exist" indicator

MM06E010 Field selection for vendor address

MMAL0001 ALE source list distribution: Outbound processing

MMAL0002 ALE source list distribution: Inbound processing

MMAL0003 ALE purcasing info record distribution: Outbound processing

MMAL0004 ALE purchasing info record distribution: Inbound processing

MMDA0001 Default delivery addresses

MMFAB001 User exit for generation of release order

MRFLB001 Control Items for Contract Release Order

AMPL0001 User subscreen for additional data on AMPL

reward if useful,

Gaurav

Former Member
0 Kudos

hi Surendra,

Please try with this UserExits...

<b>EXIT_SAPMM06E_007</b> --- Export Data to Customer Subscreen for Purchasing Document Header (PAI) -- This for header...

<b>EXIT_SAPMM06E_017</b> ---Export Data to Customer Subscreen for Purchasing Document Item (PAI) -- This is for item...

You have to implement as per your requirements....it will work....

reward points...

Cheers,

Sagun Desai...

0 Kudos

Hi,

Thanks to all.

exit "EXIT_SAPMM06E_017" is working fine for line item but the problem is that i am not able to validate any "User Field" which are in tab "Services" (Service Tab by default is invisible and it will visible when you choose Item category is "Service"). no structure or table is available for the user field "ESLL-USERF1_NUM" . so can any body help how to validate User Field.

Thanks again,

SS

0 Kudos

Hi Surendra,

exit "EXIT_SAPMM06E_017" you can make the checking for field "ESLL-USERF1_NUM". Just you have to make query on EKPO table. In this table there is field "PACKNO" - Package number, which is key field in table ESLL.

you have to pass data of table TEKPO (this is structure of BEKPO) to internal table(I_TEKPO). then you have to make below query.

Select * from ESLL where PACKNO = I_TEKPO-PACKNO.

if sy-subrc is initial.

here you can validate the value which you want....

endif

In case any help let me know..

This is the correct userexit where you can validate your data....only required is your logic...

Cheers,

Sagun Desai...

0 Kudos

Hi Sagun Desai,

Thanks for reply,

here actually i have to validate "user field" when user enter some value for that field and press enter instead of using select * from ESLL. because no data will be available at ESLL untill you save data.Like TEKPO is there any table available for ESLL? so that i can validate before saving.

pls suggest.

Thanks Again,

SS

0 Kudos

Hi Surendra,

Please check the data you are entering in ESLL-USER_FIELD, through service tab. The data should be available in one of the master table...Just confirm that where you have maintained that data, in which table you have maintain that data which you are going to select or enter in above field...Otherwise you have to maintain on Ztable for above field data. It is must that the data you are entering or selecting for userfield shold be availble in one of the table.....Then only you can validate the same.....

revert for more clarification...if required...

reward points if usefull.

Cheers,

Sagun Desai...

0 Kudos

Hi Sagun,

Thanks for Reply,

here i am writing the exact requirement so that it can be more clear.

in tab "Service" field "User Field4" user has to enter the Bill Doc. no. which will be validate form table VBRK-VBELN.

when user enter Bill DOC. NO. and press enter it will validate from VBRK i.e. whether this doc.no. is exist or not .

now problem is that i am not able to read the user's input bill doc.no. in "User Field4". once i read the input value i can validate from VBRK. here problem is to read the input value not the validating from the VBRK.

i hope requirement is clear now.

pls Guide.

Thanks

SS