Need a Userexit for ME51N, ME52N to access data in Account Assignment Tab

Hi,
I am currently using Enhancement MEREQ001, EXIT_SAPLMEREQ_005 to check line item data and display an error message.   That works fine.   My need now is to access the Order Number entered under the Account Assignment tab.
The import parameter IM_DATA_NEW does not contain this info.   Can anyone please let me know if there is an exit that can be used to access the order number from the screen?
Thank-you,
Priscilla LeMay

First of All, you have to get the information about item, so yo have to call the next method:
DATA: lv_acc_list TYPE mmpur_accounting_list.
CALL METHOD im_req_item->if_acct_container_mm~get_items
      RECEIVING
        re_items = lv_acc_list.
Secondly you must do loop to this table, and call another method for get the information about Account Assigment:
data: lv_model TYPE REF TO if_accounting_model_mm,
   LOOP AT lv_acc_list INTO ls_acc.
      lv_model = ls_acc-model.
      CALL METHOD lv_model->get_exkn
        RECEIVING
          re_exkn = lv_exkn.
In variable lv_exkn you have the values.
I hope it runs ok.

Similar Messages

  • Activate text for Cost Center for ME51N, ME52N, ME53N

    Hi, experts
    As a requirement on T/C ME51N, ME52N, ME53N is needed to activate on "Account assignment" tab, the text for Cost Center field, how can I do this?
    Thanks in advance.
    Is there any path or exit could help with it?

    I need to add on Tabstrip "Account assignment" for fields
    CO Area and Cost Center text field description ( right side ) for each one.
    How can I do this? Thanks in advance.

  • Field selection for Account Assignment Tab in PR

    I set up my own field selection key where only storage location can be changed after release.
    But when I do the test, I found that not only the storage location field but also all the fields in Account Assignment Tab can be changed!!!  (Like cost center, profit center and GL account etc)
    So, please help me to control the fields in Account Assignment Tab. I can't find related setting.
    Thanks a lot.

    You guys misunderstood.
    Here's my business flow:
    I enter PR with account assignment K, input cost center and then save.
    After PR is released, there's only storage location can be changed.
    So I set up my own field seletion key in which I set storage location as optional, and other fields as display.
    But when I use ME52N to check my released PR, not only storage location but also all the fields in Account Assignment Tab can be changed!
    I can't find the corresbonding setting for cost center or GL account in "Define Screen Layout at Document Level".
    I can't use OME9 either, because once I set cost center as display, I have no change to enter even if I use ME51N.
    Sorry I didn't make myself clear enough. Hope you understand now and please help me to solve it. Thanks a lot.

  • Component configurator issue - Account assignment tab for SC in SRM 7.0

    Hello Experts,
      We have to disable some fields from account assignment tab of SC. We have identified the webdynpro application as /SAPSRM/WDC_UI_DO_ACC. We started the component configurator /SAPSRM/WDCC_ACC_DEF_SC and under the view V_DO_ACCOUNTING made the fields "DISTR_INDICATOR" and "COPY_TO_CLIP" as invisible.
      The problem is that these fields are still visible in the account assignment tab of the shopping cart.
      Do we need to do any other follow-up activity to disable the fields? Please guide.
    Thanks & Regards,
    Sarath

    An easier way to hide the two elements for you is to enhance the view "V_DO_ACCOUNTING" and remove the drop down and the button. Save and activate the enhancement.

  • Table Control Variant For ME21N - Item level - account assignment tab.

    Dear All,
    I want to change Table Control Screen that is in Me21n(Service PO)>Item level> Account Assignment  tab -> Table control.
    In that table control i want to add one column Name is OrderNo(AUFNR) ,but system is not changing the table control.
    When i m going to change table control scrren in ---> Condition tab its working fine but not for above case.
    Please guide me to solve this issue.
    Regards,
    Sanket.

    Please provide the solution.
    Regards,
    Sanket.

  • Account assignment tab  not available in ME51N

    hello,
    can any one replay in purchase requisition account assignment tab is not there
    pls let me know how i have to configure it.
    rk

    Hi,
    It could be an authorization issue then. Can you please check in the IMG the following menu path:                                                                               
    IMG                                                                         
    Materials Management -> Purchasing -> Purchase Requisition ->               
    Set Up Authorization Check for G/L Accounts.                                                                               
    Materials Management -> Purchasing -> Purchase Order ->                     
    Set Up Authorization Check for G/L Accounts.                                                                               
    Documentation IMG:                                                                               
    "Set Up Authorization Check for G/L Accounts                                
    In this step, you set up the authorization check for G/L accounts in the    
    case of purchase requisitions.                                                                               
    You can determine whether or not the authorization check is to be active    
    for each company code.                                                                               
    If the check is active, each time a G/L account is entered in a purchase    
    requisition, the system checks whether the user has the posting"                                                                               
    Please check whether the authorisation group in the account code            
    (transaction FS02, the field is on the 'Control data' tab, technical        
    name is BEGRU) is setup.                                                    
    When a account assigned purchase requisition is created, the system         
    checks for object F_BKPF_BES with values from the BEGRU and activity 01.    
    This controls users to  enter an account assignment when they          
    create a purchase requisition.
    I hope it helps.
    Regards,
    Edit

  • Me51N Account Assignment tab

    Tcode Me51N
    Account Assignment tab under item
    From Which table does the field order (Screen field COBL-AUFNR) gets populated
    I have EBAN-banfn with me and I want Order

    Hi Flora,
    Please try table <b>EKBN</b>.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Exit / BADI for ME51N / ME52N

    Hi experts,
    I have the following requirement:
    1. In transactions ME51N / ME52N, the long text field for the item (Item Text) must be made read-only if the PR is already approved / released (release strategy indicator = '2').
    2. The PR workflow approvers must recieve an e-mail if this text has been changed while the PR is still blocked / not fully approved (release strategy indicator = 'X').
    I'm guessing both can be achieved through BADI implementations (in this case, IF_EX_ME_REQ_POSTED~POSTED), but I've read a lot about various Exits in these transactions, and now I'm not sure if this is the right one. Can you help me?
    PS.: I'm not completely familiar with BADIs and Exits, so please bear with me on this.

    Thanks for the replies.
    The MM consultant is still looking for a way to grey out the text field within SPRO. It's not an easy requirement
    Regarding the text changes, I followed your advices and I'm now trying to implement my code within the exit EXIT_SAPLMEREQ_005 (it's triggered right after the user saves the document, so it makes sense). The problem now is that when this exit is called, the changes made to the item text are already committed, and I can't compare the new text with the old one.
    I also tried implementing ME_REQ_PROCESS_ITEM, but it doesn't seem to be called from ME52N.
    Isn't there a log for long text changes? It would be really easy to just read CDHDR / CDPOS and know if the text has been changed. Also, is this text the same text from material master? If it is, I guess it would be easier to log its changes, right?
    Will appreciate your input on this.
    Regards,
    Leo

  • Additional Data in Header Level for ME51N / ME52N / ME53N

    Dear Gurus,
    I have one requirement related to apply enhancement for additional fields in purchase requisition header level.
    After searching a lot , I dint found any solution for this.
    Does anybody have any solution for this.
    Regards,
    Shibashis.

    I need to add on Tabstrip "Account assignment" for fields
    CO Area and Cost Center text field description ( right side ) for each one.
    How can I do this? Thanks in advance.

  • Need API adapters for LSH (Oracle Life science data hub)

    Hi guys, I am looking for some sample API code / programs by using adapter in LSH. Would appreciate if you have any, do send to me.
    for example: I have a code like below.
    Cdr_Pub_Df_Workarea.createWorkArea (
    p_api_version=>1
    ,p_init_msg_list=>CDR_PUB_DEF_CONSTANTS.G_FALSE
    ,p_commit=>CDR_PUB_DEF_CONSTANTS.G_FALSE
    ,p_validation_level=>CDR_PUB_DEF_CONSTANTS.G_VALID_LEVEL_FULL
    , x_return_status => x_return_status
    , x_msg_count => x_msg_count
    , x_msg_data => x_msg_data
    , pio_sourceCdrNaming =>varWANSObj
    , pio_workareaObjType =>varWAObj
    , pi_defClassificationColl => NULL
    I need more information for other APIs except above
    Thanks.
    SKR

    Hi,
    For information on LSH APIs please refer to irep.oracle.com.
    Regards,
    Balu

  • BAPI_PO_CHANGE for account assignment tab

    Hi sdn,
    I am trying to chnage the Account Assgnment tab details with the BAPI BAPI_PO_CHANGE and getting below error message.
    E     MEPO     000     Purchase order still contains faulty items
    I     06     684     Releases already effected are liable to be reset
    E     06     436     In case of account assignment, please enter acc. assignment data for item
    I am trying to the chnage the line item details for Acount assignment type - Cost center. Item catagory - Limit.
    Th evalue i am changing - Gl account and Cost center.
    Below is the sample code.
    APPEND wa_poitem TO it_poitem.
          wa_poitemx-po_item = wa_poitem-po_item.
          wa_poitemx-po_itemx = c_x.
          APPEND wa_poitemx TO it_poitemx.
            wa_poaccount-costcenter        = wa_po_tmp_c-kostl.
            wa_poaccountx-costcenter       = c_x.
            wa_poaccount-gl_account    = wa_po_tmp_c-sakto.
            wa_poaccountx-gl_account     = c_x.
            wa_poaccount-gr_rcpt       = wa_po_tmp_c-wempf.
            wa_poaccountx-gr_rcpt     = c_x.
          wa_poaccountx-po_item      = wa_po_tmp_c-ebelp.
          wa_poaccountx-serial_no    = wa_poaccount-serial_no.
          wa_poaccountx-po_itemx     = c_x.
          wa_poaccountx-serial_nox   = c_x.
          APPEND wa_poaccount TO it_poaccount.
          APPEND wa_poaccountx TO it_poaccountx.
    CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder  = wa_po_c-ebeln
          testrun        = v_testrun
          no_messaging   = c_x
          no_message_req = c_x
        IMPORTING
          expheader      = wa_expheader
        TABLES
          return         = it_return
          poitem         = it_poitem
          poitemx        = it_poitemx
          poaccount      = it_poaccount
          poaccountx     = it_poaccountx

    Hi I had fixed this problem by creating Enhancement point in the Method .
    IF_PURCHASE_ORDER_MM~SET_DATA
    at the end of the method.
    if sy-tcode = 'ZPO_ACCT_CHANGE'.
    free my_recheck_queue[].
    refresh my_recheck_queue[].
    endif.
    Edited by: Naresh Nelapatla on May 13, 2011 5:17 PM

  • Default Screen Selection for ME54N to Account assignement tab

    HI, gurus
    I am creating a PR with acct assignement category as 'N'.
    after creating PR when i goto ME54N (release) , the PR  is automatically to  going to the item details of contact person but the user wants  account assignement to be considered .
    so pls can u guide me in this regard.
    regards,
    rajashekar

    Hi Venkat,
    Thank you for your reply!
    I've checked note 1308330 and we've implemented it. But it didn't help unfortunately.
    I've tried to find variable gv_initial_category but there is no such variable in class ZL_BP_HEAD__MAINSEARCHSHU_CN00 (resp. CL_....).
    I did find a variable called gv_category in class CL_BP_HEAD__MAINSEARCH_IMPL. But it's protected. And to be honest, I wouldn't know how to set that variable from GET_CATEGORY of class ZL_BP_HEAD__MAINSEARCHSHU_CN00.
    However I did find out what messes up my result, thanks to your hint.
    It happens in method DO_CONFIG_DETERMINATION of class CL_BP_HEAD__MAINSEARCH_IMPL. There it checks if the global attribute gv_category is different from the category from the "shuffler" object.
    It does this when the page is loaded resp. reloaded (so before searching and after every search).
    And after the very first search I will end up in this method and gv_category will be initial and the shuffler category will be set to '2'. And in that case, all search terms and the result lists gets cleared.
    So now I know where it happens. But I still don't know how to fix this.
    I've tried to change in method IF_BSP_MODEL~INIT to set the collection_wrapper with category = '2' but that still didn't help. For some reason, when the method DO_CONFIG_DETERMINATION reads the shuffler collection, that one returns an empty category. If I would get '2' there, then gv_category would also become '2', before I even searched. And that would work... But no matter what I do, I don't get '2' from the shuffler object.
    Anyone got ideas?
    Best regards,
    Melanie

  • Need suitable userexit for ME52N

    Hi Experts,
    I have a customized table  and maintained the fields (Des Vendor,Vendor, MatAccount assignment category,Item category,Short text,UOM,Material group,GL account).
    During the creation/modification of a PR, the user will enter the vendor code and vendor catalogue into the PR fields u2018Des Vendoru2019 and u2018Vendor Mat.u2019 respectively, the system should populate the fields maintained in the above customized table into the various fields in the PR.Need to know the correct userexit or badi for my requirments.
    Thanks,
    Kumar

    Hi,
    The enhancement MEREQ001 will be trigred only when save,But my requirments is to when creating the PR enter the des vendor and vendor material i should able to populate uom,matl group ,gl account which i maintained in the customised table.So i need an enhancemnt to retrive the data form customised table based on the data entered (des vendor and vendor material )from me51n,or me52n and automaticaly populated into fields uom,matl group ,gl account in me51n,or me52n .
    Thanks,
    Deesanth.

  • SOS:     Exit for ME51n/ ME52n/ ME53n/

    hello erverybody,
    at First i would like to implement the exit mm06e007 but i have no idea how to do it!!
    have someone an example, coding or Tips,... ??
    Second Problem :
    how can I Overwrite the <u>Tapstrips name</u> using exit MEREQ001 ??
    please i need a help!!
    best regard
    dani.

    Exits are basically the hooks whcih SAP has provided to add your own code. There are two types of Exits:
    1. Customer exits: Implemented as Function Modules within z includes. Anybody can change it and no access key is required.
    2. User Exit: Implemented as subroutines within includes (any include except y or z includes). You need access for the specific include and then you can any subroutine (user exit) within that Include.
    BADIs are the enhanced version of user exits where the same logic is implemented via classes and object (OOP)
    Enchancement point is the latest once introduces with ECC6.0 . Not very sure about that but you can change it without any access key.
    Please go through the following link which will help you understand the exits in a much better way:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/content.htm
    http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
    http://sap.niraj.tripod.com/id21.html
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.sap-img.com/ab038.htm
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • EXIT_SAPLMEREQ_003,006,008 FOR ME51N, ME52N,ME53N

    I have to add a custom  filed to EBAN table. Can anybody help me with the function exit_003,006,008 regarding code.
    Functional Design:
    Short description
    Please enter a new
    numeric field “Budget” (ZZ_BUDGET) on purchase requisition item level (EBAN) on
    writer Customer Data and on purchase
    order item level (EKPO) on writer Customer Data
    Please place it above field Project Name.
    Make sure that the description “Budget” is available in all languages.
    As an amount of money
    should be entered, please display field EBAN_WAERS in the Purchase requisition
    and EKPO_WAERS in the Purchase order behind the new Budget field and format the
    new field in the same way as NETPR (###.###,##).
    If somebody filled the budget field in the purchase requisition, it needs to be shown in the purchase order.

    In Include ''ZXM02TOP'.
      TABLES:ci_ebandb.
    In EXIT_SAPLMEREQ_001 ->    INCLUDE ZXM02U01
    DATA :  lw_preq    TYPE mereq_item,
          CALL METHOD IM_REQ_ITEM->GET_DATA
        RECEIVING
          RE_DATA = W_PREQ.
    * Here Populate the   ci_ebandb structure here with value from W_PREQ
    Example ci_ebandb-zzcustom_fld = W_PREQ-zzcustom_fld
    In Exit - EXIT_SAPLMEREQ_003 -> Include ZXM02U03
       DATA: w_preq TYPE mereq_item.
    * Assign value from ci_ebandb to W_PREQ
    Example W_PREQ-zzcustom_fld = ci_ebandb-zzcustom_fld.
       CALL METHOD im_req_item->set_data
          EXPORTING
            im_data = w_preq..
    EX_CHANGED =  'X'.
    Make sure your screen field should have the name with ci_ebandb.
    Additionally you can write PBO and PAI logic for screen 111..
    Let us know any further help.

Maybe you are looking for

  • DOMParser.parse(URL) hangs

    Anytime I call DOMParser.parse(URL) where URL is of type "http://", the parse call hangs (as near as I can tell) indefinitely. Are URLs of this type not supported? Is there a work around to this problem?

  • AIX (Oracle 8.1.6) to MS/SQL Server (ODBC)

    Hi, The company I am working for is about to evaluate the Oracle Transparent Gateway to connect 8.1.6 (on AIX) to MS/SQL Server (on NT). I have heard that you can do this via ODBC (on AIX) to ODBC (on NT). Does anyone have a step-by-step guide on how

  • Re: implement a validation layer in j2me

    Unfortunately there's no simple solution of this problem - at least for simple developer. I would advice do not think a lot about money. First try to upload some demo version and see what will happen. If you'll see that you're booming - then find app

  • Dynamic Report - HELP Please

    Hello, I store a query to a table. That query is dynamic. It is created at runtime. I have another page that gets the query from the table. I need to use that query to generate a report. The problem is that some columns in the report are not summed a

  • Something loose in the sim tray

    Can anyone help me out, can you take your iPad, get it out of it's case, so you can hear it better, and lift it up, with the sim slot on the top and giggle the iPad to and from you, can you hear anything loose in the sim card tray because I can hear