Default values in ME51N/ME21N

Hi,
I am trying to default Account assignment value based on document type while creating PR and PO. I have looked at BADI and USEREXIT but couldn't get a solution. There is a method OPEN in BADI ME_PROCESS_REQ_CUST ,it dumps when I use method get_data in that. If anyone has done this before please let me know.
I have checked previous posts,most of them say to use personal settings which I do not want because account assignment value changes based on document type.
Thanks

What dump are you getting when using the get_data method?
For PO's I would use
BADI:  ME_PROCESS_PO_CUST
METHOD: PROCESS_ITEM
CALL METHOD im_item->get_data
RECEIVING
re_data = v_data_item.
"Your logic here
"if doctype = ...
"v_data_item-KNTTP = ....
CALL METHOD im_item->set_data( v_data_item ).
Edited by: Aparna Shekhar on Sep 2, 2008 12:53 PM

Similar Messages

  • Default Value for Order Type based on Company Code  in ME21N

    Hi,
         Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code  XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled how to implement it. I know that we can set a Default value for PO Headers in Personal Settings but its doesnt give the result I want coz it will only have one Default Value. What I wanted is when a certain company code is chosen, automatically, the corresponding PO type for that Company code will be displayed in the Order Type drop-down menu (so there's no need to choose on the drop down list what Order type) Is this possible in ABAP? Hope i made myself clear.
        Thanks in Advance.

    Use BADI IF IF_EX_ME_PROCESS_PO_CUST - method OPEN
    View the interface documentation in transaction SE19 and you will see the method OPEN can be used :
    2. Opening of a purchase order (OPEN method)
    The system opens a new document to create, change or display a purchase order. With the OPEN method,
    <b>you can import your own data and prepare it for further processing.</b>
    This is available in 4.7 Enterprise but not sure how far back.....
    hope this helps
    Colin.

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • Re: Default value in field Plant during PR creation (tcode: ME51N)

    Hi,
    It seems parameter id is not available for defaulting a value in field PLANT during PR creation?
    Is there any option i can use on this instead? thanks in advance.
    Rgds,
    She

    Hi She,
    Go to ME51N Trxn code and Click on Personal Setting Tab and Here You can set you Palnt as Default in Default Values Tab.
    If It is not there in Default Values then Click on More Fields tab and Select Plant then copy and save.
    Reg,
    Ashok

  • Default value in field "requisitioner" in ME51N

    hello all
    when I create a preq with ME51N, the field "requisitioner" should have as default value the user: instead it states "USER!!"
    I recall seing this before but cannot remember why this happens
    can somone help? thanks
    Alisa

    Hi,
    In ME51n, Click on the personal settings and in that click default values tab and in the requisitioner field remove the USER that is maintained there and leave it blank and save.
    Hope this helps..
    Rewardz if helpful.
    Raj
    Edited by: Raj on Apr 27, 2010 5:00 PM

  • How to set default value in ME21N

    Hi all,
    I want to set default value of PO item's price unit to 1000 and make it unchangeable, is it possible? If so, could you please tell me how to do that.
    Thanks in advance!
    Woody

    Dear Woody,
    1) if u want to make any field un-editable then make it Via SHD0
    2) Plz find the below link for Demo SHD0, here we need to make the field as out put only
    [https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/transactionVariant-AStepbyStepGuidefor+Creation]
    Plz Provide the link to ur Abaper
    Regards
    kumar

  • CJ20N Default values

    Hi Friends,
    The user maintained the USER DEFAULT VALUES through  the functional  module u2018CO_IU_TPMUS_SCREENu2019
    Here the user maintain the values  requisitioner,  goods recipient  and purchase group.
    Now they are executing the transaction code CJ20N and here they chose the templates and service here by default values  appeared  except the purchase group.
    So kindly guide me how to get the purchase group values in default.
    Thanks in advance
    Rajendran

    Nitin,
    I do agree with you
    If you go to ME21n or Me51n you will find tab called personal settings similar kind of functinality user is looking for Cj20n Trasaction. As I understand it is not there in PS at transaction level.
    But, the objective is to default the values for those fields and this can be achieved by Screen variants, as I have tested this in my system.
    Ramesh,
    I have tried PIDs as suggested by you but its not working in CJ20N/CN21/CN22/CJ01/CJ02.
    Praveen

  • How to set a default value in the "Our reference"-field in purchse orders?

    Hi!
    When creating a purchase order the "Our reference"-field in the Communication-tab is empty. Is it possible to configure this so that the field is filled by default with the name of the person who is creating the PO?

    Hi,
    There is a button named Personal Settings on ME21N screen. Click on that button --> Click on second tab of Default Values --> Click on More fields --> Select Our reference and maintain the default value. This will always come up at the time of creation of PO.
    Hope this serves the purpose.
    Thanks...
    Edited by: vilas amrutkar on Feb 17, 2009 5:17 AM

  • Default Values for Creation of STO's.

    Hello Experts:
    When I create STO's, I don't see any source of default values, like Delivery Tolerance, Confirmation control key, etc, that for a PO usually come from the Vendor or The Info Record.
    We have managed to add these values via BADI, but for STo's created from APO via Transportation load Builder, this Badi is no taking effect. (The Badi I used is and works fine when doing it online, in ME21N or via a BAPI.
    Do you have any experience on where (user exit, etc) to add logic for putting these default values in the STO's created by TLB.
    Thanks in advance

    Sorry the BADI used is ME_PROCESS_PO_CUST

  • Default values appears in PR Item overview

    Hi,
    In Create PR (ME51N), I am getting the default values of 3 parameters In Item Overview screen in all the displaying line items that are
    1. Plant
    2. Purchase Group
    3. Requested By.
    I want not to display the default values. Plz help me
    Thanks
    Prasant Sekhar

    In Application Tool Bar ( Below Command Field), Right Corner
    you have Personal Settings,...
    check it.... and remove the default data..

  • Default Values in Purchase Requisition

    Hi MM Experts,
    I want to set default values for Purchasing Organisation and delivery address for a particular user in transaction ME51N(Purchase requisition creation).
    Can someone please advise me on how to do it?
    I tried using the "Default Values" button, but the fields Purch Org and Delivery address are not there.
    Thanks in advance.
    cheers,
    Randi

    Hi Randi,
    In ME51N, once the source of supply is assigned, the purchasing org will default to the porg defined for the vendor that is
    assigned. For MRP, Purchase Organization will only be taken from the Source List. The POrg. cannot be dopted automatically due to the reasons mentioned in the Note 73241.
    73241 ME51: User parameter EKO is not generated
    Regards,
    Purnima

  • Default values for confirmation control key

    Dear forum
    I am using a confirmation control key 0004 Shipping notification (standard SAP) in the Purchase order line item (created with ME21n).
    When I enter the confirmation data (with transaction ME22n) in the purchase order line item (confirmations tab), I have to type in delivery date, quantity and so on manually, which is standard.
    But, what if I want to copy the original delivery date and quantity from the line item in the order, and use this as default value for the line item confirmation data...is it possible somehow?
    The reason why I want to do this is for the user not having to go in and update this date manually all the time, but only when the confirmed dates/quantities differ from the desired delivery date and quantities in the purchase order line item. We are not on EDI or using Inbound deliverys for Purchase orders.
    Thanks
    Ola

    Hi,
    The Confirmation is nothing but the acknowledgement.So, its usually entered manuallly by the authorised User allowing follow on documents for Purchase Order.
    You can chesk once the customisation of Confiramtion control keys for automatic update indicator.
    Yes, you can use User Exit and develop with the help of ABAPERS.
    Hope it will help you.
    Regards,
    Smitha

  • Default values while creating PO

    Hi Experts,
    There are ceratin fields which can be defaulted at item as well as header level in purchase order.
    Now please guide me that is there any possibilty to add any field apart from the list of fields given by default.
    If yes then please suggest the way.
    rgds

    In the Personal Settings button in the PO entry screen in transaction ME21N, a new window pops up. This window has two tabs: Basic settings and Default values.
    The Default values screen itself has two tabs: PO header and PO item. When you click on the PO header tab (Figure 1), the system displays PO header fields such as Document Type, Purchasing Org., Purch. group, and Company Code. You can set a default value by selecting the desired value from the respective drop-down menus. The advantage of setting defaults here is that these are applicable only to POs and not to every transaction. Once you save these defaults, the corresponding fields are populated with these default values each time you run this transaction.
    This will help you in setting default values to fields at header and item level.
    -Hari.

  • Addition of field in personal setting-default value-po item

    Hi,
    can any one tell me how to incorporate following senario while executing  me21n tcode
    I want to add  a new field “Shipping Instructions” EKPO-EVERS in the personal setting – Default Value – PO Item.
    please tell me the steps to do so
    thanks

    Hi
    please refer to this
    <b>New tabs in the header tab-sheet of ME21N/ME22N/ME23N

  • Define Default Values for Doc type..

    Hi All.
    I set a default value of "ME21N" TO "S21" at Define Default Values for Document Type.
    But, default document type is not "S21" but "NB" in ME21N
    ( system ver. 710)
    Let me know how to correct it..
    Thank you in advance.
    regards..
    nam

    Hi,
    Could u please confirm whether have u created the document type
    in
    IMG...>MM.....>Purchasing.....>Purchase order...>Define Document Types.
    if not please do it.
    and then create the pO.
    I think it will work
    Regards
    Aasif

Maybe you are looking for

  • I got troubles with my app tap tap revenge 4

    My app tap tap revenge 4 has a lot of troubles like dont let access to The Tap store and don't let me download music to play, the app always Stop itself and I reinstalled the app and the problem continuos If somebody can help me I appreciate the help

  • Currency Conversion Round-off problem

    Hello My customer is in import business. When a journal entry is made in Dollar it is converting into Indian Rupee (local currentcy), which is correct but it is not rounding off. Also user cannot change it mannualy to adjust the roundo-off figure Is

  • Delete XML nodes with E4X

    I trying to delete all the node from a XML that doesn't match some values. <Data>      <Type id="1">           <Details id="1">                <Products id="1">                     <Value>123</Value>                </Products>           </Details>   

  • Does iPhoto support RAW for Fuji X-S1?

    I just bought a Fuji X-S1 to use as a safari camera. I'm experimenting with it and was not able to get iPhoto to import RAW files. Any suggestions?

  • Release strategy for sales orders

    Hello Gurus, My customer has got a requirement of approval of sales order before it actually goes for dispatch, (it is inline with the purchase release strategy). Hope, SAP does not have a standard solution for this but I understand this can be done