In me21n tcode pr field as validate
hi guru's
in me21n tcode in item level i want to check purchase requestion field initial or not
if its not initial it should trow the message 'please enter pr' how to do it .... it can be done by user exits r badi .. if it possiable please sen the code
Making PR mandatory based on Doc Type can be achieved via SPRO. The path is
SPRO>Materials Management>Purchasing>Purchase Order>Define Screen Layout at Document Level. Create a new field selection based on your exisiting field selection or modify your exisiting one. It depends on your requirement. Click on Reference data, item You would find PR and some radio buttons. Click the one for Reqd Entry. Save.
Once this is saved, go to SPRO>Materials Management>Purchasing>Purchase Order> Define Document Type. Enter the updated field selection from above in the document type row for which this change needs to be activated.
Hope this helps!
Thanks!
Similar Messages
-
Screen value of table control in ME21N tcode condiions tab
Hi ALL,
I have a problem in ME21 Tcode .I want to read screen field value of net price of Screen ME21N tcode conditions tab.
when I change tax code in delivery tab then condition tab values changes according to price procedure.I want to read that conditions tab Net price value nothing but unit price (amount field in screen) and need to do validation .
i used the BADI but could not able to find the screen value using DYNP_VALUES_READ fm.
kindly sugest the solution.
regards,
padmaja.Hi
In BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM or in method CHECK, for interface IF_PURCHASE_ORDER_MM, use method GET_CONDITIONS.
For instance in method CHECK
include mm_messages_mac.
data: header type mepoheader,
items type purchase_order_items,
po_line type mepoitem,
line_item type purchase_order_item,
po_condition type mmpur_tkomv,
header = im_header->get_data( ).
items = im_header->get_items( ).
loop at items into line_item.
po_line = line_item-item->get_data( ).
call method line_item-item->get_conditions
importing
ex_conditions = po_condition.
endloop.
I hope don't forget anything.
I hope this helps you
Regards
Eduardo -
Me21n tcode pr validation based particular document
hi guru's
in me21n tcode in item level i want to check purchase requestion field initial or not
if its not initial it should throw error message 'please enter pr' for PARTICULAR ORDER TYPE (document type ) how to do it .... it can be done by user exits r badi .. if it possiable please send the codeHi,
badi ME_PROCESS_PO_CUST
method - PROCESS_ITEM
data: ls_poitem type mepoitem.
ls_poitem = im_item->get_data( ).
if ls_poitem-banfn eq ' '.
message 'Plz Enter Purchase requisition' type 'E'.
endif.
Regards! -
Hi,
we have developed a user exit to get error message when po value is greater than some amount in me21n tcode. am getting error message when entering all items. But when press SAVE button i want that error message also. But am not getting that error message in that time.How i can write a code for that.Hi Geetha,
For that requirement you have to code in EXIT_SAPMM06E_012 or EXIT_SAPMM06E_013 MM06E005.
EXIT_SAPMM06E_012 : it will get triggered whenever you press HOLD,CHECK or SAVE button
EXIT_SAPMM06E_013 : it will get triggered just before saving the PO.
Thanks & Regards,
Faheem. -
Adding a new tab on item level in me21n tcode
Hi all.
i am adding a new tab on item level in me21n tcode.
i want to make this tab to be shown on the screen when the order type is UB is stock purchase order.i dont know how to make this condition and where should i place it so that this tab can come in effect only when the stock purchase order appears.
please help.thankshi
chk this
Re: New tabs in the header tab-sheet of ME21N/ME22N/ME23N
hope this helps
regards
Aakash Banga -
Me_process_po_cust badi for generating internal number range in me21n tcode
Hi all,
I have requirement while creating purchase order my client want to generate internal number range based on company code,document type and plant.here, we are making one custom table to hold compny code,plant,doc.type and Number range number.I am using me_process_po_cust badi for the same.I got the po header and item data from this badi.my problem is how i can pass this number range number in me21n to respective fields.
Regards,
Sleela PatilHi,
Thank u both of you..I tried that exit.following is the code I have written for that exit.
TABLES: T001K,NRIV,EKKO,ZVS_MM_RANGE.
DATA: WA_TAB TYPE ZVS_MM_RANGE,
WERKS LIKE T001W-WERKS.
GET PARAMETER ID 'WRK' FIELD WERKS.
SELECT SINGLE * FROM T001K
WHERE BUKRS EQ NEKKO-BUKRS.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM ZVS_MM_RANGE
INTO WA_TAB
WHERE BUKRS EQ NEKKO-BUKRS
AND WERKS EQ WERKS "T001K-BWKEY
AND BSART EQ NEKKO-BSART.
IF SY-SUBRC EQ 0.
MOVE: NEKKO-EBELN TO NUMBER,
WA_TAB-NRRANGENR TO RANGE.
ELSE.
MESSAGE 'Please maintain Number range in table zvs_mm_range' TYPE 'E'.
ENDIF.
ENDIF.
Here, I am getting data as I needed but problem is client having multiple plant for single company code.I am not able to capture plant in this exit.as, it is in item level.so,later on tried to do it using me_process_po_cust badi.
Now my problem is that how to pass this number range number in me23n tansaction.
Regards,
Sheela Patil -
Populating cost center(kostl) field in ME51/Me21n tcode
Hi All,
I've to populate the cost center (cobl-kostl) whenever we enter the data for account assignment category in the line item level data in me51n & me21n.,
I've done couple of analyis on existing exits & badis ME_PROCESS_REQ_CUST ,,but I could'nt able to populate the kostl field in me51n.
My strucking point:- is there any badi/exit where i can populate the kostl field gettig account assignment category information as input.
all helpful solns are highly appreciated
thanks in advance
sureshI am having same requirement could you please suggest the solution?
-
ME21N - 'Overall limit' field validation
Hi,
I have a problem to validate field "overall limit" in Limits tab. I can't find that field either in user exit or Badi for ME21N. Can anyone help me?
ThanksCan u tell the exact location of that field...
its in header level or item level...
then i will be able to help u... -
Exit in ME21N for change field
Hi everyone,
i'm looking for an exit or BADI in ME21N that allows me to change a specific value in table eket.
The idea is that after the SAVE, the field EINDT of EKET must be changed.
I had aldready tried to use some exits, but not even one worked.
Here's the list i tried:
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
Can anyone help me please?
Best regards,
Pedro
Message was edited by:
Pedro Rosa
Message was edited by:
Pedro RosaHello Arif Mansuri ,
i have a question about your reply.
I'm not looking for BAPI for creating and changing PO, but a BADI or exit to use in ME21N that is able to change the content of a field, in this case eket-eind.
You are saying that exist's a BADI for that purpose related to BUS2012 ? What's the name for the BADI?
I have aldready tried WVLB_BADI_WLB13_EXT.
Best regards,
Pedro -
ME21n - Purchase order field exit??
Hi
Does anybody know what the ME21n (enter purchase order) field exit would be so that I can default a particular G/L account (HKONT) when the account assignment group is 'F' & the purchasing org is a particular value?
If you can also confirm if that is going to be possible with coding in that field exit I would appreciate it....
Thanks all for your time...Screen Exit
Please remove the TDS-related input fields on the PO entry screen on the customer data tab (PO line details).
- TDS account
- TDS cost code
- TDS sub code
1. Goto Transaction Code Me21n
Fill the following fields
Enter
Give the input values in following fields from ORGDATA TAB
Purchasing org
Purchasing group
Company code
Vendor
Enter
Select Customer Data tab like following
USER EXIT : MM06E005 (Customer fields in purchasing document )
 Goto : T.Code : SMOD
 Give the Enhacement Name : MM06E005
 Click on Display
 Click on Components Push Button
 Double click on function module EXIT_SAPMM06E_016( Export Data to Customer Subscreen for Purchasing document item)
 Double click on Include ZXM06O01.
 Insert the following coding in that include
