Missing Line items for CO-PA "BAPi_ACC_DOCUMENT_POST"

Hi Every one,
I am facing a problem while posting the documents using the standard "BAPI_ACC_DOCUMENT_POST". Problem is, if I have a multiple line items to be posted, BAPI is posting only a part of them and throwing the other documents into error with an error message "Missing Line items for CO-PA" or "inconsistency between a document field and prof. segment number" .
Program is handling the errors in another internal table and displaying them on output report.
When we re-run the program with same parameters, it is posting the some part of the residue and throwing some documents into error. So to clear out all the documents I need to run the Program for multiple times.
Any one can help me out in solving this Problem.

Hello Prashanth ,
there are 2 structures I think you should fill
CRITERIA (ref structure BAPIACKEC9 )
VALUEFIELD( ref STRUCTURE  BAPIACKEV9) in  BAPi_ACC_DOCUMENT_POST
hope this helps...

Similar Messages

  • Error message: Missing line item for CO-PA characteristic line 0000000001

    Hello, when posting is being done in automatic we are getting the following error message RW621 : 'Missing line item for CO-PA characteristic line 0000000001' and the document is not being created. I've filled in correctly the cost center / profit center for the line items. Any idea on why i'm getting this message?

    Hello Prashanth ,
    there are 2 structures I think you should fill
    CRITERIA (ref structure BAPIACKEC9 )
    VALUEFIELD( ref STRUCTURE  BAPIACKEV9) in  BAPi_ACC_DOCUMENT_POST
    hope this helps...

  • 2LIS_11_VAITM delta extraction missing line items

    Group,
    I'm having a bit of troubles with the 2LIS_11_VAITM extractor. We've been using this extractor for some time now to do daily delta loads and it seems to work fine 99% of the time, but recently we noticed a few orders here and there from the last 7 months that were missing line items. If a full repair load is done now on these orders, we are able to extract the missing line items. This seems to suggest that for some reason the R3 delta job is not processing these line items or not picking up changes to these line items when they occur. I've found a few notes that seem to apply, but wanted to know if anyone else had this problem before.
    This extractor feeds into a custom ODS, but no records should be dropped since there are only straight mappings in the update rules and transfer rules and no start routines used.
    Thanks for any help offered!

    Hi,
    I feel it would be better to check first for these records in PSA table. If the records are there in PSA but not there in ODS . Check the value for the field 0STORNO(ROCANCEL) in all those records.
    IF the field ROCANCEL does not has value R or D , then you can think about REPAIR request.
    For few more information on REPAIR search the forum.
    With rgds,
    Anil Kumar Sharma .P

  • Single line item for multiple line item payment.

    Hi
    I have booked the 3 vendor invoices (in FB60) for a single vendor. Now today i paid (with F-53) all the three invoices together. One payment document number was generated.
    However when i saw the vendor line item, i saw that three debit line items was generated for the clearing the open invoices (i..e 3 credit line items). so when i say vendor line item report, there were total 6 cleared line items (3 for credit i.e invoice and 3 for debit i.e. payments)
    But is it possible to get  single debit line item for all the three invoices cleared. If yes, please let me know how i can get it.
    If i will have one single line item for payment, vendor report would be simpler. Please help

    Hi,
    1. If you do payment through F-53, then each invoice have separate payment line item. This is not avoidable. If you do payment through F110, then you can group the line items for payment, so there only one payment line item for many number of invoices.
    2. While clearing through F-44, system is generating automatic line items because, there are exchange rate fluctuations. You can't avoid these line items, as these automatic line items only match Debit and Credit amounts in order to post the document.
    Rgds
    Murali. N

  • Mass change of payment in customer line item for all open line item.

    Hello,
    We have updated the new payment as per the new agreement with customer in customer master. We want this new payment term should also be updated in all the open invoices which are not cleared. Is there are way we can do the mass change in Payment term as the open line item in the customer where line item are more than 50. Please let me know the transaction code for the mass change of payment term in Customer account balances.
    Thanks and Regards,
    Rajesh Kumar Mantri

    Hi
    you can find the way to change the payment terms
    first check weather the payment term field is having change option in your document change rules in the line item for you customers.
    Financial Accounting (New)Financial Accounting Global Settings (New)DocumentRules for Changing DocumentsDocument Change Rules, Line Item
    if the payment term BSEG-ZTERM(payment term) is there for your customer and having deselcted check box for changing document you cannot change payment term for your company code.
    This can done client level or company code level.
    if the payterm  can be changed you do changes to payment terms mass level.
    Thanks
    ANJI

  • Issue with report (S_ALR_87013611) that is actual/plan line items for Cost

    Hi Gurus,
    I am having issue with the report (S_ALR_87013611) that is actual/plan line items for Cost Center.
    When i execute the report for a cost element  510200 the amount is 23,380.13, but when i drill down on it by double click on that amount the value in obj curr is 15468.91. Hence there is the differnce. When i futher drill down by double click on the amont of 15468.91 and i go to display group currency and take the total it is 23380.13 and display in local / doc currency the amount is 15468.91. I guess due to this there is difference. The cost center & the cost elements are the same i have checket it.
    My concerns is that the group curr is USD and obj curr / local curr is USD. So is group curr and doc curr is USD then when i click on dislay curr and select group curr why the amounts are changing.
    Kindly adivce

    Try to look if there is any filtering criteria applied in the report to which you drill-down.
    The difference can be also caused by the "value type" - some reports show actual and statistical costs together in one column while the others strictly show (are defined to show) only e.g. actual costs (type 04) and not the statistical costs (type 11)

  • How can I add a new line item for production order?

    HI all,
    How can I add a new line item for production order through BAPI/FM? Thanks in advance.

    Hi Mil,
      Unfortunetly SAP is not in front of me.
    But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
    Reward if useful!

  • Same material can exist on multiple line items for the same order.

    Hi
    Is there any specific customising setting or web shop setting through which we can restrict user to add same material on multiple line items for the same order ?
    Regards

    No.
    But if this is a must requirement, you can do an elaborate check during order save in ORDER_SAVE BAdI and return error. So, it will be only during order save.
    Eawar Ram
    http://www.parxlns.com

  • How to Close a Purchase Order line Item for GRN W/O Deleting the Line Item

    Hi,
    I want to Close a line item for Goods Receipt in a Purchase Order. How Do I do this?
    My Requirement is that the system should not allow for Goods Receipt for the Line Item.
    I know of 2 options which are difficult to Implement.
    1) I delete the Line item
    2) Put the delivery Completed Indicator - For this the system still allows for GR
    any Other way of Closing the line Item
    NS

    Hi, you can close the Line item by, doing partial GRPO, i.e if u use the Copy From option in GRPO, there comes a Draw docuemnt wizard, there you can choose one line item, and then put GRPO for that line item,
    The Wizard comes only in the Copy From option,
    Close the Line item, by right clicking on that Line item and then 'close Row'
    Edited by: Gayathri Panneerselvam on Dec 19, 2008 10:25 AM

  • Creation of suspension line items for Subscription orders

    hi ,
           I am currently working on IS-Media project.
    I have a requirement that I need to create a suspension for all the line items available for the subscription orders.
    I mean I have to create a new line item for all the active line items of a subscription order.
    I have seen the FM : ISM_SALES_ORDER_CHANGE.
    it is working for only single active line item.
    Could you please suggest any of the Function moulesavailable in the SAP : IS-Media?
    Thanks in advance.
    Vijay.

    Vijay,
    The best FMs that would meet your needs are below. They are listed in the order that will best address what you are trying to accomplish. They are ISM_SALES_ITEM_UNLIMIT_CHANGE, ISM_SALES_ITEM_SUSPEND and ISM_SALES_SCHEDULE_CHANGE.
    I hope this helps.
    Sibu

  • Help on GOA screen control at line item for only material

    Hello All
    scenario:-
    1. create a GOA
    for a material with has alternative UOM ( CAR - ORDER UNIT ; 1 CAR - 34 ea) . So i created GOA FOR MATERILA LINE ITEM.
    FOR CAR .
    2. I released GOA and distributed GOA for CAR as Oeder Unit UOM.
    3. now my buyer  go to GOA and change UOM as EA and price I AND CHANGE THE PRICE IN THE SAME  LINE  ITEM.
    4. No PO released against the COntract in the ECC 
    5. Unfortunately buyer could change this UOM from CAR to EA. now GOA shows as EA in the line item
    6. this info taken to ECC via IDOC but this info  never updated in ECC contract.
    7. my PO release as CAR forever rather than EA since my ECC contract always shows  as CAR
    i can lock this item i can create  a new line item, no issues.
    how buyer knows each time ? if the system allows buyer always try to change rather than entering new item. it is not buyer fault. it is srm fault.
    Now ican u suggest some code in ui control badi , if the PO not releases system should not allow to change  the UOM in the GOA line item for a material.
    PS:- once PO released against contract  . srm will not allow to change the UOM . that is fine.
    SAP has to correct this problem and release the note.
    Muthu

    Hi Donald/SCot/ kiran/ jay...
    are you having the same problem in SRM 700. front end validation is required here toooooo...
    please help me.
    I could not accept this functionality ..
    why SRM allows to change the UOM by the buyer after  release the GOA for the same line item
    if srm allows to do edit, SAP SRM and ECC has to update the same UOM in the existing purchasing contract. IDOCs carry all new uom but why not updated in ECC purchasing contract.
    decided to write own logic in ui badi to protect this. what to do
    Muthu

  • Text in Line Items for BCS top side entry

    Do any of you experts out there know of a way to enter text in bcs line items for top side entries?
    Thanks
    Tim

    Dear Charles,
    I understand that you are asking for line item texts in BCS. This can be acheived by an enhanecemnt in the code and I have done it before. this code is there in an OSS note and you can apply this note by using transaction SNOTE. (Can u pls check the oss and u can fix it asap. If u dont find  the same let me know. I was checking this in my laptop and I ahve to go for a meeting now). I confirm that u can fix this in 5 minutes with that note.
    You will see the line item texts in the screen after that.
    Pls let me know if it helped.
    Thanks & Rgds
    Samir Neji

  • FM for Actual cost line items for orders.

    HI EXPERTS,
    I was working on Actual cost line items for orders / Internal orders of an employee.
    standard program RKAEP000 is present through TCODE KOB1.
    I want some customization of report, so debugged the program and found that its using a FM 'K_LINE_ITEMS_SELECT_AND_LIST' to calculate internal orders.
    But the FM has used REUSE_ALV_* and displaying output itself.
    the requirement is to customize the output display .
    I searched with K_LINE_* and found some other function modules too.
    K_LINE_ITEM_CHECK                                                                               
    K_LINE_ITEM_APC_SIGN_GET                                         
    K_LINE_ITEM_GET_CONTEXT_MENU                                     
    K_LINE_ITEM_GET_TOOLBAR                                          
    K_LINE_ITEM_LOGICAL_KEY_GET                                      
    K_LINE_ITEM_TECH_SETTINGS_SET                                    
    K_LINE_ITEM_VALUE_TYPES_GET                                      
    K_LINE_ITEM_VALUE_TYPES_SET                                                                               
    K_LINE_ITEMS_ACT_GRID                                            
    K_LINE_ITEMS_SELECT                                              
    K_LINE_ITEMS_SELECT_AND_LIST                                     
    K_LINE_ITEM_ACT_CALL_WITH_DATA                                   
    K_LINE_ITEM_ACT_DATA_GET                                         
    K_LINE_ITEM_CM_CALL_WITH_DATA                                    
    K_LINE_ITEM_DEV_CALL_WITH_DATA                                   
    K_LINE_ITEM_PLN_CALL_WITH_DATA                                   
    K_LINE_ITEM_PROCESS_UCOMM_ACT                                    
    K_LINE_ITEM_STEERING_GET                                                                               
    Can anybody tell which FM should i use so that result i will get in an internal table?
    or suggest any other methods
    Thanks in Advance.
    Lucky

    I also had the same requirement and used function module K_LINE_ITEM_ACT_DATA_GET
    this function is calling K_LINE_ITEMS_SELECT_AND_LIST function with  I_NO_DISPLAY parameter
    and returning the result.
    Already they are in same function group,
    I wrote this for future requirements of people  after 4 years of this thread

  • Single line item for multiple open items in app

    we have three open items   to vendor x  100001000010000
    But we are paying to vendor only 10000100005000
    At the time of entry system showing
    Vendor account 25000
                 To    Bank account       20000
                 To    Bank account         5000(here we paying partial amount of 3rd open item)
    But my Clint requirement is system should post only single line item for bank account 25000 for reconcilation purpose
    Would you please suggest where we need to do customization?

    Hi Anantha,
    How are you making the payment which transaction you are using ? Both Manual & Automatic payment
    the suggested solution is go for split payment terms. configure using OBB8 and OBB9
    Hope this helps
    pbb

  • How to not to display any line items for val flds values are zero in KE30?

    Dear All,
    In KE30,in one of my reports,  i do not want to display such line items for which all values are zero for all val flds, it should only display the line items for which there is any value, i have tried Zeros hide in KE35 in formatting menu>other format>hide zeros, but unofrtunately it didnt came out.
    Regards
    Rashid
    Edited by: rashinuet on Feb 20, 2012 4:38 PM

    Dear Abhishek,
    I have tried that as well in ke35 and made this option activated on my val flds like sales revenue for hide zero values, but it didnt came out as well, then in i tried ke32 change report >Extras menu>form settings, this adopts all the settings in the report from the form you have assigned, but this is not working, i am failed to understand what has gone wrong.
    Regards

Maybe you are looking for

  • Where to find keynote poster templates?...link is broken?

    I'm looking for poster templates....the link in the tutorial video doesn't work?  Any suggestions? Thanks

  • Accessing Dll from JNI

    Hello, I have a dll (COM component) that can create *.wfl files. I am writing an applet to call that dll file so that I can use the component to create the *.wfl file. Can any one tell me how to do this? Please help me with some source code. I am new

  • What's the best way to deal with a crack in the plastic case

    I have a small crack in the pastic case of my MacBook to the left of the TAB key.  It doesn't impact function but I'd like to keep it from getting bigger. I thought about putting some scotch tape across the crack to keep it from flexing or having one

  • Dropdown - Adobe Form

    Hi All, I have a dropdown in my form. Based on the value selected, i need to populate another dropdown in the same form. Can any help me out with this. Thanks and Regards Manish Mohan

  • Purchaseordersrmpricingsimulatequeryresponse (IN an Out)

    Hi, Could somebody tell me what the trigger is for purchaseordersrmpricingsimulatequeryresponse_IN (When PO is created in ECC, asking for a price mentioned in a contract in SRM). Is the trigger, when clicking on save, or when the central contract num