BAdI Account Assignment

Hi,
does anyone know of a BAdI that is called when creating / changing the account assignment on item level while creating a service order (type SRVO)?
I found a BAdi (created an implementation, activated it and put a break in both methods (check & merge)) but the BAdI implementation of BAdI definition CRM_ACASSIGN_BADI is not called at that very moment.
Kind regards,
Micky.

Hello Micky,
Another solution should be to use the events (transaction CRMV_EVENT).
In the assignments, enter AC_ASSIGN in the object name and push on the button "callback for cat./obj./event". You will find a list of callback functions.
Maybe you can copy one of these records to use your own FM with your own coding.
Hope this will help you.
Regards,
Frédéric

Similar Messages

  • Purchase order : get Account assignment into BADI

    Hi,
    i'm using the BADI ME_PROCESS_REQ_CUST method POST ; in this method i need to access to items and it's work (i use im_header->get_items( ) ). But now i need to access to Account assignment, how can i do this ? the only object available is im_header.
    Be careful, i can't read database because when i create a new document, the data are not saved again.
    Thanks for help.
    Cheer

    IM_HEADER->get_items( ) returns the internal table RE_ITEMS type ref to MMPUR_REQUISITION_IITEMS (of line type MMPUR_REQUISITION_ITEM) which gives the list of  line items.
    Loop through the internal table RE_ITEMS, refer to the component RE_ITEMS-ITEM (type ref to IF_PURCHASE_REQUISITION_ITEM) & use the method RE_ITEMS-ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ) to get the account assignment details related to each item.  This method is to be called in the loop for each line item.
    Regards, Vinod
    P.S : Is it purchase order or Purchase requisition ? By going through the post it is PR, your subject line seems to be wrong.
    Edited by: Vinod Kumar on Jul 15, 2011 2:21 PM

  • User Exit/Badi for G/L account assignment in ME21n/ME22n

    Hi All,
    I need user exit/badi for account assignment in item details for following requirement.
    If user changes G/L account of the first line item then I have to copy same G/L account to all line items.
    Please suggest me suitable user exit for this.

    hello,
    follow the steps.......
    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will display for that tcode as well as that package.
    u can check the table MODSAP
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u,
    santhosh

  • Setting flag account assignment element in PS within BADI doesn't work

    Hello,
    I would like to set the flag for account assignement element and billing element in PS depending on some fields of cProjects. Hint 993642 says that can be done in GCC_PS_PROJECT_LABEL. Unfortunately I don't know how to pass some parameters from cProjects to the relevant method.
    For transfering the standard fields I am using (thanks to Matthias) the BADI DPR_FIN_GECCO_ATTR.
    There are several blocks with fields I set. Each block looks similar to (except the field and the value)    
    ls_attribute-data_element     = space.
          ls_attribute-value            = space.
          ls_attribute-field_name_orext = 'WBS_ACCOUNT_ASSIGNMENT_ELEMENT'.
          ls_attribute-fldname_receiver = space.
          ls_attribute-struc_name_copa  = space.
          ls_attribute-field_name_copa  = space.
          ls_attribute-ext_attr_name    = space.
          ls_attribute-ext_attr_value   = space.
          INSERT ls_attribute INTO TABLE ct_attributes.
    In the default method the WBS_ACCOUNT_ASSIGNMENT_ELEMENT and WBS_BILLING_ELEMENT are overridden constant to 'X' like hint 993642 describes. But at least I have no glue how to pass my relevant parameters to the method to be able to set the values in my own implementation of this method.
    So, does someone knows how to pass values to this method?
    Thx,
      Vanessa
    Edited by: Vanessa Martinez on Oct 28, 2008 9:23 AM

    Hi Vanessa,
    I tested the proposal I told you today, and when I came into debug mode in BADI F_EX_GCC_PS_PROJECT_LABEL~GET_WBS_ELEMENT, here is what I obtain in structure ATTRIBUTES_OF_EXT_OBJ.
    Line  | Data_element |    value       |        field_name_orext
    1        |                     |    TEST      |         USER_FIELD_CHAR20_1
    2        |                     |    TEST2    |         USER_FIELD_CHAR20_2
    3        |                     |    TEST3    |         USER_FIELD_CHAR10_1
    4        |                     |    TEST4    |         USER_FIELD_CHAR10_2
    So if you build an enhancement at the end of the method (don't hesitate to copy standard code if it helps), you should be able to retrieve your values, and set the flags as wanted.
    read table ATTRIBUTES_OF_EXT_OBJ
    into ls_attribute
    with key field_name_orext = 'USER_FIELD_CHAR10_2' (actually the name you set on cProjects side, so you might be able to do it as well for WBS_ACCOUNT_ASSIGNMENT).
    Matthias
    Edited by: Matthias BRISSEAU on Oct 28, 2008 2:21 PM

  • BADI to populate Asset Master Class valu in Account Assignment Item Detail?

    Hi All,
    In Shopping Cart  - COST ASSIGNMENT - Account Assignment Item Details   Tab 
    we have
    Create New Asset Master Record    section  and the field
    Choose an Asset Master Class 
    I need to populate this field (Choose an Asset Master Class) with my own value.
    What BADI I can use to populate value on this field? Any ideas?
    Thanks in advance.

    Hi,
    As i told you there is no badi to do this.
    1-What you can do is to create a CUF in the accounting tab to store your asset category.
    You will then have to
    2- hide the standard field but let the standard populate it with a default value from the org structure
    3- add in the SRM iMG the cuf field for the accounting data.
    4- code bbp_doc_change_badi to populate your CUF field
    5- code bbp_driver_determine in order to call the FM to create the asset
    6- create 1 FM in ECC to create the asset (copy of bapi_fixedasset_create1)
    Hope this helps,
    Kind regards,
    Yann
    Edited by: Yann Bouillut on Apr 15, 2009 5:23 PM

  • Accessing Account assignment in P.Req BADI -PROCESS_REQ_CUST~PROCESS_HEADER

    I have implemented a BADI for Purchase requisition and in PROCESS_HEADER method of BADI Implementation for ME_PROCESS_REQ_CUST. I am trying to access account assignment lines on the purchase requisition (EKBN).
    IM_HEADER is the only parameter available for me. But I am able to access the items indirectly via get_items method in its interface.
    method IF_EX_ME_PROCESS_REQ_CUST~PROCESS_HEADER.
    DATA: l_item_list TYPE mmpur_requisition_items,
           l_item_listx type mereq_itemx,
          l_item      TYPE mmpur_requisition_item,
          l_item_akt  TYPE mereq_item,
          l_item_account type MMPUR_ACCOUNTING_LIST,
          l_item_ref  TYPE REF TO if_purchase_requisition_item.
    data :  lt_preq_items type standard table of mereq_item .
      FIELD-SYMBOLS:
        <lo_lcl>        TYPE ANY,
        <ls_item>       TYPE mereq_item,
        <ls_itemx>      TYPE mereq_itemx,
        <item>          TYPE mmpur_requisition_item.
      " Get items of purchase requisition
       l_item_list = im_header->get_items( ).
      check IM_COUNT <= 1 .
    * Logic for approver determination goes here .
       LOOP AT l_item_list ASSIGNING <item>.
        l_item_akt = <item>-item->get_data( ).
        break-point.
    *   l_item_account = <item>-item->get_items( ).
        append l_item_akt to lt_preq_items[].
      ENDLOOP.
    I am able to collect all the items of the p.req (i.e EBAN entries) in lt_preq_items .
    Now, my challege is to use get_items() method inside
    IF_ACCT_CONTAINER_MM~GET_ITEMS   (  Return Account Assignment Objects ) which is inside IF_PURCHASE_REQUISITION_ITEM interface.
    A simple  l_item_account = <item>-item->get_items( ) resulted in syntax error. How can I get account assignment objects inside this process header BADI of purchase requisition ? Any useful tips is greatly appreciated.
    Regards,
    Shareen
    Edited by: Shareen Hegde on Jan 27, 2012 12:29 AM

    Hi,
    DATA: l_item_list TYPE mmpur_requisition_items,
           l_item_listx type mereq_itemx,
          l_item      TYPE mmpur_requisition_item,
          l_item_akt  TYPE mereq_item,
          l_item_account type MMPUR_ACCOUNTING_LIST,
          l_item_ref  TYPE REF TO if_purchase_requisition_item.
    data :  lt_preq_items type standard table of mereq_item .
      FIELD-SYMBOLS:
        <lo_lcl>        TYPE ANY,
        <ls_item>       TYPE mereq_item,
        <ls_itemx>      TYPE mereq_itemx,
        <item>          TYPE mmpur_requisition_item.
      " Get items of purchase requisition
       l_item_list = im_header->get_items( ).
      check IM_COUNT <= 1 .
    Logic for approver determination goes here .
       LOOP AT l_item_list ASSIGNING <item>.
        l_item_akt = <item>-item->get_data( ).
        break-point.
      *litem_account = <item>-item->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).*_    
    append l_item_akt to lt_preq_items[].
      ENDLOOP.
    Check with the above code for l_item_account .
    Thanks,
    Shailaja Ainala.

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

  • BADI-ME52N - Getting Account Assignment Data

    Experts
        I'm Implementing BADI , ME_PROCESS_REQ_CUST~Process_Account
    Method ME_PROCESS_REQ_CUST~Process_Account
    CALL METHOD im_account_ref->get_persistent_data
        RECEIVING
          re_persistent_data = re_persistent_data1.
      CALL METHOD im_account_ref->get_data
        RECEIVING
          re_data = re_data1.
      CALL METHOD im_account_ref->get_previous_data
        RECEIVING
          re_previous_data = re_previous_data1.
    EndMethod.
    All These Data will Fetch Information About Account Assignment and some Header ITemFields.
    But Oly After Trigeering The Account Assignment Tab only it's Fetching
    I want the values to be fetched immdly after giving the transaction ME52N
    After Giving Transaction Me52N , these data shows Values are as 0. Just giving any small changes or triggering the Account Assignment tab the values are fetching.
    Any ways to solve this
    Thanks.

    METHOD if_ex_me_process_req_cust~open.
      GET PARAMETER ID 'PRO' FIELD lv_wbs."getting the WBS ELEMENT
    ENDMETHOD.
    getting the Parameter id in the
    initialize method of the badi will solve the issue

  • GR and GR Non Val indicator in R/3 PO for multiple account assigned SC's

    Hi,
    We are on SRM 3.0(EBP 4.0) and R/3 4.7.
    We have implemented the BBP_CREATE_PO_BACK badi for setting or clearing the GR and IR indicators under certian conditions.
    But for Multiple account assigned SC's we get an error message "06181 With non-valuated GR, please also enter GR i ndicator ".
    We have tried implementing note# 872000, but this has not solved the issue.
    The PO's get created only if we force the GR indicator when transferring the data into R/3.
    It seems clear that while creating the PO the system is encountering the GR Non Val indicator but not the GR indicator, so its throwing the error message (we get the same error message when we create the PO from R/3 with GRnon val indicator checked and GR ind unchecked).
    The proposed solution is that in the same BADI, along with clearing the GR indicator, we will also clear the GR non val indicator.
    This can solve the issue if the indicators are transferred as it is from EBP.
    But can anyone tell me if these indicators are also checked/changed in any FM/program in R/3 before the PO is created?
    Is there any customizing setting which is affecting this particular behaviour?
    Regards,
    Srivatsan

    Hi Srivatsan ?
    In ECC, you have a configuration point :
    Materials Management->Account Assignment->Maintain Account Assignment Categories
    Here you can untick the indicator you want by account assignment category;
    Kind regards,
    Yann

  • PO with account assignment 'A'

    Dear All,
    i need to restrict users to add > 1 per item for account assignment category A
    My scenario :-
    Suppose i need to buy 3 pc, each one created as seperate asset for asset master data
    I need to restrict users to put  and accept  >  1 on PO quantity
    Can i do that
    Please Advise
    Rami

    Thanks for your response
    Can i use the same Badi to implement it for purchase requisition
    Thanks
    Rami

  • PO Group/Split by Account Assignment

    Is there a possibility to split/group Purchase Orders that would be created directly from the 'Process Purchase Order' transaction? I thought of using the Group_Local_PO BADi, but it would be called only while creating Purchase Orders from the sourcing cockpit.
    We would like to group/split POs based on the fund and/or some account assignment fields of the line items.
    I could achieve this while PO creation from the sourcing cockpit, but not sure how to handle the automatic PO creation and direct PO creation. Your help is much expected and appreciated. We are on SRM 5.
    Thanks,
    - J

    Hello Jack,
    Jack Lancelot wrote:
    I've implemented exactly the same logic that you had mentioned for PO creation from sourcing cockpit.
    Will this take care of splitting the Shopping cart if POs are to be created against a relevant contract?
    fields AGREEMENT and AGMT_ITEM from Importing parameter ITEM_DATA should answer to your need.
    Splitting criteria are defined in Class Interface CL_BBP_SC_TRANSFER:
    - for local PO, in method SPLIT_PO_LOC_MAP_CRITERIA,
    - for backend PO, in method SPLIT_PO_BE_MAP_CRITERIA.
    Jack Lancelot wrote:
    And for direct PO creation, I have created a validation in Doc Check & save BADi s to give an error message if multiple funds are found. But, I'm not sure if the users would like it.
    Is there a way that I could manipulate this process using the 'Create PO' function module or by any other means?
    I'm weighing the effort that would be required for a custom work around solution.
    Don't know: make your own tests.
    Regards.
    Laurent.

  • Adding new field in SC Account Assignment Screen (only for information)

    Hi guys,
    we have a requirement, to <b>show</b> additional fields within the account assignment screen. The contents should only be displayed as information for the user. It is not necessary, respectively not wanted to save this data within SRM or the Backend-System.
    2 questions:
    a) Is it necessary to expand the item-structure of the SC (INCL_EEW_PD_ITEM_CSF_SC) AND to expand the accounting structure (INCL_EEW_PD_ACC_CSF) for this fields?
    b) Is it sufficient, that the INCL_EEW*-structures of the PO-/billing-document etc. are <b>NOT</b> expanded with the additional fields to avoid the saving? In OSS-Note 458591 it is mentioned, that it is necessary to expand the CI-COBL-structure within the Backend-System.
    Thanks in advance with best regards.
    Bernd
    ps. We are using SRM 4.0.

    Hi
    <b>We have done this several times, in our past previous SRM implemenatations.</b>
    a) Yes. You need to expand the item structure at the Shopping cart level to display your Custom fields in the We bapage. As Per OSS Note - 672960, you can see the details. For display purpose, at least these custom fields must be created in the standard include structures [e.g., INCL_EEW_PD_ACC_CSF, etc ].
    b) Yes, no need to expand any other SAP Include structure, incase you don't want the field contents to be saved in backend system (incase of Purchase Order / Purchase Req).
    <u>Please see the follwoing links, which deal with the similar requirements, you have asked for in detail with code and other relevant details -></u>
    Re: Item Field Appearing In Account Assignment Field
    Re: Control Busniess Area Field in Account Assignment..
    Re: Add new account assignment field
    Re: Account assignment category not passed into Target Objects Badi
    Re: Add customer fields in Shopping cart and purchase order
    Re: Hiding CUF fields in SC Basic data
    displaying custom fields on shopping cart
    Custom Fields in Cost Assignment Tab
    How to add the custom field in SRM EBP shopping cart?
    Add customer fields in Shopping cart and purchase order
    Hope this will definitely help. Do let me know, incase you face any issues.
    Regards
    - Atul

  • Multiple Account Assignment issue with BAPI_PO_CREATE1 for service POs

    Whle creating service PO through BAPI_PO_CREATE1, The account assignments at the service line items were not being added correctly at the item level, instead they are getting split further wrt tax jurisdiction. This is occuring when an item have multiple service line items with mutltiple account assignments.
    The sample code is below, and the all the internal tables and structure were related to BAPI_PO_CREATE1. Tried with BADI ME_TAX_FROM_ADDRESS and User Exit enhancement SAPL2012, which were not helpful for this particular scenario.
    Item Details
    W_BAPI_ITEM-PO_ITEM = 1.
    W_BAPI_ITEMX-PO_ITEM = 1.
    W_BAPI_ITEM-ITEM_CAT = D.
    W_BAPI_ITEMX-ITEM_CAT = 'X'.
    W_BAPI_ITEM-ACCTASSCAT = K.
    W_BAPI_ITEMX-ACCTASSCAT = 'X'.
    W_BAPI_ITEM-PLANT = USMP. Tax Jurisdiction code 3604931001
    W_BAPI_ITEMX-PLANT = 'X'.
    W_BAPI_ITEM-MATL_GROUP = IT37.
    W_BAPI_ITEMX-MATL_GROUP = 'X'.
    W_BAPI_ITEM-QUANTITY = 1.
    W_BAPI_ITEMX-QUANTITY = 'X'.
    W_BAPI_ITEM-PRICE_UNIT = 1.
    W_BAPI_ITEMX-PRICE_UNIT = 'X'.
    W_BAPI_ITEM-PO_UNIT = LE.
    W_BAPI_ITEMX-PO_UNIT = 'X'.
    W_BAPI_ITEM-NET_PRICE = 100.
    W_BAPI_ITEMX-NET_PRICE = 'X'.
    W_BAPI_ITEM-PCKG_NO = 3456.
    W_BAPI_ITEMX-PCKG_NO = 'X'.
    W_BAPI_ITEM-PREQ_NAME = RTPTS02.
    W_BAPI_ITEMX-PREQ_NAME = 'X'.
    APPEND W_BAPI_ITEM TO IT_BAPI_ITEM.
    APPEND W_BAPI_ITEMX TO IT_BAPI_ITEMX.
    Delivery address details - Tax Jurisdiction 3305923401
    W_BAPI_ADDRDEL-PO_ITEM = 1.
    W_BAPI_ADDRDEL-NAME = COR.
    W_BAPI_ADDRDEL-NAME_2 = Chairman.
    W_BAPI_ADDRDEL-BUILD_LONG = 1001R
    W_BAPI_ADDRDEL-CITY = plainview.
    W_BAPI_ADDRDEL-STREET = old country road.
    W_BAPI_ADDRDEL-POSTL_COD1 = 11803.
    W_BAPI_ADDRDEL-COUNTRY = US.
    W_BAPI_ADDRDEL-REGION = NY.
    APPEND W_BAPI_ADDRDEL TO IT_BAPI_ADDRDEL.
    First Account Assignment - 3310300441
    W_BAPI_POACNT-SERIAL_NO = 1.
    W_BAPI_POACNTX-SERIAL_NO = 1.
    W_BAPI_POACNTX-SERIAL_NOX = 'X'.
    W_BAPI_POACNT-CREAT_DATE  = 11/03/2010.
    W_BAPI_POACNTX-CREAT_DATE  = 'X'.
    W_BAPI_POACNT-QUANTITY = 0.75.
    W_BAPI_POACNTX-QUANTITY  = 'X'.
    W_BAPI_POACNT-DISTR_PERC = 75.
    W_BAPI_POACNTX-DISTR_PERC  = 'X'.
    W_BAPI_POACNT-NET_VALUE = 75 .
    W_BAPI_POACNTX-NET_VALUE  = 'X'.
    W_BAPI_POACNT-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEMX = 'X'.
    W_BAPI_POACNT-GL_ACCOUNT = 641099.
    W_BAPI_POACNTX-GL_ACCOUNT  = 'X'.
    W_BAPI_POACNT-COSTCENTER =  10010394.
    W_BAPI_POACNTX-COSTCENTER = 'X'.
    W_BAPI_POACNT-CO_AREA = 1234.
    W_BAPI_POACNTX-CO_AREA = 'X'.
    APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
    APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
    Second Account Assignment
    W_BAPI_POACNT-SERIAL_NO = 2.
    W_BAPI_POACNTX-SERIAL_NO = 2.
    W_BAPI_POACNTX-SERIAL_NOX = 'X'.
    W_BAPI_POACNT-CREAT_DATE  = 11/03/2010.
    W_BAPI_POACNTX-CREAT_DATE  = 'X'.
    W_BAPI_POACNT-QUANTITY = 0.25.
    W_BAPI_POACNTX-QUANTITY  = 'X'.
    W_BAPI_POACNT-DISTR_PERC = 25.
    W_BAPI_POACNTX-DISTR_PERC  = 'X'.
    W_BAPI_POACNT-NET_VALUE = 25 .
    W_BAPI_POACNTX-NET_VALUE  = 'X'.
    W_BAPI_POACNT-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEMX = 'X'.
    W_BAPI_POACNT-GL_ACCOUNT = 641099.
    W_BAPI_POACNTX-GL_ACCOUNT  = 'X'.
    W_BAPI_POACNT-COSTCENTER =  10010393.
    W_BAPI_POACNTX-COSTCENTER = 'X'.
    W_BAPI_POACNT-CO_AREA = 1234.
    W_BAPI_POACNTX-CO_AREA = 'X'.
    APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
    APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
    Service Item detials
    W_BAPI_SERVICE-OUTL_IND = 'X'.
    W_BAPI_SERVICE-SUBPCKG_NO =  3457.
    W_BAPI_SERVICE-LINE_NO = 1.
    W_BAPI_SERVICE-PCKG_NO = 3456.
    W_BAPI_SERVICE-EXT_LINE = 0000000000.
    W_BAPI_SERVICE-QUANTITY = 0.
    W_BAPI_SERVICE-BASE_UOM = 0.
    W_BAPI_SERVICE-PRICE_UNIT = 0.
    W_BAPI_SERVICE-GR_PRICE = 0.
    W_BAPI_SERVICE-SHORT_TEXT = 0.
    W_BAPI_SERVICE-MATL_GROUP = 0.
    W_BAPI_SERVICE-DISTRIB = 0.
    APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
    W_BAPI_SERVICE-OUTL_IND = 'X'.
    W_BAPI_SERVICE-LINE_NO = 2.
    W_BAPI_SERVICE-PCKG_NO = 3457.
    W_BAPI_SERVICE-EXT_LINE = 0000000010.
    W_BAPI_SERVICE-QUANTITY = 10.
    W_BAPI_SERVICE-BASE_UOM = STD.
    W_BAPI_SERVICE-PRICE_UNIT = 0.
    W_BAPI_SERVICE-GR_PRICE = 5.
    W_BAPI_SERVICE-SHORT_TEXT = Cabling Services1.
    W_BAPI_SERVICE-MATL_GROUP = IT37.
    W_BAPI_SERVICE-DISTRIB = 2.
    APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
    W_BAPI_SERVICE-OUTL_IND = 'X'.
    W_BAPI_SERVICE-LINE_NO = 3.
    W_BAPI_SERVICE-PCKG_NO = 3457.
    W_BAPI_SERVICE-EXT_LINE = 0000000020.
    W_BAPI_SERVICE-QUANTITY = 10.
    W_BAPI_SERVICE-BASE_UOM = STD.
    W_BAPI_SERVICE-PRICE_UNIT = 0.
    W_BAPI_SERVICE-GR_PRICE = 5.
    W_BAPI_SERVICE-SHORT_TEXT = Cabling Services2.
    W_BAPI_SERVICE-MATL_GROUP = IT37.
    W_BAPI_SERVICE-DISTRIB = 2.
    APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
    Service Account assignment details
    W_ACC_SERVICE-PCKG_NO = 3457.
    W_ACC_SERVICE-LINE_NO = 2.
    W_ACC_SERVICE-SERNO_LINE = 1.
    W_ACC_SERVICE-SERIAL_NO = 1.   "Account Assignment Link
    W_ACC_SERVICE-NET_VALUE = .
    W_ACC_SERVICE-QUANTITY = 50 .
    W_ACC_SERVICE-PERCENTAGE = 100 .
    APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
    W_ACC_SERVICE-PCKG_NO = 3457.
    W_ACC_SERVICE-LINE_NO = 3.
    W_ACC_SERVICE-SERNO_LINE = 1.
    W_ACC_SERVICE-SERIAL_NO = 1.   "Account Assignment Link
    W_ACC_SERVICE-NET_VALUE = .
    W_ACC_SERVICE-QUANTITY = 50 .
    W_ACC_SERVICE-PERCENTAGE = 50 .
    APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
    W_ACC_SERVICE-PCKG_NO = 3457.
    W_ACC_SERVICE-LINE_NO = 3.
    W_ACC_SERVICE-SERNO_LINE = 1.
    W_ACC_SERVICE-SERIAL_NO = 2.   "Account Assignment Link
    W_ACC_SERVICE-NET_VALUE = .
    W_ACC_SERVICE-QUANTITY = 50 .
    W_ACC_SERVICE-PERCENTAGE = 50 .
    APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
    EKKN table entries:
    When created thru ME21N with the same set of data,which is expected
    ZEKKN            MENGE            NETWR  SAKTO        KOSTL
    01               0.750            75.00  0000641099   0010010394
    02               0.250            25.00  0000641099   0010010393
    But through BAPI_PO_CREATE1, the below split is being done with respect to Tax Jurisdiction code.
    01               0.500            50.00  0000641099   0010010394
    02               0.250            25.00  0000641099   0010010394
    03               0.250            25.00  0000641099   0010010393
    Please advice the solution.
    PS: there were different tax jurisdiction codes were being determined.
    Plant, Cost Center and Delivery Address.

    Hi,
    To commit BAPI or to run it properly , you need to fulfill all required data for BAPI.
    You can go to BAPI documentation to check for mandetory parameters and also check with Function consultant for more data and confifuration/
    Reward if useful!

  • GL directly from  shopping cart without account assignment

    Hi All
    Is there any prerequisite in the account assignment overview  to select GL from the free text shopping cart?
    (backend acct assignment category ) X= GL ( Account assignment category ).
    any instances we may need to do this from SRM?
    i believe BAPI  BAPI_PO_CREATE1  badi always expects SOME ACCOUNT ASSIGNMENT  right?
    Note 1408312 - Direct material does not derive correct account assignment - Can some one expalin this sap note please?
    MM06EF0P_PRUEFEN
         MESSAGE e000(mepo).
        ENDIF.
        LOOP AT ett WHERE item_with_error NE space.
          MOVE-CORRESPONDING ett TO potkey.
          READ TABLE pot WITH KEY potkey BINARY SEARCH.
          IF sy-subrc EQ 0 AND pot-loekz NE 'L'.
            MESSAGE e001(mepo) WITH ett-ebelp.
          ENDIF.
        ENDLOOP.
        LOOP AT knt WHERE item_with_error NE space.
          MOVE-CORRESPONDING knt TO potkey.
          READ TABLE pot WITH KEY potkey BINARY SEARCH.
          IF sy-subrc EQ 0 AND pot-loekz NE 'L'.
            MESSAGE e046(mepo) WITH knt-ebelp.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Muthu

    Thanks Summer
    My context is different.
    free text --cost assignment folder --. select  GL account only ( slect account assignment category -AcctAssCat ) - so
    now assignto G/L ACCOUNT AND G/L ACCOUNT thats all and again i am fing GL accounts and select ..order
    We do have option in SRM posting to direct GL account like GL = X (BACKENED ACCOUNT ASSIGNMENET) . FOR FREE TEXT ITEM , Can we post the GL account directly without ORDER / COST CENTER /WBS eleement .
    if we choose GL all will disappear like cost center , order , wbs .
    cost assignment
    account assignemnt over view
    line ; -1
    percentage ;-100
    assign to ; -G/L account
    description;- balank
    G/l ACCOUNT ;- 2XXXXX
    Description;- Testing
    Business area ;- blank
    hope it clears now
    thats what i am asking.the note might confused .
    FOR EX
    BBP_PDACC TABLE ACC_CAT = GL NOT CC
    Muthu

  • Issue with Account Assignment Model - FI - GL Account

    Hi SAP Guru's...
    We are facing an issue while trying to post F-02, by selecting an account assignment model. This issue started when we updated the Production client with Support Packs (SP-12 and SP13)..this weekend.
    While going for F-02, and selecting Account Assignment Model. A message Pop up with the following information - " Screen template VNU06 of acct assignmnt model Changed"..
    _In the HELP Screen the following details are appearing :-_**
    Screen template VNU06 of acct assignmnt model changed.
    Message no. FX260
    Diagnosis :-
    The entry screen VNU06 of the selected account assignment template has been changed inappropriately.
    System Response:-
    The account assignment template can only be loaded when screen VNU06 has been corrected.
    Procedure:-
    If entries exist for a screen variant, the relevant entry screens must contain all fields that have already been filled (technical note: In this case, at least field AUFNR on screen VNU06 is missing).
    Carry out the following activities:-
    Add the fields to screen VNU06 (In the following transaction, choose Posting -> Account Assignment Template
    Proceed)
    Only then can you assign a new screen to the account assignment template or delete the fields not required.
    1.) Interestingly i went and check whether any value  is there in field (AUFNR - ORDERS) in the Table KMZEI...No Value is seen.
    2.) Also this field (AUFNR) is not selected in the VNU06 Screen varient templete, by us.
    Please help us.. This being a Critical Issue.. any of your valuable suggestion, is awaited.
    Thanks
    VinodRao

    Hi Ravi,
    Tks for response. I'm looking for ME_REQ_POSTED but it doesn't exist in se18. The only BADIs I can see starting with 'ME*' are:
    ME_CIN_LEINRF2R    
    ME_CIN_LEINRF2V    
    ME_CIN_MM06EFKO    
    ME_CHANGE_CHARACTER
    ME_CHECK_ALL_ITEMS 
    ME_DEFINE_CALCTYPE 
    ME_HOLD_PO         
    ME_PO_SC_SRV       
    ME_REQ_HEADER_TEXT 
    ME_TAX_FROM_ADDRESS
    ME_TRIGGER_ATP     
    I'm using 4.6C version... any other suggest???
    Edited by: George Navarrete on Dec 21, 2007 4:40 PM

Maybe you are looking for

  • Unable to install iTunes for 64-bit Windows 8

    Hi guys, I'm having some problems right now, as I am unable to use my iPhone with iTunes. I get the error message; "This iPhone cannot be used because the required software is not installed. Run the iTunes installer to remove iTunes, then install the

  • Lists not showing in Design view

    If I preview page in browser, I can see the bulleted list, but it is not visibile in design view, pretty annoying. Anyone know why this might be happening? I validated my code and got no errors...

  • Transaction MB5B takes not into account the archived material documents

    Transaction MB5B takes not into account the archived material documents . Is it possible?

  • Can't install ios 7.1 on my iphone 5

    Can't install the above, I get a message after it's downloaded saying update failed, tried turning it off and trying again and via iTunes and still nothing, any ideals?

  • Visibility Scenarios  -  Data?

    Hello. I want to show my client some of the Visibility Scenarios so they can quickly see what EM is capable of. Example: In SPRO EM | WEB INTERFACE | ASSIGN USER PROFILES AND WEB INTERFACE TRANSACTIONS TO USERS I linked my User Login to Web Transacti