Me21N transaction Vendor check
Hello All,
While creating a PO in Me21N, Vendor should be validated. If the check fails, PO should not be created and the error message should be displayed to the user. I've used User-exit EXIT_SAPLEBND_002 & EXIT_SAPMM06E_012. Upon check failure, error message is being raised from both, along with a pop-up box with Save, Edit and Cancel buttons. Incase the user selects "Save", PO is created. I do not want this pop-up box to be displayed or do not want the user to have a choice of saving the PO when a error message is raised.This pop-up box is being raised by the standard SAP program.
Is it possible to supress this window from showing-up? Or am I using the wrong exit? I tried using BADI method IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER. But this is getting not triggered.
Thanks.
Hello Sakthi,
I have added my validation in User-Exit "EXIT_SAPMM06E_012".
Below is the sample code:
IF sy-tcode = 'ME21N' OR sy-ucomm = 'MESAVE'.
IF i_ekko-bsart = 'XYZZ' and i_ekko-lifnr = 'P123456'.
MESSAGE e000(zm001) DISPLAY LIKE 'E' WITH 'Vendor' i_ekko-lifnr 'is not allowed for Document Type' i_ekko-bsart.
RETURN.
ENDIF.
ENDIF.
In place of "MESSAGE e00......" you could use below macro :
mmpur_message_forced 'E' 'ZM001' '000' 'Vendor is not allowed for Document Type'.
This macro is used to give soft error message. I tried with "A" instead of "E" message type too and it didn't work. It will trigger a pop-up window with "Save", "Edit" and "Cancel" buttons. If user clicks on "Save", it would create a PO. In my case I did not want the PO to be created, incase validation fails. So I did not use macro. My sample code triggers a pop-up window with "Hold", "Edit" and "Cancel" buttons. Hence a PO is created with Parked status.
Thanks,
Siri
Similar Messages
-
Hi,
Want to configure e a warning message for Duplicate Vendor master creation.
I can see a message F2144 configred, but this is only applicable if we create Vendor from FK01.
In spro>Logistics general>Business partner>Vendor> message control for Vendor master ....can we configure a message here, which will be applicable if I create duplicate Vendor master from transaction XK01.
Regards,
Rajesh Satope.For normal vendor you can maintain duplicate check in OBA5
Application Area F2
Message No.144 for Vendor and 145 for customer, making it as information.
Reference : [Duplicate vendor check??????|Duplicate vendor check??????] -
Capture error messages in message log in ME21n transaction
Hello friends,
i have a question here.I have created a Z-table which contain data about material groups which will not be used for the particular plant.when we create a PO now ,i am checking for each line item whether the material group entered for each line item exists in Z-table or not.If exists then throw a message 'XXXXXXXX.'
as this is an enhancement to Me21n transaction , i am using User exit EXIT_SAPMM06E_012 .Now my problem is for each line item i am checking for condition and throwing a message.My requirement is show up all messages(for eg : If more than 1 line item contain errors for the same condition) in the message log of the transaction ME21n screen.I dont think we can do this in the User exit as showing up messages in ME21n is standard functionality
Could anyone please give any idea how to achieve this??
Thanks in advance!Hi,
You may write to application error log or call screen to show error log in user exit.
Cheers.
...Reward if useful. -
How to update Partner function tab in ME21N Transaction
Dear Guru's,
I have a requirement to call a selection screen in ME21N transaction which will show list of vendors available. the selected vendor in the selection screen should be updated with parnter function 'CR' in the Parnter function tab of ME21N Transaction and EKPA table also.
Thanks & Regards,
Sridhar R Perumalla.Hi,
Use the function module MM_UPDATE_PARTNERS for updation ....and wite the code in ME_PROCESS_PO_CUST badi in process_header method...
in PROCESS_HEADER method use GET_DATA to get the entered vendor number in PO.
Thanks,
Shailaja Ainala. -
Error in ecatt testing for me21n transaction.
Hi All,
I have created Test script, test data container and Test configuration for ME21N (create purchase order) transaction
While executing test configuration, I got below error message.
S00349 Field COBL-KOSTL. does not exist in the screen SAPLMEGUI 0014
Please help me for further action.
Many thanks
VikasHi Vikas,
Before running the test configuration, Please check ME21N transaction manually and find out the field
COBL-KOSTL and check whether it is mandatory or not.
If it found check your script whether that field is properly recorded or not.
May be this field is newly added as mandatory for that transaction
Regards,
Santosh.
Edited by: ABAP Santosh on Oct 19, 2009 9:17 AM -
Badi for ME21N & ME22N to check storage location
Hello Guru's,
I need BADI for ME21N & ME22N to check storage location is maintained for plant used in PO i'm using method IF_EX_ME_PURCHDOC_POSTED~POSTED with definition name ME_PURCHDOC_POSTED but this throws message on SAVE.
But my requirement this message should be displayed before saving.Please guideHi,
Use BADI:
ME_PROCESS_PO_CUST
BADI CL_ME_PO_CUST
Business Add-in
ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Customer
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_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
ME_COMMTMNT_REQ_RELE Check of Commitment Relevance of Purchase Requisitions
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
SMOD_MRFLB001 Control Items for Contract Release Order
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_PURCHDOC_POSTED Purchasing Document Posted
ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
ME_PROCESS_REQ Enhancements for Processing Enjoy PReqs: Internal
ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
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
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)
ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
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
ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
ME_CHANGE_OUTTAB Enrich ALV Output Table in Purchasing
ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
Edited by: Neenu Jose on Nov 21, 2008 6:13 AM
Edited by: Neenu Jose on Nov 21, 2008 6:16 AM -
While creating a PO in ME21N the return check box is automatically ticked.
Hi SAP Gurus,
I am facing a problem while creating a PO.
Every time I am trying to create a PO in ME21N, the return check box at the Item level of the PO is automatically getting ticked.
The check box can't be unticked even in change mode of the PO.
So all of the PO's with different document types are getting created with the Return check box ticked.
Can you help me to uncheck the Return tab in the Item level.
Please advice if any configuration is required or the code has to be modified.
Thanks in adavance.
Regards
SubhasisHi,
Go to the Table T007A, where you find the tax codes.
Input & out put taxes are the tax types.
In FTXP T.code give the tax code and click on the
Input tax codes are used for purchase cycle and out put taxes are for sales cycle. I Hope you have given the sales related tax code. Thats why system is giving the error message.
In T007 Table give the proper input and get the details.
Regards, -
Grayout of component screen fields in ME21N transaction
Hi experts,
I have a problem while creating subcontracting PO i want to gray out the fields of component screen...in ME21N transaction...is it possible through the screen varient or else should i go for exit ??...could u please help me in finding the right procedure...........
Best Regards,
shankerGo to the screen where u want to make the changes.
Click on System -> Status. Double click on the screen Number (like 1121).
Then on the PBO module screen click on 'Layout'. You will go to graphical screen painter.
Then DOUBLE CLICK on the column/field you want to gray out and on Attribute part, Program Input -> Not possible .(save + activate)
You will need an Access Key to change the standard SAP Screen...
Fawaz -
Item level Info record PO text field in Purchase Order Me21n transaction
Hello All,
I have to enter some information in the PO info record text field (which is in Item level Texts tab of ME21n transaction ) using an user-exit at the time of creation/change of purchase Order.
Does anyone knows the user-exit and how to update the text field ?
Any help is really appreciated
Thanks
RickyCheck with : Enhancement : MM06E005
Function module : EXIT_SAPMM06E_017
This user exit will trigger when you enter the data in item level(Both creation and change) -
Read the table row data and dispaly it in the ME21n transaction
Hi All,
i'm new to ABAP and OO ABAP .Please somebody help me out for my req. My req is , when i double click on the table row which is having PO details , then that data should be displayed in the ME21n transaction. please some on tell me how to achive this using SALV class..
thanks,
Rajeev.Hi rajeev bikkani ,
you can use the events 'Double_click' in alv. below given the code, try out.
class lcl_list_event_handler definition.
PUBLIC SECTION.
methods on_double_click
for event double_click of cl_gui_alv_grid
importing e_row .
endclass.
class lcl_list_event_handler implementation.
method on_double_click.
call transaction 'ME21N'.
ENDMETHOD.
ENDCLASS.
before executing the method SALV.
write code
set handler obj2(reference for lcl_list_event_handler) ->on_double_click
for obj1(referenece for cl_gui_alv_grid). -
Hi ,
I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
Thanks & Regards,
sreehari
Moderator Message: Search for available information on the web before posting
Edited by: kishan P on Sep 3, 2010 9:51 AMHi ,
I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
Thanks & Regards,
sreehari
Moderator Message: Search for available information on the web before posting
Edited by: kishan P on Sep 3, 2010 9:51 AM -
Kindly let me know the transaction for checking the Status of par.User?
Kindly let me know the transaction for checking the Particular Users Status?
I mean to say,Which Transaction is he into?
Or Is he/She Logged on to a particular System?
Regards,
Shashank.Hi,
Go to Transaction SM04.You will find the List of Users And the List of transactions ther are currently using.
Regards,
Sujit -
Hi Frendz,
Cud you explain me about the User roles and vendor
Checks concept in SRM detail.
Regards
AshokHi
All the vendors are grouped in to PPOMV_BBP. Here all the contact persons of the suppliers have a role like SAP_EC_BBP_VENDOR . In the PPOMA_BBP contact person tab click. you can see conta person role there.
Vendor contact person is like a SU01 user . for eg. Bidder has SAP_EC_BBP_BIDDER role.
You an add a role via Maintain Business partner via WEB
regards
Muthu -
Fixed Vendor check box with BAPI "BAPI_SOURCEDETERMIN_GETSOS"
Hello gurus,
I am new to BAPI & I need to update the source list(ME01) with agreement no., item, unit & fixed vendor check-box.
My question to all that the fixed vendor check box will be checked or not if i use the BAPI BAPI_SOURCEDETERMIN_GETSOS?
Thanks & regards,
FeludaHello,
The coding you've made regarding the check/uncheck seems fine...
However, check again logic-atp_wrkmod...
As far as i've seen, the allowed values are space and 'A' .
The value 'X' is not in the domain range.
Hope it helps!! -
Steps to create STO using ME21N transaction
Hi,
Can anyone give me the steps to follow to create STO using ME21N transaction. When i try to create it, i am getting the error message : Not possible to determine shipping data for material 3863...
Please guide me...
Thanks in Advance,
Phani Kumar. SI got the same error it was because in customizing you specify plant master data that is linked to a customer master record. You need to make sure the customer master data is set up from a sales perspective. E.g. customer must be extended to appropriate sales org. and division. Same with the material master but the customer master was my problem. This is configuration and you will have to move it through the transport queue so if you have a problem in your production system it will require a transport.
Jeremy McGurk
Maybe you are looking for
-
New Retina MacBook Pro does not find WiFi after booting
My Retina MacBook Pro keeps looking for WiFis after it has booted, but does not find any. I have to explicitly turn WiFi off and on again after booting to get it working. When I put the MacBook to sleep and wake it, the problem does not occur. Any hi
-
Safari is extremely slow to load pages & saving my bookmarks to my folders
why is safari so extremely slow in loading pages? it can just about load my e-mail, if I wait about 5 minutes & I cannot check my t mobile cell phone balance because it gets stuck loading the page. Also I cannot get it to save bookmarks into my desig
-
Range overlapping the problem I'd like to solve : given a table ranges (range_id#,external_key, from, to) I need to detect overlapping grouping by external key, ie: range_id external_key from to ------------------------+---- 1 A 1 5 2 A 8 10
-
Ocfs2 config failed! = Exception: Obsolete nodes found
Hi, I try to add a new node to a POOL and it failed with this error ovs_operation.log: "2011-07-27 09:40:36" ERROR=> cluster_check_prerequisite: faild. => <Exception: ha_check_ocfs2_config failed:<Exception: check srv('ovm-rac-exp01') ocfs2 config fa
-
Unable to pair to my TV using youtube
I used to pair my iPhone to my smart TV using youtube to be able to type my search youtube using my iPhone virtual keyboard. I used to go to the page youtube.com/pair on my phone safari, and it used to work perfectly. Recently every time I type that