BAPI_BILLINGDOC_CREATEMULTIPLE, creating a Bill doc with a single line item

Hi there,
I am trying to create a Billing document with reference to Sales document using this BAPI (BAPI_BILLINGDOC_CREATEMULTIPLE)
..but the generated billing document is creating only single line item where as the original Sales document is containing a Two line items, ie. 1 main line item an a Sub line item for this .
I am passing the Values mentioned below..
As per requirement is need to create a Pre invoice or a Proforma with Provided Sales Document.
it_billingdata_in-ORDBILLTYP =  Proforma/Preinvoice
it_billingdata_in-REF_DOC =  Reference Sales doc number
it_billingdata_in-REF_DOC_CA = Reference Sales document category('C').
Can some one please suggest any thing else do i need to pass apart of these field..
Appreciate of some one answer me.
thanks
Srinivas

Hi Srinivas,
You need to loop on the internal table 'it_billingdata_in' based on the Sales Order line items and pass the value to 'it_billingdata_in-REF_ITEM' for every line item of the Sales Order.
Hope this helps.
Regards,
Pranav.

Similar Messages

  • Multiple PO's created for a SC with a Single line item except delvery date

    Hi Experts,
    I have one issue ... SRM - Classic scenario
    One Shopping Cart created with one line item ... but generated two PO's EX - First one  - A and Sec - B
    Almost the  data is ame except the delivery date .
    There can be a possibility that it was splitted into two PO's .. I will accept it ... but the problem I am facing is different ...
    When I am trying get the PO details in SRM side .. using Tcode BBP_PD ... I am able to see two PO's ...
    But when I am trying get the PO details using the FM - BBP_PD_PO_GETDETAIL .. here I am able to see only one PO that is B here ...
    I am not able to find PO - A in SRM Side ...
    But I can See in the backend sys .. R/3 ... TWO PO's (A and B) are available ......
    IN backend system we are having one Report Program Which will display the Shopping cart number for the perticular PO number ... when I am trying to execute this report to get the Shopping cart number for A Purchage Order ... I am not able to get the Shopping cart number ... message is Shopping cart does not exist ... in this program we have used the standard FM only ... there is no problem with this report ...
    My Question is Why I am not able to see the first PO ( A ) at SRM end  ... there is table where the PO's get stored at SRM end  BBP_PDBEI .. in this table also I can see only the PO - B not A .
    1.Please let me know what can be the problem ... and guide me to find the PO at SRM end ...
    2. Why the Shopping cart converted into Multiple PO .. when thr is only one line item ...
    3. I think PO cannot be split into multiple PO's based on Delivery date ...
    We have not done any splitting criteria in our system ... everything is standard only ...

    hi Hari
    only one PO is possible . check the item both are same or not.
    for eg. one sc created and went to cockpit for vendor assignment - PO will created from purchase rside
    in the mean time end user change the material in the cart via check status and assign valid source of supply and PO will create.
    1 sc- 2 POs created in my past experience.
    and deleted which PO i dont like.
    in BBP_PD you can not see PO docs, since you are in classic ? you can see if it is order as direct material since PO will create in SRM  though it isa classic..
    what really happened in your system,
    po split for delivery date means how did you get different dates.
    br
    muthu
    Edited by: Muthuraman Govindasamy on Oct 27, 2009 12:10 PM

  • Can we create multiple billing document from delivery with single line item

    can we create multiple billing document from delivery with single line item

    Hi
    Please check the link
    [can v create multiple billing document from delivery with single line item]
    and as Lakshmi said, check the forum before posting an issue.
    Regards
    AA

  • Billing Doc with over 200 item lines, wont post to FI

    Hi there i have a F2 billing doc with 209 lines on it, this will not post to FI as it is trying to post over 999 lines into FI, has anyone overcome this issue if so how did you do it?
    If not what are my options, i have customers who want monthly bills but this bill i have created is only for 2 weeks worth.
    Is there away of having multile FI docs again one billing doc?
    Hope you can help me out
    (this question is also in ERP-SD & FI section)

    hi,
    you have to set up summarization of the line items. Please see note 36353.
    If your business process does not allow this, the only possibility is to split the invoice.
    Balazs

  • BAPI to create a billing document with reference to delivery or sales order

    Hi,
    Does anyone know any BAPI or function module that allows the creation of a billing document with reference to a sales order or to a delivery.
    Maybe the BAPI_BILLINGDOC_CREATEFROMDATA may be used to create a billing document with reference to a sales document, but i'm looking for a solution where I only need to indicate the number of the reference sales order or the reference delivery and maybe some few data more without the need of transfer all the items and conditions information.
    Thanks.
    Kind regards,
    Paulo Sousa

    Hello Paulo,
    To create a billing document based on a delivery use BAPI_BILLINGDOC_CREATEMULTIPLE. In table BILLINGDATAIN insert one line with the following data:
    REF_DOC = Delivery number
    REF_DOC_CA = 'J'
    If it runs fine, table SUCCESS will bring back useful data, like BILL_DOC (Billing document number).
    Regards,
    Joã

  • Create a billing document with no accounting document

    We have a requirement to create a billing document with no acocunting document. After this billing document is created, the status on all preceeding documents- SO,Delivery and Billing -should be status closed.
    It should perform somewhat like the Proforma invoice. We cannot use a proforma invoice setting for SD document category or Trasaction group for reporting purposes.
    So we configured a billing type and removed the account determination procedure. Now we are able to create a billing document, there is no accounting document, the preceeding documents are status closed. However the billing document itself has an account determination error and is status B-Posting Document not created (account Determination error).
    Is there a way I can get rid of this error message and have a status of Cor D(C-Posting document has been created, D-billing document is not relevant for accounting)
    Thanks for all help in advance.
    -Pratibha

    Hi,
    I would recommend you go to OBA7 --> Create a new FI Doc Type (i.e. XY) --> In the Accounts types Allowed, remove "Customer" check box (here you can control whethere you want posting to be permitted for Vendor, Customer, Assets, Material or G/L Account to suit your requirement) --> Save it.
    Now, go to VOFA --> Go to your given Billing Type --> In the "Document Type" field, replace the value with "XY" created earlier --> Save it.
    Perform your transaction again up to Billing. No Accounting doc would be created where the posting has been disabled in your FI Doc Type earlier (depending on your requirement).
    Hope this helps.
    Thanks.

  • Cancel billing doc with Accounting doc clearing

    Dear gurus ,
    the scenario is that  we have a billing doc with wrong pricing and the relative accounting doc has cleared status,then we use VF11 to cancel the billing doc , the system give the information  "Document #### saved (no automatic clearing)" .Message no VF216 .
    My question is,  based on the new cancellation function module AC_DOCUMENT_REVERSE, as note 1259505 description (The most evident effect of the new cancellation procedure is the automatic clearing of the accounting documents.), is that legal or illegal ,the system cancel the billing doc without checking the status of the related accounting doc ?
    IF that is the standard reaction ,how can I make some change or config to make sure that ,the billing doc with cleared  accounting doc can't not be cancelled without reseting the status of accounting doc to "not cleared"?
    Thanks in advance ,
    Ryan
    Edited by: deyi chen on Jun 8, 2011 5:03 AM

    Hi,
    In my scenario system still cancel the invoice which is cleared but should not any accounting impact of canceled invoice
    Even if you try to release manually by VF02 the massage will appear
    Automatic clearing of billing document 12345
    and canc. doc. 17777 not poss.
    If don't want to allow creation of cancel invoice if origin invoice is cleared then do some enhancement.
    Kapil

  • Numerous billing doc. with same delivery no.

    Hi Experts,
    Kindly suggest me on the following issue:-
    If I create a sales order for 100 kg-> delivery 100 kg -> billing 100 kg ,release it to accounting.
    Then if I create another billing document for same delivery no. system does not allow.This is standard process.ok
    But my question is
    If I create a sales order 100 kg -> delivery 99 kg -> billing document 99 kg,release to accounting.
    Then If I create another billing document for same delivey ,system allow me to create another billing documet with 99 kg & also allow for release to accounting,
    I can create numerous billing documents for 99 kg with same delivery.
    Please suggest how to prevent this behaviour.
    I have checked the forum and my setting also in copy control for delivery to billing.
    Billing quantity     B
    Pos./neg. quantity   +
    Pricing type         C
    Thanks in advance.
    Regards,
    Dharminder dalal

    Hi Dharmender
    The setting you have in the copy control fo rthe item Pos./neg. quantity + means that
    entries in the document flow table (ie: subsequence billing documents) are flagged
    with '+' in the VBFA table for billing documents linked to the original sales order.
    For a regular sale this PLMIN '+' entry is required
    The system uses the PLMIN field to calculate the status of the items and sets an appropriate
    status for the sales document in tables VBUK and VBUP.
    If you have a Qty of 100 in a sales order and you deliver 99 then the billing status in VBUK and
    VBUP will be set to 'B' correctly because you have one undelivered item.
    There could be 2 cases how you are able to create multiple billing documents for one
    delivery.
    1) You have not set the PLMIN flag in the copy control TVCPF. Without this the billing status
         of the documents will not be updated adn you can create as many duplicates as you like
    2) The customising is correct and the status tables are updated correctly according to the
         qty posted in the subsequent documents. You have VBUK-FKSTK ='C' but your copy routine
         does not check the correct fields so you can create subsequent billing documents despite the
         fact it is already billed.
    If you go to the billing copy routines in VOFM look at 003 and 004 you can see there the checks that are
    carried on on the VBUP and VBUK tables
    Kind regards
    Brian

  • Creating a delivery doc with serial numbers

    Hi all,
    I need to create a delivery doc with the corresponding serial numbers? Any BAPI/function module for this?

    Hi Shusma,
    Is your Material master active for serial number management ? If not you need to assign a serialization profile to your material master. Once the material is activated for serialization you can eneter serial numbers while creating inbound deliveries (ASN) or Post GR or update an Outbound delivery before PGI.
    Are you trying to create deliveries via an interface?
    Veera

  • Create a call blast with a single extension number

    Hi
    I would like to create a call blast with a single extension number but i's no possible. How can I get around this?
    Thanks

    I can't for the life of me see the point in this, you could just assign another dn as an overlay or secondary number, but what you *could* do is:-
    create a dummy ephone-dn (any number) and add this into the list of numbers?  (siince you need a minimum of two this should work fine).
    since it will not be assigned to any phone it will not cause any issue that I can see.
    p.

  • Asset Creation in PR and PO and MIGO as a single Line item with "N" qty

    Hi All,
    In Purchase requestion ME51N
    Now we are creating "n" number of assets ( All are same item but "s.no" will vary) with "n" number of line item.
    Instead of this I have to enhance to create only one line item( For same item) with "n" quantity.
    for the ASSET account Assignment we have to create Asset(Temp no) for the each item/quantity(if the same item).
    as well as if they are going to create a PO with ref to PR they have to see all the "n" number of asset no.
    In MIGO creation for each asset we have to assign S.No and Asset Tag.
    How enhance the functionality in PR,PO and MIGO as well as in Invoice.
    Is it any User Exit/BADI is available for PR/POand MIGO to show all the "n" number of assets for a single line item.
    Kindly help me to give details to proceed further.
    Thanks in advance.
    sharma

    Hi Sharma,
    What i understand from your question is, you want to create a single line item in PR and PO. But the qty would be > 1.
    Each single qty would have its own asset number in account asssignment tab of item details of PR & PO.
    This is what you are expecting...Right???????????????
    Then this is possible with certain limitations.
    While creating PR, enter only one item with more qty.
    In item details section, in account assignment tab, on top left corner, there will be a button called Multiple account assignments.
    Click on it, then it looks like a table, where you can enter more than one line. (each line will have its own asset no)
    And choose option Distribute on qty basis for field Distribution.
    So that you can enter 1 qty for each line. ( Ex: if you created one line item in the item level with 10 qty, you need to maintain 10 line here, each qith 1 qty and diff asset no).
    The only limitation to this is, the GRN would be treated as non valueted. So when you make GRN there wwould not be any accounting doc. ( means no use of GR/IR clearing account as like normal for POs)
    when you prepare MIRO, all the assets will be capitalised and vendor credited.
    But in case if you receive partial invoice, then you have choose manually in MIRO. which asset is ot be capitalised.
    After entering the PO number in MIRO, there will be one line will be appeared with full qty. in the same line, move till the end of line, there you will have one button called Account assignments.
    Choose and go there, here you can choose which individual asset line to be considired.
    This will resolve your issue.
    Thanks,
    Srinu
    SRBORIGI_MULTIPLE ACCOUNT ASSIGNMENTS

  • Remove Billing Block on a Sales line item with Billing Plan

    Hi All,
    I need to remove/clear “<b>Billing Block</b>” on a sales order line item which as been attached to billing plan. Sales order line item can have more then one “<b>Billing Plan</b>” line item. Based on <b>billing date</b> I want to remove Billing block. Any hints or direction much appreciated. Thanks in advance.
    Kind Regards,
    Tim

    Hi,
    Use the BAPI BAPI_SALESORDER_CHANGE to remove the billing block in the sales order line item..
    Pass the item number ORDER_ITEM_IN parameter
    Pass the item number, UPDATEFLAG = 'U', BILL_BLOCK = 'X' in the ORDER_ITEM_INX parameter..
    Thanks,
    Naren

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

  • Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers in fbcj

    Hi all ,
    I have a requirement to Post Cash Journal Document using FBCJ tcode.
    Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers
    for exp:
    pk   GL a/c   description       amount   cost center  profit center
    40  400101  telephone exp   500        1403            P 1000
    40  400101  telephone exp    100       1404            P 2000
    50  200100  cash in hand      600-                             
       This is My requirement  is it possible in fbcj
        Please suggest me.ASAP.
    Regards
       Naresh.

    Hi,
      This you can do it in two ways:
    1. Make three header under top level....one Product A, 2nd Product B ( as Billing element) and third as Common expense ( only cost). Now 1st & 2 nd WBS, you have to have sales order linking with individual lint item, for third you will accumulate all the common expense till the period end then make a reposting of the same in desired proportion to both products WBS hierarchy
    (This is if you want to have a track on the common expense as well.......like planning, budgeting & control)
    After this reposting, run RA for individual billing element and hence you will all the complement detailing and control over Revenue and expense with respect to Product A and Product B individually.
    2. If you don't want to maintain that kind of detailing the common expense and keep track of it through project, then have cost centers accordingly and make an assesment/ distribution with respect to expenses accumulated at those cost centers for the period to the respective WBS under each product. Then execute the period end processes for the project.
    Or
    You can try with have two more line items in the costing sheet as an overhead against common expenses with respect each product.
    I hope this should help you.
    Regards
    Avisek Bhardwaj

  • Service Procurement with Multiple Service Line items

    Dear Experts,
    We have the following Business Scenario. Request your inputs in addressing this issue.
    Business scenario : Most of the Procurement for our client is of services. So, we need to configure services with multiple service line items. This Shopping cart to create PR in ECC. PR to PO conversion to take place in ECC. Now onwards client needs Supplier integration for confirmation of services and sending invoices by Vendor.
    Guidance required in the following
    1 In Shop functionality if we select services, PR is being created in ECC with only one Service Line item. Whereas if we go for Request functionality, then always it is routing to Bidding process (which is not required for client). Can we create SC with multiple service line items with out request functionality?? Or Can we root the Request functionality with out Bidding process??
    2 If we convert the PR to PO in ECC (Classic Scenario), can we go for SUS integration. In such case which is the best way of supplier integration. Can you please guide us on basic steps on installation (can we go for different client in the same server) and configuration.
    Request your inputs in this regard
    Thank you,
    Ravi

    Hello,
    We suffered the same problem in our company.  We have found a way to work with the SRM shopping cart multiple line rollup to ECC single line purchase order.
    If the multiple shopping cart line items contain the same location code and cost assignment they will rollup into one ECC purchase order.  The system seems to 'think' it is helping you by consolidating your information.
    In the Basic Data section of the shopping cart there is a Service line item field.  If you enter something in each in that field for each line it will keep it's own line in ECC.
    Your implementation may differ slightly from ours but I recommend playing with the location code, cost assignment and Basic Data service line fields until you can see a pattern.  Basically you need to find a method to make each line a separate entity so they don't rollup.
    Good luck,
    Corinne

Maybe you are looking for

  • Please help I've lost the question and answer confidential My Account

    Please help I've lost the question and answer confidential My Account

  • Getting rid of the background

    I have a org chart image with a white background- it was originally created in MS Publisher. I brought it into PS CS4 as a jpeg I wanted to cut out the chart and remove the background so I can use over a watermark in a report I'm working on in InDesi

  • JTree in JDialog

    Hello, How can I display a binded JTree (or any other component like JCombo, JTable ) in a JDialog ? Thankx

  • KEC3 - New currency translation type

    Hi, I am trying to create a Currency translation type in KEC3 with time dimension 5 'For exact date' and field name BUDAT "Posting date" . But when I save the new entry the system displays error KH297 - Field  is not a characteristic. Which could be

  • Adobe Reader recent files!!! Important!!!

    Does the recent file in the adobe reader le 1.5 to be specific adds up or consumes the space of your memory? if not then its ok. but if it does, how can i CLEAR ALL the RECENT FILE or DELETE THE RECENT FILE IN the adobe reader le 1.5!?!?!?!?!?! thank