AR line items    -- bapi_acc_billing_post

hello folks,
can anyone help with the sample code to upload the ar line items with the bapi...
please its bit urgent.
SRI

Hi,
Put a where used list of the BAPI and check how to pass the parameters to the function module
THanks
Naren

Similar Messages

  • Unable to capture field values in Master agreement  Line Items

    I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
    agreementBean = doc.getRootParentIBean();
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    for(i=0;i<collectionsize;i++){
         collectionbean = lineItemCollection.get(i);
         partNum = ""+collectionbean.getPartNumber() ;
         Quantity = ""+collectionbean.getQuantity();     
         throw doc.createApplicationException(null,partNum + " , " + Quantity );
    Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
    1. Price Unit
    2. Unit Price
    3. Product Category
    4. Plant
    Please help me to find the values.
    Thankx in Advance.
    Su
    Edited by: subrataindra on Aug 10, 2010 11:11 AM

    This will return the name of the plant.
    .getExtensionField("PLANT").get().getDisplayName(session);
    Check if this returns the product category
    collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
    This will Return the Price
    collectionbean.getExtensionField("PRICE").get().getPrice();
    (return type :BigDecimal)
    This will return the currency
    collectionbean.getExtensionField("PRICE").get().getCurrency;
    (Return type:String)
    Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
    Hope this helps
    Regards,
    Immanuel

  • Vendor Line Item not cleared after F110

    Hi Gurus,
    We encountered an issue. The payment run was processed last April 18 and the vendor invoices were captured during the payment run and in the aging report, these invoices didn't appear as Open Item.
    In between April 19 until August 19, these invoices are not part of the proposal list until the when they run payment on August 20. The value is zero and in the proposal list, there is a value in the Reason to Print Advice "A".
    What is the reason for this?
    Thank you.

    Hi Dianne Obviar,
    For that invoice payment delete uncompleted payment
    proposal.
    U go through this path select F4 in run date field
    There check it any un completed proposal is there and delete
    that invoice line item will come for payable
    Regards
    Surya

  • Open Item and Line Items are not matching

    Hi Gurus,
    I ran the EFT for vendor #1600109 for payment on 10/18/07.  If I run the vendor open items report (ZFI019) for today, it shows the balance net of the EFT that is $203,466 ( $263869 - EFT Value is $60,403). 
    When I ran the vendor line items display (FBL1N), it shows all the invoices including the invoices paid on the Oct 18 EFT $263,869 which is (2034,66+60,403). 
    User wants the open item report should tally the line item display.
    I will assign good points.
    Thanks for your help
    Prashanth

    Hi Gurus,
    EFT is working fine. But the Vendor Open item Report (Custom Report) and Vendor line item report (FBL1N) is different.
    We are looking a balance for a vendor as on 15th where the balances are not matching between the reports but if i run FBL1N on 18th the balances are matching.
    Clearning date is 18th
    Posting Date is 15th.
    Thanks
    Prashanth

  • Urgent - "Vendor balances carried forward and line items report."

    Hello,
    Is there any report which will give me the vendor balance carried forward and the line items during that period.
    ==============================================
    Format-
    eg: statement taken from 1.8.2006 to 30.9.2006 is required as
    Bal b/f …………………………… 25000 cr.
    3.8.2006 Purchase Inv XXX ……   3000 cr.
    5.9.2006 Payment Chq XX ……  26000 dr.
    Bal c/f ……………………………  2000 cr.
    ==============================================
    Please advise on this.....
    Regards,
    J

    thanks for the response, but i have already tried those transactions.
    FK10N will give me the periodic bal statements and NOT line items display which will also have balance carried forward.
    F.41 and F.43 again gives the periodic and line items...but i want the vendor balances to  be in the format given above..
    like say, account statement.
    Please advise............
    Regards,
    J

  • Report  for bom wise target and actual cost as well as qty at line item

    Dear Experts,
    Is there any standard tcode for bom wise target and actual cost as well as qty at line item level for the month.
    there is one tcode s_alr_87013127 but user has to double click in order to get line item details.
    I want to see line item wise breakup/bom wise target and cost cost as well as qty.
    Thanks in advance.
    regards
    RK

    Dear experts,
    I am still looking for a revert.
    regards
    RK

  • Customer/Vendor A/C with line item details and with opening and closing Bal

    Dear Sir / Madam,
    Is it possible to have a customer and / or vendor Sub-Ledger account-
    with line item details and with opening and closing balance detail
    for a particular period.?
    Regards
    Chirag Shah
    I thank for the given below thread which has solved the same problem for G/L Account
    Re: Report to get the ledger printout with opening balances

    Hello Srinujalleda,
    Thanks for your precious time.
    I tried the referred T-Code
    But this report is not showing Opening balance, closing balance detail.
    It only gives transactions during the specified posting period and total of it.
    Please guide me further in case if I need to give proper input at selection screen or elsewhere.
    Client Requires Report in a fashion
    Opening Balance as on Date
    + / -  Transactions during the period
    = Closing Balance as on date
    As that of appearing for G/L Account by S_ALR_87012311
    Thanks once again & Regards
    Chirag Shah

  • Vendor Line item with Opening and Closing Balances report regarding

    Dear All,
    I need a report for vendor line items with Opening and Closing balances.
    Thanks in advance
    Sateesh

    Hi
    Try S_ALR_87012082 - Vendor Balances in Local Currency
    Regards
    Sanil Bhandari

  • Vendor Line Items

    Is there any std BAPI or FM to get Vendor Line Items?
    Is there any database Table which shows all  Vendor line items (open and cleared)?
    Note : table BSIK shows only open line items.
    Thanks in advance. Points will be rewarded.

    hi Nikhil,
    yes, open items are in BSIK, cleared items are in BSAK. There is no table where you can find both! Acc. to my knowledge, there is no FM or BAPI to give back the information you need. You have to select from the tables. In fact you can find all items in BSEG (together with debitor and G/L items), but selecting from that table can take ages...)
    hope this helps
    ec

  • How to clean line items

    Hi,
    This is in 11.5.10.2.
    For Balance Sheet review/clean up of GL Accounts, we are facing following Problems.
    When we query a particular GL account the number of lines fetches are more than 6 lakhs line items due to which we are not able to extract complete dump .
    The data Extracted is not getting classified into open and cleared items (Clearing) at GL level and therefore the data line items are enormous. Can you suggest something in this regard as to how to proceed further? IF you can share the methodology being adopted by any of you, it will be a great help.
    Thanks

    Hello.
    Can you please try the following query? I'm not sure were are you keeping the data that indicates that the lines are not adjusted so i included the JGZZ_RECON_STATUS field but you can adjust the query to your needs.
    SELECT l.effective_date,
    h.je_source,
    h.je_category,
    l.description,
    nvl(sum(l.accounted_dr),0),
    nvl(sum(l.accounted_cr),0),
    l.jgzz_recon_status
    FROM gl_je_lines l,
    gl_je_headers h
    WHERE l.je_header_id = h.je_header_id
    AND l.set_of_books_id = <your set_of_books_id>
    AND l.effective_date >= '1-jul-09'
    AND l.effective_date <= '2-jul-09'
    GROUP BY l.effective_date,
    h.je_source,
    h.je_category,
    l.description,
    l.jgzz_recon_status
    Hope this helps, otherwise repost.
    Octavio

  • Report for GR/IR line items - with PO details - profit center wise

    Hi
    My client uploaded stock and instead of using MIRO, directly passed the journal entry
    Consumption
    To Vendor
    Now, the original entry of
    Stock
    To GR/IR
    remains.
    How can I make the GR/IR account nil and also remove the open items in the corresponding Purchase Order ?
    Thanks in advance.

    Hi,
    You can use a substitution to update the field through FI. Use GGB4 for wirting a substitution you may need some ABAP coding to substitute PO no and line items in the assignment field.  rule would be Co code =XXX and GL account =xxx and Posting date earlier than =xxxx  then concatenrate EBELN and EBELP in Assigment field Zounr.
    Then execute FBL3N and edit the assignment field by selecting all the documents and then save it you should see the PO line items populated. You can leave the substitution on or you can remove it after updating,
    Regards
    K.R

  • Can it not possible that i can retrive it for all line items in a single qu

    I have to make report for my application in which I am facing a following problem:
    In the application there are multiple suppliers and each supplier having multiple line items and each item having multipale events. each evant having three status GREEN,RED and BLUE.
    When a user select 'all suppliers' to show the the status time span for a supplier (i.e. for a supplier how many parts and upto how much time parts are in blue, red and green status)
    to show the cumulative status time span I have to find out a event for each line item which is having nearest lower entry time from the lower part of the given time span.for this i have write following query
    SELECT * FROM parts_events
    WHERE vendorid = ? AND partid = ?
    AND visible = 'visible' AND active = 1
    AND entrytime = (SELECT MAX(entrytime) as
    entrytime from parts_events
    WHERE vendorid = ?
    AND partid = ?
    AND entrytime < ?
    AND visible = 'visible'
    AND active = 1)
    the problem is that i have to fire this query for each line item, can it not possible that i can retrive it for all line items in a single query?

    maybe if you can post some sample data and output will help us analyze more youre requirement.

  • Free Goods for multiple line items of the same material

    Hi Friends,
    We have configured Free Goods to a particular material in such a way that if the customer orders 100 qty of Material A then he gets 10 qty of Material B free. This is working fine if there is only one line item of Material A with qty more than 100.
    However, if the order is created in such a way that there are two line items of material A for 50 qty each then the system is not giving the free material B, even though the total ordered qty in the sales order for material A is 100.
    How can this be configured in the system? Please Help.
    Regards,
    Abhishek

    What is the purpose of giving the same material as second line item.
    specify in the first line item itself.
    or els the condition record which you have specified that for 100 material of A gives 10 material of B modify it to 10 of A should give 1 material of B
    The first you will be useful for you.

  • Printing of changed line item in scheduling agreement  smart form.

    Hi experts,
    I am facing problem in printing of changed line item in schedule agreement.
    can any body tell me how to find the line item has been changed through programming?what is the procedure to fetch the data for new line item.its
    very urgent for me.
    Please help me in this regard.
    Priti Shrivastava

    Hi
    with the help of  T180-TRTYP field you know if that doc has been changed or created.
    If it is not equal to H it is changed. H means created.
    pass the TCODE of Sched Agreement and check this field.
    You can use the CDHDR and CDPOS table s to get the changed values of new item.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Line Item Problem in  while  Proforma Invoicing in case of STO

    Hi All,
    The problem is related to Line Item Quantity in Proforma Invoice which is explained with an example -
    When we are doing Outbound Delivery for STO ( Stock Transfer Order ) we have the batch-split function where 2 line generates for a single line item material A in which in the first line no delivery quantity and value gets reflected and in the second line for the same material the delivery quantity gets reflected with batches. Then we save the order and done PGI. After that while doing the proforma invoice there also again the 2 lines appear for the single material A where the first line doesn't contain invoice quantity and value and show as 0pcs.In the second line for the same material it shows the invoice quantity with value. I want to remove this first line for the  same line item from proforma invoice and want the system to generate only one line for the line item containing the invoice quantity.
    Point to be noted that this thing doesn't happen for normal sales cycle done through Sales Order.
    I have also checked with the Item Category NLN where i have tried the Billing relevance N - Pro Forma - no zero quantities (including main batch items) and L - Pro Forma - no zero quantities. Still the same problem is arising.
    What is the problem here and how can it be solved?
    Looking forward to some valuable suggestions
    Thanks & Regards
    Priyanka Mitra

    check for your batch item cateogry,,, maintain the batch item cateogry setting same as it is ther in case of normal sale cycle. or what you can do ,,,copy your batch item cateogry and create a new batch item cateogry for your STO delivery .
    i did it and it is working fine for me. please check the batch item cateogry and matain it the same way.
    cheers

Maybe you are looking for