Restrict the Order no Whe we select the Taxable asset in account assignment

Hi Gurus,
In the BADI BBP_DOC_CHANGE_BADI I have implemented a code to populate the default Asset in the et_account table and it is getting reflected in the portal,
But my issue is the Order no also gets populated based on the default Asset which is happening after the BADI get triggered.
Please help me how to restrict the Order no getting populated since it is picking up from the table ANLA (R/3), suggest me any BADI to restrict the same.
Regards
Paul

Hi Dave,
But I need to restrict the Order no getting populated in the portal when we clear the field ET_ACCOUNT-ORDER_NO within the BADI (BBP_DOC_CHANGE_BADI) then also the Order is getting populated in the portal, suggest us any OSS notes or any other way of doing it.
Regards
Dhanoo

Similar Messages

  • How to Restrict the node level in account hierarchy

    Hi experts,
    I want to restrict the node level in account hierarchy. I attached one example. in that if i click 6000 node again it want to show error message. for one parent node i want to create only two child node. Further if i create means it want to show error msgs and not allow to create the node..
    Regards,
    gopi

    Hi ,
    The component is bp_hier, and method is onnew_node.
    IF lv_tree->is_locked( ) = abap_false.
         lv_tree->lock( ).
       ENDIF.
       CHECK lv_tree->is_locked( ) = abap_true.
       lv_index = typed_context->accounthierarchy->selected_index.
       lv_tree_node = typed_context->accounthierarchy->get_node_by_index( lv_index ).
    *key = lv_tree_node->node_key.
      CALL METHOD lv_api->get_node_parent
         EXPORTING
           iv_node_key        = key
         IMPORTING
           ev_parent_node_key = lv_paent_key
    *      ev_tree_guid       =
    *   lv_parent = lv_tree_node->parent_entity.
    *    typed_context->accounthierarchy->parent_entity.
    CALL METHOD lv_tree_node->get_children
       receiving
         rt_children = rt_child.
       CHECK lv_tree_node IS BOUND.
       lv_tree_node->is_leaf = abap_false.
       TRY.
           lv_proxy_node ?= lv_tree_node.
           TRY.
               lv_object ?= lv_proxy_node->bo.
             CATCH cx_sy_move_cast_error.
               lv_mixed_node ?= lv_proxy_node->bo.
               lv_object ?= lv_mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).
           ENDTRY.
           lv_object_name = lv_object->get_name( ).
           IF lv_object_name = 'BuilHierarchyNode'.
             lv_relation_name = 'BuilHNodeRel'.
           ELSEIF lv_object_name = 'BuilHierarchyHeader'.
             lv_relation_name = 'BuilHeaderNodeRel'.
           ELSE.
             RETURN.
           ENDIF.
           lv_tree_node->get_children( ).
           lv_object = lv_object->create_related_entity( lv_relation_name ).
           lv_child_node = lv_proxy_node->node_factory->get_proxy(
               iv_bo = lv_object
               iv_proxy_type = 'CL_BP_HIER_HIERARCHYTREEV_CN05'
               iv_parent_proxy = lv_tree_node ).
           lv_tree_node->expand_node( ).
           typed_context->accounthierarchy->refresh( ).
           typed_context->accounthierarchy->deselect_all( ).
           lv_child_node->selected = abap_true.
           lv_child_node->is_leaf  = abap_true.
    *accounthierarchy
    *      selectedhierarchynode
           lv_col_wrap = typed_context->selectedhierarchynode->get_collection_wrapper( ).
           lv_col_wrap->clear( ).
    This is the code.
    i wrote . but its not getting.

  • MIRO invoice creation with the Personnel Number in account assignment

    I am using BAPI_INCOMINGINVOICE_CREATE for creating an Invoice using MIRO transaction.
    In MIRO transaction-> PO reference-> Multiple account assignment-> we have the personnel number: In BAPI table-parameter ACCOUNTINGDATA and ITEMDATA is used to populate the account assignmet data but this structure doesn't have the Personnel Number field (PERSON_NO).
    How can i create an Invoice with the Personnel Number in Account assignment, Is there any Userexit or BADI is available ?
    Thanks,
    Fract
    Edited by: fract_get on May 23, 2011 6:49 PM

    You can use EXTENSIONIN parameter from tables. There are BADI's related to this but don't know the name of badi. Please search forum for or use transaction code SE84 to search the BADI's/
    you can check the badi: INVOICE_UPDATE and method 'before_save or something similar to map to db table fields.
    See this thread to understand how extension parameters works.
    bapi_salesorder_simulate extension bape_vbap standard field
    Edited by: Sampath Kumar on May 23, 2011 11:28 AM

  • How to solve the error 'please enter account assignment ' in BAPI_PO_CREATE.

    Hi gurus,
    While creating shopping cart with an  item from services type  i am getting error please enter account assignment.Please suggest me how to solve this error
    thanks&regards,
    Suneel Kumar.

    Hi Suneel,
    Are you getting while transferring the Shopping cart into ECC? Or you are getting while creating Shopping cart in SRM?
    Thank you
    Ritesh

  • Account search F4 Help from BP Relationship page restricts the search

    Hi ,
    Account search F4 Help from BP Relationship page restricts the search to corporate accounts.
    The business partner category maintained for the relationship type in Tcode buba is organization and person.But the search is restricted to corporate accounts only.
    Thanks & Regards,
    Sanila

    Hi Shobhi,
    Can you provide some more details about the system ?
    Are you using transaction BP or CRM Web UI ? Also, which BBPCRM SP are you on ?
    This problem does not exist in higer SPs of CRM, and a related problem existed in Web UI that the F4 search did not consider the role based customizing. This has been corrected in SAP note 1297760.
    My guess is that everything is working fine in your system. Probably, you have also maintained some role based restrictions in BUBA customizing. Now, possibly, the allowed roles are only valid for corporate accounts, that's why you only see organizations in the search.
    E.g : say u have a relationship category ZBUP03 - Employee rel
    Now, you have a role restriction that partner 2 must be only role BUP003 = employee.
    Now, according to role customizing, employee can only be person.
    Thus, when you search for BP's to assign to rel category ZBUP03, you will only see persons.
    Probably, this is the scenario in your system.
    Hope this helps.
    Cheers,
    Rishu.

  • Multiple Account Assignment at the time of Good Receipt for one line item

    Sap Members.     
      We have some contracts with cost center distributions that the exact amount is not known.  These Blanket Orders require a receiving confirmation.then only we can conclude the cost center, If we create one line item with total amount of contract to one cost center, is there a way can we distribute this cost to the different cost centers at the moment receiving the goods
    Any help will be highly appreciated.
    Thanks
    Nick

    Please Check SAP Notes - Oss Notes
    With multiple acct. assignment, enter GR non-val. or cancel GR
    Message no. 06417
    Diagnosis
    In the case of PO items assigned to more than one account, instead of valuation being carried out at the time of goods receipt, the relevant materials are not valuated until the invoice data is entered into the system.
    Procedure
    •     Set the indicator for non-valuated goods receipts
    or
    •     Cancel the GR indicator.
    OSS-Notes.                              -
    Version: 5        -
    Validity: valid since 12.04.2007
    Note 204252 - Valuated goods receipt for multiple account assignment
    Summary
    Symptom
    You cannot use the valuated goods receipt function in combination with multiple account assignment.
    Other terms
    EKPO-WEUNB, screen 0113, ME21, purchase order, 06417, 06 417
    Reason and Prerequisites
    We have not implemented this function since users who post goods receipts would have to determine the distribution to individual account assignment items during  partial deliveries. Generally, users cannot or should not determine this.
    An automatic distribution also causes problems and is also not implemented due to technical reasons

  • While Creating PO its saying account assignment mandatory for the material.

    Dear All
    I have created a material with Mechanical Engineering as Industry sector and ROH as Material Type.
    For this material i created PR and PO both the time it said account assignment is mandatory.
    Why this happens?
    I don't want to enter any account assignment category.
    Pls help.
    Regards
    Depin

    Hi,
    Normally purchasing ROH with PO needn't to assign the account assignment category, but if don't create accounting view for the ROH material or create the accounting view without valuation class assigned, system can't find the relevant stock account automatically, so will issue the message just like "Account assignment is mandatory".
    So you should check the material master data, if it's fine, then you will not see the message any more!
    Good luck
    Tao

  • Depreciation posted for the wrong asset class

    Hi Experts
    An asset was posted for the wrong asset class. Invoices for this asset were already posted and depreciation was posted for several months. Now we realize the mistake and want to correct it. How can we reverse the origanl documents including the depreciation and post it to the correct asset class accounts?
    Thanks
    Ofer

    Hi Ofer,
    you can transfer the depreciation to the new asset. Why you want to reverse th edepreciation?
    Generally depreciation can not reversed. If you want to reverse the depreciation you can enter depr. key "0000" and make a repead run. In that case the depreciation will be reversed (posted oposite) for alle open fiscal years.
    regards Bernhard

  • The CO account assignment object belongs to company code PN10, not BN10

    Hi All, Iu2019m getting the error u201CThe CO account assignment object belongs to company code PN10, not BN10" when trying to make a payment on an invoice that was created in company code BN10.
    The error came about because, there was an exchange rate difference between the invoice value and the corresponding payment value (document currency is USD and the transaction I'm using to make payment is F-58).
    Therefore when i try to make the payment, the SAP system detects the exchange rate difference and attempts to post it to the exchange rate difference account (421020050). In OKB9, the default cost center specified for G/L account (421020050) in BN10 is (B999010). Therefore when the payment is been done, the system posts the exchange rate difference to G/L account (421020050) and assigns the cost center (B999010).
    However, upon trying to save the document, the system shows the message "Correct the marked line items" (the marked line item here is the exchange rate line item). Therefore, I double click the line item to drill down on it and see that everything seems fine. I then click the save button, on clicking it, the system shows the error "The CO account assignment object belongs to company code PN10, not BN10u201D.
    When i double click the error to read a more comprehensive explanation of the error, its content are as displayed below:
    The CO account assignment object belongs to company code PN10, not BN10
    Message no. KI100
    Diagnosis
    You want to make a posting in company code BN10.
    At the same time, a CO account assignment object was specified that is assigned to company code PN10.
    This is account assignment object with object type CTR, and object key NIG1/A999010.
    System Response
    Company code validation is active for company code BN10:
    All account assignment objects in one posting row must be assigned to the same company code.
    Procedure
    You can
    u2022     Make an assignment to company code PN10.
    u2022     Enter an account assignment object assigned to company code BN10.
    u2022     Change the assignment of object NIG1/A999010 to company code PN10. In this case, you should note the document and edit it further after changing the assignment.
    If the posting is to a balance sheet account (category 90), you may also decide whether to allow CO account assignment objects from other company codes. If this is the case, deactivate the error message with the IMG step Change message control (message ID "KI", message number 100).
    You can set the following message types:
    "-"   Message is not sent
    "W"   Message is sent as a warning message
    "E"   Message is sent as an error message
    Posting to cost elements of another category always results in the message appearing as an error message, whether it has been deactivated or not.
    Execute "Change message control"
    (NOTE: All cost centers that starts with u201CAu201D belong to company code PN10 and those that starts with u201CBu201D belong to company code BN10)
    Kindly help with the resolution of this issue. Any resolution ideas would be greatly appreciated.
    Moderator: Please, search SDN

    Check the following OSS notes
    1)  Note 141224 - Error message KI100 for cross company
    2)  Note 202765 - KI100 during release of intercompany billing
    thanks
    G. Lakshmipathi

  • How to find if the  PO is Standard Price or Account Assigned or Variable

    Hi ,
    How to find wether the PO is Standard Price or Account Assigned or Variable .
    In EKKO, EKPO  or any table ,are there any fields on which i can  differentiate these PO's.
    Kindly help.
    Regards,
    Chetan Sakunde

    Hi,
    In material master accounting view we can find whether the material of that PO is standard price or moving average price.
    To find whether the PO is account assigned or not you can check in EKKN table.If the po is account assigned there will be entries in EKKN  table for that PO.
    If the PO is not account assigned there will not be any entries in EKKN  table.

  • LIV for Purchase Orders with Account Assignment

    Hi SAP Gurus,
    I would like to get your expert advice on this...
    I enabled total based invoice acceptance and reduction by performing the required configuration steps (define vendor tolerance group, set up the auto invoice reduction tolerance checks, assigned the tolerance group to the vendor). I was assuming that this would work for my purchase order which contains an account assignment. However, when I tested it out, instead of behaving as expected (create invoice and credit memo for the excess value), the system generated only 1 accounting document. The price variance was posted back to the account assignment assigned to the PO item.
    Did I miss out on any steps? or is this the way SAP treats account assigned (non-stock) PO items (i.e. no invoice reduction occurs). If so, can you explain to me why?
    Best regards,
    RiVeR
    Edited by: delo celo on Jul 14, 2010 6:16 PM

    Hi Delo,
    Please find answers to your queries below in bold.
    1. I was just wondering why would SAP allow such transaction/s to happen? Wouldn't it compromise the integrity of the whole document trail (PO account assignment is different from the LIV)?  -
    There could be some business scenarios in some organisations, where in Procurement team uses generic cost centre (header), which is specific to particular department or group, to procure. But at the time of Invoice Receipt, AP team knows exact cost centre or order, etc  to post the amounts. To cover these kind of scenarios, SAP probably has provided the option to change acount assignment.
    2. Is there a way to edit the Account Assignment for a Purchase Order line item even if that item has been fully received and invoiced? -
    These field changes at various levels can be configured via t-code OME9.
    a) IR Changeable - This field if selected will allow to change the account assignment of a purchase order item at the time of invoice receipt.
    b) Acct. assg. changeable - This field is selected will allow to change account assignment for an item following goods receipt or invoice receipt.         
    Hope this clarifies your queries.
    -Ravi

  • Error while creating Subcon PO with Order (F) account assignment cat

    Hi,
    I am trying to implement Outsourced Manufacturing scenario with ECC 604 and SNC 7.0
    We would like to demonstrate "Real Time Consumption" once a phase has been completed for WO in SNC.
    For this, it is necessary create Subcon PO with A/c assignment category F. While trying to create PO, i get the following error:
    1. Acct assignment determination is not poss.in the account assgnmnt manager
    Message no. IAOM220
    Diagnosis
    Errors occurred during the determination of the account assignment in the account assignment manager. Thus it is not possible to determine the account assignment.
    2. Characteristics for Controlling object have errors
    Message no. IAOM034
    Diagnosis
    There are errors in the characteristics that are transferred when creating or changing a Controlling object.
    System Response
    Processing stopped.
    Procedure
    Look at the messages prior to this object in the error log. They give an indication as to which characteristics have errors.
    3. Hierarchy level 01 not defined in business scenario Outsourced Manufacturing
    Message no. IAOM027
    Diagnosis
    In business scenario 'Outsourced Manufacturing', hierarchy level 01 was accessed. There is no key characteristic defined for this hierarchy level.
    System Response
    Processing is terminated.
    Procedure
    Inform SAP or the provider of the business scenario, if the business scenario was not provided by SAP.
    If you are responsible for the business scenario yourself, check the definition of the business scenario.
    Settings specific to CO order that have been maintained:IAOM1 - Maintain Controlling Scenario
    IAOM2 - Maintain Controlling Integration
    KA02 - Default Cost assgnmnet
    Tick RT consumption in ME11 (Vendor Purchasing Info Record).
    Any idea???
    Regards,
    Sandeep

    well it seems to be an CO issue
    please check if the g/l is maintained as cost element
    also check the setting s of account assignment catergory F and let us on which modifier key is maintained there make sure in OBYC-GBB the g/l is maintained for the material valuation class and which should be cost lement

  • An incorrect default value of account assignment group in sales order

    I created a new sales order; however, the default value for account assignment group is not the same value maintained in customer master.
    Any idea how could this happen?

    have you checked user exit MV45AFZZ? Maybe there is a coding inside, changing the default value when creating a new sales order.
    regards
    Ralf

  • Problem with stock transport order account assignment

    hi gurus,
    I've a situation in ECC 6.0 environment in regard to STO that I hope you can shed some lights.
    We're doing an upgrade from 4.6 to ECC6 and I'm doing some preliminary tests in the new box and I'm getting KI235 error message "Account xxx requires an assignment to a CO object", when I try to posts goods issue from the delivery document.  When I assign a dummy cost center to the cost element, I can post the document and I get a CO and SPL accounting documents.  In 4.6 there is no accounting document generated as the result of goods issue and this is what client wants. I've checked the release notes and OSS as well checked the setting for automatic account assignment in MM but I couldn't find any difference.  I need to add that the material that I use is non-valuated but there is an accounting view for the material with valuation class.  I'm just baffled that the goods issue for the same materials in 4.6 works without producing accounting documents but it doesn't work in ECC.
    Any suggestion is greatly appreciated.

    Hi
    If the material is non valuated then the accounting view should not be present, by mistakenly may be you have maintained the accounting view for the material type & maintined the accounting view in Material master.
    If you dont want the accounting document generated, then you need to first de-select the accounting view for the material type & make the material as non valuted by removing the flag on Value update for the Plant.
    now create anew material & test the transaction, if you want to use the sam eold material then make the Moving average price of the material to zero first & then change the Price control to S. & Test the transaction.
    Thanks & Regards
    Kishore

  • Invalid account assignment category for Service order

    Hi Experts,
    We upgrade in ECC. I suppose this topic is linked to this one. See more detail below.
    On a repairing flow, central alerts by a complaint from customer. Operator creates a Repair request, next receive the broken machine (VRRE + VL02N). A inspection lot is automatically generated. When operator takes Usage decision, customizing allow to create a Service order according to the right UD code.
    My issue is on this place. When operator take the usage decision, SAP displays the error message "Invalid account assignment category".
    Data in standard customizing are missing in "Define account assignment cat. and document type for purchase requisitions". Only "Acct. Assgmnt Cat. Gen." is filled with "F" value (Order). 3 other are blank. If I tryed to save, SAP rejected and asked for values.
    If I check in SAP help, SAP indicates that we don't have to change these values if new types of categorie are not customized. Also SAP detailled the right values. What is strange is that the flow is running without these values in production. Test in development environnement block the flow and the creation of the Service order.
    Have you already heard some strange behavior like this one ?
    Moreover if you have more detail on the impact on this customizing, I'm very interesting, and also the good way to solve this issue will be great.
    Thanks a lot for your precious help.
    Stéphane

    Closed

Maybe you are looking for