Me21n screen exit in item level
Dear Experts I have a reqment to add a column of date in the table contol pf the po item.
I have used the exit mm06e005 but it is not reflecting in the tem level.A new tab is created named customer data and the date fiels is ahowing in the header data.Can any one give me a step by step procuder of the above scenario??
Hey Sayandeep,
In the Flow Logic Process Before Output (PBO) create one module or in Module status_0101 write this code.
V - Change
A - Display
H - Create
if i_trtyp = 'A'.
loop at screen.
if screen-name = 'Screen Field Name'.
screen-input = 0.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-name = 'Screen Field Name'.
screen-input = 1.
modify screen.
endif.
endloop.
endif.
Note: Try to avoid hot coding the transaction Code.
Regards,
Saravanan M
Similar Messages
-
Screen Exit in Header Level in ME51N
Hi,
Are there any screen exits in header level in ME51N screen? I need to call a BSP upon the click of a button and when the user selects a line item from there, it has to fall as a line item in the PR screen.
Need your help on this.
Thanks and Regards,
Manideep SettipalliHello,
Please refer to this very useful document about finding user-exits, BADI's eg.
Methods to find Customer/User Exit's & BADi's for a Transaction Code!
Regards
Ali Murat -
User exit at item level for billing block field default for VA41 or VA42
Hi All,
I want user exit at item level for contract (VA41or VA42) for the field Billing Block in the Billing document tab
which has to populate with some default value.
Which user exit i need to check.
Regards
JaiHi,
Use subroutine USEREXIT_FIELD_MODIFICATION in Include MV45AFZZ.
Make sure this is for only tcodes VA41 and VA42 because this wil trigger for sales order also.
Regards,
Ashok. -
Screen exits on Notification level
Can any one let me know the screen exits at notification level....
kindly refer my Enhancements ... points will be given for valid or
useful reply....Hi,
Screen Exit is nothing but enhancing the screen like creating some more fields, subscreen and so on.
1. Go to the screen>System>Status-->Program (Double
click this program. It will take you to the program.
2. Now, Goto-->Object Directory Entry.
3. Make a note the package name.
4. Now run the transactions SMOD, press F4 and enter the
above noted package, press enter.
5. It will display list of Exits.
6. Now go back to the initial screen SMOD.
7. Specify the exit name here and select the radio button
Components.
8. It will display four group boxes one for FM, second
for Fcodes, thrid for Screen areas and last for
includes.
9. Goto transaction CMOD, create a new project, and
click the button "Enhancement assignments" and
specify your enhancements that you got in SMOD.
10. Now bouble clikc the enhancement, it will take you to editor with some includes starting with Z, double clikc the include you want to edit and proceed.
and you just go through these links also
Screen exit
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
screen-exits
check this Link
http://www.sapbrain.com/TUTORIALS/TECHNICAL/user_exits_tutorial.html
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
check this http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
Regards,
Deepu.K -
Me21n disable input at item level for a/c assn
HI expoerts,
I want to disable screen input for field account assignment at item level.
anyone know about any exit or badi.
thanksHi,
SPRO->Materials Management->Purchasing->Purchase Order->Define Screen Layout at Document Level.
Then chosse me21n and click details.
select Basic Data, Item then click choose (tick) button. there you can set the desired screen layout for me21n -
Screen BADI at Item Level in FB60
Hi,
I need to add 'Material Group" (MATKL) field in item level similar GL Account. Material group will appear like GL account column in FB60 screen.
I want to do without modification with help screen BADI.
Anyone, can suggest which BADI's method can allow to add 'MATKL' field screen?
regards,
Rahul MandaleMartin,
We have following requirement,
Material group should be visible for Non PO invocie screen where MM user can select/input "material group". Once materila group is selected, with user exit GL account filed will be filled based on relationship maintained in custom table.
Is it possible any way to add "MATKL' field in item level screen without modification?
Your suggestion is highly appreciated.
Regards,
Rahul Mandale -
Adding new field in me21n(screen exit)
Hi
I want to add a customer field in PO layout at ITEM LEVEL.
I have already placed this field on screen. But I am not able to write code for the same.
My another requirement is - the customer field should be updated in the database.
Regards
HarshadaTry This
EXIT_SAPMM06E_001
EXIT_SAPMM06E_004
EXIT_SAPMM06E_006
EXIT_SAPMM06E_007
EXIT_SAPMM06E_008
EXIT_SAPMM06E_009
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
EXIT_SAPMM06E_014
EXIT_SAPMM06E_016
EXIT_SAPMM06E_017
EXIT_SAPMM06E_018
REgards. -
User exit for item level plant checking for va01
Hi ,
I have got many user exits for va01 .I have to check the plant at item level in va01 . Kindly give name of user exit for this task as im not able to find the right one.
Thanks .Hi,
Please check through path
S&D>>>System modification>>>Userexits.
here you will find various user exits available for SD module.
Regards
kapil -
User exit for item level in PO
Hi:
Once we create a PO based on PR. I should not be able to change the net price. I need to through a ERROR MESSAGE.
The price of PR and PO Shuold be same. Used should not change the net price, If he tries to change it, A error msg should be thrown.
Please let me know the Correct User Exit for this.
Thanks
SenthilHi,
Please check sample program to find user exits available for a given transaction code.
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
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 = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
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.
Take the user to SMOD for the Exit that was selected.
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.
or
Enhancement
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
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 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
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
Business Add-in
ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
ME_PROCESS_REQ Enhancements for Processing Enjoy PReqs: Internal
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Custome
ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
ME_PO_PRICING_CUST Enhancements to Price Determination: Customer
ME_PO_PRICING Enhancements to Price Determination: Internal
ME_INFOREC_SEND Capture/Send Purchase Info Record Changes - Internal Use
ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
ME_FIELDSTATUS_STOCK FM Account Assignment Behavior for Stock PR/PO
ME_DP_CLEARING Clearing (Offsetting) of Down Payments and Payment Requests
ME_PURCHDOC_POSTED Purchasing Document Posted
SMOD_MRFLB001 Control Items for Contract Release Order
EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
ARC_MM_EKKO_WRITE BAdI: Enhancement of Scope of Archiving (MM_EKKO)
ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)
MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Order
MM_DELIVERY_ADDR_SAP Determination of Delivery Address
ME_WRF_STD_DNG PO Controlling Reminder: Extension to Standard Reminder
ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
ME_TRF_RULE_CUST_OFF BADI for Deactivation of Field T161V-REVFE
ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
ME_REQ_POSTED Purchase Requisition Posted
ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
ME_RELEASE_CREATE BAdI: Release Creation for Sched.Agrmts with Release Docu.
ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
ME_CHANGE_OUTTAB Enrich ALV Output Table in Purchasing
ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
ME_CCP_ACTIVE_CHECK BAdI to check whether CCP process is active
ME_BSART_DET Change document type for automatically generated POs
ME_BAPI_PR_CREATE_02
ME_BAPI_PR_CREATE_01
ME_BAPI_PO_CREATE_02
ME_BAPI_PO_CREATE_01
ME_BADI_DISPLAY_DOC BAdI for Internal Control of Transaction to be Invoked
ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
MEGUI_LAYOUT BAdI for Enjoy Purchasing GUI
ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
ME_COMMTMNT_REQ_RELE Check of Commitment Relevance of Purchase Requisitions
ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
ME_COMMTMNT_PO_RELEV Check for Commitment-Relevance of Purchase Orders
ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
ME_COMMITMENT_RETURN Commitment for return item
ME_CIP_REF_CHAR Enables Reference Characteristics in Purchasing
ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
ME_CIN_MM06EFKO Copy PO data for use by Country version India
ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
ME_CHECK_OA Check BAdI for Contracts
Reward if helpful.
Regards,
Harini.S -
Sales Order - user exit at item level
I am new in writing user-exits. Pls do share your exp !
When creating a sales order I encounter error, system says "Enter batch number".
We basically create batch when doing GoodsReceive for Production Orders. At this time the Material Revision is copied as Batch into MCHB table.
For example:
Material ABC has the below,
Rev Batch
A A
B B
C blank
If I create a SO for part ABC for Rev C, it does not allow me becos batch does not exists. But my SO should be allowed to be copy C into the batch field in VBAP.
Pls let me know if we must create custom user-exit rather than modifying std.SAP user-exit for Sales Order processing (MV45AFZZ).
Is there any contraints using the batch field in SO? As I came to know that the problem is when creating a Purchase Order it allows to enter free text in batch field but SO doesnt allow. Is't?
Is there any standard way to config the system such that SO will bypass the existence checking of the batch
Pls share !
PriHi, but inplace of Batch we only enter the Revision of the material. Becos rev-batch relationship is 1-1, meaning is rev is A, the batch will be A too.
We just use the batch field to represent the revision
Rev Batch
A A
B B
C blank
I can enter A in SO item batch field because system check that batch A exists
I can enter B in SO item batch field because system check that batch B exists
But I cant enter C in SO item batch field because system check that batch C doesnt exist
Wondering how the system might know the batch is actually my revision. Not sure if I use User EXIT to move C into VBAP-CHARG, will it give me error message because it will find out that there is no C batch
Your views ! -
ME31L/ME32L, ME31K/ME32K badi/user exits at item level
hi all,
i need to check tax jurisdiction code per item of scheduling agreement and contract.
coz i need to prompt an error message "tax jurisidation code at line XX is blank" if no tax jurisdiction code is specified.
can you help me what badi or userexit to use?
tnx!Hi. I'm not aware of any specific user exits or BADI's for contracts, there are lots for purchase orders, and 1 for creating release POs from a contract, but I can't see any spefically for checking contract items.
However, you could try the custom field exit MM06E005. This would be a bit of a cheat, but it does get called by all purchasing documents including contracts, and all fields are available to check against so you could try and use it just to check the standard fields.
You can definitly issue errors into the contact from this exit.
Regards,
Dave. -
COnfiguration tab on ME21N screen at Item Overview level.
Hi All,
In the Purchase order ME21N, screen at the Item Overview level, we have this tab called "Configuration" on the top right hand side of the item overview section. If i want to hide some of the fields from the user to view i think we can go and create a variant and select the field with Invisible flag.
But No matter how many times I activate this settings, and save it, the purpose is not solved. I can still see the field and also if I go back to check the settings in this configuration tab, it was reset to basic settings automatically.
Have anyone used this before? If Yes, can you provide me the steps to follow?
Regards
ShaneI thinnk you can Replace and Rearrange the Columns thru ME21N Configuration. But, Hiding the Columns may not work.
Now what can be done :
You can hide the Columns / Fields in ME21N thru Purchasing-define screen layout at document level. But this will affect all users.
or You can create a Transaction Variant thru SHD0 for ME21N screen.
By the by are u able to hide columns in me21n thru configuration??? -
Hi friends,
I need steps to create screen field in ME21N using the BADI ME_PROCESS_PO_CUST. Can anybody suggest me how to implement this.
Thanks in advance
Regards
Srikanth SHello Srikanth,
To created a screen exit you can use either a BADI or a USER EXIT.
BADI : ME_GUI_PO_CUST
USER EXIT: MM06E005
GO to transaction SMOD
and type MM06E005 and press display.
once inside the user exit, click on components, there you have function Module exits, screen exits and includes.
On the screen exits, you have to decide where you want to add the screen field, whether its on header or item level.
THE go to SE80, type the screen name as the program name. IT will give you all the objects for the particular program.
Choose screens, and then the relevent screen. Go to layout and add the field you want. Save and activate.
You also need to add the field in the Cl_include so that you could pass data and retrive data.
Write the relevant code in Function Modulte Exits.
ITEM LEVEL:
EXIT_SAPMM06e_016
EXIT_SAPMM06e_017
EXIT_SAPMM06e_018
Now you have to add the relevant code in the PAI and PBO module.
Reward if useful.
Regards,
Sandeep Salaria -
Alter screen field layout in MIRO - Item level
Dear All,
I would like to know whether I can change the field sequence in MIRO transaction at the item level. I want to move the Reference Doc field (GRN No) next to the item field in MIRO and this needs to be premanent whenever I create a new invoice in MIRO.
This sort of a change is possible in ME21N at the line item level. I want to know if a similar setting is possible in MIRO, if so please guide me.
Regards
Karthikeyan GCan anyone kindly updated on this pls........
Karthik -
Screen exit MEREQ001- Copy 1 PR line item custom fields values in all
Hi,
I have implemented the Enhancement MEREQ001 to add a new tab for Purchase Requistion screen at line item level .
Requirement for me is to show the same data in the newly added tab for all line items and also to save the same data in EBAN table.
I am facing a problem while saving the data. In EBAN table, the data was saved for all line items. But the custom added field values are saved for only the line item displayed.
I ll explain with an example for better understanding.
I have created a PR with 3 line items ITEM1, ITEM2 ,and ITEM2
When i saved the data when ITEM1 is displayed, EBAN have custom added field values for ITEM1 but not for ITEM2 and item3.
The same way, if I save data when ITEM2 is displayed, EBAN has custom added field values for ITEM2 but not for ITEM3 and ITEM1.
Now, my requirement is to get the all line items ITEM1 & ITEM2 and ITEM3 updated with custom added field values in EBAN.
The logic i added in ME_PROCESS_REQ_CUST~CHECK are as below.
i_items TYPE mmpur_requisition_ite ,
lv_if_item TYPE REF TO if_purchase_requisition_item,
lt_itm_data TYPE mereq_item .
DATA : LV_dept TYPE EBAN-ZZDEPARTMENT ,
lx_itm_data type mereq_itemx.
CALL METHOD im_header->get_items
RECEIVING
re_items = i_items.
LOOP AT i_items INTO wa_item.
lv_if_item = wa_item-item.
CALL METHOD lv_if_item->get_data
RECEIVING
re_data = lt_itm_data.
CALL METHOD lv_if_item->get_datax
RECEIVING
re_datax = lx_itm_data.
IF lt_itm_data-zzdepartment IS INITIAL.
lt_itm_data-zzdepartment = LV_dept .
lx_itm_data-zzdepartment = 'X' .
ELSE.
Lv_dept = lt_itm_data-zzdepartment.
ENDIF.
To set the value for all line item.
CALL METHOD lv_if_item->SET_DATAX
EXPORTING
IM_DATAX = lx_itm_data.
CALL METHOD lv_if_item->Set_data
EXPORTING
IM_data = lt_itm_data.
ENDLOOP. " LOOP AT i_items INTO wa_item.
ENDIF. " IF ( NOT ls_header1-banfn IS INITIAL
BUT above logic is not working
Please give your inputs
Thanks in advance
Deepanker DwivediHI,
You can use GET CURSOR LINE LINE_NO this will give you the sy-index so that you can read the itab like
read table itab index line_no. This is one option and second is if you have row selector.
read table itab with key mark = 'X'.
If you want the Row contents befor the PAI triggers
[Check this Thread|Table Control dynamic F4;
Hope this is clear to you.
Regards
Ram
Maybe you are looking for
-
Can't get past login screen and accidentally added a Firmware password?
Hi, please can you help me. Up until about a week ago my Mac Mini Server (running snow leopard server) was working fine, but when I re-started my user name and password stopped working (the panel shakes). I booted the computer from the Install DVD an
-
Standard WebClient UI business role for the CRM 7.0
Hello Gurus where can we get the below mentioned thing....i tried in service market place but i did not get The predefined authorization roles are provided as attachment BP_CRM_ROLES.ZIP to the collective note of this SAP Best Practices version. Down
-
Issues betw. PDFs created in Acrobat 7 and reviewed in Reader 10
Due to constraints with our authoring system, we are limited to using Acrobat 7 to create PDFs and prepare them for review. Recently, our reviewers have not been able to add their comments into these PDFs. We don't know if this is a disconnect betwee
-
How to create feild catalog using Tcode MC18
Hi firends, I want to create a field catalog using the Tcode MC18 as well as i have to add some fields other then the fields provided in the characteristics stuctures. Can u please give the step by step help to how to do it. thanks and re
-
What's your most annoying trophy?
Firstly, I'm not the sort of gamer that plays games for trophies. But, every now and then I will go after 100% a game and trophies come into that. I don't mind difficult trophies, ones that require skill... however, there are some trophies that reall