Ehancement in me21n

hii
experts
My requirement is to modify in me21n
when user is giving a particular document type in po automaticaly the purchase organisation will be there which is reltaed to that Document ype.
E.g
In my client there is one doc type Zkol In po if Zkol is selected automatocalyy pUrchase Organisation will be 1020 which is kolkata.
How can i do this.
Plz send me screen shots if possible
Plz reply
Thanx nad regards

Hi,
Try with this below:
1.. Create an ACTIVE implementation for the BADI ==>
ME_PROCESS_PO_CUST.
2.. Then inside the implementation you will find a method called as: PROCESS_HEADER.
3..You have to write a small code inside this method.
Code will be like this:
DATA: WA_HEADER TYPE MEPOHEADER.
A. CALL METHOD IM_HEADER->GET_DATA
           RECEIVING
           RE_DATA = WA_HEADER
B. After that ,check the field [BSART] value for the structure
   WA_HEADER ,AS your document type i.e. 'ZKOL'.
if this is 'ZKOL'. i.e. WA_HEADER-BSART = 'ZKOL'.
set the value as -->
WA_HEADER-EKORG = '1020'.
then call another METHOD as below:
CALL METHOD im_header->set_data
            im_data = wa_header.
NB. the BADI is not supporting multiple implementation so make sure the implementation ( where you are placing your code)  is ACTIVE.
Hope this will solve your issue.
Cheers
Somnath