SET PARAMETER ID 'BUK' FIELD g_ekko-bukrs.
LOOP AT SCREEN.
IF screen-name = 'EKPO_CI-ISMSUBTITLE1'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
*>>>>>>>>>>>>>>>>>>>>>> Begin of insert CR336/BG1 >>>>>>>>>>>>>>>>>>>>>>
IF screen-name = 'G_EAN11'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
*<<<<<<<<<<<<<<<<<<<<<<< End of insert CR336/BG1 <<<<<<<<<<<<<<<<<<<<<<<
*>>>>>>>>>>>>>>>>>> Begin of Changes for K896570/501411945 <<<<<<<<<<<<<
IF screen-name = 'EKPO_CI-TDSACCOUNT'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'EKPO_CI-TDSCOST'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'EKPO_CI-TDSSUB'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
*>>>>>>>>>>>>>>>>>> End of Changes for K896570/501411945 <<<<<<<<<<<<<
*>>>>>>>>>>>>>>>>>>>>>> Begin of insert SM1 >>>>>>>>>>>>>>>>>>>>>>
IF ( screen-name = 'EKPO_CI-TDSACCOUNT'
OR screen-name = 'EKPO_CI-TDSCOST'
OR screen-name = 'EKPO_CI-TDSSUB'
OR screen-name = 'TDS_TXT_1'
OR screen-name = 'TDS_TXT_2'
OR screen-name = 'TDS_TXT_3'
OR screen-name = 'TDSACCOUNT-DESC'
OR screen-name = 'TDSCOST-DESC'
OR screen-name = 'TDSSUB-DESC' ).
IF g_ekko-bukrs(2) <> 'U6'. "not a theatrical company
screen-invisible = '1'.
screen-input = '0'.
ELSEIF g_flag = 0. "display only
screen-invisible = '0'.
screen-input = '0'.
ELSEIF g_flag = 1. "change
screen-invisible = '0'.
*>>>>>>>>>>>>>>>>>> Begin of Changes for K896570/501411945 <<<<<<<<<<<<<
screen-input = '1'. "Fharook Syed
screen-input = '0'. "Fharook Syed
*>>>>>>>>>>>>>>>>>> End of Changes for K896570/501411945 <<<<<<<<<<<<<
ENDIF.
IF screen-name = 'EKPO_CI-TDSACCOUNT'.
screen-required = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
*>>>>>>>>>>>>>>>>>>>>>> End of insert SM1 >>>>>>>>>>>>>>>>>>>>>>
 save & activate.
 Repeat the above process in ME21N to see customer data fileds in CUSTOMER DATA tab
