Urgent plz...Error: Multiple Account assignment in  BAPI_REQUISITION_CREATE

Hi All,
I'm using BAPI_REQUISITION_CREATE to create the PR . The PR is created successfully with service lines. The service lines for PR item has to be assigned to different account assignment. My problem is that account assignment is not getting assigned to the service line for multiple account assignment cases, instead the account assignment is blank for the sevice line.
Here is part of my code.
For Account Assignment
t_requisitionaccoun-preq_item = '00010'.
t_requisitionaccoun-serial_no = '01'.
t_requisitionaccoun-g_l_acct = '0000630010'.
t_requisitionaccoun-cost_ctr = '0801112560'.
append t_requisitionaccoun
t_requisitionaccoun-preq_item = '00010'.
t_requisitionaccoun-serial_no = '02'.
t_requisitionaccoun-cost_ctr = '0801111710'
t_requisitionaccoun-g_l_acct = '0000610090'.
append t_requisitionaccoun
t_requisitionaccoun-preq_item = '00020'.
t_requisitionaccoun-serial_no = '01'.
t_requisitionaccoun-cost_ctr = '0801111710'
t_requisitionaccoun-g_l_acct = '0000610090'.
append t_requisitionaccoun
For Service account Assignment
*<b>PR item 10</b>
Service item 1
t_requisitionsrvaccass-pckg_no = '0000000002'.
t_requisitionsrvaccass-line_no = 2. " line 1 is the header for service
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '01'
APPEND t_requisitionsrvaccass.
Service item 2
t_requisitionsrvaccass-pckg_no = '0000000002'.
t_requisitionsrvaccass-line_no = 3.
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '02'
APPEND t_requisitionsrvaccass.
*<b>PR item 20</b>
Service item 1
t_requisitionsrvaccass-pckg_no = '0000000004'.
t_requisitionsrvaccass-line_no = 2. " line 1 is the header for service
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '01'
APPEND t_requisitionsrvaccass.
With this code, what I get is the blank account assignment for PR item 10 and correctly filled account assignment for PR item 20.
Does anyone done this before and can give me some help. Thanks.

Hi, can you send me an example of this BAPI.
I have the same requeriment, i'm new with bapis
thanks

