Default account assignment category in ME51N/ME21N

Hi,
I want to default account assignment category ( KNTTP) based on document type while creating PR and PO, there are 4 different document types, Can this be achieved through config settings?, I am writing code in method PROCESS_HEADER of BADI ME_PROCESS_REQ_CUST, I am able to get header data using method GET_DATA but not able to use method in item interface SET_DATA. If anyone has achieved this please let me know.
Thanks

one of wayout is to set defaul value in user screen. set required account assignment otherwise use customisation
regards
points if helpful

Similar Messages

  • How to make default account assignment category in planned order?

    Scneario Description:
    1. Sales order for a configurable parent item is created in ERP & order BOM is changed & transferred to APO. In APO MRP run takes place for that parent item, which creates a planned order with account assignment category "M" (M:Individual Customer w/o KD-CO.
    2. Now based on the dependant requirement generated for parent item, MRP takes place for one of the child item in ERP & purchase requisition gets created for child item.
    Question:
    1. Can anybody help me how i can make default account assignment as "F" (F:Order) in the planned order of parent item?
    2. PR created for child item also has default account assignment category as "M". we wish to change that to "F".
    Thanks & best regards
    Hemchandra & Sandeep Mandhana

    Hi V. Suresh,
    The account assignment category maintained in the requirement class for parent item is 'M'.
    No account assignment category maintained has been maintained in the requirement class Semi-finished component (this component is sent for subcontracting).
    The business process is as follows:
    1. Create Sales Order for Parent say ME_PARENT.
    2. Order BOM for ME_PARENT is created and subsequently cifed to APO.
    3. PP/DS heuristic is run for ME_PARENT.
    4. MRP for component ME_COMP is run in ERP.
    It can be seen that purchase requistion for ME_COMP has a/c assgn category as 'M'. It seems that the ME_COMP has inherited 'M' from ME_PARENT.
    We would like to have no a/c assgn category for ME_COMP.
    Any pointers?
    Regards,
    Sandeep

  • Account Assignment Category in ME51N

    Hi All,
    I am facing a problem in the t.code me51n with account assignment category.If i press f4 i am getting a new window in that i can make any entry as default entry. So, actully in our project we r having around 22 entries. So, in that wat ever i select by default 'X' event is selected.other than Xif i select any other like D F I B OR G ANYTHING but only X is being selected.Actully i am abaper functional guys asked me to debug the program and check where it is getting that default value. in the program if i

    one of wayout is to set defaul value in user screen. set required account assignment otherwise use customisation
    regards
    points if helpful

  • PO: Default Account assignment category per material?

    Hello,
    The requierement of my company is that some materials are purchased for stock and some others for Cost center. But at some point they want to move some of the materials of "cost center" into "stock". So materials will be  "looking" the same in questions of views created, etc.
    So it would be good if there is a way to default the account assignement category by material. Any idea? User-exit?...any possibility totally standard of doing this (withouth enhancemnet/user-exit)?
    Release 4.6c

    Hi,
    It can be done by having two doc. types in the PO one for the stock and the other one for the consumption.No need for the two material types.
    In doc type xy -account assignment is disabled, in the other doc type XZ the account assignment is enabled.
    Also using the user exit ME_PROCESS_CUST, you can define the condition against the doc type.
    Regards,
    velu

  • Badi For Account Assignment Category in me21n

    Hi All,
    I am trying to implemnt badi for me21n for assigning default account assignment category as  E.
    i got the badi for  ME_PROCESS_PO_CUST .
    But the the problem is i dont find account assignment category field(KNTTP) in trhe metyhods tab.
    No othe badi is getting triggered.
    Please help me out in  this regard.
    Thanks and regards
    Ibrahim

    hi,
    i hope this will help you.
    DATA:
             ls_acc TYPE REF TO if_purchase_order_account_mm,
             ls_item     TYPE REF TO if_purchase_order_item_mm   ,
             ls_hdata    TYPE mepoheader                            ,
             ls_header   TYPE REF TO if_purchase_order_mm           ,
             ls_idata    TYPE mepoaccounting,
             ls_data     TYPE mepoitem_data    .
      DATA : lv_werks TYPE wrf1-locnr .
      DATA : vlfkz  TYPE wrf1-vlfkz.
      DATA : matkl  TYPE mara-matkl.
      DATA : ls_ana   TYPE zmm_ana_hesap.
      DATA : lv_okset TYPE c.
      ls_acc = im_account .
    *get item from account
      CALL METHOD ls_acc->get_item
        RECEIVING
          re_item = ls_item.
    *get item header
      CALL METHOD ls_item->get_header
        RECEIVING
          re_header = ls_header.
    *- Get item header data
      CALL METHOD ls_header->get_data
        RECEIVING
          re_data = ls_hdata.
    *- Get item data
      CALL METHOD ls_item->get_data
        RECEIVING
          re_data = ls_data.
    *- Get account data
      CALL METHOD ls_acc->get_data
        RECEIVING
          re_data = ls_idata.
      lv_werks = ls_data-werks.
    ***Conversion Exitler
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = lv_werks
        IMPORTING
          output = lv_werks.
      SELECT SINGLE vlfkz FROM wrf1 INTO
         vlfkz
        WHERE locnr EQ lv_werks.
      SELECT SINGLE matkl FROM mara INTO
         matkl
        WHERE matnr = ls_data-matnr.
      SELECT SINGLE sakto INTO ls_ana-sakto FROM zmm_ana_hesap
        WHERE matkl = matkl
        AND vlfkz = vlfkz
        AND bsart = ls_hdata-bsart
    AND knttp = ls_data-knttp
      IF sy-subrc EQ 0 .
        ls_idata-sakto = ls_ana-sakto.
        lv_okset = 'X' .
      ENDIF .
    * buraya lv_check ya da sakto bou015F ise için kosul gelecek
    IF lv_okset IS NOT INITIAL .
    *- Set item
        MOVE-CORRESPONDING ls_data TO ls_idata .
        CALL METHOD ls_item->set_data
          EXPORTING
            im_data = ls_idata.
      ENDIF.
    ENDMETHOD.

  • Default Account Assignment

    Hi all,
    I want to have a default account assignment category for the PR document type.
    Eg: When I use the particular document type there should be only one account assignment "K". I want to remove all the other account assignement for the particular document type.
    How this can be achieved?
    Thanks in advance.
    Regards
    Sachin

    hi,
    u have to go for user exit/badi

  • Account assignment category in Schedule lines

    Hi,
    There is a field called "account assignment category " in schedule line configuration. What is the relevance of this field ?
    For instance if account assignment category in schedule lines is "K", it means cost centre. What it means ?. does it means some data flows from sales order  to a cost centre or for instance if account assignment cat is Y, it means third  party purchase. does it mean some values flow from purchase orderes to sales orders ??
    Could somebody explain in detail the functionality in detail.
    regards
    sachin

    Hi,
    You are going in the right direction,
    This is related to SD -  MM config regarding the default account assignment category in PO.
    By maintaining  the various account assignment categoy in schedule line you can default it in PO.
    The account assignment category decides the cost collector for the PO and also defines the type of process that is being run.
    regards,
    ashish

  • Display mode for Account assignment category for NB document type

    Dear MM gurus,
    Is it possible to have Account assignment category field in ME21N for document type NB to be display only. Could any one please advised if this is possible?
    Thanks in advance.

    Hi,
    Yes it is possible. But u have to define ur own Field selection for the PO document type and u have to assign it in the document type NB. Go to SPRO>IMG>MM>Purchasing>Purchase Order-->Define Screen Layout at Document Level

  • Default the GR based IV check in PO based on account assignment category

    Hi Experts,
    We have the below business requirement based on GR based IV check in the PO. We knows that this can be automatically defaulted by using the two master records.
    1.Vendor master,
    2.Purchase info record.
    But our cilents needs this field to be automated based on the account assignment category.  Because lot of vendors are created without the activiation of this check box also they do not want to go by mass upload transaction to change the master records.
    They want only based on the account assignement category. For example if a PO is created using the account assignement K then this GR based IV is selected automatically.
    Kindly adivce any configuration setting is available to fullfill this requiremennt.

    Hi,
    unfortunately the GR based IV can not be set in OME9 (in customizing).
    In ME21N, if it is normal PO, GR Based IV indicator is not set. But if 
    item category = D, GR Based IV indicator is automatically set by       
    system.                                                                
    Best regards
    Erika

  • G/L account defaulting in purchase order with account assignment category.

    Hello Gurus,
    when creating a purchase order item  with account assignment category - E, system is defaulting G/L account in account assignment tab for that item.
    We have material group defined for this material in material master.
    Please help me in finding why this is happening and from where this G/L account value is considered.
    regards,
    Steve.

    Hi,
    Ckeck in KA01 and that particular GL Acct. might be assigned to cost element.
    For eg if the G/L account is 400000 in that account on top in menu you will find edit cost element .so check in wether it is maintained.
    once check and reply.
    Check in OKB9 whether g/l account and cost centre is maintained for your company code.
    Edited by: V K on Mar 31, 2008 6:34 AM

  • G/L Account default in purchase order with account assignment category K

    Hello gurus,
    when creating a new position in a purchase order with account assignment category K "Cost Center", the G/L Account No. is always filled with a default account.
    Where and how can I define, what account is used as default GL Account?
    The version is sap ecc 6.0.
    I will reward points all answer!!
    Thank you!

    Hi
    check the valaution class assigned to the material or the material group (if no material is being used)
    Now goto OBYC, Click on the transaction key GBB, for the account modifier VBR, & for the valuation clqass combination - check the G/L account.
    Based on this combination the G/L is determined auitomatically in the PO. if you chnage it here ... it will reflect in PO at the time of creation.
    Thanks & Regards
    Kishore

  • Funded Program in ME21N with Account Assignment Category equal BLANK

    Hi
    I am doing one ME21N (create purchase order) with Account Assignment Category equal BLANK " ". In u201Caccount  assignmentu201D the system only allow to fill the fields u201Cfunds centeru201D, and   the u201Ccommitment itemu201D but as the purchase is to INVESTMENT I need to fill the field FUNDED PROGRAM too. I haven´t internal order (CO) and project (wbs element) to do one derivation in this point of process (these objects will be create during the business process).  I have already tried to use the fields of FMDERIVE´s trace but unfortunately any combination help me to define the Funded Program.
    thanks,
    Claudio

    Hi Claudio,
    I want also to share with you some information about Funded Programs.
    Funded programs are used mainly as FM account assignment elements, in the same way as funds, funds centers, commitment items, and functional areas are. Budget can be entered for them and monitored in them.
    You can enter the funded program directly in budgeting, but when you are using the funded program in integrated postings, it is not possible to enter the funded program directly. This is the system design.
    The funded program uses much of the functionality of the Business Data Toolset (BDT). If you want to customize the funded program master data, you should be familiar with the BDT.
    The use of funded program as part of FM account assignment for budgeting, can cause performance issues (posting and reports).
    SAP recommends that:
    a. Funded Program must be derived using rules specified in the FM derivation tool (FMDERIVE);
    b. While you can use any operative element as the source for deriving funded programs, we strongly recommend that you use only WBS elements, orders, or networks.
    For additional information, check SAP help in the following link:
    http://help.sap.com/saphelp_erp60/helpdata/en/74/35160eea86034aa4166151005e1a93/frameset.htm
    For BDT information, check the following help: http://help.sap.
    com/saphelp_erp60/helpdata/en/78/7c543ac368906ce10000000a11402f/frameset.htm
    Best Regards,
    Vanessa.

  • Default G/L account for account assignment category 'E' in PO

    Dear All,
    I have a PR created by MRP where this PR is triggered from Sales Order. Therefore, PR has the account assignment category 'E'.
    When I create a PO with reference to this PR,  G/L account needs to be entered. Is there a way to make it default from T030 BSX key ?
    Best regards,

    Hi,
    Check the attributes of Account Assignment Category "E" in OME9;
    Consumption posting  E
    Special Stock        E
    Based on the this system reads the BSX key for the material valuation in OBYC (Table T030) and defaults the GL A/c.

  • Account assignment category for services with ME21N

    Hello friends,
    I have created a purchase order with account assignment category K(cost centre) and material xxxxx with material type UNBW non valuated materials.
    But while doing GRN getting error, "ACCOUNT DETERMINATION FOR ENTRY xxxx KBS 0001 NOT POSSIBLE".
    Can anyone suggest me in this.
    Regards
    Kiran Kumar

    Hi,
    KBS key is for consumption. Your Purchase Order is  account assigned & you are entering cost center in the PO.Now you need to use OKB9 t.code & assign the  G/L account to Cost center with your company code & save.
    Now try ur transaction of MIGO.
    Regards,
    Biju K

  • Defalting Account assignment category for PRs

    Hi,
    How do I configure to have automatically default a u201CAccount assignment categoryu201D depending on PR document type, so the user cannot change/enter Account assignment categoryu201D .
    For example if the PR type is u201CService PRu201D, all line items must have the u201CAccount assignment categoryu201D as u2018Ku2019 and if the PR type is u201CCapital PRu201D the   u201CAccount assignment categoryu201D must always be u2018Au2019

    Hi there,
    There is no direct way to link document type and account assignment category.
    But you can try this which is close.
    --> One is through Personal setting in PO screen.
    Can be done at Personal Setting TAB in application toolbar( extreme right side) in the PO (ME21N) screen.
    Click default value
    PO header , enter your PO document type &
    PO item, enter acc. ***. Cat. K
    & Save.
    The other way is controlling through the item category, maintain only one account assignment category for your item category in SPRO > Materials Management > Purchasing > Account Assignment > Define combination of item category/account assignment category.
    Regards,
    Senthil

Maybe you are looking for

  • How can I create an ActiveX IDL to pass an array of references into Labview

    It appears that LV is designed to be able to receive a COM variant that contains an array of references but I cannot understand what the appropriate IDL should be on the COM side of things. I am current trying to use a safearray to hold the reference

  • Data storage in web dynpro

    Hey people! Im pretty new in web dynpro, and i want to store the data i input in the inputfields somewhere.. either in a database (oracle) or xml file.. someone got any tips? and if i choose to go for oracle, do i have to create an EJB as well? or co

  • Grey white lines on my iphone 4

    hi, i am new to iphone4 having white gray circular lines when i start it on, for few minutes,and after it go normal ,i amgetting this since 2 weeks, i tried all suggested ways like restart or hard restore by holding power n hone buttons, it still the

  • I think I found a fix for Yellow/Amber Flashing Lights!

    A friend of mine had an Ipod shuffle and it was flashing yellow and amber. I went home and restored it, which didn't seem to do anything. I gave it to him, and he plugged it into his computer. He was greeted by the thing that asks you if you want to

  • PSE9 for MAC install Failing

    Install get about 55% then fails with error below.. Any help would be appreciated Exit Code: 7 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 15 error(s), 2 warning(s) WARNING: File/Folder do