After the above Modifications CUSTOMER DATA is displaying like this
rewars if useful -
ME21N Fast Change-Field Addiition
Dear All,
In ME21N/ME22N, there is a Fast Change Icon at the item level after Copy Item Icon.
When clicked on it, we can see the hidden fields in it which are present in the structure
MEGUI_MASSCH_ALLOWED_FIELDS
Now I want to add one more field which is the WBS Element in this list of hdden fields.
So I added this field to MEGUI_MASSCH_ALLOWED_FIELDS structure by doing an Append Structure
But it is not making any difference.I cannot see WBS Element in that list of hidden fields.
Can anyone tell me how to meet this requirement
Rahul.Hi,
check the badis/exits available:
e.g.
MEGUI_LAYOUT
ME_GUI_PO_CUST
Best regards.
Edited by: Pablo Casamayor on Mar 24, 2009 9:18 AM -
Hi All,
I have a requiremnet in ME21N Transaction.
While creating a PO i want to validate some values based on services tab in the items.I found one badi related to services but when i am putting a break-point its not getting triggered.
BADI IS -
ME_PO_PRICING_CUST
Please help me which BADI shall i use for this purpose, its very urgent.
Regards
MonaHi Monalisa,
Check out the threads given below:
BADI for ME21N
BADI in ME21N
With luck,
Pritam. -
With ECC 6, the transaction field box in WebGUI (SAPGUI for HTML) is closed by default. What parameter do you set to make the tcode field open by default?
This is the default behaviour. I an not aware of any parameter that you allows you to over ride this.
One would have to change the template "GUI_CUA.html" to make the field visible
SE80 -> Internet service "WEBGUI", open the template DM/GUI_CUA under
"WEBGUI/Theme DM/HTML Templates -
Hi,
Is their any control for TCODES for determining fields
ex:i want like this in VA01 i dont want order reason field
but the doc shld be incomplete so it cant be delivered or invoiced.But in va02 i want inc.pro field where it will make the doc complete what can be done for this...
i tried tcode shd0...but didnt get any clue...
regards,
ramHi Ram,
SHD0 is very simple, you get in there and press create button after entering transaction code.
Then on in each screen what ever values you enter it will register.
You can make them default and you can hide those fields.
You keep saving screens and keep enter untill you get final screen, then press save and exit.
But you need to save in new package, and screen sequesnce with hidden fields and default values will be accessed by users like regular report variants.
But to .
regards
Gopal -
Hi folks,
I have a requirement that the transaction ME21n is to be called with the some default values.
iam using set parameter id syntax and then calling the tcode......But the values in the tcode are not getting populated which are actually expected to do so...
Appreciate your quick response on this.
Regards,
Rohan.Hi Rohan,
You can go for Transaction Variants or Parameter Transaction for displaying default values.
With Regards,
Vipin.
Maybe you are looking for
-
Hi guys, hope u can help me, i bought a movie from itunes a few months ago, and i´ve played it before in my laptop (Toshiba Satellite L755D) with windows 7 home premium, i have my Bill in my e-mail, but when i try to play it now, it won´t! a message
-
System monitoring, open tasks are no longer visible in Tcode DSWP
Hello! I have patched my Solution Manager with the newest support packages and have the problem with system monitoring, open tasks. All the systems have a long_sid. I have implemented the SAP notes 1065285 and 1076772, but it was not sucessfull. <b>A
-
Oracle Jinitiator latest version
Hello! which is the latest version of Oracle Jinitiator available for oracle forms and which parameters to be reconfigure for usage of newer version (if available) Thanks in Advance
-
Is there any table where there is wagetypes with Transaction types
Hi Is there any table in SAP where there is wage types with Transaction types setup or does it exist in FI side ? please help Regards Krishna
-
Set value with XPath dynamically #2
I am running into a similar problem as http://forums.adobe.com/message/2953296#2953296 .but instead of constructing a string from xpath expressions, I'm trying to store a value into a Location based on a concatenated xpath expression. Here is what I'