BAPI_BILLINGDOC_CREATEMULTIPLE Billing Doc not created

Hi All,
I am trying to create billing document using “<b>BAPI_BILLINGDOC_CREATEMULTIPLE</b>”. Please check code below for my BAPI preparation. Problem is billing document not getting created, in return table message type ‘I’ Message ID ‘VF’  Number ‘044’ Message ‘<b>The item is not relevant for billin</b>g’ and “SUCCESS” table is blank. If I use same sales order via VF01, billing document does get created.
I will commit once I get return ‘S’. But have you people come across such kind of message. Any ideas or sample code will be of much help. Thanks in advance.
Regards,
Tim
GT_BILLINGDATAIN-SALESORG   = gs_vbak-vkorg.
GT_BILLINGDATAIN-DISTR_CHAN = gs_vbak-vtweg.
GT_BILLINGDATAIN-DIVISION   = gs_vbak-spart.
GT_BILLINGDATAIN-DOC_TYPE   = GS_INIT_ITAB2-auart.
GT_BILLINGDATAIN-ORDBILLTYP = p_fkart.
GT_BILLINGDATAIN-SOLD_TO    = GS_INIT_ITAB2-kunnr.
GT_BILLINGDATAIN-ITEM_CATEG = GS_INIT_ITAB2-pstyv.
GT_BILLINGDATAIN-REQ_QTY    = GS_INIT_ITAB2-kwmeng.
GT_BILLINGDATAIN-SALES_UNIT = gs_vbap-vrkme.
GT_BILLINGDATAIN-CURRENCY   = gs_vbak-waerk.
GT_BILLINGDATAIN-SHORT_TEXT = 'Test'.
GT_BILLINGDATAIN-BILL_DATE  = GS_INIT_ITAB2-afdat.
GT_BILLINGDATAIN-REF_DOC    = GS_INIT_ITAB2-VBELN.
GT_BILLINGDATAIN-DOC_NUMBER = GS_INIT_ITAB2-VBELN.
GT_BILLINGDATAIN-ITM_NUMBER = GS_INIT_ITAB2-POSNR.
GT_BILLINGDATAIN-ITEM       = GS_INIT_ITAB2-POSNR.
GT_BILLINGDATAIN-NO_MATMAST = co_x.
GT_BILLINGDATAIN-COUNTRY    = 'AUS'.
GT_BILLINGDATAIN-MATERIAL   = gl_matnr.
GT_BILLINGDATAIN-TAXCL_1MAT = '1'.
append GT_BILLINGDATAIN.
Prepare for BAPI call
  CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    EXPORTING
      CREATORDATAIN         = GS_CREATORDATAIN
    TESTRUN               = co_x
    POSTING               = co_x
    TABLES
      BILLINGDATAIN         = GT_BILLINGDATAIN
    CONDITIONDATAIN       = GT_CONDITIONDATAIN
    CCARDDATAIN           =
    TEXTDATAIN            =
    ERRORS                =
      RETURN                = GT_RETURN
      SUCCESS               = GT_SUCCESS.

Dear,
It seems that you missed the reference document category field which is called "REF_DOC_CA" in that BAPI function.
And as you might know, the possible values are kept in the domain VBTYP (SD document category).
Regards,
Ki-Young
Edited by: Ki-Young Bae on Oct 24, 2011 4:52 AM

