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.

Similar Messages

  • PO Release for Account assignment category is K(Cost centre)

    HI Experts
       I need to set up release procedure for PO when account assignment categeory which is being maintained at Item level so suggest suitable method
    Regard
    Srinivasan

    HI
    Yes i know PO Release is maintained at Header level but i need to prepare a functional Spec
    and i need to configure PO release for Account assignment category i think some user exits
    to be used please suggest how to proceed
    Regard
    Srinivasan Kannan

  • 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

  • ASSET CODE FOR ACCOUNT ASSIGNMENT CATEGORY IN PURCHASE ORDER.

    Sir,
    greetings!!!
    here is a procedure we follow...
    We create asset code(AS01) for capital items. when createing Capital purchase order for the item, we give A as asset for assignment category which then asks for asset code in acc assignment cat tab. this is a general process.
    Now problem is that I want the field of account assignment category in PO item tab to be automatically populated with the asset code at the time when I put the material and plant i.e capital item.
    Is it possible.
    What is happening is that the user while creating PO is not at all selecting correct asset code with reference to capital item, that has a huge effect on asset accounting..
    please provide

    Hello,
    As such there is no standard thing available, but there is one thing that you can do, that is
    Create a PO document type for Assets and for that document type allow only account assignment A and delete rest including standard account assignment that is blank.
    This way, once a person choose the document type for Assets, he will have to give the account assignment A.
    Regards
    Prabhjot Singh

  • Error message when trying to post GR for account assignment category A

    Hello gurus,
    when I create a PO item with account assignment category A, PO creation works fine. But when I try to post the GR for that item, I get an error message similar to
    "Account determination for entry <our chart of accounts> ANL <our company code> not possible".
    Any idea what the problem might be?
    I have had similar error messages in the past, when the automatic postings where not configured completely. So "ANL" should be some transaction like BSX or something. But I cannot find a transaction ANL.
    Thanks in advance
    Alicia

    Thanks for your help, everything seems to be ok as described.
    This seems to be a SAP error, see SAP note 1249431.
    Greetz
    Alicia

  • G/L Account for Account Assignment Category in PO

    Hi,
        I am creating Purchase Order based on Purchase Requisition. My Account assignment category is "E". G/L account is "400000". But error message is coming as "G/L account 400000 cannot be used (please correct)" & "Purchase order item 00010 still contains faulty account assignments".
    Kindly clarify. Thanks in advance.
    Regards,
    Maheswaran.

    Hi Maheswaran,
    Generally said, SAP decide G/L automaticlly. but if you want to check, you can:
    First you need check in your system  the  Acct modification of you account assignment E in IMG-MM-Purchasing-Account Assignment-Maintain Account Assignment Categories. For example , in my system it is VBR.
    then you check which is the corresponding G/L of VBR(Pay attention to the Chart of Account!) IMG-MM-Valuation and account assignment-account determination--account determination without Wizard. ( double click GBB (fill in your chart accounts name such as INT ) to see if 40000 the right in the row VBR (of course, make the right for valuation class and valuation modification which is decided by your material and valuation area)
    Best regards,
    Cliff

  • 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.

  • Enhancement/exit name for Account assignment category for tcode XD01

    Hi Gurus,
    Can you tell me Exit name/Enhancement name To populate the proper
    Account Assignment group based on the type of customer and the relationship of the customeru2019s country to that of the sales organization while creating customer master record using tcode XD01

    Hi
    For this u need to ehancement Point.
    Regards,
    Raghu.

  • User exit / Badi for Account Assigned Sales Order billing

    We are planning to collect the royalty in the condition type.We want to accumulate the condition  in the Internal Order.After certain period we want to close the orders .Can any one suggest the Userexit / Badi for this type of Billing / Pricing
    Thanks
    Jeevan

    Hello,
    please have a look in the customizing transaction SPRO:
    >  SPRO
        > Sales and Distribution
           > System Modifications
              > User Exits
    Here you can find the documentation of all Userexits for SD.
    I hope that the information are helpful.
    Regards
    Claudia
    If you are satisfied with the answer, please give Reward Points

  • Account assignment Category is not popping up for one User

    User is trying to create the SC, but there is no Account assignment category( Cost center, WBS…) being displayed when I try to search the Acc assignment category, it gives the results without any values. There is no values for Category field for the SC cart.
    I verified the attributes for me and user, everything looks same.
    Please advise.
    Thanks & Regards
    Sada

    Hi
    Seems like there is a bug in the System.
    Are you talking of customer fields / standard fields - search help ?
    Account assignment search help in SC.
    User must have should the authorization object MBBP_SHLP assigned in attributes (SU01 transaction)._
    Re: Blank account assignment in plan-driven scenario
    Meanwhile, try these SAP OSS notes and links ->
    Note 739509 BBPPO01: SEARCH FOR ACCOUNT ASSIGNMENT CATEGORY DOESN'T WORK
    Note 746788 - Back-end system search help for cost center
    Note 656633 - Search help requires dialog users
    Note 907016 - Error when you select search help
    Re: Search help for Acct Assignment not working
    Also ensure, proper authorization objects are provided by BASIS team.
    Let me know incase you need any assistance.
    Incase nothing helps, You need to raise an OSS message with SAP on this.
    Regards
    - Atul

  • Account Assignment Category MAT for refurbishment order

    Hi friends,
    At tcode OKO6 (customizing of Settlement cost elements), Allocation structures, Assignments, Settlement cost elements, Receiver cat. - Input help (F1)
    I need to find the object type 'MAT' for account assignment category that will be used by the refurbishment orders settlement profile (order type 30).
    The problem: the object type 'MAT' is not available at the input help list.
    The object type 'MAT' is in the table TBO01 and it is assigned to TBO01-OBART but it does not appear in the OKO6 input help list.
    Your suggestions will be welcome.
    Regards,
    Roberto

    Yes, you are right. It is necessary to create or modify a settlement profile and to do the assignments like Allocation structure and the Default object type (in my case it has to be 'MAT' for material) in tcode OKO7. It was customized without problem.
    But before to run tcode OKO7 we have to run tcode OKO6 and create the Allocation structure. It was done but we could not do the assignment to the object type MAT because the input help (F4) does not show this option. The help shows many options like ORD (order), CTR (cost center), FXA (asset), G/L (G/L account), etc., but the MAT option does not appear.
    How to make the object type MAT available in the Receiver cat. in Settlement cost elements in tcode OKO6???
    Regards,
    Roberto

  • Change account assignment category for services with ME22N

    Dear guru ,
    i have created a purchase order for a position with item category D(service) and account assignment category K(cost centre). I have inserted for the accounting view the cost center.
    After the saving If I a try to change the purchase order position with ME22N the system donu2019t allow to change the account assignment category (F order instead of K).
    I have verified that for other positions with account assignment category K(cost centre) but for Item category blank(standard) the system allow to change the account assignment category if not exist goods receipt or invoice.
    Whatu2019s the problem about services ?
    Thanks

    Hi,
    Usually the Account assigned PO's are fixed with Account assignment, you cann't modify the account assignment once it is saved.
    It depends on the IMG settings for Account assignment category.
    Check the following IMG Settings
    SPROMMPurchasingAccount assignment-Maintain account assignment categories
    Here check for "K" --Costcentre in the detailed information if the checkbox at Acct assignment changable then only you can modify the Account assignment category modification in PO, otherwise not possible.
    rgds
    gsc

  • Assign Account assignment category to multiple cost centers in SRM

    Hi All,
    We are Implementing SRM 5.5, Extended Classic Scenario for Goods and Services (Stock and Consumables).
    I have 400 cost centers. How to assign G/L Accounts to multiple cost centers, in Define G/L Accounts for Account assignment category and Product category?.
    I guess, By using BADI - BBP_DETERMINE_ACCT. If this is correct, Do we have to develop any ZTABLE for this. Or only BADI enough?.
    Please anyone explain details.
    Thanks in Advance.
    Thanks & Regards,
    John.
    Edited by: johnmiller465 on Aug 21, 2009 8:32 AM

    Hi,
    Cost Center is related with user. Setting is attributes in PPOMA_BBP.
    G/L account is related with Product category and Account Assignment Category. Setting is in standard customizing table.
    If standard customizing is not enough, you can use BBP_DETERMINE_ACCT BADI.
    Regards,
    Masa

  • Authorization object for Accout assignment category

    Dear all
    Can you please suggest a suitable authorization object for account assignment category so that I can control Users using ME21N and ME51N transactions specific to certain account assignment categories using Roles specific to them.
    Thank you

    HI
    The following link will help you.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/f0/ca3a20260211d28a430000e829fbbd/frameset.htm
    Kind Regards
    Chen

  • Account assignment category

    The field for account assignment category appears to have a length of one.  If we have used all alpha characters, can we enter a numeric number from 0-9?  Or is there another option?

    Hi,
    You shall give numeric values to account assignment category,just now i have tried this worked out, but you should be aware of functionality.
    Path:SPRO->Materials Mangement->Purchasing->Account Assignment->Maintain Account assignment categories .
    Activities
    1. Check the attributes of the account assignment categories
    2. Maintain the account assignment categories to suit your requirements
    Now click on new entries as per ur business requirement you may define the same.
    Reward if helpful.
    Thanks and Regards,
    Naveen Dasari.

Maybe you are looking for

  • I want to free up pc disk space. Can i delete app data/files from my pc now I use iCloud??

    Hi I have not been able to find a relevant thread, if there is one please direct me. Sorry if my use of jargon/process is not that clear. I am using iCloud. Can I, and how do I, delete app data from my laptop and keep all apps running normally and st

  • I have about 30GB of 'Other' data on my Hard Drive. What is it and how do I get rid of it?

    Hi. My old MacAir seems to have about 30GB of data described as 'Other' in the About This Mac thing. Colored yellow. I've stripped out my iTunes library and most of my iPhoto library to make space as machine was getting full. By checking the size of

  • 2 Screen Saver Questions

    1)How do I make the screen go black or power down instead of having a screen saver? 2)Where can I find the psychedelic screen savers used in Apple stores that look like the iTunes commercials? Thanks in advance.

  • Muliple faces-config.xml

    I am interesting in one web application project Can I have a 2 or 3 faces-config.xml? IF it possible, need anything additional configuration or parameters in xml file?

  • Key Logger Check Please

    I have a MacBook Air with OSX 10.8.5. I have done the steps found on other threads and can't tell if I do or not. Thanks anyone for their help. Here are my results. Last login: Wed Jan 22 10:41:29 on console Macintosh:~ shanecook$ $ -bash: $: command