'BAPI_PO_CREATE1'  Multiple account assignment is not possible for AFS item

'BAPI_PO_CREATE1'  -> This BAPI works perfectly without the  'account assignment' option . But  for purchase requisitions which have account assignments  BAPI returns the error  - E|8W |185   |Multiple account assignment is not possible for AFS items.
Can somebody please help me to get this error resoleve .
My coding I have done like below.
DATA: pohead  TYPE bapimepoheader.
DATA: poheadx TYPE bapimepoheaderx.
CONSTANTS : c_x VALUE 'X'.
DATA: exp_head TYPE bapimepoheader.
DATA: return  TYPE TABLE OF bapiret2 WITH HEADER LINE.
DATA: poitem  TYPE TABLE OF bapimepoitem WITH HEADER LINE.
DATA: poitemx TYPE TABLE OF bapimepoitemx WITH HEADER LINE.
DATA: posched  TYPE TABLE OF bapimeposchedule WITH HEADER LINE.
DATA: poschedx TYPE TABLE OF bapimeposchedulx WITH HEADER LINE.
DATA: POACCOUNT  TYPE TABLE OF BAPIMEPOACCOUNT WITH HEADER LINE.
DATA: POACCOUNTX TYPE TABLE OF BAPIMEPOACCOUNTx WITH HEADER LINE.
  pohead-comp_code = '1000'.   "IEQ1 plant. "'1000'.
  pohead-doc_type   = 'NB'     .
  pohead-creat_date = sy-datum   .
  pohead-vendor = EKKO-LIFNR. "'0000500004'.
  pohead-purch_org = purch_org.
  pohead-pur_group = purch_grp.
  pohead-langu      = sy-langu   .
  pohead-doc_date   = sy-datum.
  poheadx-comp_code  = c_x.
  poheadx-doc_type   = c_x.
  poheadx-creat_date = c_x.
  poheadx-vendor     = c_x.
  poheadx-langu      = c_x.
  poheadx-purch_org  = c_x.
  poheadx-pur_group  = c_x.
  poheadx-doc_date   = c_x.
  poitem-po_item    = iLineItem.      "1.
  poitem-material   = req_item-MATERIAL.   " '000000000040000234'.
  poitem-plant      = req_item-PLANT.
  poitem-quantity   = req_item-QUANTITY.
  poitem-net_price  = NET_PRICE.
  poitem-price_unit = PRICE_UNIT.
  poitem-shipping   = 'Z1'.
  poitem-preq_no    = req_item-PREQ_NO.
  poitem-preq_item  = req_item-PREQ_ITEM.
  poitem-acctasscat = 'K'.
  APPEND poitem.
  poitemx-po_item    = iLineItem. "1.
  poitemx-po_itemx   = c_x.
  poitemx-material   = c_x.
  poitemx-plant      = c_x .
  poitemx-quantity   = c_x .
  poitemx-tax_code   = c_x .
  poitemx-item_cat   = c_x .
  poitemx-acctasscat = c_x .
  poitemx-net_price  = c_x.
  poitemx-price_unit = c_x.
  poitemx-shipping   = c_x.
  poitemx-preq_no    = c_x.
  poitemx-preq_item  = c_x.
  poitemx-acctasscat = c_x.
  APPEND poitemx.
  POACCOUNT-PO_ITEM = iLineItem.
  POACCOUNT-SERIAL_NO = iLineItem.
  POACCOUNT-GL_ACCOUNT = '0000211010'.
  POACCOUNT-SD_DOC = '0001001056'.       
  POACCOUNT-ITM_NUMBER = '000100'.       
  POACCOUNT-CO_AREA = '1000'.
  APPEND POACCOUNT.
  POACCOUNTX-PO_ITEM = '00001'.
  POACCOUNTX-SERIAL_NO = '01'." '01'.
  POACCOUNTX-PO_ITEMX = 'X'.
  POACCOUNTX-SERIAL_NOX = 'X'.
  POACCOUNTX-GL_ACCOUNT = 'X'.
  POACCOUNTX-SD_DOC = 'X'.
  POACCOUNTX-ITM_NUMBER = 'X'.
  APPEND POACCOUNTX.
  CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
      poheader  = pohead
      poheaderx = poheadx
    IMPORTING
    exppurchaseorder = ex_po_number
    expheader        = exp_head
    TABLES
      return    = return
      poitem    = poitem
      poitemx   = poitemx
      POACCOUNT = POACCOUNT
      POACCOUNTX = POACCOUNTX.

