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

me21n

Former Member
0 Likes
1,411

hello i need exit for me21n.

my req is while creating po the batch number field should be filled with po number.

5 REPLIES 5
Read only

Former Member
0 Likes
1,168

welcome to SDN.

put MM06* in tcode SMOD and F4 .

pick ur appropriate user exit for the condition.

regards,

vijay.

Read only

Former Member
0 Likes
1,168

execute this program and give the transaction code .

it will display wat all exits available for particular transaction..

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 - ',

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',

21 sy-vline ,

22 'Description',

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.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'No User Exit exists'.

ENDIF.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'Transaction Code Does Not Exist'.

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.

Read only

Former Member
0 Likes
1,168

Hi ,,

Follwing are all the related User Exits for ME21N. Check the user exits and the includes and try.

AMPL0001 EXIT_SAPLMBAM_001 Customer Exit: Transfer Item Data to Subscreen

AMPL0001 EXIT_SAPLMBAM_002 Customer Exit: Adopt Item Data from User Screen

AMPL0001 EXIT_SAPLMBMP_003 Customer Enhancement for AMPL Checks

LMEDR001 EXIT_SAPLMEDRUCK_001 Enhancement of Print Program LMEDR001

LMELA002 EXIT_SAPLEINR_002 Adopt Batch Numbers from Shipping Notification When Posting Goods Receipt

LMELA010 EXIT_SAPLEINM_010 Cust. Enhancement for Inbound Shipping Notif.: Adopt Item Data from IDoc

LMEQR001 EXIT_SAPLMEQR_001 User Exit for Source Determination

LMEXF001 EXIT_SAPLMEXF_001 No Invoice for Purchase Order Item but Conditions Allowed

LWSUS001 EXIT_SAPLWSUS_001 Customer-Specific Source Determination in Retail

M06B0001 EXIT_SAPLEBNF_001 Customer Enhancements for Role Assignment in Requisition Release Workflow

M06B0002 EXIT_SAPLEBND_001 Customer Enhancements for Determination of Requisition Release Strategy

M06B0003 EXIT_SAPMM06B_001 Other Number Range or Own Document Number

M06B0004 EXIT_SAPLEBNE_001 Other Number Range or Own Document Number

M06B0005 EXIT_SAPLEBND_004 Changes to Communication Structure for Overall Release of Requisition

M06E0004 EXIT_SAPLEBND_002 Changes to Communication Structure for Release of Purchasing Documents

M06E0005 EXIT_SAPLEBNF_005 Cust. Enhancements for Role Assgt. in Workflow for Release of Purch. Doc.

ME590001 EXIT_SAPLME59_001 Grouping of Requisitions for Automatic Generation of Purchase Orders

MEETA001 EXIT_SAPLEINL_001 Customer Enhancement: SA Releases: Determ. Sched. Line Type (E.g. Backlog)

MEFLD004 EXIT_SAPLEINR_004 Determine Earliest Delivery Date, GR Check (PO Only)

MELAB001 EXIT_RM06ELAB_001 Customer Enhancement: Generate Sched. Agreement Releases: Creation Profile

MEQUERY1 EXIT_SAPLMEQUERY_001 Determine Available Datablades

MEQUERY1 EXIT_SAPLMEQUERY_002 Generate Query Object

MEVME001 EXIT_SAPLEINR_001 Calculation of Default GR Quantity and Over-/Underdelivery Tolerance

MEVME001 EXIT_SAPLEINR_003 Adjustm. of Qty. and Date for Price Determination, GR Against Sched. Agmt.

MM06E001 EXIT_SAPLEINM_001 Customer Enhancements for Control Record: Purchasing Document (Outbound)

MM06E001 EXIT_SAPLEINM_002 Customer Enhancements to Data Segments: Purchasing Document (Outbound)

MM06E001 EXIT_SAPLEINM_003 Customer Enhancements of Data Segment for Release Documentation (Outbound)

MM06E001 EXIT_SAPLEINM_004 Customer Enhancements for Release Documentation (Inbound)

MM06E001 EXIT_SAPLEINM_005 Customer Enhancements for Order Acknowledgment (Inbound)

MM06E001 EXIT_SAPLEINM_006 Customer Enhancements for Shipping Notification (Inbound)

MM06E001 EXIT_SAPLEINM_007 Customer Enhancements for Inbound Order Acknowledgment: Read IDOC Segments

MM06E001 EXIT_SAPLEINM_008 Customer Enhancements for Inbound Order Acknowledgment: Concluding Actions

MM06E001 EXIT_SAPLEINM_009 MM EDI ORDRSP: Custotmer Enhancement: Tolerances (Quantities/Dates/Prices)