Similar Messages

  • Rebate billing doc not reflected in COPA

    I have mapped the rebate condition type BO01 to BO05 with a COPA value field called rebate value already. However, I found that no COPA doc is created after the rebate billing doc is created. Why? How can I check the configuration?
    I have tried in the billing doc simulation transaction and got the following message.
    Document "90000028" is not profit-related and thus could not be transferred
    Message no. KF755
    Diagnosis
    Sales document "90000028" was not transferred to Profitability Analysis (CO-PA) because it is not relevant for the analyses in CO-PA. This can be due to one of the following reasons (among others):
    The document type is not profit-related, such as an inquiry
    The sales document shows zero for the quantity
    The sales document has been denied
    The sales document is locked due to credit reasons
    A rebate doc of course has no qty, and is a credit note, so how should I configure the COPA?
    Thanks,
    Vicki
    Edited by: Po Yee Vicki CHAN on Jul 11, 2008 6:57 AM

    Hi,
    Check tcode KE4I (in IMG of CO-PA).
    I hope this helps you
    Regards,
    Eduardo

  • Billing doc not flown to A/C

    Hi,
    One billing doc.not flown to A/C,trying to release it manually but showing error -
    "Error in account determination: table T030K key 1000 JN7 A2."
    Kindly help to resolve this issue.
    Harsh

    Hi
    Kindly maintain the tax code  in FTXP and relevant G/L account for the same
    Go to FTXP enter the country  & tax code after that select the tax accounts and maintain the same as below
    KTOPL                  KTOSL              MWSKZ              KONTS        KONTH
    Chart of account  Account key      tax code            G/l account
    REgards
    Damu
    Edited by: Damodhar Reddy Chilukuri on Jan 18, 2010 5:42 AM

  • Billing doc not been generated

    Hello,
    i am trying to create a billing doc to delivery related SO.
    i have the outbound delivery completed and now trying to create a billing doc but it says it has been fully invoiced even when we dont have any billing doc for it. the document flow as well doesnt show any invoice.
    what might be the problem?
    Thanks

    Hello,
    There could be number of reasons:
    1. You do not have sufficient integration in VKOA
    2. Accounting periods are being closed.
    3. The Customer account has been blocked.
    4. There may be a pricing error.
    5. User do not have sufficient authorization to post an accounting document.
    VFX3 should solve your problem. You release the documents to accounting, if there are errors check for log. Check the forum with search VFX3 for further help.
    Regards,
    Ravi

  • VF02 Billing doc Not appearing

    Dear all,
    I created almost 50 Billing documents ,If user wants to check any Billing Document in VF02/VF03 ,i can;t see any billing documents.
    I checked in Table Level ,here all data is Stored...I mean data is there.
    What could be the Problem.
    Thanks in Advance
    Regards
    raj.

    Hi Venky,
                   Go to the "VBRK" table and see If the billing document is there. If it is there ,  take that number and key in that number in VBFA and take the prevoius(DEL/ORDER) number and go to VL02N/VA02 and click on document flow, Check if the Billing document is shown ther or not. If it is not, check the status of the preceding document and It will tell you If it is billed or not. If it it check "V.01" and select Billing document check box and see if these documents are incomplete by any means(Even if it is incomplete system should show the document once it has allowed you to save it. I think you are getting the error message "BILLING DOC DOES NOT EXIST/ARCHIVED". You get this error some times when the database does not get updated. Check all of these and kindly let me know If you need any more help on this.
    Regards
    Ram Pedarla

  • Billing is not created

    Hi Experts
    I have scenario for third party sales there are two line items in Po ine item is billed and second line item whenn creating the billing 20 The item is not relevant for billing, for the second line item the schedule line item the delivery date  in the PO for delivery is 20 th May but in the order the confirmed qunatity is 21 st May does this create any problem in the billing
    I have checked the billing relevance is F .
    Please suggest the reasond for this
    Thanks

    Till the time Invoice receipt(MIRO) is not complete for the material in MM, error will come.
    So, purchase Invoice receipt is not complete. Kindly complete the iR and check.
    Billing Relevance:
    F: Order-related billing doc. - status according to invoice quantity
    Relevant for order-related billing documents based on the invoice receipt quantity (third-party business transaction). The system transfers the order into the billing due list only after the vendor invoice has been received and processed in the purchasing department. After the receipt of each invoice, a  customer invoice is created for the quantity that appears on the vendor invoice. The order has status "Billed" until the next vendor invoice is received.
    Item category TAS (Third party item) is set up with billing relevance "F" in the standard system.
    This process can also be related to the quantity of goods receipt.
    You can make the control setting as to whether the invoice receipt quantity or the goods receipt quantity should be relevant for billing in the copy control for billing on the item level in the billing quantity field. (In Customizing, choose Sales and Distribution -> Billing -> Billing documents -> Maintain Copying Control for Billing Documents -> Copying Control: Delivery to Billing Document -> Item, then select an item category.)
    Thanks & Regards
    JP
    Edited by: J Prakash on May 21, 2010 12:00 PM

  • Billing Doc not releasin for acccounting doc

    Hi
    After detail checking I have found that in customer master data>>Partner function tab, there is PY payer is required entry.
    When I am going to release billing doc in VF02 system is giving error message
            Customer 730 has no bank details of the bank type 0020
            Message no. F5025
    I do not want to maintain Bank Type in Payer Master data >> Payment transaction tab because these are optional fields.
    Note: If I maintain this field in Payer Master data>>Payment transaction then its allowing me to release Billing Doc.
    regards
    imdad

    Hi Imdad,
    Please coordinate with your basis guy and check SAP Note 355859 is implemented in your system.
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=355859

  • Billing doc not generated

    Hi,
    There is a scenario like this:
    Bring in stock, enter sales order, do delivery and billing.
    A billing doc number is generated at the point of saving VF01.
    But when going to VF02 to view the billing doc, an error message is recevied saying that the Billing document does not exist.
    Message No of the received error msg is VF041
    Diagnosis- The billing doc that you specified does not exist.
    This doc was possibly archived.
    Thanks in advance.

    Hi
    follow OSS-575906 & do the settings with ABAPER
    Goto settings written below.
    transaction SE91. If necessary, change the editor via 'Goto -> Change editor' to enter the paragraph formats more easily
    VF041 "Billing document & does not exist"
    U1   Diagnosis
    AS  The billing document you specified does not exist.
    AS   This document may have been archived.
    Hope it may help you
    Regards
    JAGA

  • How to get the value of bill doc after creating it using tc VF01.

    hi,
    i want to get the bill doc no after  creating it using BDC tc VF01.
    with that no i have to update the ztable.

    hi,
    i tried with the above mentioned method to get the created delivery no.but i am unable to get the created billing doc no using bdc tc VF01.any idea about this...
    REFRESH       tt_bdcdata.
      PERFORM bdc_dynpro      USING text-005 text-006.
      PERFORM bdc_field       USING text-008
                                    text-017.
      PERFORM bdc_field       USING text-009
                                    text-011.
      PERFORM bdc_field       USING text-017
                                    wa_worklist-del_no . "wa_created-document_numb.
      PERFORM bdc_dynpro      USING text-006 text-007.
      PERFORM bdc_field       USING text-008
                                    text-018.
      PERFORM bdc_field       USING text-009
                                    text-019.
      CALL TRANSACTION c_t_bill USING tt_bdcdata
                                                MODE c_m
                                                UPDATE c_u
                                                MESSAGES INTO tt_bdcmsgcoll .
      SORT tt_bdcmsgcoll BY msgtyp.
      READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_e.
      IF sy-subrc EQ 0.
        LOOP AT tt_bdcmsgcoll INTO wa_bdcmsgcoll WHERE msgtyp = c_e.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              id        = wa_bdcmsgcoll-msgid
              lang      = text-010
              no        = wa_bdcmsgcoll-msgnr
              v1        = wa_bdcmsgcoll-msgv1
              v2        = wa_bdcmsgcoll-msgv2
              v3        = wa_bdcmsgcoll-msgv3
              v4        = wa_bdcmsgcoll-msgv4
            IMPORTING
              msg       = v_msg
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          IF sy-subrc <> 0.
          ENDIF.
          WRITE :/ v_msg.
        ENDLOOP.
      ELSE.
        READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_s.
        IF sy-subrc EQ 0.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              id        = wa_bdcmsgcoll-msgid
              lang      = sy-langu
              no        = wa_bdcmsgcoll-msgnr
              v1        = wa_bdcmsgcoll-msgv1
              v2        = wa_bdcmsgcoll-msgv2
              v3        = wa_bdcmsgcoll-msgv3
              v4        = wa_bdcmsgcoll-msgv4
            IMPORTING
              msg       = v_msg
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          MOVE wa_bdcmsgcoll-msgv1 TO v_billno.
         wa_epit-bill_no =  v_billno .
         MODIFY TABLE  tt_epit FROM  wa_epit TRANSPORTING bill_no.
         UPDATE zsd_dt_epit SET bill_no = v_billno where del_no = wa_created-document_numb .
         IF sy-subrc EQ 0.
         ENDIF.
          MOVE: v_billno TO wa_worklist-bill_no .
          READ TABLE tt_epit INTO wa_epit WITH KEY epi_id = wa_worklist-epi_id epi_sr = wa_worklist-epi_sr.
          IF sy-subrc EQ  0.
            MODIFY tt_epit FROM wa_worklist TRANSPORTING bill_no WHERE epi_id = wa_worklist-epi_id AND epi_sr = wa_worklist-epi_sr.
          ELSE.
            APPEND wa_worklist TO tt_epit.
          ENDIF.
        ENDIF.
      ENDIF.
    please suggest me..its urgent

  • EDI - Material doc not created

    Hello,
           Iam working with WMMBXY/WMMBID02 (WMMB)  to post a GR on receipt of an inbound IDOC.Iam able to post the GR but material document is not created.Iam posting against an inbound delivery created against a stock transfer order.In my case I need a material document to be created.Can any one help me out in this?
    Thanks,
    Larry

    Hi,
    I believe you are posting it using the FM L_IDOC_INPUT_WMMBXY thru we19(i sa ur earlier post)...
    Could you pls check the following...
    goto se37...display the FM...put a break point at line no - 414-427 (the FM MB_CREATE_GOODS_MOVEMENT is called here)....
    goto we19...execute on foreground and check the return values after this function call...like sy-subrc...the i_emkpf to get the material doc no. etc...
    hope this helps...
    Thanks,
    Renjith

  • A/c doc not creating

    Hi
    user had created a PO and done the GR, But the relevant FI A/C documnent is not created, why is it so?
    NOTE-It is not a free goods and it is not GR non valuated.
    Appreciate your earliest reply
    Thanks
    Anand

    Hi,
    Please check your PO ,whether it is account assigned or not ..,
    if it is account assigned ,against account assignment if GR is non -valuated then system will not generate accounting document ...
    like K,A
    Thanks,
    MLM

  • Pricing Error - Billing doc. not generated

    Hi All,
    As there was a pricing error in Scheduling agreement the billing document could not be generated.
    Current Status :-
    SA(Scheduling agreement) Created.
    DO(Delivery ) Created
    PGI done.             Stock removed from the system     "Shipment Start"   ON
    Invoice can not be generated , in VF01 
    Pricing Error - YBR0 missing.
    What should be done ? Please help in this issue.
    Regards,
    Nikhil
    Message was edited by:
            Nikhil Pavagadhi

    Hi,
    I think this is something related to Shipment costs calculation. First of all you need to complere the Shipment and proceed for VI01 for Shipment Cost Calculation. You need to maintain condition record for YBR0 and then create Invoice. Hope this will work for you. Please let us know for further problems.
    Regards
    SD
    Message was edited by:
            Samier Danish

  • VF02- Billing doc not cleared

    Hi Gurus,
    I have raised a sales order and got the following document flow:
    - Sales order - Completed
    - Delivery + PGI - Completed
    - Billing - Invoicing done + FI Document has been created
    But I have the following message in Billing: Accounting document  not cleared
    What does that mean?
    What do I need to do to clear the document?
    Regards
    Chris

    Accounting document not cleared
    In standard, once you save a billing document, system will never pop up the above error message.  In few cases, system will pop up "Accounting document not generated".
    The moment you save a billing document in SD, immediately an accounting document will also be created in the background and both the status would be "Not cleared" in the initial stage.  Once the customer effected payment, FI people will update the incoming payment via F-28.  Once they complete this updation, in the document flow, system will show "Cleared".
    thanks
    G. Lakshmipathi

  • Cancellation Billing doc not getting released to accounting

    The original Billing document has been cancelled. But the accounting
    document of the cancellation document has not been generated.
    We are getting the error " Automatic clearing of billing document
    90318566 and canc. doc. 7651735 not poss.Message no. VF208". We are in
    ECC 6.0.
    This error has come for the first time. what needs to be done ?.
    thanks
    amit

    we are not maintaning this doc type , S1 in OBA7.
    we have a z table , which is :
      VKORG WERKS FKART NUMKI KTGRD
      MSI         S1    66    10
      MSI         ZAMC  53    10
      MSI         ZBCM  53    10
      MSI         ZBCO  53    10
      MSI         ZBFB  53    10
      MSI         ZBPR  53    10
      MSI   DALS  S1    66    10
      MSI   DALS  ZBCO  53    10
      MSI   DALS  ZBFB  53    10
    It has been working since many years. Why this is not getting released, not able to get any clue ..

  • How to Transfer only VPRS to COPA, Billing Doc not relevant to accounting

    Hi Gurus,
    I have a scenario where Revenue and Taxes are posted in SD (And COPA) in a Billing document, but the COGS occurr in a later moment, in another Billing document. IT can occur days after the first billing document.
    So we decided that we will send COGS to COPA through VPRS only in the second moment, so FI and COPA will be reconciliated.
    The problem is that this second billing document only posts COGS via delivery document, and the Billing document is not relevant to accounting. But I need to send the COGS of VPRS from this billing document to COPA.
    Do you know if there is a way to send This billing document to COPA even if it's not relevant to FI? With KE4S i'm not being sucessful.
    Kind Regards
    Mayumi

    Thank you all for the replies. I was very helpful.
    I coudn't use note 337488 to make COGS flow to COPA from PGI, because I had already mapped all the SD processes to flow COGS from VPRS and this pro-forma Billing Document was the only situation where I had a different scenario.
    We decided to make a workaround, by changing the doc category in SD and the operation group, and we are releasing this billing dc to accouting by posting a debit/credit in FI (making it Zero), and this way we made it possible to generate COPA documento registering only the COGS through VPRS.
    Kind Regards
    Mayumi

Maybe you are looking for

  • Web Service  - ESR

    Bom dia. Necessito fazer duas integração (no Xi e no PI) com as seguintes configurações: <-----(RFC) - <---(WS)--->  integração no cliente A. <-----(RFC) - <---(WS)--->  integração no cliente B. Sendo que a RFC é a mesma nos dois clientes e o também.

  • AMSD Apple Mobile Device service fails to start

    I use an iPhone 4 without problems until recently. Apple Mobile Device Service is set to Automatic under Startup Type. When I click start I get the message that the service started and then stopped. This happens randomly, requires restarting computer

  • PHOTOSHOP CS2 DOTS SHOWING ON SCREEN! HELP!

    Hi! I'm having a trouble with PSCS2, some times this <b>colored dots</b> show on screen and mess up with the pic I'm working with! <br />If someone have some Idea, any help will be appreciated, here is the link to show the error, so you can have an i

  • Canon MP500 connected to AirPort Extreme won't communicate with my desktop

    My Canon Pixma MP500 (which we really like) is connected to my new AirPort Extreme Base station via the USB port. My PC is attached via network cable to the base station. I have a MacBook. When printing to my printer from my PC, the printer doesn't c

  • Why this error "Definition fl.video:VideoPlayer could not be found"

    I have this in a .as file package {     import fl.video.VideoPlayer;     import flash.display.Sprite;     public class VideoPlayerExample extends Sprite   {         public function VideoPlayerExample() { When I create and save .fla file with a docume