Similar Messages

  • Ehancement for to check the validations in ME21n,ME22n,ME28,ME29n

    Hi experts...
    I have one requirement in Ehancement for to check the validations in ME21n,ME22n,ME28,ME29n...
    If the PO document date is after 31.12.2010 and vendor Group 1800 then check the Inco-terms with "SET" values whether the user entered value fals with in the "SET" value, if so then allow to save the PO else Else system should read the "SET" values and suggest user to select correct Inco terms.
    Example when user enter wrong Inco-Terms then system shoud give Error Message Please Select Inco-terms CPT or DAP or FCA..
    Can any body plz suggest me the user exit or Is it possible through the enhancement Framework...
    plz help me how to proceedd??
    Thanks & Regards,
    Veena.
    Moderator Message: Spec-dumping is not allowed.
    Edited by: kishan P on Jan 3, 2011 11:00 AM

    Hi Veena,
    To find a BADI for a given tcode follow the below steps.
    1. Go to the TCode.
    2. Menu Item System -> Status.
    3. Double click on the transaction Name (For ME21N double click on ME21N).
    4. Check the Package (e.g. ME)
    5. Go to TCode SE80
    6. In the drop down choose Package and type the Package Name (e.g. ME). Dont forget to Hit Enter or display.
    7. Object Name Enhancements -> Business Add-ins (Def.) (You will see all the BADI's available here ).
    In your case, you need BADI : ME_BAPI_PO_CUST.
    Go to SE19 to implement the BADI.
    If you put your conditions in Create Purchase Order(ME21N), you will not need to add them in Release PO(ME28N) since the conditions will be checked when PO is created.
    Regards,
    Jovito.

  • Error while saving a vairant in purchase order- ME21n

    Hai friends,
    While creating/saving a variant in create purchase order transaction(me21n) it is showing the error as " Not all radio buttons from radio button group FUNC were hidden". Can any one help me to fix this problem.
    Thanks
    Hari

    Hi,
    Could you please implement the following sap-notes and restest 
    this issue.                                                                               
    923131  If you start a report w/ variant, radio buttons not hidden  
    962712    DB291 for saving a variant: Radio button group func       
    994798   Error DB 291 when saving variants  
    Thanks
    Best regards
    Erika

  • Suppress an error message while creating a return PO ( ZRO type) (ME21n)

    Hello All,
    I have to write a code in order to suppress the below message while creating a return purchase order (of type ZRO) , transaction ME21n  after entering the purchase organization, purchase group, the vendor & the material no :-
    "You have no authorization to create without reference to another document".
    For users with the below values of parameter ID & parameter value :-
    parameter ID = EFB & parameter value = 02 in transaction 'SU3' , under "parameters" tab, this message is getting triggered.
    My requirement is to suppress this message.
    Please suggest an exit name or a BADI name wherein I can implement the code for this requirement.
    Regards,
    Rachana.

    You can remove parameter ID EFB
    and for Order type other then ZRO you can put check of doc. reference.

  • Amount not getting populated in me21n

    hi,
    amount is not getting populated for the condition type in the conditions tab of me21n.

    Hi
    Have you maintained Info record with conditons? Please write in detail.
    regards
    Srinivas

  • Material field not getting displayed on Material Data tab in ME51n or ME21N

    Material Field was missing in ME51n/ME21n.
    I went into SPRO ->PReq-> Define Screen Layout at Document Level and checked Optional for Material field. Now it's showing up on the ITEM overview section of the Preq.
    But its still missing on Material Data tab in ME51n or ME21N but I can see the Material field on the Item Overiew section of the Req/PO Screen.
    Where exactly do I make the settings for the item level in SPRO?

    We use the Enjoy screens and document types for ME51N/ME21N pretty much out of the box.  We do not have the material master number on any of the detailed item tabs either.  I do not think you can show it in the details unless you activate the customer specific fields tab.
    Regards

  • How to add additional tab or fields in ME21n

    Hi all.
    I included some fields in EKKO table.
    I want to add these fields in ME21n, ME22n, ME23n Header screens.
    How to add?
    I can't find screen exit and user exit.
    Plz, let me know how to do in detail.
    Regards,
    nam
    Message was edited by:
            Kil Nam Kim

    Hi
    It is very much possible. Please discuss with your development team with the exact requirements. They should be able to do it with screen exits.
    Reward if this helps.

  • Material column is not displayed in ME21N in NEW ECC 6.0 - Urgent

    Hi Gurus
    I am working in Technical upgradation from 4.6 C to ECC 6.0
    We got new system last week only, in the new system (6.0) in ME21N - the filed for entering material no is not coming.
    Please suggest
    Muthu kumar

    Hi,
    After upgradtion some of the screens will changed from older version to new version. This is not common for all clients. Some upgradtion will have like this impact.
    The Material number is there on the ME21N transaction but may be in the different column check that correctly, but may not be on the same column as in 4.6 C but in different column may be middle or last.
    Other wise check the configuration on the top right of Item overview there is button when you click that system will show the Table settings there check any new variants are created or not. If there modify that and save then activate.
    rgds
    Chidanand

  • Want check box checked as default for a newly added subscreen in ME21N

    Hi Guys,
                 I have added a subscreen in ME21N with one field with check box.
    When I enter ME21N I should get that checkbox CHECKED automatically.
    How to do this.
    And one more thing is when manually putting checkmark,when I press enter that check mark is getting deselected.How to overcome this???
    I have used screen exit
                                      SAPLXM06 
                                      screen: 0101   for this subscreen.
    Thanks in Advance.
    Prasad.

    Hi,
    the deselection problem could be caused of an incorrect name of that screen field name. You should check in screen painter if that check box field name is the same name as your data object (e.g. gv_checkbox) .
    Unfortunately it is not possible to define default values within Screen Painter. You have to do this in PBO.
    Regards
    Mark-André

  • Custom pushbutton in ME21N should display a popup window with item details

    Hello,,
    The requirement is to
    1. Add a custom pushbutton in ME21N screen at header level.
    2. The user will select some PO line items and will click on this push button.
        This inturn should trigger a popup window with item details only for those selected PO line items along with schedule line qty.
    I have created the custom push button in a custom tab using the BADI ME_GUI_PO_CUST.
    Now I am not able to retrieve item details and schedule line details inside the PAI of the custom tab..
    i.e., when i click on the custom push button, I am not able to retrive the item data and schedule line data.
    Please help me to retrive PO line item data and schedule line data.
    Regards,
    Sharah

    JSF is not so relevant in this question. It's all about how the generated client side code look like. Which is usually a bunch of HTML/CSS/JS (open page in browser, rightclick and view source). If you know HTML, you should know that using target="_blank" in a <form> or <a> element would open a new window. If you know JS, you should know that using window.open() would open a new window.
    Apply this so in the JSF source code so that the generated HTML/JS output is exactly what you want.

  • Reg Po creation in ME21N

    Hi all,
    I am fresher in SAP MM module.
    When i am creating PO in ME21 with reference to PR  , i am getting a short dump.
    How can i create PO in ME21N  with reference to PR  ???
    Kind regards
    Karthik

    hi,
    There are 4 ways:
    1.Either enter the PR no directly or choose it from the overview tree...
    All the data will get copied from the PR to PO..change the doc if req.. check the doc...then posted it...
    2. while creating PR you can directly posted it from the same document ..in the same same tcode you will the Tab saying the Post PO tab..if you click on it..it will directly post the same PO...
    3. There is a field provided in the MMR for the material, called Auto PO if you tick on it...it will be automatically created...
    4. PO can be also created via MRP...
    Edited by: Priyanka Paltanwale on Jul 30, 2008 11:28 AM
    Edited by: Priyanka Paltanwale on Jul 30, 2008 11:31 AM

  • How to restrict the user to change/enter field value in me21n?

    Hi, Experts,
    in the me21n screen..for matkl field we need to validate the user authorization.
    if that user having the authorization then it should allow to enter value in the matkl(material group) field.
    other wise it should not allow.
    how to do this validation?
    can anybody help me on this.
    Thanks and Regards,
    venkat

    Hi Aprna,
    Thanks for your reply, but can you give some code for that.
    actually i am new to badi or userexits...
    if you can provide code it will be more helpful for me.
    Thanks in Advance,
    venkat

  • ME21N Material group level authorization is not working in ECC 6.0

    Dear Security Experts,
    We have created a role Z_ME21N with one Tcode ME21N. The role has to restrict users in the material group level.
    For that, we added Authorization object M_MATE_WGR.
    1.     When we are trying to add field values for {M_MATE_WGR, BEGRU}, generally it should show me the list possible values to be used based on the MM configuration related to Material Authorization Group. We have correctly configured the authorization groups from V_TBRG for M_MATE_WGR. But itu2019s not showing any possible values.
    2.     However we are able to add values manually, but I guess these are not being considered during authorization check and our restriction on Authorization group level in ME21N is not working.
    Test Scenario: We have manually added values 005,007,009,010,013 (which is pointing to specific material group) to BEGRU of M_MATE_WGR. We already assigned this Authorization Object to role Z_ME21N and this role has been assigned to u2018testuseru2019, but the authorization check with the M_MATE_WGR authorization group is not happening. It allows operations on all the material groups.
    Anybody came accross same scenario?
    SAP Prodcut version : ECC 6.0
    Database : SQL Server 2005
    Support pack level : 15
    Please share your views, thanks in advance.
    Regards,
    Abu Sandeep

    Dear All,
    I got a reply just now from SAP regarding the same issue.
    I coudnt understand what SAP and you are saying.
    Dear Abu
    *Apologies for the delay. This message has been turned on to application*
    *area of MM from the Basis side just now.*
    *Unfortunately, authorization object "M_MATE_WGR " is not checked*
    *in the purchasing transactions (PR & PO), the system works as standard*
    *functional designed.*
    *Only the following objects are checked in PR/PO:*
    *M_BEST_BSA Document Type in PO M_BANF_BSA Document Type in PR*
    *M_BEST_EKG Purchasing Group in PO M_BANF_EKG Purchasing Group in PR*
    *M_BEST_EKO Purchasing Org. in PO M_BANF_EKO Purchasing Org. in PR*
    *M_BEST_WRK Plant in PO M_BANF_WRK Plant in PR*
    *Setting in check/maintain on in SU24 only means that the profile*
    *generator will propose the object when creating a user, however is*
    *does not mean that M-MATE_WGR will be checked.*
    *Please close this message by pressing the confirm button at your*
    *earliest convenience.*
    *Many thanks in advance for your understanding.*
    So, how can I resolve this problem? John, are you sure that, you implemented this successfully?
    SAP says, this cant be done.
    Regards,
    Abu Sandeep.

  • Custom Screen using BADI seen in ME23N, ME22N Display, but not in ME21N

    Hi,
    I have developed a custom screen for purchase order using badi ME_PROCESS_PO_CUST and ME_GUI_PO_CUST.
    But, its not visible in ME21N, whereas its dipalyed in ME23N, ME22N .
    Please advise.
    Thanks,
    Shivaa....

    In TC CMOD you can create a new proyect and use the component MEREQ001 with this component you can see adicional tab in those TC.

  • Fast change for statistical delivery date in me21n

    hi
    need fast change for statistical delivery date in me21n
    in me21n when i enter on to fast change screen i doesn't find statistical delivery date
    can anyone tell me the process
    thanks

    Dear Anudeep,
    You cannot change this via "Fast Change".
    Please see the usage of this field.
    Calculation of the delivery time is an element in the determination of a vendor's adherence to delivery dates (that is, the vendor's delivery timeliness, or on-time delivery performance) in MM Vendor Evaluation.
    If it becomes known that the vendor can only deliver ordered goods some days later than originally stipulated, for instance, you can change the delivery date accordingly for materials planning and control purposes. However, the statistics-relevant delivery
    date remains unchanged.
    As a result, the vendor's "on-time delivery performance" score worsens. At the same time, it is ensured that materials planning and control works on the basis of the right date.
    Regards,
    ian, Wong Loke Foong

Maybe you are looking for

  • Sometimes doesn't automatically add invitations

    iCal in Leopard has been a huge pain to say the least. I am the IT director for a law firm with 20 attorneys. One of the senior partners upgraded to 10.5 back in December. He's had continuous problems getting the invitations to go from email to iCal

  • PO status saved to ordered

    Hi, How  to convert PO status saved to ordered for confirmation . whre to check the error Regards,

  • Cannot print out of Photoshop CS5.1?

    I have Photoshop CS5.1 & it will not recognize my printer. Now the print option is totally grayed out & I have to print out of Elements. I have tried reinstalling the printer software. Suggestions? I am on an iMac with os10.9.5?

  • Yosemite Mail 10.10.2 - SSL port, Certificate not trusted, email can't be seen

    Hi All, Thanks in advance for your help. I have just upgraded  (quite regrettably) to Yosemite 10.10.2 with a clean install (Time machine... that's a whole new bag of tricks hasn't worked can't even reinstall mail via TimeMachine RESTORE.. very helpf

  • Inventory transaction worker request completing with error.

    when running Inventory transaction worker concuurent request completing with error. Here I attached the error message .. Oracle Inventory: Version : 11.5.0 - Development Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved. INCTCW module