Similar Messages

  • Multiple Account Assignment problem in BAPI_REQUISITION_CREATE

    I'm calling BAPI_REQUISITION_CREATE and passing tables REQUISITION_ITEMS and  REQUISITION_ACCOUNT_ASSIGNMENT. I'm passing the following to the items table:
                'Y'           to lt_bapiebanc-acctasscat,
                '1'            to lt_bapiebanc-distrib,
                '1'            to lt_bapiebanc-part_inv.
    And I'm passing the following to the account assignment table:
            v_qty           to pt_bapiebkn-preq_qty,
            wa_rfq-item   to pt_bapiebkn-preq_item,
            wa_rfq-glacct to pt_bapiebkn-g_l_acct,
            p_unload_pt   to pt_bapiebkn-unload_pt.
    I receive error: "Please Enter Account Assignment".
    I did get a successful Requisition created before including bapiebanc-distrib and bapiebanc-part_inv, but then the multiple account assignment didn't work. I hope somebody can help, I'm getting desperate!
    Thanks,
    Beth Holback

    Hi,
      can you say me what u did to solve the issue?
      since i am facing it now. kindly help me out..
    thanks
    Suganya

  • ERROR WHILE POSTING MIRO FOR MULTIPLE ACCOUNT ASSIGNMENT (ASSET)

    Hi Guys,
    We created  a PO for asset with multiple account assignment. And we immediately do IR instead of GR.
    While doing IR it is giving error
    1) Quantity delivered is zero - Warning message
    2) Account 245350 requires a Transaction Type or is Invalid - Error message
    what may be the problem. how can we eliminate and post it
    Regards
    palani

    Hi,
    I would assume the G/L account you used was not properly set up.  Did you get the same problem if you try to change to another G/L account?  Perhaps, get your FI specialist to look into this G/L account-related error and verify it.
    Cheers,
    HT

  • Multiple Account assignment with cost distribution value error

    Hello Experts,
    We are facing the below issue,
    We are trying to create Limit SC with MAA cost center with cost distribution "By Value". we distribute the total value to 5 cost centers. when we try to order the SC, system is not allowing us to order, we got the error message "Multiple account assignment only with percentage less than 100%".
    Please advise how to resolve this issue.
    Regards,
    Santhosh Kumar.G

    Hi
    Check this OSS notes : 1644804
    Regards
    G.Ganesh Kumar

  • PO Error in Process with Multiple account assignment

    Hi ,
    I am working with Extended Classsic scenario.
    Problem is with PO with Multiple account assignement.
    There is only one user who is getting problem with one particular account assignement "CCC" - Cost Center RP.. . When PO gets created with this particular AAC , it goes into "Error in process" only for one user.
    In RZ20 it shows messsage as "Please enter quantity or percentage for account assignment" & "Distr. ind. and partial invoice ind. must be set f or multi acct. assgt.".
    On other hand , other users are able to order the PO with the same AAC without any error.
    What could be the reason behind this only for one user ?
    Regards,
    Sheetal

    Hi ,
    I have checked it intially and both are identical.
    Initialy the problem was, user had entered 128 times AA line items  ( added & deleted ) in the PO while in the SC it was having only 64.... Our system accepts line items till 99 , so i asked him to delete the items above 99 ..
    So after that POs error has gone and it went for approval..
    But after approval it again went into error in process
    Sheetal

  • BAPI_REQUISITION_CREATE with Multiple Account Assignment

    Hi, Does anyone have an example code of this function with multiple account assigment values
    Or suggestions to implement this FM
    I´m beginner in abap
    Thanks
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 12:47 PM

    Hi, I saw that function,does anyone have a z program using this bapi
    with  Multiple Account Assignment structure
    thanks

  • Down payment with multiple account assignment PO

    Dear Experts,
    While posting down payment request through transaction F -47 with
    reference to purchase order we are getting below given error.
    In that purchase order we have given
    multiple account assignment i.e. multiple cost centers (e.g. Cost center A  50% cost center B 10% Cost Center  C 40% i.e. distribution by %)
    but
    system is flagging message
    Item 00010 of purch. document 4500024875 contains no suitable account
    assignment
    Message no. ME717
    What will be the possible cause?
    regards,
    Abhijit

    Hi,
    In the request f-27 tr.code give the purchase order which item you want to give ie., for above said example 10 is a line item of 4500024875 - purchase order and beside you have to mention
    10(lineitem) 4500024875 (purchase order) 2009 (year)
    and system will take that request against the above purchase order.
    Regards,
    satish

  • 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

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

  • PO with hundreds of multiple account assignment lines on service line level

    Hi, experts,
    I want to create a external service PO with multiple account assignment.
    However, in the service line item level, when I click on the multiple account assignment, I could only enter 97 lines. But I need to create around 1000 account assignment lines for a single service line.
    Is it possible to extend the no. of account assignment lines inside the service line level? May I know how to do so?
    Thanks & regards,
    James

    I'm facing a similar error. 
    What I think it's happening is that for technical reasons the program involved only delivers 99 line items... To make things worse, When you try to create an invoice for that full item you are going to get an error bc the invoice reserves line 99 for unplanned account assignments.
    The suggestion from SAP is to create further items with 98 account assignment items or less.
    Have a look at these notes: 486808, 651784
    Regards,
    Nelson
    PS: Please rewards points for helpful answers

  • Multiple Account Assignment details for Service PRs

    Hi,
           I have developed a RFC for creating PRs. For multiple service PRs, multiple services are getting created but account assignment details getting created only for the first service line item. Iu2019m using BAPI_REQUISISTION_CREATE. Please provide me a solution.
    Regards,
    N.Senthil

    hi all,
          the issue has been resolved by passing the below mentioned values.
          wa_item_data-distrib = '1'.      "FOR MULTIPLE ACCOUNT ASSIGNMENT based on the quanlity
          wa_item_data-part_inv = '1'.     "FOR MULTIPLE ACCOUNT ASSIGNMENT
    solution got from
    http://wiki.sdn.sap.com/wiki/display/ABAP/BAPI_REQUISITION_CREATE
    http://www.sapnet.ru/viewtopic.php?p=9306
    Regards,
    N.Senthil

  • MIGO in case of multiple account assignment.

    Hi,
    I have created PO with multiple account assignment. AAC is P.
    While doing MIGO, FI document is not getting generated.
    Can anyone plz explain how multiple account assignment functionality works?
    Regards
    Nilesh

    Hi
    Its a standard practice that if there is multiple account assignment, the proportion will not be appearing at the time of MIGO. It will get updated only at the time of Invoice verification.
    Regards,
    Lakshmanan Krishnan

  • MULTIPLE ACCOUNT ASSIGNMENT IN SERVICE PO

    Hello Experts,
       I've created service PO with multiple account assignment. This PO contains manually entered condition at header level.Issue is that for multiple A/C assignment, I'm getting message " No delivery Cost can be posted in case of multiple A/C assignment." due  to which A/C document doesn't showing any delivery cost.
      If I make single A/C assign. then delivery cost is getting posted seperately. I want to know IMG settings reqd. to overcome this. I've made "del. costs seperate post" tick in IMG>>MM>> purchasing>>A/C Assignment>>Maintain A/C assign. cat.>> K Cost Centre, but still getting same error. So tell me any addn. settings reqd. for this.
      Thanks in Advance
            Amit

    Hi,
    This is a standard SAP functionality.
    In Case of multiple account assignment no delivery cost posted at the time of goods/service Receipt.
    The accounting documents are posted at the time of MIRO.
    Please do the MIRO and then check.

  • Delivery cost with multiple account assignment

    Dear SAP gurus,
    I found a problem in here. In my company we are using multiple account assignment in PO with multiple asset entered in one line. This PO actually will have customs and delivery cost inside of it, however it is not know at the time of PO creation. When the forwarder send the goods, sometimes the shipment can contain more than one PO as well, thus it is impossible to determine the exact value of delivery cost at the time of PO creation.
    When the goods are delivered in the FOB point, the vendor deliver goods will send the invoice for goods, and when the goods delivered to our warehouse, then the forwarder will deliver the invoice for the delivery cost. So there is no sequence of the invoicing. Sometimes the goods are invoice earlier than the delivery cost, sometimes it is later.
    My requirements are to make sure that the delivery cost is being posted to the asset account of the goods that are being delivered in the PO. I have tried these options:
    a. Planned delivery cost inside the PO --> when posting invoice for planned delivery cost, got error message that there is no delivery cost in the PO. I think this is because of the multiple account assignment because when creating PO and inputting the delivery cost i do get warning that no delivery cost for multiple account assignment,
    b. Unplanned delivery cost --> ONLY work if the invoice for delivery cost and goods are being posted as one document, which is not the case in here.
    c. Separate PO for delivery cost --> got issue in which the person who supposed to create the PO for delivery cost, would not have any idea what asset no to be used (worse --> if the asset is being delivered partially).
    Do you have any idea of what to be done in this case? Please help.
    Best regards,
    John.

    See  while making the invoice for the delivery cost you have selected the aggreation as planned delivery cost and in the PO you have not maintained the deilvery conditions .The pricing conditions which you have maintained must ebe  have condition category - delivery cost .The system will not give thr message thhat you have not mainatined the delivery cost .If you have condition as mandatorty it will show that the conditions ( mandatory) are not maintain.In order to maintain the delivery cost you have to check your conditions whether they are delivery cost related conditins and if then maintain there values in PO and check while doing invoice you will get.
    You have also the option of entering the delivery cost at time of the Invoice as unplanned delivery cost ...........
    Just check your conditions which you have maintained the calculation schema as delivery conditions and maintain the values and do the invoice proceesing .
    It is not advisableto cretae the sepearted PO for the delivety cost as it is not good way of doing the proceess.
    Regards
    sunny

  • Undeleting a PO line item with multiple account assignment and PO history

    I  am getting error message
    PO history already exists (Multiple account assignment not possible)
        Message no. MEPO841
    When attempting to undelete a purchase order line item that has GR (nonvaluated) and Invoice postings.
    Sequence of events.
    PO line item was created with mutlitple account assignments ( 50/50 distribution) and GR nonval flags on.
    Invoice Posted (blocked for payment)
    GR done
    PO line item marked for deletion.
    Now getting MEPO841 when attempting to undelete.
    Tried to Reverse GR and cancel material docuement - unable to do so - message no selectable items in PO
      (even with check zero indicator )

    Hello Dan ,
    Error message MEPO 841 is only issued if you have Multiple account assignment function (MAA) activated. Multiple account assignment function is a new business function developed in Release 604.
    If you have MAA active, you are not allowed to change a single account assigned PO which has GR posted to a multiple accounts assigned PO. If this is tried , MEPO 841 will stop you from doing this change.
    If you want to have your old functionality in the lower release, you should switch off the business function LOG_MM_MAA_1 ( MM Multiple Account Assignment )  in Release 604.
    Please switch the business function LOG_MM_MAA_1 off in test environment  and test the problem again in a productive system.
    I hope this information has been helpful in solving your problem. Please let me know if you have any further questions.
    Thank you.
    Best Regards,
    Frank Farinella