MM06E001 EXIT_SAPLEINM_011 Concluding Customer Enhancement: EDI Outbound Purchase Order

MM06E001 EXIT_SAPLEINM_012 MM EDI ORDERS/ORDCHG: Customer Enhancement Transfer Configuration

MM06E001 EXIT_SAPLEINM_013 MM EDI ORDERS/ORDCHG: Customer Enhancement Configuration Structures

MM06E001 EXIT_SAPLEINM_014 MM EDI ORDRSP: Customer Enhancement: Price Tolerances

MM06E001 EXIT_SAPLEINM_015 MM EDI ORDRSP: Customer Enhancement: Vendor Material Change

MM06E001 EXIT_SAPLEINM_016 ALE Contract Distribution: Outbound: Enhancement of IDoc Segments

MM06E001 EXIT_SAPLEINM_017 Concluding Customer Enhancement for ALE Contract Distribution: Outbound

MM06E001 EXIT_SAPLEINM_018 Inbound Order Acknowledgment: Modify Segment E1EDK01

MM06E001 EXIT_SAPLEINM_019 Final User Exit: FRC

MM06E001 EXIT_SAPLEINM_020 Final User Exit: JIT

MM06E003 EXIT_SAPMM06E_001 Other Number Range or Own Document Number

MM06E004 EXIT_SAPMM06E_004 User Exit for Cust.-Specific Control of Import Data Screens in Purchasing

MM06E005 EXIT_SAPMM06E_006 Export Data to Customer Subscreen for Purchasing Document Header (PBO)

MM06E005 EXIT_SAPMM06E_007 Export Data to Customer Subscreen for Purchasing Document Header (PAI)

MM06E005 EXIT_SAPMM06E_008 Import Data from Customer Subscreen for Purchasing Document Header

MM06E005 EXIT_SAPMM06E_009 Reset Customer Data at Beginning of New Document (Without Dialog)

MM06E005 EXIT_SAPMM06E_012 Check Customer-Specific Data Before Saving

MM06E005 EXIT_SAPMM06E_013 Update Customer's Own Data in Purchasing Document

MM06E005 EXIT_SAPMM06E_014 Read Customer-Specific Data when Importing Purchasing Document

MM06E005 EXIT_SAPMM06E_016 Export Data to Customer Subscreen for Purchasing Document Item (PBO)

MM06E005 EXIT_SAPMM06E_017 Export Data to Customer Subscreen for Purchasing Document Item (PAI)

MM06E005 EXIT_SAPMM06E_018 Import Data from Customer Subscreen for Purchasing Document Item

MM06E007 EXIT_SAPMM06E_020 User Exit: Change Document for Requisitions (Conversion into PO)

MM06E008 EXIT_SAPMM06E_021 Fulfillment of Target Value: Release Orders Against a Contract

MM06E009 EXIT_SAPMM06E_022 Relevant Texts for "Texts Exist" Indicator

MM06E010 EXIT_SAPMM06E_005 Field Selection Control: Vendor Address Screen

MM06E011 EXIT_SAPMM06E_024 Reference Dates Set in PO Generation

MMAL0001 EXIT_SAPLMEAO_001 ALE Source List Distribution: Outbound Processing

MMAL0002 EXIT_SAPLMEAI_001 ALE Source List Distribution: Inbound Processing (Read Segments)

MMAL0002 EXIT_SAPLMEAI_002 ALE Source List Distribution: Inbound Processing (Update Own Data)

MMAL0003 EXIT_SAPLMEAO_002 ALE Purcasing Info Record Distribution: Outbound Processing

MMAL0004 EXIT_SAPLMEAI_003 ALE Purchasing Info Record Distrib.: Inbound Processing (Read Segments)

MMAL0004 EXIT_SAPLMEAI_004 ALE Purchasing Info Record Distribution: (Update Own Data)

MMDA0001 EXIT_SAPLMMDA_001 Selection of Storage Location Address in Dependence on Item Data

MMFAB001 EXIT_RM06EFAB_001 Additional Selection of Scheduling Agreement Items

MRFLB001 EXIT_RM06EFLB_001 Control Items for Contract Release Order

Copy all this into an excel sheet and find the related user exit for the PO number.

Regards,

Jayaram...

Read only

Former Member
0 Likes
1,168

helo iam not getting it.while creating po only batch number must be filled with po number.

Read only

Former Member
0 Likes
1,168

helo miss,

use ME_PROCESS_PO_CUST this badi

and method PROCESS_ITEM.

inthat

CALL METHOD im_item->get_data

and do .