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

User Exit for tcode Me52

Former Member
0 Likes
1,800

Hi,

Please tell me the userexit for transaction me52 and me52n that should trigger while saving.

Marks will be rewarded .

Krishankant sharma

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,403

Hi,

it is useful MEREQ001

I know these for requisition:

EXIT_SAPLMEREQ_001

EXIT_SAPLMEREQ_002

EXIT_SAPLMEREQ_003

EXIT_SAPLMEREQ_004

EXIT_SAPLMEREQ_005

EXIT_SAPLMEREQ_006

EXIT_SAPLMEREQ_007

EXIT_SAPLMEREQ_008

EXIT_SAPLMEREQ_009

EXIT_SAPLMEREQ_010

<b>Reward points</b>

Regards

9 REPLIES 9
Read only

Former Member
0 Likes
1,402

Hi,

Enhancement MEREQ001 is for Transactions ME51/52/53 as well as for ME51N/52N/53N.

See the Enhancements for the Tcodes ME51/ME52/ME53:

AMPL0001 User subscreen for additional data on AMPL

LMEDR001 Enhancements to print program

LMELA002 Adopt batch no. from shipping notification when posting

LMELA010 Inbound shipping notification: Transfer item data from

LMEQR001 User exit for source determination

LMEXF001 Conditions in Purchasing Documents Without Invoice Rece

LWSUS001 Customer-Specific Source Determination in Retail

M06B0001 Role determination for purchase requisition release

M06B0002 Changes to comm. structure for purchase requisition rel

M06B0003 Number range and document number

M06B0004 Number range and document number

M06B0005 Changes to comm. structure for overall release of requi

M06E0004 Changes to communication structure for release purch. d

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., previe

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

MELAB001 Gen. forecast delivery schedules: Transfer schedule imp

MEQUERY1 Enhancement to Document Overview ME21N/ME51N

MEVME001 WE default quantity calc. and over/ underdelivery toler

MM06E001 User exits for EDI inbound and outbound purchasing docu

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 P

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

MM06E009 Relevant texts for "Texts exist" indicator

MM06E010 Field selection for vendor address

MM06E011 Activate PReq Block

MMAL0001 ALE source list distribution: Outbound processing

MMAL0002 ALE source list distribution: Inbound processing

MMAL0003 ALE purcasing info record distribution: Outbound proces

MMAL0004 ALE purchasing info record distribution: Inbound proces

MMDA0001 Default delivery addresses

MMFAB001 User exit for generation of release order

Regards,

Padmam.

Read only

Former Member
0 Likes
1,402

Hi

Check the following enhancements

MM06E001

MM06E003

MM06E004

MM06E005

MM06E007

MM06E008

MM06E009

MM06E010

MM06E011

MMAL0001

MMAL0002

MMAL0003

MMAL0004

MMDA0001

MMFAB001

MRFLB001

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
1,404

Hi,

it is useful MEREQ001

I know these for requisition:

EXIT_SAPLMEREQ_001

EXIT_SAPLMEREQ_002

EXIT_SAPLMEREQ_003

EXIT_SAPLMEREQ_004

EXIT_SAPLMEREQ_005

EXIT_SAPLMEREQ_006

EXIT_SAPLMEREQ_007

EXIT_SAPLMEREQ_008

EXIT_SAPLMEREQ_009

EXIT_SAPLMEREQ_010

<b>Reward points</b>

Regards

Read only

0 Likes
1,402

skk i know this but while saving it is not coming at breakpoint for all 10

Read only

0 Likes
1,402

Hi,

Here is the sample code...in the exit

Check whether you have added your new set of fields in Structures CI_EBANDB / CI_EBANMEM.

Implement Exits

EXIT_SAPLMEREQ_003

EXIT_SAPLMEREQ_001

Refer to the following thread for sample:

Hope this helps you.

data : l_mereq_item type mereq_item.

  • SAMPLE is the new extended field...

if not im_req_item is initial.

l_mereq_item = im_req_item->get_data( ).

if ( ci_ebandb-sample ne l_mereq_item-sample ).

move-corresponding ci_ebandb to l_mereq_item .

call method im_req_item->set_data( l_mereq_item ).

ex_changed = 'X'.

endif.

endif.

<b>Make sure Reward points</b>

Regards

Read only

0 Likes
1,402

skk my question was that suppose we change the qty in me52 and save than it should come at the break point which we have to put in exit suppose exit----


003

Read only

0 Likes
1,402

hi skk sorry for late reply but thanks for your answer.

this user exit works for only me52n and me51n

plz tell me user exit which works for me52 and me51 bcz this user exit is not working for these two

Read only

Former Member
0 Likes
1,402

sharma,

AMPL0001 User subscreen for additional data on AMPL

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 Individual customer 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

MM06E011 Activate PReq Block

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

LMEKO001 Extend communications structure KOMK for pricing

LMEKO002 Extend communications structure KOMP for pricing

Don't foget to reward if useful....

Read only

kiran_k8
Active Contributor
0 Likes
1,402

Hi,

Run this program to get the available user exits for a particular transaction.Say thanks to SDN.

REPORT Z9 .

tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.

tables : tstct.

data : jtab like tadir occurs 0 with header line.

data : field1(30).

data : v_devclass like tadir-devclass.

parameters : p_tcode like tstc-tcode obligatory.

select single * from tstc where tcode eq p_tcode.

if sy-subrc eq 0.

select single * from tadir where pgmid = 'R3TR'

and object = 'PROG'

and obj_name = tstc-pgmna.

move : tadir-devclass to v_devclass.

if sy-subrc ne 0.

select single * from trdir where name = tstc-pgmna.

if trdir-subc eq 'F'.

select single * from tfdir where pname = tstc-pgmna.

select single * from enlfdir where funcname =

tfdir-funcname.

select single * from tadir where pgmid = 'R3TR'

and object = 'FUGR'

and obj_name eq enlfdir-area.

move : tadir-devclass to v_devclass.

endif.

endif.

select * from tadir into table jtab

where pgmid = 'R3TR'

and object = 'SMOD'

and devclass = v_devclass.

select single * from tstct where sprsl eq sy-langu and

tcode eq p_tcode.

format color col_positive intensified off.

write:/(19) 'Transaction Code - ', "#EC NOTEXT

20(20) p_tcode,

45(50) tstct-ttext.

skip.

if not jtab[] is initial.

write:/(95) sy-uline.

format color col_heading intensified on.

write:/1 sy-vline,

2 'Exit Name', "#EC NOTEXT

21 sy-vline ,

22 'Description', "#EC NOTEXT

95 sy-vline.

write:/(95) sy-uline.

loop at jtab.

select single * from modsapt

where sprsl = sy-langu and

name = jtab-obj_name.

format color col_normal intensified off.

write:/1 sy-vline,

2 jtab-obj_name hotspot on,

21 sy-vline ,

22 modsapt-modtext,

95 sy-vline.

endloop.

write:/(95) sy-uline.

describe table jtab.

skip.

format color col_total intensified on.

write:/ 'No of Exits:' , sy-tfill. "#EC NOTEXT

else.

format color col_negative intensified on.

write:/(95) 'No User Exit exists'. "#EC NOTEXT

endif.

else.

format color col_negative intensified on.

write:/(95) 'Transaction Code Does Not Exist'. "#EC NOTEXT

endif.

at line-selection.

get cursor field field1.

check field1(4) eq 'JTAB'.

set parameter id 'MON' field sy-lisel+1(10).

call transaction 'SMOD' and skip first screen.

K.Kiran.