Maybe you are looking for

  • (ASA 5510) How do assign multiple public IP addresses to outside interface?

    Hi, I'm currently replacing my ASA 5505 with a 5510. I have a range of public IP addresses, one has been assigned to the outside interface by the setup wizard (e.g. 123.123.123.124 ) and another I would like to NAT to an internal server (e.g 192.168.

  • Call A WS From PL/SQL

    Does anyone manged to call an asynch' WS from PL/SQL? I'm trying to call a bpel process and I get an error in the response, after the service was executed. thanks Riko

  • Sync Message Error. Pls help very urgent.

    Hi, When I ma sending sync messages in XI I am getting error <SAP:Code area="PERSIST">MSG_NOT_FOUND</SAP:Code> <SAP:P1>4871E583B6C24C3CE1000000AC140A3B</SAP:P1>   <SAP:P2>PE_ADAPTER</SAP:P2> Pls help.

  • Deleted apps keep showing up on iPhone again [after unselecting in iTunes]

    Hi, I've bought some apps I decided that I don't want on my iphone, so I deleted them. After syncing with iTunes, they appeared on the phone again, so I followed advice here and unchecked the individual apps from the Sync Applications screen in iTune

  • VZW not honering advertised pricing

    I recently upgraded my "feature" phone and my wife's feature phone to two new free iPhone 4 smart phones using Verizon's website. During the checkout process I confirmed with customer service that I would be charged $80.00 per month (plus taxes) for