I  found the answer

Similar Messages

  • Pricing at time of goods receipt not possible for this item

    We're receiving error Message no. 06634 Pricing at time of goods receipt not possible for this item when trying to change the PO Pricing Date Category from No Control to 5 GR Date.
    The error message is clear and reads:
    Pricing at time of goods receipt not possible for this item
    Message no. 06634
    Diagnosis
    For this purchasing document item, you wish to specify that a new price determination process is to be carried out at the time of goods receipt.
    System Response
    Pricing cannot be carried out for the item at the time of goods receipt because the price was either entered manually or copied from the last purchasing document.
    The scenario is that we have a contract reference on a PO and the contract condition records are to be maintained as a new price is valid each day.  The problem without this is that the new pricing will not be reflected in the GR.
    What is the solution to overcome this issue?
    NOTE:  the Info Record conditions are not being read during GR as the PO references a contract.

    For further clarification the PO is referencing a contract and as such not pulling the pricing information from the info record and instead pulling the price from the conditions on the contract. 
    I want to change the pricing date category from " No Control" to "5 GR Date" however I'm receiving the error message stated and unsure of how to make this change.
    The intent is not to create a new PO each day the condition record is created and instead we are utilizing one PO referencing one contract with multiple date delimited condition records containing the daily pricing.

  • GR of Delivery completed item not possible for line item of PO/SA ?

    Hi,
    Am unable to Receive Goods in MIGO an Error - "GR of delivery completed item not possible for line item of PO/SA"?
    Regards
    Mohammed Khaja Pasha
    +919550917395.

    Hi Mohammed Khaja Pasha ;
    Delivery Completed checkbox provides a lot of fonctionality like an additional delivery is not expected, but is possible. If you prevent posting of migo , you can benefit from system messages M7 163 and 254.
    You want to ensure that the delivery is made before the planned delivery date : Set message 254.
    You want to ensure last possible delivery date : Set message 163.
    However ;
    The open PO quantity of the PO item equals zero.
    The PO item is no longer relevant for materials planning.
    The PO item is ignored when letters urging delivery of overdue goods are generated.
    The PO item can be deleted and archived.
    You can specify whether the Delivery Completed checkbox is to be selected automatically.
    Regards.
    M.Ozgur Unal

  • Item Category: The specified category assignment is not found for this item

    HI All,
    I am loading Item category Assignment for Purchasing category Set, the standard prg fails and gives the error "The specified category assignment is not found for this item".
    Where as for the inventory category set its working fine and the assignment is through.
    Are there any changes required for this.
    Thanks
    Basaw

    As the error indicates, your servlet does not support GET method calls. Override doGet() method to do what you are doing in doPost to avoid this error. If you want your servlet to serve GET as well as POST methods, override service method instead.

  • Accounting error : Posting not possible for profit center XYZ In company Z

    HI folks,
    Do any of you have come accross this error in passing of billing doc to accounting " Posting not possible for profit center 153 in company code Z134. Kindly let me know what could be the possiblity and the solutions
    Thanks,
    Kamal

    Hi,
    Might just be better off to take the guidance from your FI guys. Pl. check if all the assignments are made correctly, like the material is linked with a profit center and this profit center to a cost center and finally to the controlling area. Also check if the currency of the profit center is the same as the controlling area currency.
    Regards
    Sadhu Kishore

  • Multiple account assignment and copy of po line item quantity to x lines

    Hi,
    I am wandering if it is possible to automate the copy of the first line presented for 10pc in multiple account assignment  screen on PO line item level to 10 lines with quantity 1 in the same multiple account assignment screen. This is of course related to the second step we want to examine which is the creation of Assets for these 10 multiple account assignment lines
    Looking forward to your proposals
    Edited by: David Reynaers on May 19, 2011 5:09 PM
    Edited by: David Reynaers on May 19, 2011 5:23 PM

    Hi David,
    First keep the PO line item Qty to 1 , then select multiple account assignment the first line with QTY 1 will be defaulted
    Select the first line and choose copy just beside copy icon the new icon will appear "insert account assignment item"
    Select on right side you have two options "Insert Once" , "Insert several times" select several time system will default Pop up
    Insert number of times 9 , Now change the line item Qty. to 10
    Thanks
    Diwakar

  • Pricing not possible for line Item

    hi
    I am facing the follwong error because of which I am nto able to go to change mode . can you guys please suggest what could be the solution?
    Pricing not allowed for item 000020 (Split 0001)
    Message no. /DBM/PRICING004
    Pricing is not allowed for the specified item. (Split 0001)
    regarsd

    Hi,
    The note 1040320 may be relevant for the issue that you are facing.
    Symptom: The pricing relevant partner role gets changed to an partner with a
    different currency. Now the currency of the header (/DBM/VBAK_COM-WAERK)
    and/or splitheader (/DBM/SPLHDR-WAERK) gets updated but not the currency
    on item level and on split item level (only for DBM600).
    The creation of warranty difference splits is not possible, because
    pricing changes are not allowed.
    Just take a look.
    Regards,
    Sandeep

  • Multiple account assignment (auto) - not split valuation

    Hi
    I have a requirement to make postings to two G/L accounts (automatically) via material group. Does anyone know if this is possible either using material group and val class or PO pricing conditions (without increasing the value of the PO)?? This is not a split valuation requirement, since the amounts being posted should not be split, but should be the full value of the PO (the g/l accounts being posted to are statistical).
    Regards
    Pratap

    I  found the answer

  • Multiple account assignment for limited PO

    Hi experts,
    Currently need to create a limit PO (item category B) with acct assignment category (P project).
    however, i need to maintain 2 project codes under the "WBS element" field.
    using limit PO, i can only maintain 1 project code.
    Appreciate if anyone can advise where can i configure (or is it possible) to have such implementation for PO creation. Thanks.
    Regards,
    JL

    Hi
    I have also checked that multiple account assignment is not possible for Limit PO's ( Item category B)
    But You can post to Multiple Account assignment objects at the time of Invoice Verification.
    Thanks & Regards
    Kishore

  • What is multiple account assignment??

    Hi Experts,
    Kindly clear my doubts.
    1) What is Multiple Account Assignment in PO ?
    2) If i have ordered 100 ea of material, can i split 50 ea for cost center (K) and 50 ea for project (P) with this multiple account assignment in PO?
    Regards,
    Prasath

    Hi,
    I hope multiple account assignment is only possible for different cost centers and not against project.Mostly this will be used for consumable material only.
    When specifying multiple account assignment for an item, you must consider the following points:
    How is the net value of a PO item to be distributed (apportioned) to the individual account assignment items?
    The costs can be allocated on a quantity or percentage basis (for example, 10 pieces or 10% of the order value to cost center 100).
    How are the costs to be apportioned if only a part of the ordered quantity has been delivered and invoiced?
    In this case, the accounts are charged with the invoiced amount of the partial delivery. For each purchase order item with multiple account assignments, you can specify whether the cost allocation is carried out proportionally or on a progressive fill-up basis.
    If you allocate the costs proportionally, the invoiced amount is distributed equally among the accounts.
    If you allocate the costs on a progressive fill-up basis, the invoiced amount is allocated to the individual account assignment items one after the other. In this case, costs are allocated to account assignment item 2, for example, only when item 1 has received its full allotment, and so on. This process continues with each successive partial invoice until the full invoice amount is reached.
    Fo further details you can refer
    http://help.sap.com/saphelp_ides/helpdata/en/fd/45b9c89d6411d189b60000e829fbbd/frameset.htm
    Regards,
    Prabu

  • Multiple account assignment of p.r while acct. assignment is P & itemcat-D

    I AM FACING A PROBLEM IN CREATION OF P.R HAVING MULTIPLE ACCOUNT ASSIGNMENT . I AM TAKING ACCT. ASSIGN MENT CAT- P i am distubting in different WBS ELEMENT. BUT SYSTEM GIVES AN ERROR MESSAGE
    Multi acct. assgt. not allowed for ind. cust. req. or engineer-to-order
    Message no. 06268
    Diagnosis
    Multiple account assignment is not defined for items with account assignment to "individual customer requirement" or "manufacture for individual project" (engineer-to-order).
    This means that you can only enter one account assignment item in the case of individual customer requirement or engineer-to-order.

    pls go to spro-mm-purchasing- account assignment-maintain account assignment-select the account assignment u r using-check ID: AcctAssgt Scrn.
    regards,
    indranil

  • GR can not printed for PO-Multiple account assignment on single line item ,

    Hi!
    I made a pr with single line item with 3 account assignment on percentage basis.I created a PO against .GR non valuated was automatically ticked so no account assignment was created at the time of GR posting.
    Can I make a valuted GR against PO line item with multiple account assignment.
    I faced another problem .I displayed the GR and after ticking out put check box in the general data page of the GR doc. the output is being saved but  the update is terminated immediately.and no output page is generated in this item level.This output problem is not there at the time of single account assignment at PO line item.
    Can you please let me have the solution ?
    Thank snd regards,
    Suranjana

    > I made a pr with single line item with 3 account assignment on percentage basis.I created a PO against .GR non valuated was automatically ticked so no account assignment was created at the time of GR posting.
    When you are having the multiple account assignment, then the system will force you to have GR-non valuated indicator being flagged which results in the fact there is not any FI document at GR posting stage and this is the standard feature of SAP.
    > Can I make a valuted GR against PO line item with multiple account assignment.
    No, not at all. The disability of GR indicator can be set in OME9 with account assignment category
    > I faced another problem .I displayed the GR and after ticking out put check box in the general data page of the GR doc. the output is being saved but  the update is terminated immediately.and no output page is generated in this item level.This output problem is not there at the time of single account assignment at PO line item.
    In fact, it is possible to maintain multiple account assignment for each and every PO line item by selecting the 'Multiple Account Assignment' button in the 'Account Assignment' View of the Item Detail of PO. However, for such multiple account assignment selection, no accounting document will be generated upon GR maintenance. This can only be done during IR via LIV process.

  • Multiple account assignment switching between distribution indicators not working for service

    Hi Gurus,
    Account assignment distribution function not working post ECC6 patching activity
    we have recently completed ECC6 patching actvity and we are facing issues on processing multiple account assignment in service.
    we create Purhcase order with single account assignment and will process service with Multiple account assignment selecting distribution on qty or percentage basis till patching functionality works fine post patching we are facing issue when we are selecting distribution indicator system provides an error message switching between distribution indicator is not allowed when we continue system ask to enter in case of multiple account assignment select the distribution indicator. could you please suggest me on the issue.
    Thanks in advance.

    we have found a SAP note
    1915000 - SE685 - Switching between distribution indicators is not allowed
    This is now standard behavior.

  • Multiple account assignement for PO

    Hi!
    i've this problem about purchase data: to extract these data i'm using 2lis_02_itm and 2lis_02_Scl DS.
    but i need in the same query the account assignement for PO (these data are in EKKN table).
    in a first time i've enhanced the DS, but with Multiple account assignement i don't have correct data (because i've used select single in CMOD).
    now i don't know how to enhance the DS with Multiple account assignement, could you help me ?
    (a solution is doing an ODS with EKKN data and make an infoset with an other ODS with data from LIS extractor, but i prefer to enhance the DS)

    Hi Alex
    You are not able to enhance 2lis_02* datasources to give you the information wanted. The problem is that you need to split one line into multiple lines. I'm as well not sure that you'll get a good result from an infoset as you’ll get performance problems due to the needed join on document , line level and a possible outer join (not all documents will show up in EKKN). A better solution will be to source EKKN to a separate ODS, source 2lis_02* into separate ODS’s and then create a new ODS sourcing data from the 2lis_02* ODS where you read the EKKN ODS in the start routine and uses that info to create extra rows if needed.
    With Kind Regards
    Kristian

  • Hard Question:   Item-Based Approval for Multiple Account Assignment?

    Hi Vadim and community,
    Possibly.. this is my hardest question for you.
    We need to implement Item-Based Workflow Approval.  The CC Owner should approve only the items assigned to his/her CC.    We'll do this reading R3(CO) data.
    Thats not the problem.
    The problem is:  I need to use Multiple Account Assignment.  I'll distribute one time in 3 o more CC.   Is it possible to have an CC-Based Workflow Approval ?   I mean, The CC owner should approve partly the item assigned to his/her CC.
    Anybody knows something ?
    Thanks for your reply !!! =)
    Regards,
    Diego

    Hi Diego,
    In my understanding you want to define one or several level of approval depending on the CC assignement on each item.
    lets take an example:
    CC1 owner approver1, CC2 owner approver2 and CC3 approver3
    For a SC:
    -Item 1: 20% on CC1, and 80% on CC2
    -Item 2: 20% on CC1, and 60% on CC2, and 20% on CC3
    Then in the item level BADI, you'll define:
    -Item1:
    Level1 ==> approver1
    Level2 ==> approver2
    -Item2:
    Level1 ==> approver1
    Level2 ==> approver2
    Level3 ==> approver3
    I had this requirement on a project, and the hard part was not the BADI implementation, but the CC owner link with the SRM users (cause all approvers have to be declared on the SRM, and integrated in the SRM org plan).
    Regards.
    Vadim

Maybe you are looking for